/* Global Styles & Variables */
:root {
    --primary-white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --accent-blue: #e0f7fa;
    --accent-cyan: #00bcd4;
    --accent-purple: #e1bee7;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-soft: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --shadow-hover: 0 15px 40px rgba(0, 188, 212, 0.2);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-speed: 0.3s;
    --header-height: 72px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: #ffffff;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    font-size: 16px;
    padding-top: var(--header-height);
    /* Prevent header overlap */
}

/* Scroll Lock for Mobile Menu */
body.no-scroll {
    overflow: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Fluid Typography */
h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.4rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.1rem, 2vw, 1.6rem);
}

p,
li {
    font-size: clamp(0.95rem, 1vw + 0.2rem, 1.1rem);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.mt-sm {
    margin-top: 1rem;
}

.mt-md {
    margin-top: 2rem;
}

.mt-lg {
    margin-top: 3rem;
}

.mb-sm {
    margin-bottom: 1rem;
}

.mb-md {
    margin-bottom: 2rem;
}

.mb-lg {
    margin-bottom: 3rem;
}

.d-flex {
    display: flex;
    align-items: center;
}

.gap-sm {
    gap: 10px;
}

.w-100 {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: linear-gradient(135deg, #00bcd4 0%, #667eea 100%);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
    box-shadow: none;
}

.btn-outline:hover {
    background: white;
    color: #667eea;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: none;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #00bcd4 0%, #667eea 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 188, 212, 0.3);
}

.btn-block {
    width: 100%;
}

.cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    color: var(--text-dark);
    text-decoration: none;
}

.logo img {
    height: 48px;
    width: auto;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    /* Aligns text to the left */
    line-height: 1;
}

.brand-name {
    font-size: 1.6rem;
    /* Increased size */
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    white-space: nowrap;
}

.brand-tagline {
    font-size: 0.56rem;
    /* Calculated to match width of brand-name (~37 chars vs 13 chars) */
    color: var(--text-light);
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    margin-top: 0px;
    white-space: nowrap;
}

.text-gradient {
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Desktop Navigation */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--accent-cyan);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.btn-desktop {
    display: inline-flex;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-dark);
    padding: 5px;
}

/* Mobile Navigation */
@media (max-width: 960px) {
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        overflow-y: auto;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
        padding: 10px;
        display: block;
    }

    .mobile-menu-btn {
        display: block;
    }

    .btn-desktop {
        display: none;
        /* Hide apply button in header on mobile, should be in menu if needed */
    }

    /* Add apply button to mobile menu via JS or just have it in flow */
    .nav-links .btn-desktop-mobile {
        display: inline-flex;
        margin-top: 1rem;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    padding: 4rem 0;
}

