/* ==========================================
    TranscendIN - Premium EdTech Website Styles
    Brand Colors: #667EEA (primary), #764BA2 (accent), Orange (#FF6B35)
    ========================================== */

:root {
    --primary-blue: #667EEA;
    --brand-purple: #764BA2;
    --primary-orange: #FF6B35;
    --primary-white: #FFFFFF;
    --dark-text: #1a1a1a;
    --light-text: #666666;
    --light-bg: #f8f9fa;
    --border-color: #e8e8e8;
    --gradient-blue-orange: linear-gradient(135deg, #667EEA 0%, #FF6B35 100%);
    --gradient-blue: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    --gradient-orange: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-ease: all 0.4s ease-in-out;
}

/* ==========================================
   Global Styles
   ========================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--primary-white);
    overflow-x: hidden;
}

.top-bar {
    background: #eef4ff;
    padding: 6px 0;
    text-align: center;
    font-size: 0.84rem;
    color: var(--dark-text);
    border-bottom: 1px solid #d6e1fb;
}

.top-bar marquee {
    display: block;
    width: 100%;
    white-space: nowrap;
}

.announcement-marquee {
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
}

.announcement-lead {
    color: var(--primary-white);
}

.announcement-divider {
    display: inline-block;
    margin: 0 0.85rem;
    color: var(--primary-orange);
    font-size: 0.9rem;
    transform: translateY(-0.02rem);
}

.announcement-phone {
    font-size: 0.88rem;
}

.announcement-email {
    font-size: 0.84rem;
    text-transform: none;
    letter-spacing: normal;
}

.top-bar a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    margin: 0;
}

body.homepage .top-bar a,
body.homepage .top-bar a:visited {
    color: #ffffff;
}

.top-bar a:hover {
    color: #ffd4c5;
}

body.homepage .top-bar a:hover,
body.homepage .top-bar a:focus {
    color: #ffffff;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.top-bar a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    margin: 0 0.25rem;
}

.top-bar a:hover {
    text-decoration: underline;
}

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

/* ==========================================
   Typography
   ========================================== */

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

p {
    color: var(--light-text);
    line-height: 1.8;
}

.highlight {
    background: var(--gradient-blue-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline;
}

/* ==========================================
   Buttons
   ========================================== */

.btn {
    padding: 12px 32px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    outline: none;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--primary-white);
    box-shadow: 0 4px 15px rgba(0, 82, 204, 0.3);
}

.btn-primary:hover {
    background: #0041a3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 82, 204, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

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

.btn-small {
    padding: 10px 24px;
    font-size: 0.95rem;
}

.btn-large {
    padding: 16px 48px;
    font-size: 1.1rem;
}

.cta-link {
    color: var(--primary-blue);
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 2px solid var(--primary-orange);
    transition: var(--transition-smooth);
}

.cta-link:hover {
    color: var(--primary-orange);
}

/* ==========================================
   Navigation
   ========================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--primary-white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: var(--transition-smooth);
    min-height: 90px;
    height: 90px;
}

body.homepage .top-bar {
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    height: 44px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, rgba(6, 32, 84, 0.98) 0%, rgba(0, 82, 204, 0.96) 48%, rgba(10, 44, 107, 0.98) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 24px rgba(0, 45, 120, 0.18);
    z-index: 999;
}

body.homepage .top-bar marquee {
    max-width: 1200px;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    padding: 0 0.25rem;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding-right: 1rem;
    .top-bar {
        position: fixed;
        top: 90px;
        left: 0;
        right: 0;
        height: 34px;
        z-index: 999;
        background: #fef3c7;
        padding: 0 0;
        text-align: center;
        font-size: 0.84rem;
        color: #92400e;
        border-bottom: 1px solid #fde68a;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .top-bar .marquee {
        width: 100%;
        overflow: hidden;
        white-space: nowrap;
        text-align: center;
    }

    .top-bar .marquee span {
        display: inline-block;
        padding-left: 0;
        animation: none; /* keep static */
        will-change: auto;
    }
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

.logo a,
.nav-logo a,
.navbar-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

/* Ensure site logo images stay a reasonable size across pages */
.logo img,
.nav-logo img,
.navbar-logo img,
.nav-logo img {
    display: block;
    height: auto;
    max-height: 86px;
    width: auto;
    filter: drop-shadow(0 12px 26px rgba(0, 82, 204, 0.24));
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    display: flex;
    align-items: center;
}

.nav-menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    position: relative;
    padding: 0.2rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-orange);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
    border-radius: 999px;
}

