body.arabic {
    direction: rtl;
}


html[data-placement=vertical][data-behaviour=unpinned] body.arabic main {
    padding-right: calc(var(--main-spacing-horizontal) + var(--nav-size-slim));
    padding-left: var(--main-spacing-horizontal);
}

html[data-placement=horizontal] .nav-container .logo img {
    width: 160px;
}

html[data-placement=vertical][data-behaviour=unpinned]:not([data-menu-animate=show]) .nav-container .nav-content .logo a {
    width: 53px;
}

html[data-placement=vertical] .nav-container .logo img {
    width: 220px;
    min-height: 48px;
    transition: width 0.3s ease;
}

/* When sidebar is collapsed, show only icon portion of logo */
html[data-placement=vertical][data-behaviour=unpinned]:not([data-menu-animate=show]) .nav-container .logo img {
    width: 48px;
    object-fit: cover;
    object-position: left center;
}


.menu-container .label,
.user-container .name {
    font-size: 16px;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    /* Espace entre le logo et le texte */
    background-color: #ffffff;
    color: #1f1f1f;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 24px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* Effet au survol */
.btn-google:hover {
    background-color: #f8f9fa;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3);
    border-color: #d2e3fc;
}

/* Taille de l'icône */
.google-icon {
    width: 20px;
    height: 20px;
}

.dropdown-menu.show {
    display: block;
}

#spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #fff;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

#spinner.show {
    display: flex !important;
}

#spinner.hide {
    display: none !important;
}


#spinner.hide {
    display: none !important;
}

#spinner.show {
    display: -webkit-inline-flex !important;
}

/* Admin Profile Form Styling */
section.scroll-section {
    scroll-margin-top: var(--main-spacing-vertical);
}

section.scroll-section h2.small-title {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
}

section.scroll-section .card {
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

section.scroll-section .card-body {
    padding: 1.5rem;
}

section.scroll-section form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

section.scroll-section .form-control {
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

section.scroll-section .form-control:focus {
    border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
    outline: none;
}

/* Cookie Consent - Stack Overflow Dark Theme (Precision) */
.cookie-popup-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 10000;
    max-width: 440px;
    width: calc(100% - 60px);
    animation: cookieFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cookieFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-card {
    background: #2d2d2d;
    /* Exact SO dark background */
    border-radius: 7px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid #3d3d3d;
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    color: #ffffff;
}

.cookie-header {
    margin-bottom: 20px;
}

.cookie-icon-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-icon {
    width: 60px;
    height: 60px;
    color: #31a4ff;
    /* Accurate neon blue */
    filter: drop-shadow(0 0 8px rgba(49, 164, 255, 0.4));
}

.cookie-message {
    font-size: 0.92rem;
    color: #e3e6e8;
    line-height: 1.6;
    margin-bottom: 24px;
}

.cookie-message a {
    color: #31a4ff;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-accept {
    background: #7fc1ff;
    /* SO Button Light Blue */
    color: #242729;
    /* Dark text on light blue */
    border: none;
    padding: 11px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
}

.btn-accept:hover {
    background: #aadbff;
}

.btn-reject {
    display: none;
    /* Persistent requirement */
}

.btn-more {
    background: transparent;
    color: #e3e6e8;
    border: 1px solid #525960;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-more:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #e3e6e8;
}

.fade-out {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease-in;
    pointer-events: none;
}

/* RTL Support */
body.arabic .cookie-popup-container {
    left: auto;
    right: 30px;
}

@media (max-width: 640px) {
    .cookie-popup-container {
        bottom: 20px;
        left: 20px;
        right: 20px;
        width: auto;
        max-width: 100%;
    }
}

.fade-out {
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

/* Blog & Card Enhancements */
.hover-scale-up {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.hover-scale-up:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1) !important;
}

.clamp-line {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sh-19 {
    height: 190px !important;
}

.sh-25 {
    height: 250px !important;
}

.sh-50 {
    height: 400px !important;
}

.pagination-container .pagination {
    margin-bottom: 0;
    gap: 8px;
    align-items: center;
}

.pagination-container .page-item .page-link {
    border-radius: 12px;
    border: none;
    color: #a879cc;
    background: #fdfbff;
    padding: 12px 18px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(168, 121, 204, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
}

.pagination-container .page-item.active .page-link {
    background: #a879cc;
    color: #fff;
    box-shadow: 0 4px 12px rgba(168, 121, 204, 0.3);
}

.pagination-container .page-item .page-link:hover:not(.active) {
    background: #f5eeff;
    color: #8e5fb3;
    transform: translateY(-1px);
}

.pagination-container .page-item.disabled .page-link {
    background: #f8f9fa;
    color: #ced4da;
    opacity: 0.6;
}

/* Specific styling for Previous/Next icons */
.pagination-container .page-item:first-child .page-link,
.pagination-container .page-item:last-child .page-link {
    font-size: 1.2rem;
    line-height: 1;
}

/* RTL Support for Blog */
body.arabic .me-1 {
    margin-right: 0 !important;
    margin-left: 0.25rem !important;
}

body.arabic .me-4 {
    margin-right: 0 !important;
    margin-left: 1.5rem !important;
}

body.arabic .pe-3 {
    padding-right: 0 !important;
    padding-left: 1rem !important;
}

/* Admin Auth Premium Theme */
.bg-admin-primary {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
}

.bg-admin-register {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%) !important;
}

.bg-admin-onboard {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%) !important;
}

.bg-green-accent {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.text-green-primary {
    color: #10b981 !important;
}

.btn-green-gradient {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    color: white !important;
    border: none !important;
    transition: all 0.3s ease;
}

.btn-green-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3) !important;
    color: white !important;
}

.shadow-green-lg {
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.2) !important;
}

