/* =========================
   🌐 GOOGLE FONTS
========================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Montserrat:wght@700&family=Playfair+Display:ital@1&display=swap');


/* =========================
   🎨 GLOBAL VARIABLES
========================= */
:root {
    --primary-math: #1e3a8a;
    --accent-logic: #2563eb;
    --accent-glow: #38bdf8;

    --gradient-main: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #38bdf8 100%);

    --bg-light: #f8fbff;
    --bg-soft: #eef4ff;

    --text-main: #0f172a;
    --text-muted: #64748b;

    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(37, 99, 235, 0.12);

    --shadow-soft: 0 10px 25px rgba(30, 58, 138, 0.08);
    --shadow-hover: 0 18px 45px rgba(30, 58, 138, 0.18);
}


/* =========================
   🌍 GLOBAL BODY
========================= */
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-light), var(--bg-soft));
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
    padding-top: 80px;

    /* subtle premium feel */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    scroll-behavior: smooth;
}

::selection {
    background: var(--accent-logic);
    color: white;
}

/* smooth hover transitions globally */
a,
button,
.card-custom,
.course-box {
    transition: all 0.25s ease;
}

/* =========================
   🔷 NAVBAR CSS START
========================= */

.navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.75) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 8px 0;
    border-radius: 0 0 12px 12px;
    transition: all 0.4s ease;
    position: fixed;
    width: 100%;
    z-index: 9999;
}

/* 🔥 PREMIUM SCROLL EFFECT */
.navbar.scrolled {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.85),
            rgba(240, 249, 255, 0.85)) !important;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-radius: 14px;
    margin: 8px auto;
    max-width: 1200px;

    border: 1px solid rgba(59, 130, 246, 0.15);

    box-shadow: 0 10px 35px rgba(37, 99, 235, 0.15);

    padding: 6px 12px;
}

.navbar.scrolled::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    pointer-events: none;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.navbar.scrolled::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;

    background: linear-gradient(120deg,
            rgba(56, 189, 248, 0.08),
            rgba(99, 102, 241, 0.08));

    pointer-events: none;
}

/* =========================
   🔷 LOGO
========================= */

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--primary-math) !important;
    transition: color 0.3s ease;
    gap: 8px;
}

.navbar.scrolled .navbar-brand {
    color: #1e3a8a !important;
}

.navbar-brand span {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 13px;
    color: var(--text-muted);
}

/* =========================
   🔷 NAV LINKS
========================= */

.nav-link {
    position: relative;
    margin-left: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main) !important;
    transition: all 0.3s ease;
}

.navbar.scrolled .nav-link {
    color: #1e3a8a !important;
}

.nav-link:hover,
.nav-link.active {
    color: #38bdf8 !important;
}

.navbar.scrolled .nav-link:hover {
    color: #2563eb !important;
    text-shadow: 0 0 6px rgba(37, 99, 235, 0.3);
}

/* UNDERLINE EFFECT */
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #38bdf8, #6366f1);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* =========================
   🔷 DROPDOWN BASE
========================= */
/* =========================
   🔥 HOVER DROPDOWN (DESKTOP)
========================= */
@media (min-width: 992px) {

    .nav-item.dropdown:hover>.dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 1;
        visibility: visible;
    }

    /* Smooth animation */
    .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        transform: translateY(10px);
    }

    .nav-item.dropdown:hover>.dropdown-menu {
        transform: translateY(0);
    }
}

.nav-item.dropdown {
    position: relative;
    overflow: visible !important;
}

.navbar .dropdown-menu {
    position: absolute;
    top: 110%;
    left: 0;
    min-width: 220px;
    z-index: 999;

    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}



/* Scroll dropdown dark */
.navbar.scrolled .dropdown-menu {
    background: rgba(7, 10, 20, 0.95);
}

/* Show dropdown */
@media (min-width: 992px) {
    .navbar {

        padding-left: 0;
        padding-right: 0;
    }

    .navbar .container {

        max-width: 1140px;
    }

    .navbar-collapse {
        flex-grow: 0;
        margin-left: auto;
    }
}

