/*
Theme Name: SGK Academy Premium
Theme URI: https://sgkacademy.com
Description: A premium, modern theme for SGK Academy Computer Institute.
Author: Antigravity
Version: 1.1.0
Text Domain: sgk-academy
*/

/* Base Colors - Professional Educational Palette */
:root {
    /* HSL Tailored Palettes */
    --indigo-600: 243, 75%, 59%;
    --emerald-600: 161, 94%, 30%;
    --rose-600: 350, 89%, 60%;
    --slate-600: 215, 16%, 47%;

    /* Gradients */
    --grad-indigo: linear-gradient(135deg, hsl(var(--indigo-600)) 0%, hsl(243, 75%, 45%) 100%);
    --grad-emerald: linear-gradient(135deg, hsl(var(--emerald-600)) 0%, hsl(161, 94%, 20%) 100%);
    --grad-rose: linear-gradient(135deg, hsl(var(--rose-600)) 0%, hsl(350, 89%, 45%) 100%);
    --grad-slate: linear-gradient(135deg, hsl(var(--slate-600)) 0%, hsl(215, 16%, 30%) 100%);
    --grad-primary: var(--grad-indigo);

    --primary: hsl(var(--indigo-600));
    --secondary: hsl(var(--rose-600));
    --accent: hsl(var(--emerald-600));
    --text-dark: #1a1a1a;
    --text-light: #64748b;
    --white: #ffffff;
    --bg-gray: #f1f5f9;

    --shadow-main: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    --shadow-premium: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 50px -12px rgba(0, 0, 0, 0.15);

    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
    /* Stronger side padding */
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
}

body {
    font-family: 'Inter', sans-serif;
    /* Modern educational font */
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* NEWS TICKER */
.news-ticker {
    background: var(--text-dark);
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
    position: relative;
    z-index: 1002;
}

.ticker-wrap {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-label {
    background: var(--secondary);
    padding: 0 15px;
    font-weight: bold;
    margin-right: 20px;
    position: relative;
    z-index: 2;
}

.ticker-content {
    animation: ticker 25s linear infinite;
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* NAVBAR */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow-main);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    gap: 20px;
    /* Prevent items from touching */
}

/* Ensure Logo doesn't shrink too much */
.brand-logo {
    flex-shrink: 0;
}

.brand-logo h1 {
    font-size: 1.5rem;
    /* Slightly smaller for better fit */
    color: var(--primary);
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1;
}

.brand-logo span {
    font-size: 0.65rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-top: 3px;
}

/* Main Nav Bar - Horizontal */
.main-nav {
    flex: 1;
    /* Take available space */
    display: flex;
    justify-content: center;
    /* Center links in available space */
    min-width: 0;
    /* Important for flex items */
}

.main-nav>ul {
    display: flex;
    list-style: none;
    gap: 15px;
    /* Further reduced gap to prevent overlap */
    align-items: center;
    padding: 0;
    margin: 0;
}

.header-cta {
    flex-shrink: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.main-nav a:hover,
.main-nav .current-menu-item a {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* CLASSIC FLYOUT MENU STYLES */
.has-flyout {
    position: relative;
}

/* First Level Flyout (Vertical) */
.flyout-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #eee;
    display: none !important;
    /* Force hide */
    list-style: none;
    padding: 10px 0;
    z-index: 999;
    flex-direction: column;
    /* Reset flex from main-nav */
}

.has-flyout:hover>.flyout-menu {
    display: flex !important;
    /* Show on hover */
}

.flyout-item {
    position: relative;
    width: 100%;
}

.flyout-item>a {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 12px 25px !important;
    color: #333 !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    text-decoration: none;
    border: none !important;
    transition: 0.3s;
    width: 100%;
    white-space: nowrap;
}

.flyout-item:hover>a {
    background: #f8fafc;
    color: var(--primary) !important;
}

/* Second Level (Right Flyout) */
.sub-flyout {
    position: absolute;
    top: -10px;
    /* Align with padding */
    left: 100%;
    background: white;
    min-width: 300px;
    box-shadow: 15px 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #eee;
    display: none !important;
    list-style: none;
    padding: 10px 0;
    z-index: 1000;
    flex-direction: column;
}

.flyout-item:hover>.sub-flyout {
    display: flex !important;
}

.sub-flyout a {
    padding: 10px 25px !important;
    font-size: 0.85rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555 !important;
    width: 100%;
}

.sub-flyout a:hover {
    background: #f1f5f9;
    color: var(--primary) !important;
}

/* HERO BANNER */
.hero-slider {
    position: relative;
    height: 550px;
    background: #000;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
}

.slide-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
}

.slide-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 0 50px;
}