.auth-visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.bg-white-10 {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.bg-white-20 {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.animate-shake {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* Animations */
.animate-fade {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-down {
    animation: fadeInDown 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rounded-xl {
    border-radius: 1rem !important;
}

.extra-small {
    font-size: 0.75rem !important;
}

/* Custom Buttons */
.btn-cyan {
    background-color: #0ad1f7 !important;
    border-color: #0ad1f7 !important;
    color: #fff !important;
}

.btn-cyan:hover,
.btn-cyan:focus,
.btn-cyan:active {
    background-color: #00c4eb !important;
    /* Slightly darker for interaction */
    border-color: #00c4eb !important;
    color: #fff !important;
}

/* Custom Alert System */
#custom-alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
}

.custom-alert {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 300px;
    max-width: 450px;
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 45px 16px 20px;
    margin-bottom: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateX(120%);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
    pointer-events: auto;
    border-left: 6px solid #ccc;
    overflow: hidden;
}

.custom-alert.show {
    transform: translateX(0);
    opacity: 1;
}

.custom-alert.hide {
    transform: translateX(120%);
    opacity: 0;
}

.custom-alert-success {
    border-left-color: #10b981;
}

.custom-alert-danger {
    border-left-color: #ef4444;
}

.custom-alert-icon {
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.custom-alert-success .custom-alert-icon {
    color: #10b981;
}

.custom-alert-danger .custom-alert-icon {
    color: #ef4444;
}

.custom-alert-content {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

.custom-alert-close {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #999;
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.custom-alert-close:hover {
    color: #333;
    transform: translateY(-50%) rotate(90deg);
}

.custom-alert:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px) !important;
}

.custom-alert.show:hover {
    transform: translateX(0) translateY(-2px) !important;
}

/* RTL Support for Alerts */
body.arabic .custom-alert {
    right: auto;
    left: 20px;
    transform: translateX(-120%);
    border-left: none;
    border-right: 6px solid #ccc;
    padding: 16px 20px 16px 45px;
}

body.arabic .custom-alert.show {
    transform: translateX(0);
}

body.arabic .custom-alert-success {
    border-right-color: #10b981;
}

body.arabic .custom-alert-danger {
    border-right-color: #ef4444;
}

body.arabic .custom-alert-icon {
    margin-right: 0;
    margin-left: 15px;
}

body.arabic .custom-alert-close {
    right: auto;
    left: 15px;
}





@media (max-width: 992px) {
    #home-glide-carousel .glide-content-overlay {
        background: rgba(0, 0, 0, 0.4);
    }
}

/* Home Glide Carousel Scoped Styles */
#home-glide-carousel {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

#home-glide-carousel .glide-slide-inner {
    position: relative;
    height: 500px;
    width: 100%;
    vertical-align: top;
    overflow: hidden;
}

#home-glide-carousel .glide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
}

#home-glide-carousel .glide-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#home-glide-carousel .glide-slide-inner h2 {
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    max-width: 900px;
}

#home-glide-carousel .glide-slide-inner p {
    font-size: 1.25rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}