/* =========================
   🔷 DROPDOWN ITEMS
========================= */

/* FIXED DROPDOWN */
.dropdown-menu {
    background: rgba(15, 23, 42, 0.98) !important;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    padding: 10px 0;
}

.dropdown-menu li {
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
}

.dropdown-item {
    padding: 10px 18px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;

    color: rgba(255, 255, 255, 0.85) !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}


.dropdown-menu li+li {
    margin-top: 2px;
}

.navbar.scrolled .dropdown-item {
    color: #e2e8f0 !important;
}

.dropdown-item:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    transform: translateX(4px);
}

.navbar.scrolled .dropdown-item:hover {
    background: rgba(56, 189, 248, 0.15);
    color: #fff;
}

/* =========================
   🔷 SUBMENU (DESKTOP)
========================= */

@media (min-width: 992px) {

    .dropdown-submenu {
        position: relative;
    }

    .dropdown-submenu>.dropdown-menu {
        position: absolute !important;
        top: 0 !important;
        left: 100% !important;

        display: none;
        opacity: 0;
        visibility: hidden;

        pointer-events: none;
        transform: none !important;

        background: rgba(15, 23, 42, 0.98);
        border-radius: 12px;
        padding: 10px 0;
    }

    .dropdown-submenu:hover>.dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

.dropdown-submenu>.dropdown-menu {
    display: none;
}

.dropdown-submenu.show>.dropdown-menu {
    display: block;
}

/* Gap bridge */
.dropdown-submenu::after {
    content: "";
    position: absolute;
    top: 0;
    left: 100%;
    right: -10px;
    width: 12px;
    height: 100%;
    background: transparent;
}

.dropdown-submenu>a {
    display: block;
    width: 100%;
}

.dropdown-submenu>a::after {
    content: "›";
    float: right;
}

/* =========================
   📱 MOBILE DROPDOWN
========================= */
@media (max-width: 991px) {

    .navbar .dropdown-menu {
        position: static !important;
        display: none;
        background: transparent;
        box-shadow: none;
        border: none;
    }


    .navbar .dropdown-menu.show {
        display: block;
    }

    .dropdown-submenu>.dropdown-menu {
        position: static !important;
        margin-left: 15px;
        display: none;
    }

    .dropdown-submenu.show>.dropdown-menu {
        display: block;
    }
}

/* =========================
   🔷 BUTTON
========================= */

.btn-outline-primary {
    border: 2px solid var(--accent-logic);
    color: var(--accent-logic);
    border-radius: 8px;
    font-weight: 600;
    padding: 8px 22px;
    transition: all 0.35s ease;
}

.navbar.scrolled .btn-outline-primary {
    color: #1e3a8a !important;
    /* dark blue text */
    border-color: #2563eb !important;
    background: rgba(37, 99, 235, 0.08);
    backdrop-filter: blur(10px);
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: #ffffff !important;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.35);
}

/* =========================
   🔥 PRO LINK
========================= */

.pro-link {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;

    color: #e2e8f0 !important;

    background: linear-gradient(135deg,
            rgba(99, 102, 241, 0.15),
            rgba(14, 165, 233, 0.15));

    border: 1px solid rgba(99, 102, 241, 0.4);
    backdrop-filter: blur(10px);

    transition: all 0.3s ease;
}

.pro-link:hover {
    color: #fff !important;
    background: linear-gradient(135deg, #6366f1, #0ea5e9);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.pro-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;

    padding: 3px 8px;
    border-radius: 20px;

    background: linear-gradient(135deg, #facc15, #f59e0b);
    color: #000;

    box-shadow: 0 0 10px rgba(250, 204, 21, 0.6);
    animation: glowPulse 1.8s infinite ease-in-out;
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 5px rgba(250, 204, 21, 0.4);
    }

    50% {
        box-shadow: 0 0 15px rgba(250, 204, 21, 0.9);
    }

    100% {
        box-shadow: 0 0 5px rgba(250, 204, 21, 0.4);
    }
}

/* =========================
   ✅ FINAL NAVBAR FIX
========================= */

/* Bootstrap show fix */
.dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Mobile fix */
@media (max-width: 991px) {

    .navbar .dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    .navbar .dropdown-menu.show {
        display: block !important;
    }
}

/* =========================
   🔷 LOGO IMAGE
========================= */

.nav-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 50%;
    display: block;
}

@media (max-width: 768px) {
    .nav-logo {
        width: 40px;
        height: 40px;
    }
}

/* =========================
   🔷 HERO SECTION
========================= */
.hero {
    padding: 120px 0 80px;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -1px;
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--text-muted);
}


