/* Custom Premium Styling for StackIO Academy */

/* --- CSS Reset & Variables --- */
:root {
    /* Colors */
    --primary-blue: hsl(217, 91%, 56%);
    --primary-cyan: hsl(180, 100%, 50%);
    --cyber-purple: hsl(265, 89%, 60%);
    --cyber-pink: hsl(320, 100%, 60%);

    --bg-dark: hsl(222, 47%, 4%);
    --bg-card: rgba(13, 22, 45, 0.65);
    --bg-card-hover: rgba(20, 32, 64, 0.85);
    --bg-input: rgba(30, 41, 75, 0.4);
    --bg-drawer: #0a0e1c;
    --bg-footer: #070a14;

    --text-white: hsl(210, 100%, 98%);
    --text-muted: hsl(217, 20%, 75%);
    --text-dark: hsl(217, 10%, 25%);

    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-glow: rgba(0, 242, 254, 0.3);
    --border-color-purple: rgba(186, 104, 200, 0.3);

    --shadow-neon-cyan: 0 0 15px rgba(0, 242, 254, 0.25);
    --shadow-neon-purple: 0 0 15px rgba(186, 104, 200, 0.25);
    --shadow-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --header-height: 80px;
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables */
:root[data-theme="light"] {
    --primary-cyan: hsl(190, 100%, 35%);
    /* Darker cyan for text contrast in light mode */
    --bg-dark: hsl(210, 20%, 96%);
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --bg-input: rgba(0, 0, 0, 0.04);
    --bg-drawer: #f3f4f6;
    --bg-footer: #e5e7eb;

    --text-white: hsl(222, 47%, 12%);
    --text-muted: hsl(217, 15%, 40%);

    --border-color: rgba(0, 0, 0, 0.08);
    --border-color-glow: rgba(0, 242, 254, 0.4);
    --border-color-purple: rgba(186, 104, 200, 0.4);

    --shadow-neon-cyan: 0 0 15px rgba(0, 242, 254, 0.15);
    --shadow-neon-purple: 0 0 15px rgba(186, 104, 200, 0.15);
    --shadow-glow: 0 8px 32px 0 rgba(31, 38, 135, 0.06);
}

:root[data-theme="light"] body {
    background-image:
        radial-gradient(circle at 10% 20%, rgba(0, 242, 254, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(186, 104, 200, 0.06) 0%, transparent 45%);
}

:root[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.8);
}

:root[data-theme="light"] .nav-menu {
    background: rgb(255 255 255 / 0%);
    border-left-color: rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] .card-tech-body {
    background: rgba(240, 243, 248, 0.9);
}

:root[data-theme="light"] .faq-question,
:root[data-theme="light"] .accordion-title {
    color: var(--text-white);
}

:root[data-theme="light"] .promo-gift-item {
    background: rgba(0, 242, 254, 0.02);
}

:root[data-theme="light"] .cart-footer,
:root[data-theme="light"] .modal-footer {
    background: rgba(255, 255, 255, 0.9);
}

:root[data-theme="light"] .tab-btn {
    color: var(--text-muted);
}

:root[data-theme="light"] .tab-btn:hover,
:root[data-theme="light"] .tab-btn.active {
    color: var(--primary-cyan);
}

.theme-toggle-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    border-color: var(--primary-cyan);
    box-shadow: var(--shadow-neon-cyan);
    color: var(--primary-cyan);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(26, 32, 60, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(30, 25, 55, 0.4) 0%, transparent 45%);
    background-attachment: fixed;
}

/* Scrollbar Style */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--bg-input);
    border-radius: 4px;
}

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

ul {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* --- Utilities --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

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

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

.w-100 {
    width: 100%;
}

.txt-cyan {
    color: var(--primary-cyan);
}

.txt-purple {
    color: var(--cyber-purple);
}

.txt-pink {
    color: var(--cyber-pink);
}

/* --- UI Glassmorphism --- */
.glass-effect {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-glow);
}

/* --- Buttons --- */
.btn-primary,
.btn-secondary,
.btn-checkout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    color: var(--text-white);
    padding: 0.875rem 2rem;
    box-shadow: var(--shadow-neon-cyan);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(0, 242, 254, 0.45);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--border-color);
    padding: 0.875rem 2rem;
}

.btn-secondary:hover {
    background: var(--border-color);
    transform: translateY(-3px);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.05rem;
}

.btn-checkout {
    background: #25D366;
    /* WhatsApp Green */
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    background: #20ba59;
}

