/* 
   ITL Institute - Premium Redesign 
   Theme: Professional Blue & White
*/

:root {
    /* Brand Colors */
    --color-primary: #003399;
    /* Deep Professional Blue */
    --color-primary-light: #2563eb;
    /* Brighter Blue */
    --color-accent: #0056b3;
    /* Secondary Blue for buttons */
    --color-accent-hover: #003d80;

    /* System Colors */
    --color-white: #ffffff;
    --color-slate-50: #f8fafc;
    --color-slate-100: #f1f5f9;
    --color-slate-800: #1e293b;

    /* Text Colors */
    --color-text-main: #334155;
    /* Slate 700 */
    --color-text-heading: #0f172a;
    /* Slate 900 */
    --color-text-muted: #64748b;
    /* Slate 500 */
    --color-text-light: #f8fafc;
    /* Near White */

    /* Backgrounds */
    --color-bg: #ffffff;
    --color-card-bg: rgba(255, 255, 255, 0.95);
    --color-border: rgba(0, 0, 0, 0.08);

    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #003399 0%, #2563eb 100%);
    /* Blue Gradient */
    --gradient-hero: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    /* Very Light Blue to White */

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Spacing & Effects */
    --container-width: 1200px;
    --header-height: 80px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-blue: 0 4px 14px rgba(37, 99, 235, 0.3);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* Critical for mobile */
    width: 100%;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-text-heading);
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Gallery Styles --- */
.gallery-marquee-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 1rem 0;
    white-space: nowrap;
}

.gallery-marquee-wrapper::before,
.gallery-marquee-wrapper::after {
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    content: "";
    z-index: 2;
}

.gallery-marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #f8fafc 0%, transparent 100%);
}

.gallery-marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #f8fafc 0%, transparent 100%);
}

.gallery-marquee-content {
    display: inline-flex;
    animation: scrollGalleryMarquee 40s linear infinite;
    gap: 1.5rem;
}

.gallery-marquee-content:hover {
    animation-play-state: paused;
}

@keyframes scrollGalleryMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 0.75rem));
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    background: white;
    height: 200px;
}

.marquee-gallery-item {
    width: 250px;
    flex-shrink: 0;
    white-space: normal;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 153, 0.6);
    /* Brand Blue Overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
}

/* --- Utility Classes --- */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
}

.section-padding {
    padding: 6rem 0;
}

.gradient-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-muted {
    color: var(--color-text-muted);
}

.mt-2 {
    margin-top: 1rem;
}

/* --- Components --- */

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
    box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--color-accent-hover);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

.btn-link {
    color: var(--color-primary);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-link:hover {
    gap: 0.8rem;
    /* Animate arrow */
}

/* Form Styling for apply.php */
.form-container {
    background-color: var(--color-card-bg);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--color-text-heading);
    font-size: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-main);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    outline: none;
}

textarea.form-control {
    resize: vertical;
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-submit:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
}

/* Responsive adjustments for form rows */
@media (max-width: 768px) {
    .row {
        flex-direction: column;
        gap: 0 !important;
        /* Remove gap for stacked items */
    }

    .row .form-group {
        min-width: unset !important;
        /* Remove min-width constraint */
        width: 100%;
    }
}


/* Glass/White Card */
.glass-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-slate-100);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}


/* --- Top Header (New) --- */
.top-header {
    background: white;
    padding: 1rem 0;
    border-bottom: 3px solid var(--color-primary);
    /* Divider */
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.header-logo {
    flex: 0 0 auto;
    width: 120px;
    /* Base size */
}

.header-banner {
    flex: 1;
    /* Take remaining space */
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-banner img {
    max-height: 100px;
    /* Limit height */
    width: auto;
    object-fit: contain;
}

/* --- Navigation (Updated) --- */
.navbar {
    background: var(--color-primary);
    width: 100%;
    height: 60px;
    /* Smaller height now */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    /* Make it sticky below header */
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    display: flex;
    justify-content: space-between;
    /* Space out Logo/Links/Button */
    align-items: center;
    height: 100%;
    padding: 0 1rem;
    /* Add padding for breathing room */
}


.nav-links {
    display: flex;
    gap: 0.5rem;
    /* Reduced from 1.5rem to fit fixed widths */
}


.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center Content */
    gap: 8px;
    padding: 0.7rem 0.5rem !important;
    /* Balanced padding */
    min-width: 125px;
    /* Larger Uniform Width to fit longer text comfortably */
    text-align: center;
    border-radius: 50px;
    /* Full Round */
    background: rgba(255, 255, 255, 0.05);
    /* Very subtle separator bg */
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle border */
    transition: all 0.3s ease;
}

/* Hide icons on desktop if preferred, but user didn't ask to hide them. 
   Keeping them visible adds to the design. */
.nav-links a i {
    font-size: 0.9rem;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    text-decoration: none;
}

.nav-links a.active {
    background: white !important;
    /* Solid White for active */
    color: var(--color-primary) !important;
    /* Blue Text */
    border-color: white !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4), 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Glow */
    font-weight: 700;
    transform: scale(1.05);
    /* Slight pop */
    border-bottom: 1px solid white;
    /* Override old border */
    border-radius: 50px;
}