.nav-menu a:hover {
    color: var(--primary-blue);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a.nav-accent {
    color: var(--primary-orange);
}

.nav-menu a.nav-accent::after {
    width: 100%;
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.2) 0%, var(--primary-orange) 50%, rgba(255, 107, 53, 0.2) 100%);
}

.nav-menu a.nav-accent:hover {
    color: #e55a2b;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-text);
    margin: 5px 0;
    border-radius: 3px;
    transition: var(--transition-smooth);
}

/* ==========================================
   Hero Section
   ========================================== */

.hero {
    margin-top: 146px;
    padding: 100px 0;
    background: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: blob-animation 8s infinite ease-in-out;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-blue);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 200px;
    height: 200px;
    background: var(--primary-orange);
    bottom: -50px;
    left: 100px;
    animation-delay: 2s;
}

@keyframes blob-animation {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    animation: fadeInUp 0.8s ease-out;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-blue-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--light-text);
    font-size: 0.9rem;
}

.hero-visual {
    perspective: 1000px;
    animation: fadeInRight 0.8s ease-out 0.3s both;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.card-stack {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(230px, 1fr));
    gap: 1rem;
}

/* Courses grid & card alignment: ensure consistent heights and footer alignment */
.courses-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;align-items:stretch}
.course-card{background:#fff;border:1px solid var(--border-color);border-radius:12px;padding:1rem;display:flex;flex-direction:column;min-height:220px}
.course-image{flex:0 0 auto;margin-bottom:0.5rem}
.course-content{flex:0 0 auto}
.course-footer{margin-top:auto}
.course-title{margin:0.25rem 0 0.5rem;font-weight:600}

@media (max-width:1200px){ .courses-grid{grid-template-columns:repeat(3,1fr)} }
@media (max-width:992px){ .courses-grid{grid-template-columns:repeat(2,1fr)} }
@media (max-width:640px){ .courses-grid{grid-template-columns:repeat(1,1fr)} }

.card {
    position: relative;
    width: 100%;
    min-height: 172px;
    padding: 1.25rem 1.2rem;
    background: var(--primary-white);
    border: 1px solid rgba(13, 63, 153, 0.12);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(9, 32, 84, 0.1);
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    color: #0d3f99;
    margin-bottom: 0.75rem;
    background: rgba(13, 63, 153, 0.07);
    border: 1px solid rgba(13, 63, 153, 0.22);
    box-shadow: none;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 0;
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, rgba(0, 82, 204, 0.75) 0%, rgba(255, 107, 53, 0.65) 100%);
    border-radius: 0 0 8px 8px;
    opacity: 0.6;
    pointer-events: none;
}

.card::after {
    display: none;
}

/* ==========================================
   Courses Panel Styles
   ========================================== */