.hero-bg,
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-bg {
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.hero-overlay {
    background: transparent;
    z-index: 1;
}

.hero-container {
    padding: 0 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    z-index: 2;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.hero-image-card {
    flex: 1;
    max-width: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.2);
    display: block;
}

.hero-image-card img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item h3 {
    color: white;
    font-size: 2rem;
    margin: 0;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

/* Shapes */
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.5;
}

.shape-1 {
    background: #f093fb;
    width: 300px;
    height: 300px;
    top: -100px;
    right: -50px;
}

.shape-2 {
    background: #4facfe;
    width: 400px;
    height: 400px;
    bottom: -150px;
    left: -100px;
}

/* Features & Grids */
.features {
    padding: 4rem 0;
    background: #f8fbff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    background: linear-gradient(135deg, #333 0%, #00bcd4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.feature-card {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 188, 212, 0.1);
    color: var(--accent-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
}

.course-logo {
    height: 80px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto 1.5rem;
    display: block;
    border-radius: 8px;
}

/* Image Text Split */
.image-text-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0;
}

.split-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Gallery */
.gallery-section {
    padding: 4rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.image-caption {
    padding: 1.5rem;
}

/* Footer */
footer {
    background: white;
    padding: 4rem 0 0;
    border-top: 1px solid #eee;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-bottom {
    border-top: 1px solid #eee;
    padding: 1.5rem 0;
    text-align: center;
    color: var(--text-light);
}

.footer-contact i {
    color: var(--accent-cyan);
    margin-right: 8px;
    width: 20px;
}

/* Forms */
.form-grid {
    display: grid;
    gap: 15px;
}

.form-input {
    width: 100%;
    padding: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-input:focus {
    border-color: var(--accent-cyan);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

/* Chatbot & WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Accreditations Carousel */
.accreditations-section {
    padding: 4rem 0;
    background: #fdfdfd;
    border-bottom: 1px solid #eee;
    overflow: hidden;
}

.logo-carousel {
    width: 100%;
    overflow-x: hidden;
    /* JS handles scroll */
    position: relative;
    padding: 1.5rem 0;
    white-space: nowrap;
}

.logo-carousel::before,
.logo-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logo-carousel::before {
    left: 0;
    background: linear-gradient(to right, #fdfdfd 20%, transparent 100%);
}

.logo-carousel::after {
    right: 0;
    background: linear-gradient(to left, #fdfdfd 20%, transparent 100%);
}

.logo-track {
    display: inline-flex;
    align-items: center;
    width: max-content;
    gap: 2.5rem;
    /* Animation removed for manual JS control */
    will-change: transform;
}

.logo-slide {
    flex-shrink: 0;
    width: 240px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    /* Full color by default per update */
    transition: all 0.3s ease;
}

.logo-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-cyan);
}

.logo-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none;
}

/* Carousel Controls (Dots) */
.carousel-controls {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.carousel-dots {
    display: flex;
    gap: 12px;
    background: rgba(0, 0, 0, 0.05);
    padding: 10px 20px;
    border-radius: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: #cbd5e0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background-color: var(--accent-cyan);
    transform: scale(1.1);
}

.dot.active {
    background-color: var(--accent-cyan);
    transform: scale(1.2);
    box-shadow: 0 2px 5px rgba(0, 188, 212, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo-track {
        gap: 1.5rem;
    }

    .logo-carousel::before,
    .logo-carousel::after {
        width: 50px;
        /* Smaller fade area on mobile */
    }

    .logo-slide {
        width: 180px;
        height: 240px;
        padding: 10px;
    }
}

/* Responsive Media Queries */

/* Tablet & Mobile Layouts */
@media (max-width: 1024px) {
    .image-text-split {
        gap: 2rem;
        padding: 2rem 0;
    }
}

@media (max-width: 960px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
    }

    .hero-content {
        margin-bottom: 2rem;
        max-width: 100%;
    }

    .cta-group {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .image-text-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .grid-aside-380,
    .contact-top-grid,
    .grid-2 {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .hero-image-card {
        display: none;
        /* Hide hero image on very small screens to save space */
    }

    .container {
        padding: 0 16px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Utilities for Alignment Fixes */
.vh-50 {
    min-height: 50vh;
}

.vh-60 {
    min-height: 60vh;
}

.centered {
    justify-content: center;
    text-align: center;
}

/* Maps */
.map-container {
    height: 300px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

/* Chatbot Widget Styles */
.chatbot-widget {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 999;
}

.chatbot-toggle {
    width: 50px;
    height: 50px;
    background: var(--accent-cyan);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.chat-window {
    display: none;
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    max-width: 90vw;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    flex-direction: column;
    border: 1px solid #eee;
}

.chat-window.active {
    display: flex;
}

.chat-header {
    background: var(--accent-cyan);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-body {
    height: 300px;
    overflow-y: auto;
    padding: 15px;
    background: #f9f9f9;
}

.chat-footer {
    padding: 10px;
    background: white;
    display: flex;
    gap: 10px;
    border-top: 1px solid #eee;
}

.chat-message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 80%;
    font-size: 0.9rem;
}

.chat-message.bot {
    background: #e0f7fa;
    align-self: flex-start;
}

.chat-message.user {
    background: var(--accent-cyan);
    color: white;
    align-self: flex-end;
    margin-left: auto;
}

/* Contact page specific */
.contact-top-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-top: 1rem;
}