* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #f3f4f6;
    --accent-color: #10b981;
    --accent-orange: #f97316;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --white: #ffffff;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    padding-top: 76px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* ==================== HEADER / NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border-color);
    z-index: 2000;
    padding: 0 2rem;
    height: 68px;
    transition: box-shadow 0.3s ease;
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
    border-bottom: 1px solid transparent;
}

/* 3-column stable layout: logo | menu | buttons — never shifts */
.nav-container {
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
}

/* ---- LOGO (LEFT, fixed min-width so menu stays centered) ---- */
.logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 180px;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo i {
    font-size: 1.3rem;
}

.logo img {
    height: 44px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
}

.logo span {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

/* ---- NAV MENU (CENTER, takes remaining space, always centred) ---- */
.nav-menu {
    flex: 1;
    display: flex;
    list-style: none;
    gap: 0.2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    overflow: auto;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.2s ease, background 0.2s ease;
    font-size: 0.93rem;
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    white-space: nowrap;
    display: inline-block;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    background: rgba(30, 58, 138, 0.07);
}

.nav-menu a.active {
    font-weight: 600;
}

/* ---- NAV BUTTONS (RIGHT, fixed min-width mirror of logo width) ---- */
.nav-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
    min-width: 180px;
    justify-content: flex-end;
    position: relative;
}

/* Ensure guestButtons has spacing between login & signup */
.nav-buttons #guestButtons {
    display: flex;
    gap: 0.7rem;
    align-items: center;
}

/* (duplicate removed) nav-buttons alias */
.nav-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    position: relative;
}

/* User Menu & Dropdown Styles */
.user-menu-wrapper {
    position: relative;
}

.btn-user-menu {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: transparent;
    border: 1px solid transparent;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-user-menu:hover,
.btn-user-menu.active {
    background-color: var(--secondary-color);
    border-color: var(--border-color);
}

.user-avatar-small {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), #3730a3);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 2px 6px rgba(30, 58, 138, 0.2);
}

