        .course-card {
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            height: 100%;
        }
        
        .course-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }
        
        .course-cover {
            height: 160px;
            background-size: cover;
            background-position: center;
            position: relative;
        }
        
        .course-card .card-body {
            padding: 1rem;
        }
        
        .course-card h4 {
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: #2c3e50;
            line-height: 1.3;
        }
        
        .course-card .text-muted {
            font-size: 0.85rem;
            color: #6c757d !important;
        }
        
        .course-meta {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.75rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid #eee;
            font-size: 0.8rem;
        }
        
        .course-meta span {
            display: flex;
            align-items: center;
            gap: 0.25rem;
            color: #6c757d;
            background: #f8f9fa;
            padding: 0.2rem 0.5rem;
            border-radius: 20px;
        }
        
        .course-meta i {
            color: #3498db;
        }
        
        .course-meta .level {
            background: #e3f2fd;
        }
        
        .course-meta .level i {
            color: #2196f3;
        }
        
        .course-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .course-price {
            font-size: 0.9rem;
            font-weight: 600;
            color: #2c3e50;
            padding: 0.2rem 0.4rem;
            background: #fff3cd;
            border-radius: 4px;
            border: 1px dashed #ffc107;
        }
        
        .course-price.free {
            color: #28a745;
            background: #d4edda;
            border: 1px dashed #28a745;
        }
        
        .course-price i {
            color: #e74c3c;
        }
        
        .course-price.free i {
            color: #28a745;
        }
        
        .course-actions .btn {
            padding: 0.25rem 0.5rem;
            font-size: 0.8rem;
        }
        
        @media (max-width: 768px) {
            .course-card {
                margin-bottom: 1rem;
            }
            
            .course-cover {
                height: 140px;
            }
        }
        .badge {
            display: inline-block;
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
        }
        .badge-published {
            background-color: #d4edda;
            color: #28a745;
        }
        .badge-premium {
            background-color: #e6e6fa;
            color: #9370db;
        }
        .empty-state {
            text-align: center;
            padding: 40px;
            background: #f8f9fa;
            border-radius: 8px;
        }
        .btn {
            position: relative;
            overflow: hidden;
        }
        .btn::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                90deg,
                transparent,
                rgba(255, 255, 255, 0.2),
                transparent
            );
            transition: 0.5s;
        }
        .btn:hover::after {
            left: 100%;
        }
        .btn-outline-light {
            color: #2c3e50;
            border-color: #2c3e50;
        }
        .btn-outline-light:hover {
            background-color: #2c3e50;
            color: white;
        }
        .btn-light {
            background-color: #2c3e50;
            color: white;
            border: none;
        }
        .btn-light:hover {
            background-color: #1a252f;
            color: white;
        }
        
        /* Intro section (simple 50/50 layout, no animations) */
        .intro-section {
            position: relative;
            padding: 10px 0;
        }
        .intro-section, .intro-section * { cursor: auto !important; }

        /* Background theme options (switch class on <section>) */
        .intro-bg-sky { background: linear-gradient(135deg, hwb(199 1% 28%) 0%, #adcbe7 100%); }
        .intro-bg-indigo { background: linear-gradient(135deg, #312e81 0%, #1d4ed8 55%, #0ea5e9 100%); }
        .intro-bg-mint { background: linear-gradient(135deg, #14b8a6 0%, #22c55e 100%); }
        .intro-bg-sunset { background: linear-gradient(135deg, #fb7185 0%, #f97316 55%, #facc15 100%); }

        .intro-hero-img {
            width: min(600px, 100%);
            height: auto;
            display: inline-block;
            filter: drop-shadow(0 10px 30px rgba(0,0,0,0.25));
        }

        /* No background box for text */
        .intro-hero-content {
            color: #fff;
            padding: 0;
            background: transparent;
            border: 0;
            box-shadow: none;
            backdrop-filter: none;
        }
        .intro-title {
            font-weight: 800;
            font-size: clamp(1.7rem, 3vw, 3rem);
            line-height: 1.15;
            margin: 0 0 12px 0;
            text-shadow: 0 2px 16px rgba(0,0,0,0.25);
        }
        .intro-lead {
            font-size: clamp(0.95rem, 1.25vw, 1.15rem);
            line-height: 1.55;
            margin: 0;
            opacity: 0.95;
            text-shadow: 0 2px 14px rgba(0,0,0,0.25);
        }

        @media (max-width: 768px) {
            .intro-section { padding: 44px 0; }
            .intro-hero-content { text-align: center; }
        }
        .intro-content .btn-light {
            background: #3498db;
            color: white;
            border: none;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }
        .intro-content .btn-light:hover {
            background: #2980b9;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
        }
        .intro-content .btn-outline-light {
            background: transparent;
            color: white;
            border: 2px solid white;
        }
        .intro-content .btn-outline-light:hover {
            background: white;
            color: #3498db;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
        }
        .intro-content .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
        }
        @keyframes zoomPan {
            0% {
                transform: scale(1) translate(0, 0);
            }
            50% {
                transform: scale(1.1) translate(-2%, -2%);
            }
            100% {
                transform: scale(1.05) translate(2%, 2%);
            }
        }
        @keyframes fadeInRight {
            from {
                opacity: 0;
                transform: translateX(30px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }
        @media (max-width: 768px) {
            .intro-section {
                padding: 40px 0;
                min-height: auto;
                justify-content: center;
            }
            .intro-section .container {
                flex-direction: column;
                gap: 30px;
                text-align: center;
            }
            .intro-content {
                max-width: 100%;
                margin: 0;
            text-align: center;
                padding: 0 15px;
                order: 1;
            }
            .circles-container {
                width: 200px;
                height: 200px;
                margin: 0 auto;
                order: 2;
            }
            .circle {
                width: 100px;
                height: 100px;
            }
            .circle:nth-child(1) {
                top: 5px;
                left: 25%;
                transform: translateX(-50%);
            }
            .circle:nth-child(2) {
                bottom: 10px;
                left: -20px;
            }
            .circle:nth-child(3) {
                bottom: 10px;
                right:-20px;
            }
            .intro-content h2 {
                font-size: 1.5rem;
                margin-bottom: 1rem;
                line-height: 1.3;
            }
            .intro-content .lead {
                font-size: 0.95rem;
                margin-bottom: 1.5rem;
                line-height: 1.5;
            }
            .intro-content .btn {
                padding: 10px 20px;
                font-size: 0.9rem;
                margin: 0 5px;
            }
            .intro-content .btn-lg {
                font-size: 1rem;
                padding: 12px 24px;
            }
        }

        /* Tablet layout adjustments */
        @media (min-width: 769px) and (max-width: 991.98px) {
            .intro-section {
                padding: 50px 0;
                min-height: auto;
            }
            .intro-section .container {
                gap: 24px;
            }
            .intro-content {
                max-width: 60%;
                text-align: left;
            }
            .intro-content h2 {
                font-size: 1.85rem;
                line-height: 1.3;
            }
            .intro-content .lead {
                font-size: 1rem;
                line-height: 1.55;
            }
            .circles-container {
                width: 300px;
                height: 300px;
                margin-right: 0;
            }
            .circle {
                width: 140px;
                height: 140px;
            }
            .circle:nth-child(1) {
                top: -70px;
                left: 30%;
                transform: translateX(-50%);
            }
            .circle:nth-child(2) {
                bottom: 75px;
                left: 60px;
            }
            .circle:nth-child(3) {
                bottom: -80px;
                right:-5%;
            }
        }
        /* Blog section styles */
        .blog-section {
            margin: 60px 0;
            padding: 40px 0;
            background: #f8f9fa;
            border-radius: 8px;
        }
        .blog-card {
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            transition: transform 0.3s ease;
            margin-bottom: 20px;
        }
        .blog-card:hover {
            transform: translateY(-5px);
        }
        .blog-image {
            height: 200px;
            background-size: cover;
            background-position: center;
        }
        .blog-content {
            padding: 20px;
        }
        /* Modal styles */
.auth-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(30, 41, 59, 0.45); /* Softer overlay */
    overflow: auto;
    transition: background 0.3s;
    backdrop-filter: blur(2px);
}
.auth-content {
    background: #fff;
    margin: 4% auto;
    padding: 0;
    border-radius: 22px;
    width: 650px;
    max-width: 99vw;
    max-height: 98vh;
    overflow-y: auto;
    box-shadow: 0 12px 48px rgba(30,41,59,0.22), 0 2px 8px rgba(52,152,219,0.10);
    position: relative;
    animation: fadeInUp 0.4s cubic-bezier(.4,0,.2,1);
    border: 1.5px solid #e3eafc;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.close-btn {
    color: #aaa;
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 1.7rem;
    font-weight: 400;
    cursor: pointer;
    z-index: 2;
    transition: color 0.2s;
    background: none;
    border: none;
}
.close-btn:hover { color: #e74c3c; }
.auth-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7em;
    padding: 32px 0 10px 0;
    border-radius: 22px 22px 0 0;
    background: linear-gradient(90deg, #2563eb 60%, #38bdf8 100%);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 8px rgba(52,152,219,0.08);
}
.auth-header i {
    font-size: 2.1rem;
    color: #fff;
}
.auth-tabs {
    display: flex;
    border-bottom: 1.5px solid #f0f0f0;
    background: #f8fafc;
    border-radius: 0 0 0 0;
    overflow: hidden;
    margin: 0 0 0 0;
}
.tab-button {
    background: none;
    border: none;
    padding: 16px 0 12px 0;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
    flex: 1;
    text-align: center;
    font-size: 1.08rem;
    letter-spacing: 0.01em;
    transition: color 0.2s, border-bottom 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    border-bottom: 2.5px solid transparent;
    border-radius: 0;
}
.tab-button i { font-size: 1.1em; }
.tab-button.active {
    color: #2563eb;
    background: #fff;
    border-bottom: 2.5px solid #2563eb;
    z-index: 1;
}
.tab-content {
    padding: 32px 32px 18px 32px;
    max-height: 80vh;
    overflow-y: auto;
    background: #fff;
}
.auth-content h2 {
    font-size: 1.32rem;
    font-weight: 700;
    color: #22223b;
    margin-bottom: 1.1rem;
    text-align: center;
}
.auth-content .form-label {
    font-weight: 500;
    color: #22223b;
    font-size: 1.01rem;
    margin-bottom: 0.2em;
}
.auth-content .form-control, .auth-content .form-select {
    margin-bottom: 16px;
    border-radius: 8px;
    border: 1.5px solid #e0e7ef;
    font-size: 1.05rem;
    padding: 0.55em 1em;
    background: #f8fafc;
    transition: border 0.2s, box-shadow 0.2s;
    height: 2.3em;
    box-shadow: 0 1px 2px rgba(52,152,219,0.03);
}
.auth-content .form-control:focus, .auth-content .form-select:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 2px #2563eb22;
}
.auth-content .btn-primary {
    background: linear-gradient(90deg,#2563eb 60%,#38bdf8 100%);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.08rem;
    padding: 0.7em 0;
    box-shadow: 0 2px 8px rgba(52,152,219,0.08);
    transition: background 0.2s, box-shadow 0.2s;
}
.auth-content .btn-primary:hover {
    background: linear-gradient(90deg,#1d4ed8 60%,#0ea5e9 100%);
    box-shadow: 0 4px 16px rgba(52,152,219,0.13);
}
.auth-content .btn {
    margin-top: 0.3em;
    margin-bottom: 0.3em;
    font-size: 1.08rem;
    border-radius: 8px;
    font-weight: 600;
}
.auth-content .form-check-input {
    border-radius: 4px;
    margin-right: 0.5em;
}
.auth-content .form-check-label {
    color: #64748b;
    font-size: 0.97em;
}
.auth-content .text-center a {
    color: #2563eb;
    text-decoration: underline;
    font-size: 0.97em;
}
.auth-content .text-center a:hover {
    color: #1d4ed8;
}
.auth-content .alert {
    border-radius: 8px;
    font-size: 1.01em;
    margin-bottom: 0.7em;
}
@media (max-width: 600px) {
    .auth-content {
        width: 99vw;
        padding: 0;
        border-radius: 0;
    }
    .tab-content {
        padding: 16px 2vw 10px 2vw;
    }
    .auth-header {
        padding: 18px 0 6px 0;
        font-size: 1.1rem;
    }
}
        .course-progress {
            height: 5px;
            background-color: #e9ecef;
            border-radius: 3px;
            margin-top: 10px;
        }
        .progress-bar {
            height: 100%;
            border-radius: 3px;
            background-color: #28a745;
        }
        




         







        /* User Avatar Styles */
        .user-avatar {
            width: 35px;
            height: 35px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid #3498db;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .scroll-section {
            margin-bottom: 48px;
        }
        .scroll-container {
            display: flex;
            overflow-x: auto;
            gap: 24px;
            padding-bottom: 12px;
            scrollbar-width: thin;
            scrollbar-color: #3498db #f8f9fa;
        }
        .scroll-container::-webkit-scrollbar {
            height: 8px;
        }
        .scroll-container::-webkit-scrollbar-thumb {
            background: #3498db;
            border-radius: 4px;
        }
        .scroll-container::-webkit-scrollbar-track {
            background: #f8f9fa;
        }
        .scroll-card {
            flex: 0 0 280px;
            background: white;
            border-radius: 14px;
            box-shadow: 0 8px 32px rgba(44,62,80,0.16), 0 1.5px 6px rgba(52,152,219,0.08);
            transition: transform 0.2s, box-shadow 0.2s;
            display: flex;
            flex-direction: column;
            min-height: 360px;
            max-width: 280px;
            padding-bottom: 12px;
            overflow: hidden;
        }
        .scroll-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 16px 48px rgba(44,62,80,0.22), 0 2px 8px rgba(52,152,219,0.10);
        }
        .explore-all-card {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 320px;
            background: #f8f9fa;
            border: 2px dashed #3498db;
            color: #3498db;
            font-weight: 600;
            font-size: 1.1rem;
            border-radius: 14px;
            box-shadow: none;
            max-width: 120px;
        }
        .course-cover, .blog-image {
            width: 100%;
            height: 180px !important;
            min-height: 180px !important;
            max-height: 180px !important;
            border-radius: 10px;
            background-size: cover !important;
            background-repeat: no-repeat !important;
            background-position: center !important;
        }

        /* Horizontal course cards (image left, content right) */
        /* One-card-per-view carousel behavior for Courses section */
        #courses .scroll-container {
            gap: 0;
            padding: 10px 0;
            scroll-snap-type: x mandatory;
        }
        #courses .scroll-container > .scroll-card {
            scroll-snap-align: start;
        }
        #courses .scroll-card.course-card {
            flex-direction: row;
            align-items: stretch;
            /* take full visible width so only one card shows */
            flex: 0 0 100%;
            max-width: 100%;
            min-height: 420px;
            padding-bottom: 0;
        }
        #courses .scroll-card.course-card > a {
            flex: 0 0 50%;
            max-width: 50%;
            display: block;
            padding: 10px;
        }
        #courses .scroll-card.course-card .course-cover {
            width: 100% !important;
            height: calc(100% - 0px) !important;
            min-height: 100% !important;
            max-height: none !important;
            border-radius: 12px !important;
            border: 1px solid rgba(148, 163, 184, 0.45);
            /* Fill the image box consistently (may crop edges) */
            background-size: cover !important;
            background-position: center !important;
            background-repeat: no-repeat !important;
            background-color: #f8fafc;
        }
        #courses .scroll-card.course-card .card-body {
            padding: 14px 14px 12px 14px;
            gap: 8px;
            min-width: 0;
            /* keep heading/desc visually centered in the right column */
            justify-content: center;
        }
        #courses .scroll-card.course-card h4 {
            font-size: 2.1rem;
            font-weight: 800;
            letter-spacing: 0.2px;
            line-height: 1.15;
            margin-bottom: 6px;
            color: #0f172a;
            text-align: center;
        }
        #courses .scroll-card.course-card .course-desc {
            font-size: 1.18rem;
            line-height: 1.55;
            color: #475569 !important;
            min-height: 0;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            /* clamp to available space; shows "..." when too long */
            -webkit-line-clamp: 10;
            line-clamp: 10;
            /* make long unbroken text wrap (so it can use space) */
            overflow-wrap: anywhere;
            word-break: break-word;
            flex: 1;
            text-align: center;
        }
        #courses .scroll-card.course-card .course-meta {
            /* keep meta right above the buttons */
            margin-top: auto;
            margin-bottom: 10px;
            padding-bottom: 0px;
            border-bottom: 0;
           
            flex-wrap: wrap;
        }
        #courses .scroll-card.course-card .course-actions {
            margin-top: 0;
            gap: 10px;
            padding-top: 12px;
            border-top: 1px solid rgba(15, 23, 42, 0.08);
            align-items: center;
        }
        #courses .scroll-card.course-card .course-actions .d-flex.gap-2 {
            flex-wrap: wrap;
            justify-content: flex-end;
            align-items: center;
            row-gap: 8px;
        }

        /* Courses action bar polish (price + buttons) */
        #courses .scroll-card.course-card .course-price {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 7px 12px;
            border-radius: 999px;
            border: 1px solid rgba(245, 158, 11, 0.35);
            background: rgba(245, 158, 11, 0.14);
            font-size: 0.95rem;
            font-weight: 700;
            letter-spacing: 0.2px;
            line-height: 1;
            white-space: nowrap;
        }
        #courses .scroll-card.course-card .course-price.free {
            border-color: rgba(34, 197, 94, 0.35);
            background: rgba(34, 197, 94, 0.14);
        }
        #courses .scroll-card.course-card .course-actions .btn {
            height: 36px;
            padding: 0 12px;
            border-radius: 10px;
            font-size: 0.9rem;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 6px 16px rgba(15, 23, 42, 0.10);
        }
        #courses .scroll-card.course-card .course-actions .btn i {
            font-size: 0.95em;
            line-height: 1;
        }
        .scroll-card .card-body,
        .scroll-card .blog-content {
            display: flex;
            flex-direction: column;
            flex: 1;
        }
        .course-desc {
            min-height: 42px;
            display: -webkit-box;
            line-clamp: 2;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .blog-desc {
            min-height: 40px;
            display: -webkit-box;
            line-clamp: 2;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .scroll-card .course-actions,
        .scroll-card .d-flex.justify-content-between.align-items-center {
            margin-top: auto;
        }
        @media (max-width: 768px) {
            .scroll-card, .explore-all-card {
                min-width: 260px;
                max-width: 260px;
                min-height: 300px;
                max-height: 360px;
            }
            
            .scroll-card.course-card, .scroll-card.blog-card {
                min-height: 300px;
                max-height: 380px;
                padding: 10px 8px 10px 8px;
            }
            .course-cover, .blog-image {
                height: 160px !important;
                min-height: 160px !important;
                max-height: 160px !important;
            }

            /* On small screens, keep course cards vertical for readability */
            #courses .scroll-container {
                /* one card per view with a little side padding */
                padding: 10px 0;
                scroll-padding-left: 0;
                scroll-padding-right: 0;
            }
            #courses .scroll-card.course-card {
                flex-direction: column;
                flex: 0 0 100%;
                max-width: 100%;
                min-height: 420px;
                max-height: none;
                padding-bottom: 12px;
                box-sizing: border-box;
            }
            #courses .scroll-card.course-card > a {
                flex: 0 0 auto;
                max-width: none;
                padding: 8px 8px 0 8px;
            }
            #courses .scroll-card.course-card .course-cover {
                height: 190px !important;
                min-height: 190px !important;
                border-radius: 14px !important;
                border: 1px solid rgba(148, 163, 184, 0.45);
            }
            #courses .scroll-card.course-card .card-body {
                padding: 14px 14px 14px 14px;
                justify-content: flex-start;
                display: flex;
                flex-direction: column;
                min-height: 0;
            }
            #courses .scroll-card.course-card h4 {
                font-size: 1.5rem;
                text-align: left;
            }
            #courses .scroll-card.course-card .course-desc {
                font-size: 1.05rem;
                text-align: left;
                /* Keep footer (meta + buttons) always visible */
                flex: 0 0 auto;
                margin-bottom: 10px !important;
                min-height: 60px;
                max-height: 110px;
                -webkit-line-clamp: 3;
                line-clamp: 3;
                overflow: hidden;
            }
            #courses .scroll-card.course-card .course-meta {
                margin-top: auto;
                margin-bottom: 8px;
            }
            #courses .scroll-card.course-card .course-actions {
                margin-top: 0;
                padding-top: 10px;
                border-top: 1px solid rgba(15, 23, 42, 0.08);
                display: grid;
                grid-template-columns: 1fr auto;
                column-gap: 8px;
                align-items: center;
            }
            #courses .scroll-card.course-card .course-actions .d-flex.gap-2 {
                flex-wrap: nowrap;
                justify-content: flex-end;
                align-items: center;
                gap: 8px !important;
                margin: 0;
            }
            #courses .scroll-card.course-card .course-actions .btn {
                height: 34px;
                min-height: 34px;
                min-width: 78px;
                padding: 0 10px !important;
                font-size: 0.85rem;
                display: inline-flex;
                justify-content: center;
                align-items: center;
                white-space: nowrap;
                margin: 0 !important;
            }
            #courses .scroll-card.course-card .course-price {
                justify-self: start;
                margin: 0 !important;
                padding: 6px 10px !important;
                line-height: 1;
            }
            .h5, .h6, h4, h3 {
                font-size: 1rem !important;
                margin-bottom: 0.3rem !important;
            }
            .text-muted, .lead {
                font-size: 0.85rem !important;
                margin-bottom: 0.5rem !important;
            }
            .course-meta, .d-flex.gap-2, .d-flex.justify-content-between.align-items-center {
                font-size: 0.8rem !important;
                margin-bottom: 0.3rem !important;
            }
            .course-actions, .course-price, .btn, .badge {
                font-size: 0.85rem !important;
                padding: 4px 8px !important;
            }
        }
        /* Benefits Section Styles */
        .benefits-section {
            background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 100%);
            padding: 56px 0 48px 0;
            color: #222;
            text-align: center;
            margin-bottom: 32px;
            width: 100vw;
            position: relative;
            left: 50%;
            right: 50%;
            margin-left: -50vw;
            margin-right: -50vw;
            overflow: hidden;
        }

        .benefits-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
            pointer-events: none;
        }

        .benefits-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 16px;
            position: relative;
        }

        .benefits-title {
            font-size: 2.4rem;
            font-weight: 700;
            margin-bottom: 12px;
            position: relative;
            background: linear-gradient(135deg, rgb(12, 40, 165) 0%, rgb(42, 175, 227) 100%);
            background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
        }

        .benefits-title::after {
            content: '';
            display: block;
            width: 80px;
            height: 4px;
            background: linear-gradient(90deg, rgb(12, 40, 165) 0%, rgb(42, 175, 227) 100%);
            margin: 16px auto 0 auto;
            border-radius: 2px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .benefits-desc {
            font-size: 1.1rem;
            margin-bottom: 36px;
            color: #333;
            opacity: 0.95;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
        }
        .benefits-cards {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 32px 36px;
        }
        .benefit-card {
            background: transparent;
            color: #222;
            border-radius: 38px;
            box-shadow: 0 6px 32px rgba(44,62,80,0.10);
            padding: 24px 18px 18px 18px;
            min-width: 180px;
            max-width: 220px;
            display: flex;
            flex-direction: column;
            align-items: center;
            transition: transform 0.18s, box-shadow 0.18s;
            position: relative;
        }
        .benefit-card:hover {
            transform: translateY(-8px) scale(1.04);
            box-shadow: 0 16px 48px rgba(44,62,80,0.18);
        }
        .benefit-card img {
            width: 150px;
            height: 150px;
            object-fit: cover;
            border-radius: 32%/24%;
            margin-bottom: 12px;
            box-shadow: 0 4px 24px rgba(44,62,80,0.13);
            transition: box-shadow 0.2s, transform 0.2s;
            overflow: hidden;
            border: none;
            padding: 0;
        }
        .benefit-card:hover img {
            box-shadow: 0 8px 32px rgba(44,62,80,0.18);
            transform: scale(1.06);
        }
        .benefit-card span {
            display: block;
            font-size: 1.08rem;
            font-weight: 600;
            background: #3ac6f6;
            color: #fff;
            border-radius: 18px;
            padding: 6px 18px;
            margin-top: 4px;
            box-shadow: 0 1px 4px rgba(44,62,80,0.08);
            position: absolute;
            left: 50%;
            bottom: -18px;
            transform: translateX(-50%);
        }
        @media (max-width: 900px) {
            .benefits-cards {
                gap: 10px 12px;
            }
            .benefit-card {
                min-width: 140px;
                max-width: 160px;
                padding: 12px 8px 8px 8px;
            }
            .benefit-card img {
                width: 90px;
                height: 90px;
                border-radius: 32%/24%;
            }
            .benefit-card span {
                font-size: 0.95rem;
                padding: 4px 10px;
                bottom: -14px;
            }
        }
        @media (max-width: 600px) {
            .benefits-title {
                font-size: 1.3rem;
            }
            .benefits-cards {
                display: flex;
                flex-direction: row;
                align-items: center;
                gap: 0;
                overflow-x: auto;
                padding-bottom: 8px;
                scrollbar-width: thin;
                scrollbar-color: #3ac6f6 #e0eafc;
            }
            .benefit-card {
                background: transparent;
                min-width: unset;
                max-width: unset;
                box-shadow: none;
                padding: 0;
                margin: 0 6px 0 0;
            }
            .benefit-card img {
                width: 60px;
                height: 60px;
                max-width: 60px;
                max-height: 60px;
                min-width: 36px;
                min-height: 36px;
                margin-bottom: 0;
                box-shadow: none;
            }
            .benefit-card span {
                display: none;
            }
        }
        html, body {
            max-width: 100vw;
            overflow-x: hidden;
        }

        /* Blog card outline */
        .blog-card {
            border: 1px solid #222 !important;
        }
        /* Course card outline */
        .course-card {
            border: 1px solid #222 !important;
        }

        .forward-thinking-section {
            position: relative;
            /* Soft indigo/sky theme */
            background: linear-gradient(135deg, rgba(49, 46, 129, 0.06) 0%, rgba(29, 78, 216, 0.06) 55%, rgba(14, 165, 233, 0.05) 100%);
            overflow: hidden;
            width: 100vw;
            margin-left: calc(-50vw + 50%);
            margin-right: calc(-50vw + 50%);
        }

        /* Featured products full-width background */
        .featured-products-section {
            width: 100vw;
            margin-left: calc(-50vw + 50%);
            margin-right: calc(-50vw + 50%);
            background: linear-gradient(135deg, rgb(184, 231, 249,0.5) 0%, rgb(184, 231, 249,0.5) 55%, rgb(184, 231, 249) 100%);
            position: relative;
            overflow: hidden;
        }
        .featured-products-section::before {
            content: '';
            position: absolute;
            inset: 0;
            background:
                radial-gradient(circle at 15% 25%, rgba(14, 165, 233, 0.10) 0%, transparent 45%),
                radial-gradient(circle at 85% 65%, rgba(37, 99, 235, 0.08) 0%, transparent 50%);
            pointer-events: none;
        }
        .featured-products-section > .container {
            position: relative;
            z-index: 1;
        }

        /* Default section background (used by forward-thinking-section) */
        .section-background {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                radial-gradient(circle at 20% 20%, rgba(12, 40, 165, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(42, 175, 227, 0.05) 0%, transparent 50%);
            pointer-events: none;
        }

        /* Override the layer inside forward-thinking-section so the new theme shows */
        .forward-thinking-section .section-background {
            
            background: linear-gradient(135deg, hwb(199 1% 28%) 0%, #adcbe7 100%);
        }

        .section-content {
            position: relative;
            max-width: 1200px;
            padding: 0 20px;
            z-index: 1;
        }

        .section-header {
            margin-bottom: 3rem;
        }

        .gradient-text {
            background: linear-gradient(135deg, rgb(255, 255, 255) 0%, rgb(255, 255, 255) 100%);
            background-clip: text;
            -webkit-text-fill-color: transparent;
            font-weight: 700;
            font-size: 2.4rem;
            margin-bottom: 1.5rem;
            position: relative;
        }

        .section-desc {
            font-size: 1.1rem;
            color: #333;
            max-width: 800px;
            margin: 0 auto;
            line-height: 1.6;
        }

        .initiatives-container {
            display: flex;
            flex-direction: column;
            gap: 2rem;
            margin-top: 3rem;
        }

        .initiative-card {
            display: flex;
            background: transparent;
            border-radius: 14px;
            overflow: hidden;
            box-shadow: none;
            transition: all 0.3s ease;
            transform-style: preserve-3d;
            position: relative;
            height: 240px;
            transform: translateY(-5px) rotateX(2deg);
        }

        .initiative-card.reverse {
            flex-direction: row-reverse;
            transform: translateY(-5px) rotateX(2deg) scaleX(-1);
        }

        .initiative-card.reverse .card-content {
            text-align: right;
            padding-left: 2rem;
            padding-right: 1.5rem;
            transform: scaleX(-1);
        }

        .initiative-card.reverse .achievement {
            margin-left: auto;
        }

        .initiative-card.reverse .card-actions {
            display: flex;
            justify-content: flex-end;
        }

        .card-image {
            flex: 0 0 40%;
            position: relative;
            overflow: hidden;
        }

        .card-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
            transform: scale(1.05);
        }

        .initiative-card.reverse .card-image img {
            transform: scale(1.05) scaleX(-1);
        }

        .card-content {
            flex: 1;
            padding: 1.25rem;
            display: flex;
            flex-direction: column;
            transition: transform 0.3s ease;
        }

        .card-content h3 {
            color: rgb(12, 40, 165);
            font-weight: 600;
            font-size: 1.3rem;
            margin-bottom: 0.75rem;
        }

        .achievement {
            background: linear-gradient(135deg, rgba(12, 40, 165, 0.1) 0%, rgba(42, 175, 227, 0.1) 100%);
            padding: 0.4rem 0.8rem;
            border-radius: 6px;
            color: rgb(12, 40, 165);
            font-weight: 600;
            margin-bottom: 0.75rem;
            display: inline-block;
            font-size: 0.9rem;
        }

        .card-content p {
            color: #444;
            line-height: 1.5;
            margin-bottom: 1rem;
            font-size: 0.9rem;
        }

        .card-actions {
            display: flex;
            gap: 0.75rem;
            margin-top: auto;
        }

        .action-btn {
            padding: 0.6rem 1.2rem;
            border-radius: 10px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.9rem;
        }

        .watch-btn {
            background: linear-gradient(135deg, rgb(12, 40, 165) 0%, rgb(42, 175, 227) 100%);
            color: white;
            border: none;
        }

        .explore-btn {
            background: rgba(12, 40, 165, 0.1);
            color: rgb(12, 40, 165);
            border: none;
        }

        @media (max-width: 768px) {
            .initiative-card {
                height: auto;
                flex-direction: column !important;
                min-height: unset;
                max-height: unset;
            }
            .card-image {
                flex: none;
                width: 100%;
                max-width: 100%;
                height: 160px;
            }
            .card-image img {
                width: 100%;
                height: 100%;
            }
            .card-content {
                padding: 1rem;
            }
        }

        @media (max-width: 600px) {
            .initiative-card {
                height: auto;
                flex-direction: column !important;
                min-height: unset;
                max-height: unset;
            }
            .card-image {
                flex: none;
                width: 100%;
                max-width: 100%;
                height: 120px;
            }
            .card-image img {
                width: 100%;
                height: 100%;
            }
            .card-content {
                padding: 0.5rem;
            }
        }

        /* Registration Modal Styles */
        #registerModal {
          display: none;
          position: fixed;
          z-index: 9999;
          left: 0;
          top: 0;
          width: 100vw;
          height: 100vh;
          background: rgba(30, 41, 59, 0.45); /* Softer overlay */
          overflow: auto;
          transition: background 0.3s;
          backdrop-filter: blur(2px);
        }
        #registerModal .auth-content {
          background: #fff;
          margin: 4% auto;
          padding: 0;
          border-radius: 22px;
          width: 650px;
          max-width: 99vw;
          max-height: 98vh;
          overflow-y: auto;
          box-shadow: 0 12px 48px rgba(30,41,59,0.22), 0 2px 8px rgba(52,152,219,0.10);
          position: relative;
          animation: fadeInUp 0.4s cubic-bezier(.4,0,.2,1);
          border: 1.5px solid #e3eafc;
        }
        #registerModal .close-btn {
          color: #aaa;
          position: absolute;
          top: 18px;
          right: 22px;
          font-size: 1.7rem;
          font-weight: 400;
          cursor: pointer;
          z-index: 2;
          transition: color 0.2s;
          background: none;
          border: none;
        }
        #registerModal .close-btn:hover { color: #e74c3c; }
        #registerModal .auth-header {
          display: flex;
          align-items: center;
          justify-content: center;
          gap: 0.7em;
          padding: 32px 0 10px 0;
          border-radius: 22px 22px 0 0;
          background: linear-gradient(90deg, #2563eb 60%, #38bdf8 100%);
          color: #fff;
          font-size: 1.5rem;
          font-weight: 700;
          letter-spacing: 0.01em;
          box-shadow: 0 2px 8px rgba(52,152,219,0.08);
        }
        #registerModal .auth-header i {
          font-size: 2.1rem;
          color: #fff;
        }
        #registerModal .auth-tabs {
          display: flex;
          border-bottom: 1.5px solid #f0f0f0;
          background: #f8fafc;
          border-radius: 0 0 0 0;
          overflow: hidden;
          margin: 0 0 0 0;
        }
        #registerModal .tab-button {
          background: none;
          border: none;
          padding: 16px 0 12px 0;
          cursor: pointer;
          font-weight: 600;
          color: #64748b;
          flex: 1;
          text-align: center;
          font-size: 1.08rem;
          letter-spacing: 0.01em;
          transition: color 0.2s, border-bottom 0.2s, background 0.2s;
          display: flex;
          align-items: center;
          justify-content: center;
          gap: 0.5em;
          border-bottom: 2.5px solid transparent;
          border-radius: 0;
        }
        #registerModal .tab-button i { font-size: 1.1em; }
        #registerModal .tab-button.active {
          color: #2563eb;
          background: #fff;
          border-bottom: 2.5px solid #2563eb;
          z-index: 1;
        }
        #registerModal .tab-content {
          padding: 32px 32px 18px 32px;
          max-height: 80vh;
          overflow-y: auto;
          background: #fff;
        }
        #registerModal .auth-content h2 {
          font-size: 1.32rem;
          font-weight: 700;
          color: #22223b;
          margin-bottom: 1.1rem;
          text-align: center;
        }
        #registerModal .auth-content .form-label {
          font-weight: 500;
          color: #22223b;
          font-size: 1.01rem;
          margin-bottom: 0.2em;
        }
        #registerModal .auth-content .form-control, #registerModal .auth-content .form-select {
          margin-bottom: 16px;
          border-radius: 8px;
          border: 1.5px solid #e0e7ef;
          font-size: 1.05rem;
          padding: 0.55em 1em;
          background: #f8fafc;
          transition: border 0.2s, box-shadow 0.2s;
          height: 2.3em;
          box-shadow: 0 1px 2px rgba(52,152,219,0.03);
        }
        #registerModal .auth-content .form-control:focus, #registerModal .auth-content .form-select:focus {
          border-color: #2563eb;
          background: #fff;
          box-shadow: 0 0 0 2px #2563eb22;
        }
        #registerModal .auth-content .btn-primary {
          background: linear-gradient(90deg,#2563eb 60%,#38bdf8 100%);
          border: none;
          border-radius: 8px;
          font-weight: 600;
          font-size: 1.08rem;
          padding: 0.7em 0;
          box-shadow: 0 2px 8px rgba(52,152,219,0.08);
          transition: background 0.2s, box-shadow 0.2s;
        }
        #registerModal .auth-content .btn-primary:hover {
          background: linear-gradient(90deg,#1d4ed8 60%,#0ea5e9 100%);
          box-shadow: 0 4px 16px rgba(52,152,219,0.13);
        }
        #registerModal .auth-content .btn {
          margin-top: 0.3em;
          margin-bottom: 0.3em;
          font-size: 1.08rem;
          border-radius: 8px;
          font-weight: 600;
        }
        #registerModal .auth-content .form-check-input {
          border-radius: 4px;
          margin-right: 0.5em;
        }
        #registerModal .auth-content .form-check-label {
          color: #64748b;
          font-size: 0.97em;
        }
        #registerModal .auth-content .text-center a {
          color: #2563eb;
          text-decoration: underline;
          font-size: 0.97em;
        }
        #registerModal .auth-content .text-center a:hover {
          color: #1d4ed8;
        }
        #registerModal .auth-content .alert {
          border-radius: 8px;
          font-size: 1.01em;
          margin-bottom: 0.7em;
        }
        @media (max-width: 900px) {
          .auth-content {
            width: 99vw;
            padding: 0;
            border-radius: 0;
          }
        }
        @media (max-width: 700px) {
          #registerForm {
            display: block;
          }
          #registerForm .form-control, #registerForm .form-select, #registerForm .w-100 {
            max-width: 100%;
            width: 100%;
          }
          #registerForm .btn-primary.w-100 {
            margin-bottom: 24px !important;
            margin-top: 12px !important;
          }
        }