.courses-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 20, 40, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 40px 20px;
}
.courses-panel[aria-hidden="false"] { display: flex; }
.courses-panel-inner {
    width: 1100px;
    max-width: calc(100% - 60px);
    height: 72vh;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(6, 32, 84, 0.28);
    display: grid;
    grid-template-columns: 320px 1fr;
    overflow: hidden;
}
.courses-panel-close {
    position: absolute;
    right: 36px;
    top: 36px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: var(--dark-text);
    cursor: pointer;
}
.courses-panel-left {
    background: linear-gradient(180deg, rgba(102,126,234,0.06), rgba(255,107,53,0.03));
    padding: 28px 20px;
    border-right: 1px solid rgba(6,32,84,0.04);
}
.panel-title { font-size: 1rem; font-weight: 700; color: var(--dark-text); margin-bottom: 12px; }
.categories-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.categories-list li { padding: 10px 12px; border-radius: 8px; cursor: pointer; font-weight: 600; color: var(--dark-text); transition: var(--transition-smooth); }
.categories-list li:hover, .categories-list li.active { background: rgba(102,126,234,0.06); color: var(--primary-blue); transform: translateX(4px); }
.courses-panel-right { padding: 22px; overflow: auto; }
.courses-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.course-panel-card { background: #fff; border: 1px solid var(--border-color); border-radius: 10px; padding: 12px; display:flex; flex-direction:column; gap:8px; min-height:84px; box-shadow: 0 8px 22px rgba(6,32,84,0.06); }
.course-panel-card h5 { margin: 0; font-size: 1rem; font-weight:700; color:var(--dark-text); }
.course-panel-card .meta { font-size:0.88rem; color:var(--light-text); }
.course-panel-card .btn-enroll { margin-top:auto; align-self:flex-start; padding:6px 12px; border-radius:8px; background:var(--primary-orange); color:white; font-weight:700; text-decoration:none; }

@media (max-width: 900px) {
    .courses-panel-inner { grid-template-columns: 1fr; height: 80vh; }
    .courses-panel-left { display: flex; overflow-x: auto; gap: 8px; padding: 14px; }
    .categories-list { flex-direction: row; }
}

.category-section { margin-bottom: 18px; }
.category-heading { font-size: 1.05rem; font-weight: 800; color: var(--primary-blue); margin: 6px 0 10px; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 34px rgba(9, 32, 84, 0.16);
    border-color: rgba(13, 63, 153, 0.24);
}

.card:hover .card-icon {
    transform: translateY(-1px) scale(1.03);
    background: rgba(13, 63, 153, 0.11);
}

.card h3 {
    color: var(--dark-text);
    font-size: 1.04rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #4e617b;
    max-width: 32ch;
}

/* ==========================================
   Why Choose Section
   ========================================== */

.why-choose {
    padding: 100px 0;
    background: var(--primary-white);
}

.why-choose .container {
    max-width: 1500px;
}

.why-choose h2 {
    text-align: center;
    background: none;
    font-size: 2.5rem;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(220px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.reason-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    padding: 2.5rem;
    background: var(--light-bg);
    border-radius: 15px;
    text-align: center;
    border: 2px solid transparent;
    animation: slideUp 0.6s ease-out backwards;
}

.reason-card[data-delay="1"] { animation-delay: 0.1s; }
.reason-card[data-delay="2"] { animation-delay: 0.2s; }
.reason-card[data-delay="3"] { animation-delay: 0.3s; }
.reason-card[data-delay="4"] { animation-delay: 0.4s; }
.reason-card[data-delay="5"] { animation-delay: 0.5s; }

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reason-card:hover {
    background: var(--primary-white);
    border-color: var(--primary-blue);
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 82, 204, 0.15);
}

.reason-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-blue-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-white);
    margin: 0 auto 1.5rem;
    transition: var(--transition-ease);
}

.reason-card:hover .reason-icon {
    transform: scale(1.1) rotate(5deg);
}

.reason-card h3 {
    margin: 1rem 0;
    color: var(--dark-text);
}

.reason-card p {
    font-size: 0.95rem;
    color: var(--light-text);
    line-height: 1.6;
    max-width: 28ch;
    margin: 0 auto;
}

/* ==========================================
   Courses Section
   ========================================== */

.courses {
    padding: 100px 0;
    background: var(--light-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--light-text);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.course-card {
    background: var(--primary-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition-ease);
    animation: slideUp 0.6s ease-out backwards;
    display: flex;
    flex-direction: column;
}

.course-image {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.course-level {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-blue);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.course-rating {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-orange);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 82, 204, 0.2);
}

.course-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-content h3 {
    color: var(--dark-text);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.course-content p {
    color: var(--light-text);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.course-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--light-text);
    font-size: 0.9rem;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.view-all {
    text-align: center;
}

/* ==========================================
   Features Section
   ========================================== */

.features {
    padding: 100px 0;
    background: var(--primary-white);
}

.features-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.features-text h2 {
    margin-bottom: 1.5rem;
}

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

.features-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
    animation: slideInLeft 0.6s ease-out backwards;
}