.user-name-display {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ChevronIcon {
    font-size: 0.8rem;
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.btn-user-menu.active .ChevronIcon {
    transform: rotate(180deg);
}

/* Dropdown Container */
.user-dropdown {
    position: absolute;
    top: 120%;
    /* Below button */
    right: 0;
    width: 280px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 10000;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--secondary-color), #fff);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dropdown-user-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
}

.dropdown-user-info {
    flex: 1;
    overflow: hidden;
}

.dropdown-user-name {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-user-email {
    font-size: 0.85rem;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-items {
    list-style: none;
    padding: 0.5rem;
}

.dropdown-item a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    width: 100%;
}

.dropdown-item a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.dropdown-item a i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    transition: color 0.2s ease;
}

.dropdown-item a:hover i {
    color: var(--primary-color);
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0.5rem 1rem;
}

.logout-item a {
    color: #ef4444;
}

.logout-item a:hover {
    background-color: #fee2e2;
    color: #dc2626;
}

.logout-item a i {
    color: #ef4444;
}

.logout-item a:hover i {
    color: #dc2626;
}

/* Small responsive tweak to prevent menu items from jumping on narrow screens */
@media (max-width: 900px) {
    .nav-container {
        gap: 1rem;
    }

    .nav-menu {
        gap: 1.2rem;
    }
}

.btn-login {
    padding: 0.65rem 1.5rem;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    cursor: pointer;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-login:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.btn-signup {
    padding: 0.65rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3730a3 100%);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-signup:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

/* ==================== HERO SECTION ==================== */
.hero {
    background-color: var(--white);
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.value-points {
    list-style: none;
    margin: 2rem 0;
}

.value-points li {
    padding: 0.7rem 0;
    color: var(--text-dark);
    font-weight: 500;
    display: flex;
    gap: 0.8rem;
}

.value-points li:before {
    content: "✓";
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary {
    padding: 0.8rem 2rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
}

.btn-secondary {
    padding: 0.8rem 2rem;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: translateY(-10px);
}

.dashboard-mockup {
    width: 100%;
    max-width: 350px;
    background-color: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.mockup-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.mockup-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #e5e7eb;
}

.mockup-line {
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.mockup-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.mockup-bar-item {
    flex: 1;
    height: 120px;
    background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 4px;
}

/* ==================== TRUST & CREDIBILITY BAR ==================== */
.trust-bar {
    background-color: var(--secondary-color);
    padding: 2rem;
    margin: 3rem 0;
}

.trust-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.trust-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.trust-icon {
    font-size: 2rem;
    color: var(--accent-color);
    min-width: 50px;
    text-align: center;
}

.trust-item h3 {
    font-size: 1rem;
    color: var(--text-dark);
}

/* ==================== PROBLEM-SOLUTION SECTION ==================== */
.problem-solution {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.problem-solution h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.problem-list,
.solution-list {
    list-style: none;
}

.problem-list li,
.solution-list li {
    padding: 1rem 0;
    color: var(--text-dark);
    font-weight: 500;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.problem-list li:before {
    content: "✗";
    color: #ef4444;
    font-weight: bold;
    font-size: 1.3rem;
    min-width: 30px;
}

.solution-list li:before {
    content: "✓";
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.3rem;
    min-width: 30px;
}

/* ==================== CORE FEATURES SECTION ==================== */
.features {
    padding: 4rem 2rem;
    background-color: var(--secondary-color);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-top: 3px solid var(--primary-color);
}

.feature-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card ul {
    list-style: none;
    color: var(--text-dark);
}

.feature-card ul li {
    padding: 0.5rem 0;
    display: flex;
    gap: 0.8rem;
}

.feature-card ul li:before {
    content: "→";
    color: var(--accent-color);
    font-weight: bold;
}

/* ==================== HOW IT WORKS SECTION ==================== */
.how-it-works {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    margin: 0 auto 1rem;
}

.step p {
    font-weight: 500;
    color: var(--text-dark);
}

/* ==================== POPULAR COURSES SECTION ==================== */
.popular-courses {
    padding: 4rem 2rem;
    background-color: var(--secondary-color);
}

.courses-container {
    max-width: 1200px;
    margin: 0 auto;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.course-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.course-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.course-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.course-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.course-stats {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.stat-item {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-view {
    width: 100%;
    padding: 0.7rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view:hover {
    background-color: #1e3a8a;
    transform: translateY(-2px);
}

/* ==================== CERTIFICATE AUTHENTICITY SECTION ==================== */

/* hero image in the first section */
.hero-image {
    width: 100%;
    height: auto;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.certificate-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.certificate-mockup {
    /* image container now; remove colorful background */
    background: none;
    border-radius: 8px;
    padding: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

/* image shown inside certificate section */
.certificate-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.cert-design {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 4px;
    text-align: center;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cert-design h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.cert-text {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 1rem 0;
}

.cert-features {
    list-style: none;
    margin-top: 2rem;
}

.cert-features li {
    padding: 0.8rem 0;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cert-features li:before {
    content: "✓";
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
    min-width: 20px;
}

/* ==================== TESTIMONIALS SECTION ==================== */
.testimonials {
    padding: 4rem 2rem;
    background-color: var(--secondary-color);
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--accent-color);
}

.stars {
    color: #fbbf24;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 1.3rem;
}

.author-info h4 {
    margin: 0;
    color: var(--text-dark);
}

.author-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ==================== PRICING SECTION ==================== */
.pricing {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pricing-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.pricing-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.15);
    transform: translateY(-10px);
}

.pricing-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 1rem 0;
}

.price span {
    font-size: 1rem;
    color: var(--text-light);
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
}

.pricing-features li {
    padding: 0.7rem 0;
    color: var(--text-dark);
    display: flex;
    gap: 0.8rem;
}

.pricing-features li:before {
    content: "✓";
    color: var(--accent-color);
    font-weight: bold;
}

.pricing-badge {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.pricing-cta {
    width: 100%;
    padding: 0.9rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.pricing-cta:hover {
    background-color: #1e3a8a;
    transform: translateY(-2px);
}

.pricing-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* ==================== FINAL CTA SECTION ==================== */
.final-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3730a3 100%);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
}

.final-cta-container {
    max-width: 600px;
    margin: 0 auto;
}

.final-cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.final-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.final-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary {
    padding: 0.9rem 2.5rem;
    background-color: var(--white);
    color: var(--primary-color);
    border: none;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cta-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-cta-secondary {
    padding: 0.9rem 2.5rem;
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cta-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ==================== USER DROPDOWN MENU ==================== */
.user-menu-wrapper {
    position: relative;
}

.btn-user-menu {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.65rem 1.5rem;
    background-color: var(--secondary-color);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
}

.btn-user-menu:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-user-menu i {
    font-size: 1.1rem;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 220px;
    margin-top: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-user-name {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.dropdown-user-email {
    font-size: 0.85rem;
    color: var(--text-light);
}

.dropdown-items {
    list-style: none;
}

.dropdown-item {
    padding: 0;
}

.dropdown-item-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.dropdown-item-link:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding-left: 1.25rem;
}

.dropdown-item-link i {
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0.5rem 0;
}

.dropdown-item-logout {
    padding: 0;
}

.dropdown-item-logout .dropdown-item-link {
    color: #dc2626;
    font-weight: 600;
}

.dropdown-item-logout .dropdown-item-link:hover {
    background-color: #fee2e2;
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 3rem 2rem 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.7rem;
}

.footer-column a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-column a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid #4b5563;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 900px) {
    .navbar {
        padding: 0.8rem 1rem;
    }

    .logo {
        font-size: 1.3rem;
    }
}


/* Global Responsive Utilities moved here or into media queries below */


/* ==================== TOUCH & GLOBAL RESPONSIVENESS ==================== */
html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
    /* Native App Feel */
}

body {
    width: 100%;
    overflow-x: hidden;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

input,
button,
select,
textarea {
    font-size: 16px !important;
    /* Prevents iOS auto-zoom on focus */
    touch-action: manipulation;
    -webkit-appearance: none;
    /* Strip out native iOS styling */
    appearance: none;
    border-radius: 6px;
}

/* Touch-friendly targets */
.btn-primary,
.btn-secondary,
.btn-login,
.btn-signup,
.nav-menu a {
    min-height: 44px;
    /* Apple/Google recommended minimum */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ==================== UPDATED MEDIA QUERIES ==================== */

/* 1200px Breakpoint (Desktop/Large Tablets) */
@media (max-width: 1200px) {

    .hero,
    .problem-solution,
    .features-container,
    .popular-courses,
    .how-it-works {
        max-width: 95%;
        padding: 3rem 1.5rem;
    }

    .hero {
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* 768px Breakpoint (Tablets/Mobile) */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 3rem 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .value-points li {
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        max-width: 320px;
    }

    .hero-visual {
        order: -1;
        /* Image first on mobile hero */
        margin-bottom: 2rem;
    }

    .problem-solution {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .steps-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    /* Course Cards Fluidity */
    .courses-grid,
    .certificates-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }
}

/* 480px Breakpoint (Small Phones) */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .trust-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .trust-item {
        flex-direction: column;
        text-align: center;
    }
}