/* Scroll Navigation Button Styles */
.scroll-btn-wrapper {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    pointer-events: none;
    z-index: 10;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(52, 152, 219, 0.9);
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    pointer-events: auto;
    z-index: 11;
}

.scroll-btn:hover {
    background: rgba(52, 152, 219, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.scroll-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.scroll-btn-left {
    left: -20px;
}

.scroll-btn-right {
    right: -20px;
}

/* Responsive adjustments for scroll buttons */
@media (max-width: 768px) {
    .scroll-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .scroll-btn-left {
        left: -15px;
    }
    
    .scroll-btn-right {
        right: -15px;
    }
}

@media (max-width: 576px) {
    .scroll-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .scroll-btn-left {
        left: -10px;
    }
    
    .scroll-btn-right {
        right: -10px;
    }
}

/* Ensure scroll sections have proper positioning for buttons */
.scroll-section {
    position: relative;
    margin-bottom: 28px;
}
.scroll-section h2 {
    margin-bottom: 0.6rem;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.8rem;
}

/* Improve scroll container appearance */
.scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 24px;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: #3498db #f8f9fa;
    scroll-behavior: smooth;
}

.scroll-container::-webkit-scrollbar {
    height: 8px;
}

.scroll-container::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 4px;
}

.scroll-container::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}