/* =========================
   🔷 REGISTRATION FORM CSS START
========================= */

/* Center form */
form {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card */
.reg-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    padding: 40px;
    opacity: 0;
    transform: translateY(60px);
}

/* Animation show */
.reg-card.show {
    animation: fadeUp 0.7s ease forwards;
}

/* Header */
.header-area {
    text-align: center;
    margin-bottom: 30px;
}

.header-area h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-math);
}

.signature {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Form fields */
.form-control {
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
}

.form-control:focus {
    border-color: var(--accent-logic);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

/* Button */
.btn-register {
    background: var(--gradient-main);
    color: white;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

/* =========================
   🚀 SUCCESS POPUP PRO UI
========================= */

.success-popup {
    position: fixed;
    top: 25px;
    left: -450px;
    z-index: 9999;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* Slide in */
.success-popup.show {
    left: 20px;
}

/* Slide out to right */
.success-popup.move-right {
    left: 100%;
    transform: translateX(-120%);
    opacity: 0;
}

/* Popup box */
.popup-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 24px;
    min-width: 300px;

    /* Glass effect */
    background: rgba(79, 70, 229, 0.85);
    backdrop-filter: blur(15px);

    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);

    color: #fff;

    /* Entry animation */
    animation: popupBounce 0.6s ease;
}

/* Icon */
.popup-icon {
    font-size: 26px;
    background: #fff;
    color: #4f46e5;
    border-radius: 50%;
    padding: 10px 14px;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Text */
.popup-content h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.popup-content p {
    margin: 2px 0 0;
    font-size: 13px;
    opacity: 0.9;
}

/* Bounce effect */
@keyframes popupBounce {
    0% {
        transform: translateX(-50px);
        opacity: 0;
    }

    60% {
        transform: translateX(10px);
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Optional glow effect */
.popup-content:hover {
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.7);
    transform: scale(1.02);
    transition: 0.3s;
}

/* Mobile responsive */
@media (max-width: 500px) {
    .popup-content {
        min-width: 250px;
        padding: 15px 18px;
    }

    .popup-icon {
        font-size: 22px;
        padding: 8px 12px;
    }
}

/* ========================
   🏠 HOMEPAGE STYLES (SCOPED)
======================== */

.homepage {
    background: linear-gradient(160deg, #f8f8f8 0%, #e0f7fa 100%);
}

/* Sections */
.homepage section {
    padding: 80px 0;
}

/* Headings */
.homepage h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--accent-logic);
    position: relative;
}

.homepage h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-logic);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* ========================
   ✨ GLOBAL TEXT SYSTEM (PRO)
======================== */

.homepage p,
.homepage li {
    text-align: left;
    line-height: 1.7;
    font-size: 1.05rem;
    color: #444;
    letter-spacing: 0.2px;
    margin-bottom: 12px;
}

/* Smart justify only on large screens */
@media (min-width: 992px) {
    .homepage p {
        text-align: justify;
        text-justify: inter-word;
    }
}

/* ========================
   🎬 CAROUSEL (UNCHANGED)
======================== */

:root {
    --navbar-height: 80px;
}

.homepage .carousel-item {
    position: relative;
    height: calc(100vh - var(--navbar-height));
    min-height: 400px;
    overflow: hidden;
}

.homepage .carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 8s ease;
}

.homepage .carousel-item.active img {
    transform: scale(1.1);
}

.homepage .carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
            rgba(0, 0, 0, 0.8),
            rgba(0, 0, 0, 0.4),
            rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.homepage .carousel-caption {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 90%;
    max-width: 500px;
    padding: 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    text-align: center;
}

.homepage .carousel-caption h2 {
    font-size: clamp(1.5rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #fff;
}

.homepage .carousel-caption p {
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    color: #f1f1f1;
}

.homepage .btn-custom {
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
}

.homepage .btn-custom:hover {
    transform: translateY(-3px) scale(1.05);
}

/* ========================
   👨‍🏫 FOUNDER SECTION (ANIMATION FIXED)
======================== */

.founder-wrapper {
    max-width: 800px;
    margin: auto;
}

/* Founder card */
.founder-card {
    background: #ffffff;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.8s ease;
}

/* Slide animation */
.slide-in-right {
    opacity: 0;
    transform: translateX(100px);
}

.show-founder .slide-in-right {
    opacity: 1;
    transform: translateX(0);
}

/* Founder text (perfect spacing fix) */
.founder-card p {
    text-align: left;
    line-height: 1.6;
    color: #555;
}

/* Hidden paragraph BELOW (no overlap) */
.about-hidden {
    margin-top: 20px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.show-founder .about-hidden {
    opacity: 1;
    transform: translateY(0);
}

/* Clean link */
.hidden-link {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    color: #0d6efd;
    text-decoration: none;
    opacity: 0;
    transition: 0.4s;
}

.show-founder .hidden-link {
    opacity: 1;
}

/* ========================
   🏆 ACHIEVEMENTS
======================== */

.achievement-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.06);
    transition: 0.3s;
}

.achievement-card:hover {
    transform: translateY(-6px);
}

.achievement-card h3 {
    font-size: 1.2rem;
}

/* ========================
   📚 COURSES
======================== */

/* Course Cards Alignment Fix */
.course-card a {
    margin-top: auto;

    display: inline-block;
    width: fit-content;
    /* prevents full width stretch */

    padding: 8px 18px;
    /* reduced size */
    font-size: 14px;

    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.course-card:hover {
    transform: translateY(-5px);
}

/* Push button to bottom */
.course-card a {
    margin-top: auto;
}

.course-card {
    align-items: center;
}

.course-card a {
    margin-top: auto;
}

/* Button fix */
.register-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
    transition: 0.3s;
}

.register-btn:hover {
    background: linear-gradient(135deg, #0b5ed7, #084298);
}

/* ========================
   🎯 EXTRA UI
======================== */

.highlight {
    background: #ffffff;
    padding: 10px 18px;
    border-radius: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.cta-link {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: #0d6efd;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
}

.cta-link:hover {
    background: #084298;
}

/* =========================
   📞 CONTACT PAGE (SCOPED)
========================= */

.contact-page {
    background: #f1f5f9;
}

/* HERO SECTION */
.contact-page .hero {
    position: relative;
    min-height: 85vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 100px 20px;
    overflow: hidden;
}

.contact-page .hero-card {
    position: relative;
    z-index: 2;
    max-width: 850px;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.contact-page .hero-card span {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    color: #60a5fa;
    font-weight: 600;
    display: block;
    margin-bottom: 15px;
}

.contact-page .hero-card h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(to right, #ffffff, #93c5fd);

    /* Standard */
    background-clip: text;
    color: transparent;

    /* Webkit support */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-page .hero-card p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #cbd5e1;
    max-width: 650px;
    margin: 0 auto;
}

/* FLOATING CIRCLES */
.contact-page .circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 1;
    animation: floatAnim 8s infinite ease-in-out;
}

.contact-page .c1 {
    width: 300px;
    height: 300px;
    background: rgba(79, 70, 229, 0.2);
    top: -10%;
    left: -5%;
}

.contact-page .c2 {
    width: 250px;
    height: 250px;
    background: rgba(37, 211, 102, 0.1);
    bottom: 10%;
    right: -5%;
}

@keyframes floatAnim {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

/* CTA CARD */
.contact-page .cta-container {
    margin-top: -120px;
    position: relative;
    z-index: 10;
}

.contact-page .cta-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 50px 30px;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.contact-page .cta-card h2 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 10px;
}

/* BUTTONS */
.contact-page .btn-custom {
    padding: 14px 40px;
    font-weight: 600;
    border-radius: 12px;
    transition: 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin: 10px;
    text-decoration: none;
}

.contact-page .btn-register {
    background: var(--accent-logic);
    color: #fff;
    border: none;
}

.contact-page .btn-whatsapp {
    background: transparent;
    color: #25D366;
    border: 2px solid #25D366;
}

.contact-page .btn-custom:hover {
    transform: translateY(-5px);
}

.contact-page .btn-register:hover {
    background: #1e40af;
}

.contact-page .btn-whatsapp:hover {
    background: #25D366;
    color: white;
}

/* INFO BOX */
.contact-page .info-box {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    height: 100%;
    transition: 0.3s;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.contact-page .info-box:hover {
    border-color: var(--accent-logic);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
}

.contact-page .info-box h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--accent-logic);
}

/* MAP */
.contact-page .info {
    margin-bottom: 60px;
}

.contact-page .map-wrapper {
    margin-top: 20px;
    margin-bottom: 50px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 8px solid #fff;
}

.contact-page .map-wrapper iframe {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .contact-page .hero {
        min-height: 70vh;
        padding: 80px 15px;
    }

    .contact-page .hero-card {
        padding: 40px 20px;
    }

    .contact-page .cta-container {
        margin-top: -80px;
    }

    .contact-page .btn-custom {
        width: 100%;
        margin: 10px 0;
    }

    .contact-page .map-wrapper iframe {
        height: 300px;
    }

    .contact-page .info {
        margin-bottom: 40px;
    }
}

/* =========================
   🔷 ABOUT PAGE (PREMIUM UI)
========================= */

.about-page {
    background: linear-gradient(120deg, #eef2ff, #f8fafc);
}

/* HERO SECTION */
.about-page .about-hero {
    padding: 140px 20px 100px;
    background: linear-gradient(-45deg, #1e3a8a, #2563eb, #06b6d4);
    background-size: 300% 300%;
    animation: gradientMove 8s ease infinite;
    color: white;
    text-align: center;
    position: relative;
}

.about-page .about-hero h1 {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -1px;
}

.about-page .about-hero p {
    font-size: 18px;
    opacity: 0.9;
    margin-top: 10px;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* SECTION SPACING */
.about-page .section {
    padding: 80px 20px;
}

/* IMAGE */
.about-page .about-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
    object-fit: cover;
    transition: 0.4s ease;
}

.about-page .about-img:hover {
    transform: scale(1.05);
}

/* GLASS CARD */
.about-page .about-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    transition: 0.4s ease;
}

.about-page .about-card:hover {
    transform: translateY(-10px) scale(1.02);
}

/* ICON STYLE */
.about-page .about-card i {
    font-size: 28px;
    color: #2563eb;
    margin-bottom: 10px;
}

/* STATS SECTION */
.about-page .stats {
    background: #f8fafc;
}

.about-page .stat-box {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.about-page .stat-box:hover {
    transform: translateY(-8px);
}

.about-page .stat-number {
    font-size: 36px;
    font-weight: 800;
    color: #2563eb;
}

.about-page .stat-text {
    font-size: 14px;
    color: #6b7280;
}

/* CTA SECTION */
.about-page .cta {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    text-align: center;
    padding: 70px 20px;
    border-radius: 25px;
    margin-top: 40px;
}

.about-page .cta h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.about-page .cta p {
    opacity: 0.9;
    margin-bottom: 25px;
}

/* BUTTON */
.about-page .btn-custom {
    background: white;
    color: #1e3a8a;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.3s;
    display: inline-block;
}

.about-page .btn-custom:hover {
    background: #111827;
    color: white;
    transform: translateY(-3px);
}

/* TEAM / FOUNDER */
.about-page .team-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.about-page .team-card:hover {
    transform: translateY(-10px);
}

.about-page .team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.about-page .team-card h4 {
    margin-bottom: 5px;
    color: #1e3a8a;
}

.about-page .team-card p {
    font-size: 14px;
    color: #6b7280;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .about-page .about-hero h1 {
        font-size: 32px;
    }

    .about-page .section {
        padding: 60px 15px;
    }
}

/* ========================
   📱 MOBILE OPTIMIZATION
======================== */

@media (max-width: 768px) {

    .homepage .carousel-item {
        height: calc(75vh - var(--navbar-height));
    }

    .homepage .carousel-caption {
        bottom: 10%;
        padding: 15px;
    }
}

@media (max-width: 480px) {

    .homepage .carousel-item {
        height: calc(65vh - var(--navbar-height));
    }

    .homepage .carousel-caption {
        width: 95%;
        padding: 12px;
    }
}

/* ========================
   👤 FOUNDER CARD
======================== */

.homepage .founder-card {
    background: #fff;
    border-radius: 16px;
    padding: 50px 40px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
    animation: fadeInUp 1s forwards;
}

.homepage .founder-card h2 {
    font-size: 28px;
    color: var(--accent-logic);
}

.homepage .founder-card h4 {
    font-size: 20px;
    margin-bottom: 20px;
}

.homepage .founder-card p {
    color: #555;
}

.homepage .founder-card:hover {
    transform: translateY(-8px) scale(1.02);
}

/* ========================
   🎯 HIGHLIGHTS
======================== */

.homepage .highlight {
    background: #fff;
    padding: 18px 28px;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    margin: 8px;
    transition: 0.3s;
}

.homepage .highlight:hover {
    transform: translateY(-3px);
}

.homepage .cta-link {
    display: inline-block;
    margin-top: 25px;
    padding: 16px 32px;
    background: var(--accent-logic);
    color: #fff;
    border-radius: 10px;
    font-weight: bold;
}

.homepage .cta-link:hover {
    background: #0056b3;
}

/* ========================
   📚 COURSES
======================== */

.homepage .courses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.homepage .course-card {
    padding: 28px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: 0.4s;
}

.homepage .course-card:hover {
    transform: translateY(-10px);
}

.homepage .course-card h3 {
    color: var(--accent-logic);
}

.course-flex {
    display: flex;
    align-items: center;
    gap: 30px;
}

.course-flex.reverse {
    flex-direction: row-reverse;
}

.course-img {
    flex: 0 0 340px;
}

.course-img img {
    width: 100%;
    max-width: 340px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.course-text {
    flex: 1;
}

@media (max-width: 768px) {
    .course-flex {
        flex-direction: column;
        text-align: center;
        gap: 12px;

        /* reduced from 30px */
    }


    .course-flex.reverse {
        flex-direction: column;
    }

    .course-img {
        flex: unset;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 12px;
    }

    .course-img img {
        width: 100%;
        max-width: 300px;
        margin-bottom: 0;
    }

    .course-text {
        margin-top: 0;
        padding: 0 10px;
    }
}

/* ========================
   🏆 ACHIEVEMENTS
======================== */

.homepage #achievements {
    background: #f8f9fa;
    text-align: center;
}

.homepage .achievement-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.homepage .achievement-card {
    background: linear-gradient(145deg, #e3f2fd, #fff);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    transition: 0.4s;
}

.homepage .achievement-card:hover {
    transform: translateY(-10px);
}

/* ========================
   📱 RESPONSIVE
======================== */

@media (max-width:768px) {
    .homepage .carousel-item {
        height: 70vh;
    }

    .homepage .carousel-caption h2 {
        font-size: 1.8rem;
    }
}

@media (max-width:480px) {
    .homepage .carousel-item {
        height: 60vh;
    }

    .homepage .carousel-caption h2 {
        font-size: 1.4rem;
    }
}

/* ========================
   📚 COURSES PAGE STYLES (SCOPED)
======================== */

.courses-page {
    background: #f9fafb;
}

/* HERO */
.courses-page .courses-hero {
    padding: 120px 20px;
    background: linear-gradient(135deg, var(--primary-math), var(--accent-logic));
    color: white;
    text-align: center;
    position: relative;
}

.courses-page .courses-hero::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 60px;
    background: white;
    border-radius: 50% 50% 0 0;
}

.courses-page .courses-hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
}

.courses-page .courses-hero p {
    font-size: 18px;
}

/* ========================
   📚 COURSES PAGE STYLES
======================== */

.courses-page {
    background: #f9fafb;
}

/* ========================
   🎯 GRID FIX (CRITICAL)
======================== */

/* Make all columns equal height */
.courses-page .courses-section .row>div {
    display: flex;
}

/* ========================
   🎯 COURSE CARD
======================== */

.courses-page .course-box {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    width: 100%;
    height: 100%;

    transition: 0.3s;
}

/* Gradient top line */
.courses-page .course-box::before {
    content: "";
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, var(--accent-logic), var(--primary-math));
    position: absolute;
    top: 0;
    left: 0;
}

/* Hover */
.courses-page .course-box:hover {
    transform: translateY(-8px);
}

/* Title */
.courses-page .course-box h3 {
    color: var(--primary-math);
}

/* Image */
.courses-page .course-box img {
    transition: 0.3s;
}

.courses-page .course-box:hover img {
    transform: scale(1.05);
}

/* Content spacing */
.courses-page .course-box p,
.courses-page .course-box ul {
    margin-bottom: 12px;
}

/* ========================
   🎯 BUTTON ALIGNMENT (ULTIMATE FIX)
======================== */

.courses-page .course-box .btn {
    margin-top: auto !important;
    align-self: flex-start;
    /* keeps button left aligned */
}

/* ========================
   🎯 BUTTON STYLE
======================== */

.courses-page .btn-primary {
    background: linear-gradient(135deg, var(--accent-logic), var(--primary-math));
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
}

/* ========================
   🎯 OTHER SECTIONS
======================== */

.courses-page .features {
    padding: 60px 20px;
    background: white;
    text-align: center;
}

.courses-page .features i {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--accent-logic);
}