.slide-content h2 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.slide-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* AFFILIATION STRIP */
.affiliation-strip {
    background: var(--bg-gray);
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

.aff-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    opacity: 0.7;
}

/* COURSE CARDS - Institute Style */
.section-padding {
    padding: 80px 0;
}

/* COURSE GRID - 4 COLUMNS */
.course-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .course-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .course-grid {
        grid-template-columns: 1fr;
    }
}

.course-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary);
    color: white;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
}

.course-info {
    padding: 20px;
}

.course-info h3 {
    font-size: 1.1rem;
    /* Smaller title */
    margin-bottom: 8px;
    color: var(--primary);
    font-weight: 800;
}

/* SINGLE COURSE MODERN UI */
.single-course-hero {
    background: var(--grad-primary);
    padding: 80px 0;
    color: white;
    text-align: center;
}

.course-meta-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 5px;
    display: inline-block;
}

/* ENHANCED SINGLE COURSE UI */
.curriculum-accordion {
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #eee;
}

.accordion-item {
    border-bottom: 1px solid #eee;
}

.accordion-header {
    background: white;
    padding: 22px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
    user-select: none;
}

.accordion-header:hover {
    background: #fcfcfc;
}

.accordion-header h4 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 15px;
}

.accordion-header .toggle-icon {
    width: 30px;
    height: 30px;
    background: var(--bg-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.4s;
    font-size: 1.2rem;
    color: var(--primary);
}

.accordion-item.active .toggle-icon {
    transform: rotate(180deg);
    background: var(--primary);
    color: white;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: #fafafa;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    transition: max-height 0.6s ease-in;
}

.content-inner {
    padding: 30px;
}

.curriculum-list {
    list-style: none;
    padding: 0;
}

.curriculum-list li {
    padding: 12px 0;
    border-bottom: 1px dashed #ddd;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--text-light);
}

.curriculum-list li:last-child {
    border-bottom: none;
}

.curriculum-list li::before {
    content: "\e5ca";
    /* Material icon check */
    font-family: "dashicons";
    color: var(--accent);
    font-size: 18px;
}

/* SIDEBAR CARD */
.course-sidebar {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-main);
    position: sticky;
    top: 120px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.feature-list li {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

.feature-list li strong {
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .module-box ul {
        grid-template-columns: 1fr;
    }

    .module-box {
        padding: 30px;
    }
}

.course-meta-data {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 15px 0;
    padding: 10px 0;
    border-top: 1px solid #f0f0f0;
}

/* BUTTONS */
.btn-red {
    background: var(--secondary);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    /* Rounded Pills */
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

.btn-red:hover {
    background: #e64a19;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.4);
}

/* STICKY ACTION SIDEBAR */
.sticky-action-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sticky-item {
    color: white;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 4px 0 0 4px;
    transition: 0.3s;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.1);
}

.sticky-item:hover {
    width: 55px;
    padding-right: 10px;
}

.sticky-item i {
    font-size: 24px;
    width: auto;
    height: auto;
}

@media (max-width: 768px) {
    .sticky-action-sidebar {
        bottom: 20px;
        top: auto;
        right: 20px;
        transform: none;
        flex-direction: column;
        /* Keep it vertical but move to bottom right */
        gap: 12px;
    }

    .sticky-item {
        border-radius: 50% !important;
        width: 50px !important;
        height: 50px !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .sticky-item:hover {
        width: 50px;
        padding-right: 0;
    }
}

/* TESTIMONIAL CAROUSEL */
.testimonial-carousel {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.testimonial-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease-in-out;
}

.testimonial-item {
    min-width: calc(33.333% - 20px);
    /* 3 items visible on desktop */
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .testimonial-item {
        min-width: calc(50% - 15px);
    }
}

@media (max-width: 600px) {
    .testimonial-item {
        min-width: 100%;
    }
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    background: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.institute-footer {
    background: #111;
    color: white;
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    border-left: 4px solid var(--secondary);
    padding-left: 15px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 10px;
}

/* EXPERTISE GRID */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

@media (max-width: 992px) {
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .expertise-grid {
        grid-template-columns: 1fr;
    }
}

.expertise-card {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 0;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #1a1a1a;
    background: white;
    overflow: hidden;
    height: 100%;
}

.expertise-icon {
    width: 70px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: 0.3s;
}

.expertise-card:hover .expertise-icon {
    background: #111;
}

.expertise-icon i {
    font-size: 24px;
    color: white !important;
}

.expertise-info {
    padding: 15px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.expertise-info h4 {
    margin: 0 0 3px;
    font-size: 1rem;
    font-weight: 800;
    color: #1a1a1a;
}

.expertise-info p {
    margin: 0;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.3;
}

.expertise-card:hover {
    transform: translate(-3px, -3px);
}

/* Color specific solid shadows */
.card-teal {
    box-shadow: 6px 6px 0px #10b981;
}

.card-rose {
    box-shadow: 6px 6px 0px #f43f5e;
}

.card-cyan {
    box-shadow: 6px 6px 0px #0891b2;
}

.card-amber {
    box-shadow: 6px 6px 0px #d97706;
}

.card-indigo {
    box-shadow: 6px 6px 0px #4f46e5;
}

.card-pink {
    box-shadow: 6px 6px 0px #db2777;
}

.card-blue {
    box-shadow: 6px 6px 0px #2563eb;
}

.card-sky {
    box-shadow: 6px 6px 0px #0284c7;
}

.card-violet {
    box-shadow: 6px 6px 0px #7c3aed;
}

.card-emerald {
    box-shadow: 6px 6px 0px #059669;
}

.expertise-card:hover.card-teal {
    box-shadow: 9px 9px 0px #10b981;
}

.expertise-card:hover.card-rose {
    box-shadow: 9px 9px 0px #f43f5e;
}

.expertise-card:hover.card-cyan {
    box-shadow: 9px 9px 0px #0891b2;
}

.expertise-card:hover.card-amber {
    box-shadow: 9px 9px 0px #d97706;
}

.expertise-card:hover.card-indigo {
    box-shadow: 9px 9px 0px #4f46e5;
}

.expertise-card:hover.card-pink {
    box-shadow: 9px 9px 0px #db2777;
}

.expertise-card:hover.card-blue {
    box-shadow: 9px 9px 0px #2563eb;
}

.expertise-card:hover.card-sky {
    box-shadow: 9px 9px 0px #0284c7;
}

.expertise-card:hover.card-violet {
    box-shadow: 9px 9px 0px #7c3aed;
}

.expertise-card:hover.card-emerald {
    box-shadow: 9px 9px 0px #059669;
}

/* Feature Strip Styling */
.feature-card-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    border-radius: 12px;
    background: white;
    border: 2px solid #1a1a1a;
    transition: 0.3s;
    box-shadow: 5px 5px 0px #1a1a1a;
}

.feature-card-item:hover {
    box-shadow: 7px 7px 0px #111;
    transform: translate(-2px, -2px);
}

.feature-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.feature-card-item h5 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

.feature-card-item p {
    margin: 0;
    font-size: 0.75rem;
    color: #64748b;
}

.card-teal {
    background: #f0fdf4;
    border: 1px solid #dcfce7;
}

.card-teal .expertise-icon {
    background: #dcfce7;
}

.card-teal i {
    color: #10b981;
}

.card-sky {
    background: #f0f9ff;
    border: 1px solid #e0f2fe;
}

.card-sky .expertise-icon {
    background: #e0f2fe;
}

.card-sky i {
    color: #0284c7;
}

.card-violet {
    background: #f5f3ff;
    border: 1px solid #ede9fe;
}

.card-violet .expertise-icon {
    background: #ede9fe;
}

.card-violet i {
    color: #7c3aed;
}

.card-emerald {
    background: #ecfdf5;
    border: 1px solid #d1fae5;
}

.card-emerald .expertise-icon {
    background: #d1fae5;
}

.card-emerald i {
    color: #059669;
}

.card-rose {
    background: #fff1f2;
    border: 1px solid #ffe4e6;
}

.card-rose .expertise-icon {
    background: #ffe4e6;
}

.card-rose i {
    color: #f43f5e;
}

.card-cyan {
    background: #ecfeff;
    border: 1px solid #cffafe;
}

.card-cyan .expertise-icon {
    background: #cffafe;
}

.card-cyan i {
    color: #0891b2;
}

.card-amber {
    background: #fffbeb;
    border: 1px solid #fef3c7;
}

.card-amber .expertise-icon {
    background: #fef3c7;
}

.card-amber i {
    color: #d97706;
}

.card-indigo {
    background: #eef2ff;
    border: 1px solid #e0e7ff;
}

.card-indigo .expertise-icon {
    background: #e0e7ff;
}

.card-indigo i {
    color: #4f46e5;
}

.card-pink {
    background: #fdf2f8;
    border: 1px solid #fce7f3;
}

.card-pink .expertise-icon {
    background: #fce7f3;
}

.card-pink i {
    color: #db2777;
}

.card-blue {
    background: #eff6ff;
    border: 1px solid #dbeafe;
}

.card-blue .expertise-icon {
    background: #dbeafe;
}

.card-blue i {
    color: #2563eb;
}

.card-sky {
    background: #f0f9ff;
    border: 1px solid #e0f2fe;
}

.card-sky .expertise-icon {
    background: #e0f2fe;
}

.card-sky i {
    color: #0284c7;
}



/* AFFILIATIONS GRID */
.affiliations-section {
    padding: 80px 0;
    background: white;
}

.aff-title-wrap {
    margin-bottom: 50px;
}

.aff-title-wrap h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #1a237e;
    text-transform: uppercase;
    display: inline-block;
    border-bottom: 3px solid var(--secondary);
    padding-bottom: 10px;
}

.aff-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    align-items: center;
}

.aff-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: 0.3s;
}

.aff-item img {
    max-width: 140px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: 0.3s;
}

.aff-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@media (max-width: 992px) {
    .aff-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .aff-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}



/* Premium Card & Information Hierarchy */
.premium-card {
    background: var(--white);
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--shadow-main);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.premium-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.premium-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--grad-indigo);
    opacity: 0;
    transition: var(--transition);
}