/* Glow Effect */
.glow-effect-hover:hover {
    animation: glow-pulse-cyan 1.5s infinite alternate;
}

@keyframes glow-pulse-cyan {
    0% {
        box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
    }

    100% {
        box-shadow: 0 0 25px rgba(0, 242, 254, 0.7);
    }
}

/* --- Header Section --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 100;
    background: rgba(10, 15, 30, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.header-scrolled {
    height: 65px;
    background: rgba(10, 15, 30, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

:root[data-theme="light"] .header.header-scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.header-scrolled .logo-img {
    height: 40px;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
}

.accent-text {
    background: linear-gradient(to right, var(--primary-cyan), var(--cyber-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
    padding: 0.25rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-cyan);
}

.nav-link.active {
    color: var(--text-white);
    font-weight: 600;
}

:root[data-theme="light"] .nav-link.active {
    color: var(--primary-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(to right, var(--primary-cyan), var(--primary-blue));
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Intermedial layout: prevent overlap between logo, tabs, and CTA button */
@media (min-width: 1025px) and (max-width: 1220px) {
    .nav-list {
        gap: 1.25rem;
    }

    .nav-link {
        font-size: 0.88rem;
    }

    .header-actions {
        gap: 0.75rem;
    }

    .header-cta-btn {
        padding: 0.5rem 1.1rem;
        font-size: 0.82rem;
    }
}