/* Side Arrows Styling */
#home-glide-carousel .glide__arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    pointer-events: none;
    z-index: 10;
}

#home-glide-carousel .glide__arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
}

#home-glide-carousel .glide__arrow:hover {
    background-color: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.1);
}

#home-glide-carousel .glide__arrow i {
    width: 24px;
    height: 24px;
}

/* Bottom Bar Bullets */
#home-glide-carousel .glide__bullets {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

#home-glide-carousel .glide__bullet {
    width: 35px;
    height: 4px;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

#home-glide-carousel .glide__bullet--active {
    background-color: #0ad1f7;
    width: 50px;
}

@media (max-width: 992px) {
    #home-glide-carousel .glide-slide-inner {
        height: 400px;
    }
}

@media (max-width: 768px) {
    #home-glide-carousel .glide-slide-inner {
        height: 480px;
    }

    #home-glide-carousel .display-3 {
        font-size: 2rem !important;
    }

    #home-glide-carousel .glide__arrows {
        padding: 0 15px;
    }

    #home-glide-carousel .glide__arrow {
        width: 40px;
        height: 40px;
    }
}

.tab-content {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #dee2e6;
    border-top: none;
}


.btn-outline-primary.btn-custom-control .form-check-input {
    margin-top: 0 !important;
}


.accordion-item-modules {
    background-color: #f9f9f9;
    position: relative;
}

.accordion-item-etapes {
    background-color: #fff;
    position: relative;
}

.accordion-button::after,
.accordion-button:not(.collapsed)::after {
    content: '';
}

.delete-accordion {
    position: absolute;
    top: 10px;
    right: 10px;
}

.ql-snow {
    background-color: #fff;
}

.ql-editor {
    min-height: 200px;
    /* Ajustez selon vos besoins pour simuler 8 lignes */
    font-size: 16px;
    line-height: 1.5;
    background-color: #fff;
}

.img-not {
    width: 100%;
    height: 88px;
    background-color: #dedede;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-not svg {
    /* color: #00c4eb !important; */
    margin-bottom: 0 !important;
}