.premium-card:hover::after {
    opacity: 1;
}

.section-padding {
    padding: 100px 0;
}

.text-gradient {
    background: var(--grad-indigo);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* Final Premium Polish */
img {
    max-width: 100%;
    height: auto;
    transition: var(--transition);
}

.img-hover:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-hover);
}

.site-header {
    background: hsla(0, 0%, 100%, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.brand-logo h1 {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    background: var(--grad-indigo);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav ul li a {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.main-nav ul li a:hover {
    color: var(--primary);
}

.footer-col h4 {
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary);
}

/* --- MOBILE RESPONSIVENESS & MENU --- */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
    z-index: 1001;
    transition: 0.3s;
}

@media (max-width: 1024px) {
    .navbar-container {
        padding: 10px 20px;
    }

    .main-nav {
        display: none;
        /* Hidden by default on mobile */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #eee;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav>ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }

    .main-nav ul li {
        width: 100%;
        border-bottom: 1px solid #f8fafc;
    }

    .main-nav ul li a {
        display: block;
        padding: 15px 0;
        width: 100%;
    }

    .menu-toggle {
        display: block;
    }

    .header-cta {
        display: none;
        /* Hide button on small screens to save space */
    }

    /* Handle submenus on mobile */
    .has-flyout>.flyout-menu {
        position: static;
        display: none !important;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        min-width: 100%;
        background: #f8fafc;
    }

    .has-flyout.active>.flyout-menu {
        display: block !important;
    }

    .flyout-item>a {
        padding: 12px 0 !important;
    }

    .sub-flyout {
        position: static;
        display: none !important;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        background: #f1f5f9;
        min-width: 100%;
    }

    .flyout-item.active>.sub-flyout {
        display: block !important;
    }

    /* Hero section font sizing */
    .slide-content h2 {
        font-size: 2.2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .brand-logo h1 {
        font-size: 1.2rem;
    }

    .brand-logo img {
        height: 40px !important;
    }

    .section-padding {
        padding: 60px 0;
    }

    .news-ticker {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .slide-content {
        padding: 0 20px;
    }

    .slide-content h2 {
        font-size: 1.8rem;
    }

    .course-info h3 {
        font-size: 1rem;
    }
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* --- HOME PAGE SPECIFIC RESPONSIVE LAYOUTS --- */

.about-section-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.about-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.inquiry-grid {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.inquiry-text {
    flex: 1;
    min-width: 320px;
}

.inquiry-form-container {
    flex: 0 0 450px;
    min-width: 320px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

@media (max-width: 992px) {
    .about-section-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-section-content {
        text-align: center;
    }

    .about-features-grid {
        justify-items: center;
    }

    .inquiry-grid {
        flex-direction: column;
        text-align: center;
    }

    .inquiry-form-container {
        flex: 1;
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 600px) {
    .about-features-grid {
        grid-template-columns: 1fr;
    }

    .inquiry-text h2 {
        font-size: 2.5rem !important;
    }
}

/* --- COURSE PAGE SPECIFIC RESPONSIVE LAYOUTS --- */

.course-layout-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.course-audience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.job-outcomes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.course-sidebar-container {
    position: sticky;
    top: 100px;
}

@media (max-width: 1024px) {
    .course-layout-grid {
        grid-template-columns: 1fr;
    }

    .course-sidebar-container {
        position: static;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .course-audience-grid {
        grid-template-columns: 1fr;
    }

    .single-course-hero h1 {
        font-size: 2.2rem !important;
    }

    .single-course-hero {
        padding: 60px 0 !important;
    }
}

/* --- ABOUT PAGE SPECIFIC RESPONSIVE LAYOUTS --- */

.about-hero-title {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.about-hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
}

.about-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

@media (max-width: 992px) {
    .about-info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .about-hero-title {
        font-size: 2.2rem;
    }

    .about-hero-subtitle {
        font-size: 1rem;
    }

    .about-hero {
        padding: 60px 0 !important;
    }
}

/* --- CONTACT PAGE SPECIFIC RESPONSIVE LAYOUTS --- */

.contact-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-hero-title {
        font-size: 2.2rem;
    }

    .contact-hero {
        padding: 60px 0 !important;
    }

    .contact-section {
        padding: 40px 0 !important;
    }
}

/* --- COURSES ARCHIVE PAGE SPECIFIC RESPONSIVE LAYOUTS --- */

.courses-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
}

@media (max-width: 768px) {
    .courses-hero-title {
        font-size: 2.2rem;
    }

    .category-header {
        padding: 60px 0 !important;
    }

    #category-scroll-container {
        padding: 10px 20px !important;
    }
}

/* --- GLOBAL RESPONSIVE UTILITIES --- */

.stack-on-mobile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 769px) {
    .stack-on-mobile.cols-2 {
        grid-template-columns: 1fr 1fr;
    }

    .stack-on-mobile.cols-1-2 {
        grid-template-columns: 1fr 2fr;
    }

    .stack-on-mobile.cols-2-1 {
        grid-template-columns: 2fr 1fr;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0 !important;
    }

    h1 {
        font-size: 2.5rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }
}

/* --- HOME PAGE SPECIFIC RESPONSIVE LAYOUTS --- */

.home-hero-title {
    font-weight: 800;
}

.home-hero-subtitle {
    font-size: 1.25rem;
    margin-top: 20px;
    opacity: 0.9;
    max-width: 600px;
}

.feature-strip {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.home-section-title {
    font-size: 2.8rem;
    margin-top: 10px;
    font-weight: 800;
}

.about-image-wrapper {
    position: relative;
    z-index: 1;
}

.about-image-wrapper img {
    width: 100%;
    border-radius: 20px;
    box-shadow: -20px 20px 0 var(--primary);
}

.about-experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--secondary);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
}

.about-experience-badge h2 {
    margin: 0;
    font-size: 2.5rem;
}

.about-experience-badge p {
    margin: 0;
    font-size: 0.9rem;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.google-review-header {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px 35px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #eee;
    flex-wrap: wrap;
    gap: 20px;
}

@media (max-width: 992px) {
    .about-image-wrapper img {
        box-shadow: -10px 10px 0 var(--primary);
    }

    .about-experience-badge {
        position: relative;
        bottom: 0;
        right: 0;
        margin-top: 20px;
        transform: none;
        max-width: 200px;
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    .slide-content .home-hero-title {
        font-size: 2.2rem !important;
    }

    .slide-content .home-hero-subtitle {
        font-size: 1rem !important;
    }

    .feature-strip {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .feature-card-item {
        width: 100%;
        max-width: 350px;
    }

    .home-section-title {
        font-size: 1.8rem !important;
    }

    .about-section-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-experience-badge {
        margin: 20px auto 0;
    }

    .google-review-header {
        justify-content: center;
        text-align: center;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 30px !important;
    }

    .hero-actions a {
        margin-left: 0 !important;
        text-align: center;
        width: 100%;
    }
}