.cart-toggle-btn {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.cart-toggle-btn:hover {
    border-color: var(--primary-cyan);
    box-shadow: var(--shadow-neon-cyan);
    color: var(--primary-cyan);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, var(--cyber-pink), var(--cyber-purple));
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .menu-toggle-btn {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 300px;
        height: calc(100vh - 80px);
        background: rgba(10, 15, 30, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid var(--border-color);
        padding: 3rem 2rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), top 0.3s ease, height 0.3s ease;
        z-index: 99;
    }

    .header-scrolled .nav-menu {
        top: 65px;
        height: calc(100vh - 65px);
    }

    .nav-menu.active {
        right: 0;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-list {
        flex-direction: column;
        gap: 1.75rem;
    }

    .nav-item {
        opacity: 0;
        transform: translateY(15px);
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-menu.active .nav-item {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered transition delay for menu items */
    .nav-menu.active .nav-item:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-menu.active .nav-item:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-menu.active .nav-item:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-menu.active .nav-item:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav-menu.active .nav-item:nth-child(5) {
        transition-delay: 0.3s;
    }

    .nav-menu.active .nav-item:nth-child(6) {
        transition-delay: 0.35s;
    }

    .header-cta-btn {
        display: none;
    }
}

/* --- Hero Section --- */
.hero-section {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
    position: relative;
}

.hero-glow-1 {
    position: absolute;
    top: 15%;
    left: 5%;
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

.hero-glow-2 {
    position: absolute;
    bottom: 10%;
    right: 5%;
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, rgba(186, 104, 200, 0.12) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

.tag-promo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
    color: var(--primary-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-cyan);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--primary-cyan);
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(to right, var(--primary-cyan), var(--primary-blue) 40%, var(--cyber-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}

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

.trust-avatars {
    display: flex;
}

.trust-avatars img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
    margin-right: -12px;
    object-fit: cover;
}

.trust-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 250px;
}

.trust-text strong {
    color: var(--text-white);
}

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

.hero-card-wrapper {
    width: 100%;
    max-width: 480px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0px);
    }
}

.card-tech-header {
    background: rgba(10, 15, 30, 0.8);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.mac-buttons {
    display: flex;
    gap: 6px;
}

.mac-buttons span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.mac-buttons .close {
    background: #FF5F56;
}

.mac-buttons .minimize {
    background: #FFBD2E;
}

.mac-buttons .expand {
    background: #27C93F;
}

.file-name {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card-tech-body {
    padding: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    background: rgba(5, 8, 16, 0.75);
}

.code-keyword {
    color: #f472b6;
}

.code-class {
    color: #38bdf8;
}

.code-func {
    color: #fbbf24;
}

.code-string {
    color: #34d399;
}

.floating-badge {
    position: absolute;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

.badge-1 {
    top: 15%;
    left: -20px;
    animation: badge-float-1 6s ease-in-out infinite;
}

.badge-2 {
    bottom: 15%;
    right: -20px;
    animation: badge-float-2 7s ease-in-out infinite;
}

.floating-badge i {
    font-size: 1.5rem;
}

.floating-badge span {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

.floating-badge strong {
    font-size: 0.85rem;
    font-weight: 600;
}

@keyframes badge-float-1 {

    0%,
    100% {
        transform: translateY(0px) rotate(-1deg);
    }

    50% {
        transform: translateY(-8px) rotate(1deg);
    }
}

@keyframes badge-float-2 {

    0%,
    100% {
        transform: translateY(0px) rotate(1deg);
    }

    50% {
        transform: translateY(8px) rotate(-1deg);
    }
}

/* --- Stats Section --- */
.stats-section {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: rgba(10, 15, 30, 0.4);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 991px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-white), var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Section Headers --- */
.section-header {
    margin-bottom: 4rem;
}

.section-subtitle {
    font-family: var(--font-heading);
    color: var(--primary-cyan);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-description {
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* --- Programs / Course Catalog Section --- */
.programs-section {
    padding: 0rem 0;
}

.filters-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3.5rem;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--text-white);
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.programs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .programs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.program-card {
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-color-glow);
    box-shadow: 0 12px 30px rgba(0, 242, 254, 0.12);
}

.program-card.bootcamp-glow:hover {
    border-color: var(--border-color-purple);
    box-shadow: 0 12px 30px rgba(186, 104, 200, 0.15);
}

.card-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.program-card:hover .card-img {
    transform: scale(1.08);
}

.card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(10, 15, 30, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: var(--text-white);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-bootcamp {
    background: linear-gradient(135deg, var(--cyber-purple), var(--cyber-pink)) !important;
    border: none !important;
    color: white !important;
}

.card-details {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.course-meta span i {
    margin-right: 4px;
}

.program-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.program-card-title:hover {
    color: var(--primary-cyan);
}

.program-card-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    flex-grow: 1;
}

.program-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.price-box {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.price-val {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary-cyan);
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon-only {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon-only:hover {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
}

.btn-enroll-card {
    background: var(--primary-blue);
    color: white;
    padding: 0.5rem 1rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-enroll-card:hover {
    background: var(--primary-cyan);
    color: var(--bg-dark);
}

/* --- Technical English Promo Banner Section --- */
.ingles-section {
    padding: 6rem 0;
    background: radial-gradient(circle at 80% 20%, rgba(0, 242, 254, 0.08) 0%, transparent 50%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.ingles-visual {
    display: flex;
    justify-content: center;
}

.ingles-image-wrapper {
    position: relative;
    max-width: 450px;
    border-radius: 20px;
    overflow: visible;
}

.ingles-img {
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.overlay-card {
    position: absolute;
    bottom: -30px;
    right: -20px;
    padding: 1.5rem;
    border-radius: 16px;
    max-width: 320px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.gift-badge {
    background: linear-gradient(135deg, var(--cyber-pink), var(--cyber-purple));
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 0.75rem;
}

.overlay-card h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.overlay-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.overlay-card ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.overlay-card ul li {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.promo-box {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-cyan);
}

.promo-icon {
    font-size: 2rem;
    color: var(--primary-cyan);
}

.promo-text h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.promo-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

@media (max-width: 767px) {
    .overlay-card {
        position: relative;
        bottom: 0;
        right: 0;
        margin-top: 1.5rem;
        max-width: 100%;
    }

    .ingles-image-wrapper {
        max-width: 100%;
    }
}

/* --- Benefits Section --- */
.benefits-section {
    padding: 6rem 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.benefit-card {
    padding: 2.25rem 1.75rem;
    border-radius: 20px;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.bg-blue-glow {
    background: rgba(37, 99, 235, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(37, 99, 235, 0.25);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.1);
}

.bg-cyan-glow {
    background: rgba(0, 242, 254, 0.15);
    color: var(--primary-cyan);
    border: 1px solid rgba(0, 242, 254, 0.25);
    box-shadow: var(--shadow-neon-cyan);
}

.bg-purple-glow {
    background: rgba(186, 104, 200, 0.15);
    color: #ba68c8;
    border: 1px solid rgba(186, 104, 200, 0.25);
    box-shadow: var(--shadow-neon-purple);
}

.bg-pink-glow {
    background: rgba(244, 114, 182, 0.15);
    color: #f472b6;
    border: 1px solid rgba(244, 114, 182, 0.25);
    box-shadow: 0 0 20px rgba(244, 114, 182, 0.1);
}

.benefit-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.benefit-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* --- Testimonials Section --- */
.testimonials-section {
    padding: 6rem 0;
    background: rgba(10, 15, 30, 0.3);
    border-top: 1px solid var(--border-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.25rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    padding: 2.25rem 2rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-rating {
    color: #fbbf24;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    display: flex;
    gap: 4px;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

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

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color-glow);
}

.user-info h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
}

.user-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.25rem;
}

.linkedin-link {
    font-size: 0.75rem;
    color: var(--primary-cyan);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.linkedin-link:hover {
    text-decoration: underline;
}

/* --- FAQ Section --- */
.faq-section {
    padding: 6rem 0;
}

.faq-list {
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.faq-item {
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question {
    color: var(--primary-cyan);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Footer Section --- */
.footer {
    background: var(--bg-footer);
    border-top: 1px solid var(--border-color);
    padding-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    }
}

.footer-brand .logo-wrapper {
    margin-bottom: 1.5rem;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-socials a:hover {
    color: var(--primary-cyan);
    border-color: var(--primary-cyan);
    box-shadow: var(--shadow-neon-cyan);
    transform: translateY(-2px);
}

.footer-links h4,
.footer-newsletter h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links ul li a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-cyan);
    padding-left: 5px;
}

.footer-newsletter p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 4px;
    border-radius: 50px;
}

.newsletter-form input {
    background: transparent;
    border: none;
    flex-grow: 1;
    padding: 0.5rem 1.25rem;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.newsletter-form input:focus {
    outline: none;
}

.newsletter-form button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
}

.footer-bottom-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom-container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-bottom-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--primary-cyan);
}

/* --- Shopping Cart Drawer --- */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Navigation menu overlay for mobile */
.nav-overlay {
    display: none;
}

@media (max-width: 1024px) {
    .nav-overlay {
        display: block;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(5, 8, 16, 0.6);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 98;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease, top 0.3s ease, height 0.3s ease;
    }

    .header-scrolled .nav-overlay {
        top: 65px;
        height: calc(100vh - 65px);
    }

    .nav-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: var(--bg-drawer);
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.active {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-header h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-close-btn {
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-close-btn:hover {
    background: var(--bg-card);
    color: var(--cyber-pink);
}

.cart-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-empty-message {
    text-align: center;
    color: var(--text-muted);
    padding: 4rem 1rem;
}

.cart-empty-message i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.cart-item-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.cart-item-price {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-cyan);
}

.cart-item-remove-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    align-self: flex-start;
}

.cart-item-remove-btn:hover {
    color: var(--cyber-pink);
}

/* Free Promo Box */
.promo-gift-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    border: 1px dashed var(--primary-cyan);
    background: rgba(0, 242, 254, 0.04);
}

.gift-icon {
    font-size: 1.5rem;
    color: var(--primary-cyan);
}

.gift-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.gift-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Form Styles */
.cart-form-wrapper h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.input-with-icon input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition);
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.input-with-icon select {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1.25rem 0.75rem 2.5rem;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.input-with-icon select:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.input-with-icon select option {
    background: var(--bg-drawer);
    color: var(--text-white);
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: rgba(10, 15, 30, 0.8);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.cart-total-row span {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-muted);
}

.cart-total-price {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-cyan);
}

.checkout-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.75rem;
    line-height: 1.4;
}

/* --- Brochure Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.brochure-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%) scale(0.95);
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    border-radius: 20px;
    z-index: 2001;
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition);
}

.brochure-modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.modal-close-btn:hover {
    border-color: var(--cyber-pink);
    color: var(--cyber-pink);
}

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

.modal-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    background: var(--primary-blue);
}

#modal-course-title {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 3vw, 1.6rem);
    font-weight: 700;
    line-height: 1.3;
}

.modal-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 2rem;
}

.modal-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 0.25rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--primary-cyan);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-cyan);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Accordion Syllabus */
.accordion-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-title {
    width: 100%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    padding: 0.5rem 0;
}

.accordion-title:hover {
    color: var(--primary-cyan);
}

.accordion-title i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-title i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content ul {
    padding: 1rem 0.5rem 0.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.accordion-content ul li {
    font-size: 0.9rem;
    color: var(--text-muted);
    list-style-type: disc;
}

/* Projects layout */
.projects-list-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 576px) {
    .projects-list-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

.project-item-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: 12px;
}

.project-item-card h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-cyan);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.project-item-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Certification layout */
.certification-content {
    display: flex;
    flex-direction: column-reverse;
    gap: 2rem;
}

@media (min-width: 576px) {
    .certification-content {
        flex-direction: row;
        align-items: center;
    }
}

.cert-desc {
    flex-grow: 1;
}

.cert-desc h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.cert-desc p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.cert-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cert-skills-list li {
    background: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--primary-cyan);
}

.cert-preview-icon {
    font-size: 6rem;
    color: var(--primary-cyan);
    opacity: 0.15;
    text-align: center;
    width: 100%;
}

@media (min-width: 576px) {
    .cert-preview-icon {
        width: 150px;
    }
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    background: rgba(10, 15, 30, 0.8);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 576px) {
    .modal-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.modal-footer-price {
    display: flex;
    flex-direction: column;
}

.modal-footer-price span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.modal-footer-price strong {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--primary-cyan);
}

/* --- Ad Announcement Modal --- */
.ad-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.ad-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.ad-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%) scale(0.9);
    width: 90%;
    max-width: 820px;
    max-height: 100vh;
    border-radius: 20px;
    z-index: 3001;
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition);
    background: var(--bg-drawer);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), var(--shadow-neon-cyan);
}

.ad-modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.ad-modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    border: none;
    color: var(--text-white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    box-shadow: var(--shadow-neon-cyan);
}

.ad-modal-close-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.5);
}

.ad-modal-content {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-modal-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.ad-modal-footer {
    padding: 1.5rem;
    background: rgba(10, 15, 30, 0.9);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-modal-view {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.ad-form-header {
    padding: 2.25rem 2rem 1rem 2rem;
    text-align: center;
}

.ad-form-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.ad-form-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.ad-form-body {
    padding: 1rem 2rem 2.25rem 2rem;
}


/* --- Detail Page Layout & Components --- */
.detail-main-wrapper {
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 6rem;
    position: relative;
    min-height: 100vh;
}

.detail-hero-glow {
    position: absolute;
    top: 5%;
    left: 25%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.07) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

.breadcrumbs-container {
    margin-bottom: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary-cyan);
    transform: translateX(-4px);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 992px) {
    .detail-grid {
        grid-template-columns: 1.8fr 1.2fr;
    }
}

.detail-left-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

.detail-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-white), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.detail-short-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.detail-page-tabs {
    margin-bottom: 1rem;
}

.detail-section-subtitle {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-white);
    border-left: 3px solid var(--primary-cyan);
    padding-left: 0.75rem;
}

.detail-cert-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 16px;
}

@media (min-width: 576px) {
    .detail-cert-layout {
        flex-direction: row;
        align-items: center;
    }
}

/* Sidebar Info Card styles */
.detail-right-col {
    position: relative;
}

.sidebar-sticky-wrapper {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-info-card {
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
}

.sidebar-info-card:hover {
    border-color: var(--border-color-glow);
    box-shadow: 0 10px 40px rgba(0, 242, 254, 0.08);
}

.sidebar-img-container {
    width: 100%;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.sidebar-course-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-meta-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

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

.meta-icon {
    width: 38px;
    height: 38px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-cyan);
    font-size: 1rem;
}

.meta-text {
    display: flex;
    flex-direction: column;
}

.meta-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.meta-text strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-white);
}

.sidebar-price-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.sidebar-price {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-cyan);
}