.features-list li:nth-child(1) { animation-delay: 0s; }
.features-list li:nth-child(2) { animation-delay: 0.1s; }
.features-list li:nth-child(3) { animation-delay: 0.2s; }
.features-list li:nth-child(4) { animation-delay: 0.3s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.check {
    min-width: 40px;
    height: 40px;
    background: var(--gradient-blue-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-white);
    font-weight: bold;
    flex-shrink: 0;
}

.features-list h4 {
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.features-list p {
    font-size: 0.95rem;
    color: var(--light-text);
}

.feature-image {
    position: relative;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    animation: fadeInRight 0.8s ease-out 0.2s both;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-blue);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-white);
    font-size: 3rem;
}

.image-placeholder p {
    color: var(--primary-white);
    font-size: 1.3rem;
    margin-top: 1rem;
}

/* ==========================================
   Testimonials Section
   ========================================== */

.testimonials {
    padding: 100px 0;
    background: var(--light-bg);
}

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

.testimonial-card {
    background: var(--primary-white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition-ease);
    border-left: 4px solid var(--primary-orange);
    animation: slideUp 0.6s ease-out backwards;
}

.testimonial-card:nth-child(1) { animation-delay: 0s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.4s; }

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 82, 204, 0.15);
}

.testimonial-rating {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-orange);
    font-size: 0.9rem;
}

.testimonial-card p {
    color: var(--dark-text);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.8;
}

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

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-blue-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-white);
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

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

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

/* ==========================================
   Instructors Section
   ========================================== */

.instructors {
    padding: 100px 0;
    background: var(--primary-white);
}

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

.instructor-card {
    background: var(--light-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition-ease);
    animation: slideUp 0.6s ease-out backwards;
    display: flex;
    flex-direction: column;
}

.instructor-card:nth-child(1) { animation-delay: 0s; }
.instructor-card:nth-child(2) { animation-delay: 0.2s; }
.instructor-card:nth-child(3) { animation-delay: 0.4s; }

.instructor-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0, 82, 204, 0.2);
}

.instructor-image {
    position: relative;
    height: 250px;
    background: var(--gradient-blue);
    overflow: hidden;
}

.image-placeholder-instructor {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-white);
    font-size: 4rem;
    background: var(--gradient-blue-orange);
}

.instructor-card h3 {
    padding: 1.5rem 1.5rem 0;
    color: var(--dark-text);
}

.specialty {
    padding: 0 1.5rem;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
}

.bio {
    padding: 0.5rem 1.5rem;
    color: var(--light-text);
    font-size: 0.95rem;
    flex: 1;
}

.instructor-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 0 1.5rem 1.5rem;
}

.badge {
    background: var(--primary-blue);
    color: var(--primary-white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.instructor-card:hover .badge {
    background: var(--primary-orange);
}

/* ==========================================
   CTA Section
   ========================================== */

.cta-section {
    padding: 80px 0;
    background: var(--gradient-blue-orange);
    color: var(--primary-white);
    text-align: center;
}

.cta-content h2 {
    color: var(--primary-white);
    margin-bottom: 1rem;
    font-size: 2.8rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

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

.cta-buttons .btn-primary {
    background: var(--primary-white);
    color: var(--primary-blue);
}

.cta-buttons .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: var(--primary-white);
    border-color: var(--primary-white);
}

.cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-white);
    color: var(--primary-white);
}

/* ==========================================
   Footer
   ========================================== */

.footer {
    background: #1a1a1a;
    color: #f0f0f0;
    padding: 60px 0 20px;
}

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

.footer-col h4 {
    color: var(--primary-white);
    margin-bottom: 1.5rem;
}

.footer-brand-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-brand-logo img {
    width: 170px;
    max-width: 100%;
    height: auto;
}

.footer-col h4 a {
    color: inherit;
    text-decoration: none;
}

.footer-col p {
    color: #999;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

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

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: #999;
    text-decoration: none;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--primary-orange);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-white);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background: var(--primary-orange);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

.footer-contact-item {
    margin-bottom: 1rem;
}

.footer-contact-item h5 {
    font-size: 0.9rem;
    color: var(--primary-white);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}

.footer-contact-item p {
    margin: 0;
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 1280px) {
    .reasons-grid {
        grid-template-columns: repeat(4, minmax(220px, 1fr));
    }
}