.courses-page .trust h3 {
    font-weight: bold;
    color: var(--primary-math);
}

.courses-page .cta {
    padding: 60px 20px;
    background: var(--primary-math);
    color: white;
    text-align: center;
}

/* ========================
   📱 RESPONSIVE
======================== */

@media (max-width:768px) {
    .courses-page .courses-hero h1 {
        font-size: 32px;
    }

    /* Disable flex on mobile for stacking */
    .courses-page .row>div {
        display: block;
    }
}

/* =========================
   🔷 FOOTER CSS START
========================= */
.footer {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 50px 0 20px;
}

.footer-title {
    font-weight: bold;
    color: var(--primary-math);
    margin-bottom: 15px;
}

.footer-text {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-link {
    color: var(--text-main);
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
    transition: 0.3s;
}

.footer-link:hover {
    color: var(--accent-logic);
    padding-left: 5px;
}

.footer-divider {
    margin: 20px 0;
    opacity: 0.2;
}

.footer-bottom {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}


/* =========================
   🎬 ANIMATIONS
========================= */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================
   📱 RESPONSIVE
========================= */
@media (max-width: 991px) {
    .hero h1 {
        font-size: 36px;
    }

    .nav-link {
        margin-left: 0;
        padding: 10px 0;
    }
}

@media (max-width: 768px) {
    .footer {
        text-align: center;
    }
}