.sidebar-guarantees {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-guarantees li {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.promo-english-sidebar {
    border-radius: 20px;
    padding: 1.75rem;
    border: 1px dashed var(--primary-cyan);
    background: rgba(0, 242, 254, 0.03);
    position: relative;
    overflow: hidden;
}

.promo-english-sidebar::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.promo-english-sidebar h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.promo-english-sidebar p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- Course Details Tab Styling --- */
.modal-course-description-wrapper,
.detail-description-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.modal-desc-section h4,
.modal-schedule-section h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-white);
}

.modal-desc-section p,
.detail-full-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal-schedule-grid,
.detail-schedule-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 576px) {

    .modal-schedule-grid,
    .detail-schedule-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.modal-schedule-item,
.detail-schedule-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.modal-schedule-item:hover,
.detail-schedule-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-glow);
}

.modal-schedule-item i,
.detail-schedule-item i {
    font-size: 1.5rem;
    color: var(--primary-cyan);
}

.modal-schedule-item div,
.detail-schedule-item div {
    display: flex;
    flex-direction: column;
}

.modal-schedule-item span,
.detail-schedule-item span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.modal-schedule-item strong,
.detail-schedule-item strong {
    font-size: 0.9rem;
    color: var(--text-white);
    margin-top: 2px;
}