@media (max-width: 1024px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .card-stack {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
        gap: 0.85rem;
        padding: 0;
    }

    .card {
        width: 100%;
        min-height: 160px;
        padding: 1.05rem 1rem;
    }

    .card-subtitle {
        font-size: 0.8rem;
    }

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

    .feature-image {
        height: 300px;
    }

    .nav-menu {
        gap: 1.5rem;
    }

    .reasons-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .card,
    .card-icon {
        transition: none;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 134px;
        flex-direction: column;
        background-color: var(--primary-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 0;
    }

    body.homepage {
        padding-top: 144px;
    }

    body.homepage .top-bar {
        width: 100%;
        top: 90px;
        left: 0;
        right: 0;
        height: 42px;
        padding: 0 0.75rem;
        font-size: 0.78rem;
        border-radius: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-menu a {
        letter-spacing: 0.06em;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero {
        padding: 80px 0;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-visual {
        display: none;
    }

    .card-stack {
        display: none;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .reasons-grid {
        grid-template-columns: 1fr;
    }

    .instructors-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-buttons .btn {
        width: 100%;
    }

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

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    h2 {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 15px;
    }

    .btn {
        padding: 10px 24px;
        font-size: 0.95rem;
    }

    .btn-large {
        padding: 12px 32px;
        font-size: 1rem;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    .why-choose {
        padding: 60px 0;
    }

    .courses {
        padding: 60px 0;
    }

    .course-card {
        border-radius: 12px;
    }

    .course-image {
        height: 150px;
    }

    .course-content {
        padding: 1.5rem;
    }

    .course-footer {
        flex-direction: column;
        gap: 1rem;
    }

    .price {
        font-size: 1.3rem;
    }

/* Courses grid & card alignment: ensure consistent heights and footer alignment */
.courses-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;align-items:stretch}
.course-card{background:#fff;border:1px solid var(--border-color);border-radius:12px;padding:1rem;display:flex;flex-direction:column;min-height:220px}
.course-image{flex:0 0 auto;margin-bottom:0.5rem}
.course-content{flex:0 0 auto}
.course-footer{margin-top:auto}
.course-title{margin:0.25rem 0 0.5rem;font-weight:600}

@media (max-width:1200px){ .courses-grid{grid-template-columns:repeat(3,1fr)} }
@media (max-width:992px){ .courses-grid{grid-template-columns:repeat(2,1fr)} }
@media (max-width:640px){ .courses-grid{grid-template-columns:repeat(1,1fr)} }

    .reason-card {
        padding: 1.5rem;
    }

    .reason-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .features {
        padding: 60px 0;
    }

    .feature-image {
        height: 250px;
    }

    .features-list li {
        gap: 1rem;
    }

    .check {
        min-width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .testimonials {
        padding: 60px 0;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .instructors {
        padding: 60px 0;
    }

    .instructor-image {
        height: 200px;
    }

    .image-placeholder-instructor {
        font-size: 3rem;
    }

    .instructor-card h3 {
        padding: 1rem 1rem 0;
    }

    .specialty {
        padding: 0 1rem;
    }

    .bio {
        padding: 0.3rem 1rem;
    }

    .instructor-badges {
        padding: 0 1rem 1rem;
    }

    .cta-section {
        padding: 60px 0;
    }

    .cta-content h2 {
        font-size: 1.6rem;
    }

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

    .footer {
        padding: 40px 0 15px;
    }

    .footer-grid {
        gap: 1.5rem;
    }

    .footer-col h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}

/* ==========================================
   Utility Classes
   ========================================== */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--primary-blue);
    color: var(--primary-white);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-orange);
}

/* Brand-specific overrides to ensure consistent use of #667EEA and #764BA2 */
.btn-enroll{background:linear-gradient(135deg,var(--primary-blue),var(--brand-purple)) !important}
.btn-enroll:hover{box-shadow:0 10px 30px rgba(102,126,234,0.30) !important;transform:scale(1.05) !important}
.view-details-btn{background:linear-gradient(135deg,var(--primary-blue),var(--brand-purple)) !important}
.view-details-btn:hover{box-shadow:0 10px 30px rgba(102,126,234,0.30) !important}