html[data-placement=horizontal] .nav-container,
html[data-placement=vertical] .nav-container,
.bg-gradient-light {
    background-image: linear-gradient(160deg, #649b2e, #649b2e, #8dad24, #74a22a) !important;
}

.plyr__control--overlaid {
    background: #649b2e !important;
}

.plyr--full-ui input[type=range] {
    color: #649b2e !important;
}

.card-clickable {
    cursor: pointer;
    transition: background-color 0.2s;
}

.card-clickable:hover {
    background-color: #fcfcfc;
}

.drag-handle {
    cursor: grab;
    color: #ccc;
    transition: color 0.2s;
}

.drag-handle:hover {
    color: var(--primary);
}

.drag-row {
    opacity: 0.5;
    background: #f8f9fa;
}

.ghost-row {
    background: var(--primary-light);
    border: 1px dashed var(--primary);
}

html[data-placement=vertical] body.arabic .nav-container .nav-content .menu-container .menu a .label {
    margin-left: 0;
    /* margin-right: 5px; */
}

html[data-placement=vertical] body.arabic .nav-container .menu-container .menu>li .icon {
    margin-left: 8px;
    display: inline-block;
    margin-top: -1px;
    margin-right: -1px;
}

html[data-placement=vertical] body.arabic .nav-container .menu-icons {
    padding-right: 0;
    padding-left: auto;
}

body.arabic .dropdown-toggle::after {
    margin-right: .255em;
    margin-left: 0;
}

body.arabic .language-switch-container .language-button {
    direction: ltr;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

body.arabic .language-switch-container .language-button::after,
body.arabic .language-switch-container .language-button.show::after {
    margin: 0;
    transform: rotate(225deg);
}

html[data-placement=vertical] body.arabic .dropdown-menu ul {
    padding-right: 0;
    padding-left: 0;
    text-align: right;
}

html[data-placement=vertical] body.arabic .nav-container .dropdown-menu a svg {
    margin-right: 0;
    margin-left: 8px;
}

html[data-placement=vertical] body.arabic .nav-container .text-extra-small {
    text-align: right;
}

html[data-placement=vertical] body.arabic main {
    padding-right: calc(var(--nav-size) + var(--main-spacing-horizontal));
    padding-left: var(--main-spacing-horizontal);
}

html[data-placement=vertical][data-behaviour=unpinned] body.arabic main,
html[data-placement=vertical][data-behaviour=unpinned]:not([data-menu-animate=show]) body.arabic main {
    padding-right: calc(var(--main-spacing-horizontal) + var(--nav-size-slim));
    padding-left: var(--main-spacing-horizontal);
}

body.arabic .text-start {
    text-align: right !important;
}

body.arabic .ms-5 {
    margin-left: 0 !important;
    margin-right: 2rem !important;
}

body.arabic .me-3 {
    margin-left: 0 !important;
    margin-left: 1rem !important;
}

.rounded-xl {
    border-radius: 50% !important;
}

.sw-5 {
    width: 45px;
}

.sh-5 {
    height: 45px;
}

.sw-4 {
    width: 35px;
}

.sh-4 {
    height: 35px;
}

.text-extra-small {
    font-size: 0.75rem;
}

.text-info {
    color: #00d2ff !important;
}

/* Timeline Styles */
.timeline-container {
    position: relative;
    padding-left: 20px;
}

.timeline-item {
    position: relative;
    border-left: 1px solid #dee2e6;
    padding-left: 25px;
}

.timeline-item:last-child {
    border-left: 1px solid transparent;
}

.timeline-dot {
    position: absolute;
    left: -5.5px;
    top: 5px;
    width: 10px;
    height: 10px;
    background-color: #00d2ff;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #00d2ff;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.conversation-item:hover {
    background-color: #fcfcfc;
}

.border-separator-light {
    border-color: rgba(0, 0, 0, 0.03) !important;
}

/* Style refinements from user images */
.status-btn {
    border: 1px solid #00d2ff !important;
    color: #00d2ff !important;
    background: transparent !important;
    padding: 10px 20px;
    border-radius: 10px !important;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.status-btn:hover {
    background-color: #00d2ff;
    color: #fff;
}

.status-btn::after {
    display: none;
    /* remove default arrow */
}

.btn-send-custom {
    border: 1px solid #00d2ff;
    color: #00d2ff;
    padding: 8px 30px;
    border-radius: 12px !important;
    background: transparent;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-send-custom:hover:not(:disabled) {
    background-color: #00d2ff;
    color: #fff;
}

.btn-send-custom:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-attach-custom {
    border: 1px solid #00d2ff;
    color: #00d2ff;
    background: transparent;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-attach-custom:hover {
    background-color: #00d2ff;
    color: #fff;
}

.card .card-img-top {
    overflow: hidden;
}

html[data-placement=vertical] body.arabic .nav-container,
html[data-placement=horizontal] body.arabic .nav-container.mobile-side-ready,
html[data-placement=vertical] body.arabic .nav-container.mobile-side-ready {
    right: 0;
    left: auto;
    border-top-right-radius: 0;
    border-top-left-radius: var(--border-radius-lg);
    border-bottom-left-radius: var(--border-radius-lg);
    border-bottom-right-radius: 0;
}

/* Transparent Navbar Implementation (Scoped to Public Layout) */
/* html body.home-page #nav.nav-container {
    background: transparent !important;
    background-color: transparent !important;
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: none !important;
    border-bottom: none !important;
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1), backdrop-filter 0.4s ease, box-shadow 0.4s ease;
    backdrop-filter: blur(15px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(15px) saturate(180%) !important;
}


body.home-page #nav.nav-container.scrolled {
    background: rgba(135, 188, 78, 0.8) !important;
    background-color: rgba(135, 188, 78, 0.8) !important;
    backdrop-filter: blur(15px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(15px) saturate(180%) !important;
    position: fixed !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
} */

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Certification description editor: gradient text style */
.certification-description-editor .ql-editor,
.certification-description-editor .ql-editor p,
.certification-description-editor .ql-editor h1,
.certification-description-editor .ql-editor h2,
.certification-description-editor .ql-editor h3,
.certification-description-editor .ql-editor li,
.certification-description-editor .ql-editor span,
.certification-description-editor .ql-editor strong,
.certification-description-editor .ql-editor em,
.certification-description-editor .ql-editor u,
.certification-description-editor .ql-editor a {
    background: linear-gradient(90deg, #2f8f48 0%, #7fbf34 45%, #00a7b5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* If user applies a custom color via editor toolbar, keep that solid color */
.certification-description-editor .ql-editor [style*="color"] {
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: currentColor;
}
.certification-title-gradient {
  font-family: "Nunito Sans", sans-serif;
  font-size: 52px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #4e9a3f 0%, #7fbe2f 55%, #9ac72a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Alumni detail page */
.alumni-detail-page {
    padding-bottom: 2rem;
}

.alumni-detail-page .details-layout {
    display: grid;
    grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.alumni-detail-page .section-heading {
    color: var(--primary);
    font-size: 1.55rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: -4px;
}

.alumni-detail-page .section-heading--about {
    grid-column: 1;
}

.alumni-detail-page .section-heading--stats {
    grid-column: 2;
    margin-left: 2px;
}

.alumni-detail-page .details-profile,
.alumni-detail-page .summary-card,
.alumni-detail-page .cert-card,
.alumni-detail-page .cert-empty {
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
    background: rgba(var(--foreground-rgb), 0.98);
}

.alumni-detail-page .details-profile {
    border-radius: 28px;
    overflow: hidden;
    position: sticky;
    top: 1rem;
    grid-column: 1;
    grid-row: 2 / span 2;
}

.alumni-detail-page .details-profile__body {
    padding: 2.6rem 1.1rem 1.35rem;
}

.alumni-detail-page .details-profile__avatar {
    width: 152px;
    height: 152px;
    object-fit: cover;
    border-radius: 999px;
    border: 2px solid var(--foreground);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    background: rgba(var(--muted-rgb), 0.12);
}

.alumni-detail-page .details-profile__name {
    color: var(--primary);
    font-weight: 500;
    font-size: 1.9rem;
    line-height: 1.15;
}

.alumni-detail-page .details-profile__subtitle {
    color: #7a8699 !important;
    font-size: 1.1rem;
    line-height: 1.35;
    margin-bottom: 1rem;
}

.alumni-detail-page .details-profile__description {
    font-size: 0.98rem;
    line-height: 1.8;
    color: #7a8699 !important;
    max-width: 24rem;
    margin: 0 auto 1.6rem;
}

.alumni-detail-page .details-profile__info {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
    max-width: 18rem;
    margin: 0 auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(var(--muted-rgb), 0.22);
}

.alumni-detail-page .details-profile__info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
}

.alumni-detail-page .details-profile__info-label {
    color: #596478;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.alumni-detail-page .details-profile__info-value {
    color: #2f3541 !important;
    font-size: 0.98rem;
    text-align: right;
    word-break: break-word;
}

.alumni-detail-page .details-content {
    min-width: 0;
    grid-column: 2;
}

.alumni-detail-page .summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.alumni-detail-page .summary-card {
    border-radius: 24px;
    padding: 18px 20px 20px;
    min-height: 116px;
}

.alumni-detail-page .summary-card__label {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    font-weight: 700;
}

.alumni-detail-page .summary-card__value {
    font-size: 1.95rem;
    color: #a5aab5 !important;
    line-height: 1.1;
    margin-top: 8px;
    font-weight: 700;
}


.alumni-detail-page .summary-card__value--small {
    font-size: 1.18rem;
}

.alumni-detail-page .details-section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.alumni-detail-page .details-section-header h3 {
    color: var(--primary);
    font-weight: 500;
}

.alumni-detail-page .details-section-header p,
.alumni-detail-page .details-section-header .text-muted {
    color: #8a94a6 !important;
}

.alumni-detail-page .details-section-header__count {
    white-space: nowrap;
}

.alumni-detail-page .cert-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.alumni-detail-page .cert-card {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    border-radius: 18px;
    overflow: hidden;
    height: 132px;
}

.alumni-detail-page .cert-card__media {
   
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    height: 132px;
}

.alumni-detail-page .cert-card__thumb {
    
    height: 132px;
    min-height: 132px;
    object-fit: cover;
    border: 0;
    background: rgba(var(--muted-rgb), 0.12);
}

.alumni-detail-page .cert-card__body {
    padding: 0px 22px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    justify-content: center;
    background: var(--foreground);
}

.alumni-detail-page .cert-card__title {
    font-size: 0.92rem;
    line-height: 1.25;
    color: var(--primary);
    font-weight: 500;
}

.alumni-detail-page .cert-card__price {
    font-size: 0.78rem;
    color: #4f5b6d !important;
}

.alumni-detail-page .cert-card__meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
}

.alumni-detail-page .cert-card__meta-label {
    display: block;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8a94a6;
    margin-bottom: 0.18rem;
}

.alumni-detail-page .cert-card__meta-value {
    color: #2f3541 !important;
    font-weight: 600;
    font-size: 0.8rem;
    word-break: break-word;
}

.alumni-detail-page .summary-card,
.alumni-detail-page .summary-card *,
.alumni-detail-page .details-section-header,
.alumni-detail-page .details-section-header *,
.alumni-detail-page .cert-card__body,
.alumni-detail-page .cert-card__body * {
    text-shadow: none;
}

.alumni-detail-page .cert-empty {
    border-radius: 24px;
}

@media (max-width: 1199.98px) {
    .alumni-detail-page .details-layout,
    .alumni-detail-page .summary-grid,
    .alumni-detail-page .cert-grid {
        grid-template-columns: 1fr;
    }

    .alumni-detail-page .section-heading--about,
    .alumni-detail-page .section-heading--stats,
    .alumni-detail-page .details-profile,
    .alumni-detail-page .details-content {
        grid-column: auto;
        grid-row: auto;
    }

    .alumni-detail-page .details-profile {
        position: static;
    }

    .alumni-detail-page .details-profile__body {
        padding: 2rem 1.3rem 1.35rem;
    }

    .alumni-detail-page .cert-card {
        grid-template-columns: 1fr;
    }

    .alumni-detail-page .cert-card__media,
    .alumni-detail-page .cert-card__thumb {
        min-height: 150px;
    }
}

@media (max-width: 575.98px) {
    .alumni-detail-page .details-profile__body,
    .alumni-detail-page .cert-card__body {
        padding: 1.35rem;
    }

    .alumni-detail-page .details-profile__avatar {
        width: 140px;
        height: 140px;
    }

    .alumni-detail-page .cert-card {
        grid-template-columns: 1fr;
        height: auto;
    }

    .alumni-detail-page .cert-card__thumb {
        min-height: 140px;
        height: 140px;
    }

    .alumni-detail-page .details-section-header {
        align-items: start;
        flex-direction: column;
    }

    .alumni-detail-page .details-profile__info-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .alumni-detail-page .details-profile__info-value {
        text-align: left;
    }
}








.forum-page {
    padding-bottom: 2rem;
}

.forum-hero {
    border-radius: 32px;
    overflow: hidden;
}

.forum-hero__content {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) auto auto;
    gap: 1.25rem;
    align-items: center;
    padding: 1.75rem 1.8rem;
}

.forum-hero__copy {
    min-width: 0;
}

.forum-hero__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 0.85rem;
}

.forum-hero__action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.65rem;
}

.forum-header-card__eyebrow,
.forum-modal__eyebrow {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.forum-header-card__title {
    font-size: 1.45rem;
    margin: 0.45rem 0 0.6rem;
}

.forum-stat-card {
    border-radius: 22px;
    padding: 1.2rem 1.35rem;
    backdrop-filter: blur(4px);
}

.forum-stat-card--hero {
    min-width: 120px;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
}

.forum-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.forum-toolbar__label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
}

.forum-toolbar__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.forum-question-card {
    display: flex;
    justify-content: space-between;
    gap: 1.4rem;
    padding: 1.45rem 1.5rem;
    border-radius: 26px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.forum-question-card:hover {
    transform: translateY(-3px);
}

.forum-question-card__main {
    min-width: 0;
    flex: 1;
}

.forum-question-card__author {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.forum-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
}

.forum-question-card__author-name {
    font-weight: 600;
    margin: 0 10px;
    font-size: 18px;
    text-transform: capitalize;
}

.forum-question-card__title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.forum-read-more {
    margin-top: 0.7rem;
    padding: 0;
    border: 0;
    background: transparent;
    font-weight: 600;
    font-size: 0.95rem;
}

.forum-question-card__meta {
    min-width: 170px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    justify-content: center;
}

.forum-badge-chip {
    border-radius: 18px;
    padding: 6PX;
    margin: 0 5px;
    text-align: center;
    border: 1px solid;
}

.forum-badge-chip__number {
    display: block;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.1;
}

.forum-open-link { font-weight: 600; }

.forum-empty-card {
    border-radius: 28px;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.forum-primary-button,
.forum-secondary-button,
.forum-close-button {
    border: 0;
    transition: all 0.2s ease;
}

.forum-primary-button {
    border-radius: 16px;
    padding: 0.85rem 1.5rem;
    font-weight: 600;
    box-shadow: none;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.forum-primary-button--hero {
    min-width: 170px;
}

.forum-secondary-button {
    border-radius: 16px;
    padding: 0.85rem 1.4rem;
    font-weight: 600;
}

.forum-modal__header,
.forum-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.5rem;
}



.forum-modal__body {
    padding: 1.5rem;
}

.forum-modal__footer {
    justify-content: flex-end;
}

.forum-close-button {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    font-size: 1.6rem;
    line-height: 1;
}

.forum-label { font-weight: 600; }

.forum-input {
    border-radius: 18px;
    min-height: 52px;
    padding: 0.9rem 1rem;
    box-shadow: none;
}

.forum-input--textarea {
    min-height: 170px;
    resize: vertical;
}

.forum-error-text { font-size: 0.88rem; margin-top: 0.4rem; }

@media (max-width: 767.98px) {
    .forum-hero__content {
        grid-template-columns: 1fr;
        padding: 1.25rem;
    }

    .forum-hero__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .forum-hero__action {
        align-items: stretch;
    }

    .forum-hero__hint {
        text-align: left;
    }

    .forum-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .forum-question-card {
        flex-direction: column;
    }

    .forum-question-card__meta {
        align-items: stretch;
        min-width: 0;
    }

    .forum-modal__header,
    .forum-modal__footer {
        padding: 1.1rem;
    }

    .forum-modal__body {
        padding: 1.1rem;
    }
}