/* Centered Hero Content */
.hero-content.text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-content.text-center .hero-description {
    margin-left: auto;
    margin-right: auto;
}

.hero-content.text-center .hero-actions {
    justify-content: center;
}

/* --- About Us Section --- */
.about-section {
    padding: 6rem 0;
    position: relative;
    background: radial-gradient(circle at 20% 80%, rgba(186, 104, 200, 0.05) 0%, transparent 50%);
    border-top: 1px solid var(--border-color);
}

.about-intro-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto 4rem auto;
    text-align: center;
    border: 1px solid var(--border-color-glow);
}

@media (min-width: 768px) {
    .about-intro-box {
        flex-direction: row;
        text-align: left;
    }
}

.intro-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(0, 242, 254, 0.15);
    color: var(--primary-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-neon-cyan);
}

.about-intro-box p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-white);
}

.about-pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .about-pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .about-pillars-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.pillar-card {
    padding: 2.25rem 2rem;
    border-radius: 20px;
    transition: var(--transition);
    height: 100%;
}

.pillar-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-color-glow);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.06);
}

.pillar-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pillar-header i {
    font-size: 1.75rem;
    color: var(--primary-cyan);
}

.pillar-header h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
}

.pillar-card p {
    font-size: 0.925rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Floating Chatbot Widget --- */
.chatbot-floating-btn {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyber-purple) 0%, var(--primary-cyan) 100%);
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    transition: var(--transition);
    border: none;
    outline: none;
    color: #fff;
    font-size: 1.5rem;
}