/* Enquire Button Adjustment (Maybe hide in nav and keep in banner?) */
/* User didn't specify, but I'll keep it to the right if possible, or hide it to center content */
/* Enquire Button Adjustment */
.navbar .btn-primary {
    position: static;
    /* Let flexbox handle it */
    transform: none;
    padding: 0.4rem 1rem;
    /* Smaller padding */
    font-size: 0.85rem;
    /* Smaller font */
    white-space: nowrap;
    /* Prevent wrapping */
    margin-left: 1rem;
    /* Add margin to separate from links */
}


/* --- Hero Section Adjustment --- */
.hero {
    min-height: calc(100vh - 160px);
    /* Adjust for header height */
    padding-top: 2rem;
    /* Reduced top padding */
}

.hero::after {
    top: -5%;
    /* Shift bg blob up slightly */
}


/* --- Mobile Responsiveness Updates --- */
@media (max-width: 768px) {

    /* Top Header Layout: Update for Mobile Visibility */
    .top-header {
        padding: 5px 0 !important;
        background: white !important;
        display: block !important;
        min-height: 80px;
        /* Ensure space allocated */
    }

    .header-flex {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .header-logo {
        display: none !important;
    }

    .header-banner {
        display: flex !important;
        width: 100% !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 5px !important;
        margin: 0 !important;
    }

    .header-banner img {
        display: block !important;
        max-width: 95% !important;
        max-height: 100px !important;
        /* Force bigger size */
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
    }

    /* Navbar: Sticky Top Hamburger Menu */
    .navbar {
        position: sticky;
        top: 0;
        bottom: auto;
        /* Reset bottom fixed */
        height: 60px;
        padding: 0;
        background: var(--color-primary);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 1rem;
    }

    .menu-btn {
        display: block !important;
        /* Show Hamburger */
        font-size: 1.5rem;
        color: white;
        background: none;
        border: none;
        cursor: pointer;
    }

    .navbar .btn-primary {
        display: none;
        /* Hide PC button, use floating widget */
    }

    /* Mobile Dropdown Menu */
    .nav-links {
        position: absolute;
        top: 60px;
        /* Below navbar */
        left: 0;
        width: 100%;
        background: rgba(0, 51, 153, 0.95);
        /* Glassy Blue */
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        transform: translateY(-150%);
        /* Hidden by default */
        transition: transform 0.4s ease;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
        /* Slide down */
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.2rem;
        justify-content: center;
        padding: 0.5rem 0;
        display: flex;
        flex-direction: row;
        /* Icon left, Text right */
        gap: 10px;
    }

    .nav-links a i {
        font-size: 1.2rem;
        margin: 0;
    }

    /* Reset Body Padding */
    body {
        padding-bottom: 0 !important;
    }
}


@keyframes pulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-subtitle {
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
    background: #e0f2fe;
    width: fit-content;
    padding: 0.4rem 1rem;
    border-radius: 50px;
}

.hero p {
    color: var(--color-text-main);
    font-size: 1.15rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-actions .btn-outline {
    border-color: var(--color-text-heading);
    color: var(--color-text-heading);
}

.hero-actions .btn-outline:hover {
    background: var(--color-text-heading);
    color: white;
    border-color: var(--color-text-heading);
}


/* --- Animations --- */
[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Stats Section --- */
.stats-section {
    position: relative;
    z-index: 10;
    margin-top: -60px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
    background: white;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-slate-100);
    border-radius: 16px;
    padding: 3rem 2rem;
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.stat-item p {
    color: var(--color-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* --- Section Headers --- */
.section-header {
    margin-bottom: 3rem;
    max-width: 600px;
}

.section-header.center {
    margin: 0 auto 4rem auto;
    text-align: center;
}

.sub-heading {
    display: block;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* --- Registration Button --- */
.registration-section {
    background: white;
    padding: 1.5rem 0;
    text-align: center;
    position: relative;
}

.btn-registration {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(180deg, #66bb6a 0%, #43a047 100%);
    color: white;
    font-size: 1.5rem;
    font-weight: 500;
    padding: 0.6rem 3rem;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
    font-family: var(--font-heading);
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: capitalize;
}

.btn-registration:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(67, 160, 71, 0.3);
}

.btn-registration i {
    font-size: 1.4rem;
    border: 2px solid white;
    border-radius: 50%;
    padding: 2px;
}

/* --- Main Content Grid --- */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.text-orange {
    color: #ff6b00;
    /* Match screenshot orange */
}

.text-dark {
    color: #1e293b;
}

.director-text {
    line-height: 1.7;
    color: #475569;
    font-size: 1.05rem;
    text-align: justify;
}

/* --- Sidebar / Latest Update --- */
.sidebar-column {
    background: white;
}

.update-box {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.update-item p {
    font-size: 0.95rem;
    color: #334155;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.update-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563eb;
    text-decoration: underline;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.badge-new {
    background: red;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    animation: blink 1s infinite;
}

.click-here {
    display: block;
    color: #2563eb;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

/* Mobile Adjustments for Grid */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .btn-registration {
        width: 90%;
        justify-content: center;
    }

    .section-title {
        font-size: 1.5rem;
        text-align: center;
    }

    .director-text {
        text-align: left;
    }

    /* Mobile Adjustments */
    .admission-title-box h2 {
        font-size: 1.5rem;
    }

    .admission-logos {
        flex-direction: column;
    }
}

/* --- Centered About Us Section --- */
.about-centered {
    background: rgba(255, 255, 255, 0.85);
    /* Slightly transparent */
    backdrop-filter: blur(10px);
    text-align: center;
    border-radius: 16px;
    margin: 2rem auto;
    width: 95%;
    /* Containerize slightly */
    max-width: var(--container-width);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.about-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    perspective: 500px;
    /* For 3D tilt */
}

.btn-3d-blue {
    background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0.5rem 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 0 #1e40af, 0 10px 10px rgba(0, 0, 0, 0.2);
    transform: rotateX(10deg);
    /* Tilt effect */
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    cursor: default;
}

.mouse-icon {
    position: absolute;
    bottom: -15px;
    right: -10px;
    font-size: 1.5rem;
    color: black;
    text-shadow: 2px 2px 0 white;
    /* Outline effect */
    transform: rotate(-20deg);
}

/* --- Admission Banner --- */
.admission-banner {
    background: linear-gradient(135deg, #a5b4fc 0%, #c4b5fd 100%);
    /* Light purple-blue gradient */
    /* Screenshot is actually more blue-sky gradient, let's adjust */
    background: linear-gradient(to right, #93c5fd, #bfdbfe, #93c5fd);
    padding: 3rem 0;
    position: relative;
    margin: 2rem 0;
}

.admission-title-box {
    border: 3px dashed #1e40af;
    /* Dark Blue Dashed */
    background: rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    border-radius: 8px;
}

.admission-title-box h2 {
    color: #b45309;
    /* Brownish Orange text like screenshot */
    font-size: 2rem;
    margin: 0;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.admission-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.logo-item {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 150px;
}

.logo-circle {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 50%;
    /* Just in case */
    background: white;
    padding: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.logo-rect {
    width: auto;
    max-width: 200px;
    height: 100px;
    /* Fixed height for consistency */
    object-fit: contain;
    background: white;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Removed placeholder styles as assets are now available */

/* --- Brand Colors Enforcement --- */
:root {
    --color-primary: #003399;
    /* Brand Blue */
    --color-primary-light: #2563eb;
    --color-glass-bg: rgba(255, 255, 255, 0.75);
    /* Frosty Glass */
    --color-glass-border: rgba(255, 255, 255, 0.6);
    --shadow-glass: 0 8px 32px 0 rgba(0, 51, 153, 0.15);
    /* Blue-tinted shadow */
}

/* --- Global Glass Background --- */
body {
    background: linear-gradient(135deg, #e0f2fe 0%, #bfdbfe 50%, #dbeafe 100%);
    /* Light Blue Gradient */
    background-attachment: fixed;
    color: #1e293b;
}

/* --- Universal Glass Classes --- */
.registration-section,
.about-centered,
.admission-banner,
.main-column,
.sidebar-column,
.content-grid {
    background: var(--color-glass-bg) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-glass-border);
    box-shadow: var(--shadow-glass);
    border-radius: 16px;
}

/* --- Specific Section Overrides --- */

/* Registration Section: Remove solid white */
.registration-section {
    width: 95%;
    max-width: var(--container-width);
    margin: 1rem auto;
    padding: 2rem 0;
}

/* Admission Banner: Brand Blue Gradient overlaying glass? 
   No, user wants it Blue. But "Sabko glass effect" implies consistency.
   Let's make it a Blue Glass or just keep the Gradient inside a Glass container.
   The instructions said: "Admission Open" banner with Blue Gradient background.
   Let's keep the banner ITSELF blue gradient, but maybe the container matches.
   Actually, let's make the banner stand out as a "Blue Glass" card.
*/
.admission-banner {
    background: linear-gradient(135deg, rgba(0, 51, 153, 0.1), rgba(37, 99, 235, 0.1)) !important;
    /* Very subtle blue tint */
    margin: 2rem auto;
    width: 95%;
    max-width: var(--container-width);
    position: relative;
    overflow: hidden;
}

/* Inner Box for Admission Title */
.admission-title-box {
    background: linear-gradient(90deg, #003399 0%, #2563eb 100%);
    /* Brand Blue Gradient */
    border: 2px dashed rgba(255, 255, 255, 0.5);
    /* White Dash */
    color: white;
    /* White text on Blue */
    padding: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 51, 153, 0.3);
}

.admission-title-box h2 {
    color: white !important;
    /* Override brown */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

/* Main Content & Sidebar Spacing */
.content-grid {
    background: transparent !important;
    /* Grid itself transparent */
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    gap: 2rem;
    padding: 0;
}

.main-column,
.sidebar-column {
    padding: 2rem;
}

/* Director Text Justify */
.director-text {
    color: #334155;
}

/* Latest Update Box inside Sidebar */
.update-box {
    background: rgba(255, 255, 255, 0.5);
    /* Nested Glass */
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.section-title {
    color: var(--color-primary);
    /* Blue Headings */
}

.text-orange {
    color: #ea580c !important;
    /* Keep Orange where specifically requested (Director/About) */
}

/* Footer remains generic or can be glass too? 
   "ISNE NICHHE FOOTER RAHNE DO" -> Leave it. 
   Currently it's solid blue. That fits "Brand Blue". 
*/

/* --- Page Specific Styles --- */
.page-banner {
    background: var(--color-primary);
    /* Brand Blue */
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-bottom: 3rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-banner h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    color: white !important;
    /* Force White Text */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 2rem;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 100%;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Mission & Vision Styles --- */
.mv-box {
    margin-top: 2rem;
}

.mv-header {
    background: #004d99;
    /* Stronger Blue as per screenshot */
    color: white;
    text-align: center;
    padding: 0.8rem 0;
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mv-text {
    color: #ff0000;
    /* Bright Red as per screenshot */
    font-weight: 700;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 90%;
    margin: 0 auto 3rem auto;
    /* Bottom spacing */
}

/* White Card Override for About Us Page */
.white-card {
    background: white !important;
    backdrop-filter: none !important;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.about-text-centered {
    max-width: 900px;
    margin: 0 auto;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.7;
}

.text-center {
    text-align: center;
}

/* --- Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 3rem 2rem;
    text-align: left;
    background: white;
}

.feature-card .icon-box {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* --- Courses Section --- */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.course-card {
    position: relative;
    overflow: hidden;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0;
    border: none;
    box-shadow: var(--shadow-md);
    background: white;
}

.course-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    transition: transform 0.5s ease;
    background-size: cover;
    background-position: center;
}

.overlay-electrician {
    background: linear-gradient(to top, #0f172a 20%, transparent),
        linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.overlay-fitter {
    background: linear-gradient(to top, #0f172a 20%, transparent),
        linear-gradient(135deg, #475569 0%, #94a3b8 100%);
}

.course-card:hover .course-bg {
    transform: scale(1.1);
}

.course-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 100%);
    width: 100%;
}

.course-content h3 {
    color: white;
}

.course-content p {
    color: #e2e8f0;
}

.course-content .icon-box {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-bottom: 1rem;
    backdrop-filter: blur(5px);
}

.course-tags {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.course-tags li {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: white;
    backdrop-filter: blur(5px);
}

.course-content .btn-link {
    color: #93c5fd;
    /* Light Blue */
}

.course-content .btn-link:hover {
    color: white;
}

/* --- Footer --- */
.footer {
    background: linear-gradient(135deg, #e8f0fe 0%, #dbeafe 50%, #eff6ff 100%);
    border-top: 3px solid #bfdbfe;
    padding-top: 5rem;
    color: #1e293b;
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    font-size: 1.1rem;
    color: #003399;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: #475569;
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: #003399;
    padding-left: 5px;
}

.contact-info p {
    color: #475569;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.newsletter-form {
    display: flex;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid #bfdbfe;
}

.newsletter-form input {
    background: transparent;
    border: none;
    color: #1e293b;
    padding: 0.5rem;
    flex: 1;
    outline: none;
}

.newsletter-form input::placeholder {
    color: #94a3b8;
}

.newsletter-form button {
    background: #003399;
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
}

.footer-bottom {
    border-top: 1px solid #bfdbfe;
    padding: 2rem 0;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* --- Forms (Contact Page) --- */
/* These styles override the default if inline styles are removed */
.contact-form input,
.contact-form textarea {
    width: 100%;
    background: var(--color-slate-50);
    border: 1px solid #cbd5e1;
    padding: 1rem;
    border-radius: 8px;
    color: var(--color-text-main);
    margin-bottom: 1rem;
    outline: none;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--color-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* --- Floating Enquiry Widget --- */
.floating-enquiry-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    animation: floatIn 0.5s ease-out;
}

.enquiry-bubble {
    background: #e0f2fe;
    /* Light Blue */
    color: var(--color-primary);
    padding: 1rem 1.5rem;
    border-radius: 20px 20px 0 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    max-width: 200px;
    animation: bubblePop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.5s both;
    cursor: pointer;
    border: 2px solid white;
}

.enquiry-bubble:hover {
    background: white;
    transform: scale(1.05);
}

.enquiry-bubble::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -10px;
    width: 0;
    height: 0;
    border-left: 15px solid #e0f2fe;
    border-top: 15px solid transparent;
    border-bottom: 5px solid transparent;
    transform: rotate(0deg);
}

.enquiry-avatar {
    width: 70px;
    height: 70px;
    /* Using a placeholder gradient or icon if image not available, but user wants 'like image' */
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.enquiry-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.enquiry-avatar .status-dot {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 15px;
    height: 15px;
    background: #22c55e;
    /* Green */
    border-radius: 50%;
    border: 2px solid white;
}

.online-lbl {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #22c55e;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bubblePop {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* --- Mobile Responsiveness --- */
@media screen and (max-width: 768px) {
    .header-banner {
        display: none;
        /* Hide banner on mobile to save space */
    }

    .header-logo img {
        height: 60px;
        /* Smaller logo */
    }

    .navbar .btn-primary {
        display: none;
        /* Hide 'Enquire Now' button in navbar on mobile, replaced by floating widget */
    }

    .floating-enquiry-widget {
        bottom: 1rem;
        right: 1rem;
    }

    .enquiry-bubble {
        font-size: 0.85rem;
        padding: 0.8rem 1.2rem;
    }

    .enquiry-avatar {
        width: 60px;
        height: 60px;
    }

    .about-grid,
    .footer-grid,
    .courses-grid,
    .gallery-grid,
    .partners-grid {
        grid-template-columns: 1fr;
        /* Stack everything on mobile */
    }

    .section-header h2 {
        font-size: 2rem;
    }

    /* --- Placement Page Specific Styles --- */
    .placement-header-blue {
        background-color: #2563eb;
        color: white;
        padding: 4rem 1rem;
        text-align: center;
    }

    .placement-header-blue h1 {
        font-size: 2.2rem;
        font-weight: 700;
        /* text-transform: uppercase; Removed for Title Case */
        letter-spacing: 0.5px;
        margin: 0;
        text-align: center;
    }

    .placement-intro-text {
        background: rgba(255, 255, 255, 0.9);
        padding: 2rem;
        margin-top: 2rem;
        margin-bottom: 2rem;
        color: #333;
        font-weight: 500;
        line-height: 1.8;
        font-size: 1.05rem;
        text-align: justify;
        border-radius: 4px;
    }

    .recent-placement-header {
        background: #fdf2f8;
        border: 2px solid #d8b4fe;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        padding: 1rem 3rem;
        display: inline-block;
        margin: 3rem auto;
        position: relative;
        transform: skew(-10deg);
    }

    .recent-placement-header h2 {
        color: #4338ca;
        font-family: 'Outfit', sans-serif;
        font-weight: 800;
        font-size: 2.5rem;
        margin: 0;
        transform: skew(10deg);
        text-shadow: 2px 2px 0px rgba(255, 255, 255, 1);
    }

    /* Slider Adjustments */
    .slider-container {
        width: 100%;
        overflow: hidden;
        position: relative;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .slider-track {
        display: flex;
        transition: transform 0.5s ease-in-out;
        width: 100%;
    }

    .slide {
        min-width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
        text-align: center;
    }

    @media (min-width: 768px) {
        .slide {
            min-width: 20%;
        }
    }

    .slide img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        display: block;
        border: 5px solid white;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        margin-bottom: 1rem;
    }

    .student-details h3 {
        font-size: 0.95rem;
        font-weight: 700;
        text-transform: uppercase;
        text-decoration: underline;
        margin-bottom: 0.3rem;
        color: #333;
    }

    .student-details p {
        font-size: 0.85rem;
        color: #2563eb;
        text-transform: uppercase;
        font-weight: 600;
        margin: 0;
    }

    /* Partners Grid */
    .partners-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
        margin-top: 3rem;
    }

    .partner-card {
        background: white;
        padding: 1.5rem;
        border-radius: 8px;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        transition: transform 0.3s, box-shadow 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        border: 1px solid rgba(0, 0, 0, 0.05);
        height: 120px;
    }

    .partner-card img {
        max-width: 90%;
        max-height: 80px;
        object-fit: contain;
    }

    /* --- Course Interaction Styles (New) --- */
    .course-interaction-area {
        width: 100%;
        margin-top: 2rem;
    }

    .course-selector-wrapper {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
        flex-wrap: wrap;
    }

    .course-btn {
        padding: 0.8rem 2rem;
        border: 2px solid var(--color-primary);
        background: transparent;
        color: var(--color-primary);
        font-weight: 700;
        border-radius: 50px;
        cursor: pointer;
        font-size: 1.1rem;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .course-btn:hover {
        background: rgba(0, 51, 153, 0.1);
        transform: translateY(-2px);
    }

    .course-btn.active {
        background: var(--color-primary);
        color: white;
        box-shadow: 0 4px 15px rgba(0, 51, 153, 0.4);
        transform: scale(1.05);
    }

    .course-detail-card {
        display: none;
        /* Hidden by default */
        background: white;
        border-radius: 12px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        animation: fadeIn 0.5s ease;
    }

    .course-detail-card.active {
        display: block !important;
        width: 100%;
        min-height: 200px;
        /* Show if active */
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .card-header-course {
        background: var(--color-primary);
        color: white;
        padding: 1.5rem 2rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .card-header-course h3 {
        margin: 0;
        font-size: 1.5rem;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .badge-duration {
        background: rgba(255, 255, 255, 0.2);
        padding: 0.4rem 1rem;
        border-radius: 20px;
        font-size: 0.9rem;
        font-weight: 600;
    }

    .card-body-course {
        padding: 2rem;
    }

    .detail-row {
        display: flex;
        margin-bottom: 1.2rem;
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 0.8rem;
    }

    .detail-row:last-child {
        border-bottom: none;
    }

    .detail-row .label {
        width: 150px;
        font-weight: 700;
        color: #555;
        flex-shrink: 0;
    }

    .detail-row .value {
        color: #333;
        font-weight: 500;
    }

    .fee-info {
        margin-top: 1.5rem;
        background: #f0fdf4;
        color: #166534;
        padding: 1rem;
        border-radius: 8px;
        text-align: center;
        font-size: 1.1rem;
        border: 1px solid #bbf7d0;
    }

    /* Mobile adjustments for course card */
    @media (max-width: 600px) {
        .detail-row {
            flex-direction: column;
        }

        .detail-row .label {
            width: 100%;
            margin-bottom: 0.3rem;
            color: var(--color-primary);
        }

        .course-btn {
            padding: 0.6rem 1.2rem;
            font-size: 0.9rem;
        }
    }
}

/* end @media screen and (max-width: 768px) */