.chatbot-floating-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 25px rgba(0, 242, 254, 0.6);
}

.chatbot-floating-btn::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid var(--primary-cyan);
    opacity: 0;
    animation: chatbot-pulse 2s infinite;
}

@keyframes chatbot-pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.chatbot-window {
    position: fixed;
    right: 30px;
    bottom: 105px;
    width: 360px;
    height: 480px;
    max-height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
    background: rgba(10, 14, 28, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: var(--shadow-glow), 0 0 30px rgba(0, 242, 254, 0.15);
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
    overflow: hidden;
}

.chatbot-window.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

.chatbot-header {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chatbot-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 242, 254, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-cyan);
    font-size: 1.2rem;
    border: 1px solid var(--border-color-glow);
}

.chatbot-avatar .online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #4ade80;
    border: 2px solid #0a0e1c;
}

.chatbot-header-info h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: #fff;
    margin: 0;
    font-weight: 600;
}

.chatbot-header-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

.chatbot-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.chatbot-close-btn:hover {
    color: var(--cyber-pink);
    transform: scale(1.1);
}

.chatbot-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scroll-behavior: smooth;
}

/* Scrollbar styles for messages */
.chatbot-messages::-webkit-scrollbar {
    width: 4px;
}
.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}
.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.chatbot-message {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 15px;
    font-size: 0.875rem;
    line-height: 1.4;
    word-break: break-word;
    animation: message-fade-in 0.3s ease forwards;
}

@keyframes message-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chatbot-message.assistant {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    border-bottom-left-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.chatbot-message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--cyber-purple) 0%, var(--primary-cyan) 100%);
    color: #fff;
    border-bottom-right-radius: 2px;
    box-shadow: 0 4px 12px rgba(0, 242, 254, 0.15);
}

.chatbot-options-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
    align-self: flex-start;
    width: 100%;
}

.chatbot-option-btn {
    background: rgba(0, 242, 254, 0.04);
    border: 1px solid var(--border-color-glow);
    color: var(--primary-cyan);
    border-radius: 12px;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
    width: fit-content;
    max-width: 100%;
}

.chatbot-option-btn:hover {
    background: rgba(0, 242, 254, 0.1);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
    transform: translateX(4px);
    color: #fff;
    border-color: var(--primary-cyan);
}

/* Typing Indicator Animation */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 4px 8px;
    align-items: center;
    justify-content: center;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

.chatbot-input-area {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 0.5rem;
}

.chatbot-input-area input {
    flex-grow: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: #fff;
    font-size: 0.875rem;
    outline: none;
    transition: var(--transition);
}

.chatbot-input-area input:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.chatbot-send-btn {
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid var(--border-color-glow);
    color: var(--primary-cyan);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.chatbot-send-btn:hover {
    background: var(--primary-cyan);
    color: #0a0e1c;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .chatbot-window {
        right: 15px;
        left: 15px;
        bottom: 95px;
        width: auto;
        height: 420px;
    }
    .chatbot-floating-btn {
        right: 15px;
        bottom: 15px;
        width: 55px;
        height: 55px;
    }
}