﻿/* Font imported in HTML head for performance */

:root {
    --primary-color: #1A365D;
    /* Deep Navy - Academic Authority */
    --primary-light: #2A4B7C;
    /* Lighter Navy */
    --secondary-color: #D4AF37;
    /* Metallic Gold */
    --accent-color: #D4AF37;
    /* Metallic Gold for highlights */

    --bg-body: #e7f5ff;
    /* User Image Blue */
    --bg-white: #FFFFFF;
    --bg-light-gray: #E5E7EB;

    --text-main: #2D3748;
    /* Dark Charcoal */
    --text-light: #475569;
    /* Muted text */
    --text-white: #ffffff;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;

    /* Scaled Spacing - Increased for Breathing Room */
    --space-xs: 0.75rem;
    --space-sm: 1.5rem;
    --space-md: 3rem;
    --space-lg: 6rem;
    --space-xl: 10rem;

    /* Enhanced Shadows */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* Subtle depth */
    --shadow-md: 0 12px 24px rgba(0, 0, 0, 0.08);
    /* Card float */
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    /* Hover lift */

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    /* Smooth elegant easing */
}

img {
    max-width: 100%;
    height: auto;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global Typography & Base */
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    font-family: var(--font-body);
    font-weight: 400;
    /* Regular weight for better readability */
    line-height: 1.8;
    /* Increased line-height for readability */
    color: var(--text-main);
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    /* Old flat color: background-color: var(--bg-body); */
    min-height: 100vh;
}

html {
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    /* Extra bold headings */
    line-height: 1.3;
    letter-spacing: -0.03em;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    /* Softer paragraph text */
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
    /* Default soft radius for media */
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Mobile specific hide */
@media (max-width: 768px) {

    /* Mobile-specific hiding */
    .d-none-mobile {
        display: none !important;
    }

    /* Better mobile typography */
    body {
        font-size: 15px;
        /* Slightly larger for readability */
        line-height: 1.6;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    /* Larger touch targets for buttons */
    .btn {
        padding: 12px 24px;
        min-height: 44px;
        /* iOS recommended minimum */
        font-size: 1rem;
    }

    /* Container padding on mobile */
    .container {
        padding: 0 20px;
        width: 100%;
    }
}

.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 1rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.my-2 {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Modern Card Design */
.modern-card {
    background: #ffffff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Soft, deep shadow */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

/* Enhanced Form Controls */
.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    /* Larger padding for mobile */
    margin-bottom: 1.5rem;
    border: 1px solid #dce0e4;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(15, 42, 68, 0.1);
}

.w-100 {
    width: 100%;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1rem 2.5rem;
    /* Larger comfortable touch target */
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    letter-spacing: 0.5px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}


.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(11, 27, 50, 0.4);
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #B7950B);
    /* Gold to Darker Gold */
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #F1C40F, #D4AF37);
    /* Brighter hover */
}

/* Custom Highlight Button (Book Free Demo) */
.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    font-weight: 800;
    /* Extra Bold */
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(13, 39, 87, 0.25);
    border-color: var(--primary-color);
}

/* Methodology Step - Redesigned */
.methodology-step {
    background: transparent;
    padding: 0 1rem;
    border-radius: 0;
    text-align: center;
    transition: transform 0.3s ease;
    border: none;
}

.methodology-step:hover {
    background: transparent;
    transform: translateY(-5px);
    box-shadow: none;
}

.methodology-step .step-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

/* Alternating Colors: 1 & 3 are Blue (Default), 2 & 4 are Gold */
.methodology-step:nth-child(even) .step-icon {
    background: #D4AF37;
    /* Gold/Mustard */
}

/* Add dotted line connector on desktop if needed, or keep simple for now as per image */

.methodology-step h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 800;
}

.methodology-step p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
    padding: 0 10px;
}

/* Custom Details Button */
/* Custom Details Button */
.btn-details {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.8rem 2rem;
    border: 2px solid var(--primary-light);
    border-radius: 50px;
    color: var(--primary-color);
    background: transparent;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
}

.btn-details:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Accent Button (Bright Orange for CTA) */
.btn-accent {
    background: linear-gradient(135deg, #FF6B35, #E85D2A) !important;
    /* Bright Contrasting Orange */
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(232, 93, 42, 0.4);
    font-weight: 800 !important;
    text-transform: uppercase;
    font-size: 1.1rem !important;
    /* Large Text */
    padding: 1rem 2.5rem !important;
    /* Large Padding */
}

.btn-accent:hover {
    background: linear-gradient(135deg, #E85D2A, #FF6B35) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(232, 93, 42, 0.5);
    color: white !important;
}

/* Custom Pills (User Request) */
.btn-pill-white {
    background-color: #FFFFFF !important;
    color: #CD202C !important;
    /* Brand Red */
    border-radius: 50px !important;
    padding: 6px 20px !important;
    font-weight: 800 !important;
    font-size: 0.9rem !important;
    text-transform: none !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.btn-pill-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background-color: #fff !important;
    color: #CD202C !important;
}

.btn-pill-red {
    background: linear-gradient(135deg, #CD202C, #A61A23) !important;
    color: #FFFFFF !important;
    border-radius: 50px !important;
    padding: 10px 28px !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    border: none !important;
    box-shadow: 0 5px 15px rgba(205, 32, 44, 0.3);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-pill-red:hover {
    background: linear-gradient(135deg, #A61A23, #CD202C) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(205, 32, 44, 0.4);
    color: #FFFFFF !important;
}

/* Top Bar - Red Background (Fixed at top, gets covered by navbar on scroll) */
.top-bar {
    background-color: #DC143C;
    color: #FFFFFF;
    padding: 8px 0;
    font-size: 0.8rem;
    border-bottom: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    /* Below navbar when scrolled */
}


.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    max-width: 1200px;
    padding: 0 1.5rem;
}

.top-info a {
    color: #FFFFFF;
    /* White text on red background */
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    font-weight: 400;
}

.top-info a:hover {
    color: #FFD700;
    /* Gold on hover */
    transform: translateX(3px);
}

.top-socials {
    display: flex;
    gap: 15px;
}

.top-socials a {
    color: #FFFFFF;
    /* White icons on red background */
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    opacity: 0.9;
}

.top-socials a:hover {
    color: #FFD700;
    /* Gold on hover */
    opacity: 1;
    transform: translateY(-2px);
}

/* Header - Premium Letterhead Style */
header {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    width: 100%;
    height: 95px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 34px;
    /* Below top bar initially */
    left: 0;
    z-index: 1000;
    box-shadow: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    /* Smooth transition when moving up */
}

/* When scrolled, navbar moves up to cover top bar */
header.scrolled {
    top: 0;
    /* Moves up to top, covering the red bar */
    z-index: 1002;
    /* Above top bar */
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border-bottom: none;
}

/* Spacer for Fixed Header (Desktop Only) */
@media (min-width: 992px) {
    header {
        position: fixed;
        /* Fixed on desktop */
        top: 34px;
        /* Below top bar */
    }

    .top-bar {
        position: fixed;
        /* Fixed on desktop */
    }

    body {
        padding-top: 129px;
        /* Top bar (34px) + Header (95px) */
    }

    /* When top bar is hidden */
    .top-bar.hidden~body,
    body:has(.top-bar.hidden) {
        padding-top: 95px;
        /* Only header height */
    }
}

@media (max-width: 991px) {

    /* Mobile: Top bar and header stay stacked, no transforms */
    .top-bar {
        position: relative;
        /* Non-fixed on mobile */
        z-index: 100;
    }

    header {
        position: sticky;
        /* Sticky instead of fixed */
        top: 0;
        /* Sticks at top when scrolling */
        transform: none !important;
        transition: none !important;
    }

    body {
        padding-top: 0 !important;
        /* No padding needed */
    }

    /* Hamburger menu visible on mobile */
    .hamburger {
        display: block !important;
        font-size: 1.8rem;
        /* Larger touch target */
        padding: 10px;
        cursor: pointer;
    }

    /* Mobile navigation */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden off-screen */
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 20px 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 9999;
        gap: 0;
    }

    .nav-links.active {
        right: 0;
        /* Slide in */
    }

    .nav-links li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-links a {
        display: block;
        padding: 15px 10px;
        /* Larger touch targets */
        font-size: 1rem;
        width: 100%;
        text-align: left;
    }
}

/* Smart Sticky Classes (Toggled by JS) */
.main-header.scroll-down {
    transform: translateY(-100%);
}

.main-header.scroll-up {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.logo a {
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 500;
    /* Lighter for letterhead feel */
    letter-spacing: 0.5px;
}

.logo img {
    height: 55px;
    /* Slightly larger for increased header */
    width: auto;
    filter: none;
    /* Remove shadow for cleaner look */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.hamburger {
    display: none;
    /* Hidden by default on desktop */
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    /* Bold weight */
    font-size: 0.95rem;
    /* Smaller, refined */
    text-transform: uppercase;
    /* Capital letters */
    font-family: var(--font-body);
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
    position: relative;
    padding: 10px 0;
    display: inline-block;
}

@media (max-width: 900px) {
    /* Removed duplicate nav-links styles - handled in 991px breakpoint above */
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Subtle underline on hover only */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    /* Thinner line */
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--text-main);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 30px;
    /* Short subtle line */
}

.nav-links .btn {
    padding: 0.6rem 1.5rem;
    background: var(--primary-color);
    /* Blue CTA */
    color: white !important;
    /* Override link color */
    box-shadow: 0 4px 15px rgba(13, 39, 87, 0.3);
}

.nav-links .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 39, 87, 0.4);
    background: var(--primary-light);
}

.nav-links .btn::after {
    display: none;
}

/* No underline for button */


/* Hero Section */
/* =========================================
   PREMIUM HERO SECTION (Mobile Optimized)
   ========================================= */
.hero-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    /* Full mobile screen */
    min-height: 550px;
    overflow: hidden;
    background: #000;
    /* Fallback */
}

/* Slideshow Background */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 8s linear;
    transform: scale(1);
}

.slide.active {
    opacity: 1;
    z-index: 2;
    /* Ensure it sits on top immediately */
    transform: scale(1.1);
}

/* Ensure the first slide doesn't wait for transition on page load */
.slide.active:first-child {
    transition: transform 8s linear !important;
    /* Keep zoom but skip opacity fade-in */
}

/* Dark Gradient Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 2;
}

/* Hero Content */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Exact Center */
    z-index: 3;
    text-align: center;
    width: 100%;
    padding: 0 15px;
    color: #fff;
    margin-top: -30px;
    /* Slight offset for optical balance */
}

.hero-content h1 {
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    font-weight: 800;
    /* Extra Bold */
    margin-bottom: 15px;
    margin-bottom: 15px;
    line-height: 1.2;
    /* Reduced text shadow for simplicity */
    text-shadow: none;
    font-family: 'Playfair Display', 'Outfit', serif;
    /* Premium feel */
    letter-spacing: -0.5px;
    /* User Request: Black Color and Smaller Size */
    color: #000000;
    font-size: clamp(1.8rem, 5vw, 3.5rem);
}

.hero-content h1 span {
    color: var(--secondary-color);
    /* Gold Accent */
}

.hero-content p {
    font-size: clamp(1rem, 3vw, 1.3rem);
    margin-bottom: 30px;
    font-weight: 500;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btns .btn {
    padding: 12px 30px;
    font-weight: 600;
    min-width: 160px;
    /* Minimum touch target width */
    border-radius: 50px;
    /* Pill shape */
    backdrop-filter: blur(5px);
}

/* Ticker (Bottom Overlay) */
.hero-ticker-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

.hero-ticker-wrapper .container-fluid {
    display: flex !important;
    /* Force single line */
    align-items: center;
    flex-wrap: nowrap !important;
    padding: 0 !important;
}

.ticker-label {
    background: #CD202C;
    /* Urgent Red */
    color: white;
    padding: 0 15px;
    height: 38px;
    display: flex;
    align-items: center;
    font-weight: 700;
    /* Bold */
    font-size: 0.75rem;
    text-transform: uppercase;
    /* Uppercase for emphasis */
    white-space: nowrap;
    position: relative;
    z-index: 20;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);
    /* Shadow over scrolling text */
    border-right: 3px solid var(--secondary-color);
    /* Gold Separator */
    flex: 0 0 auto;
}

/* Removed the arrow shape to create a clean overlapping block */
.ticker-label::after {
    display: none;
}

.ticker-wrap-container {
    flex: 1 1 auto;
    width: 1%;
    /* Force flex child constraint */
    overflow: hidden;
    height: 38px;
    position: relative;
    z-index: 10;
    background: #fff;
    /* Mask for slide-under effect */
    -webkit-mask-image: linear-gradient(to right, transparent 0px, black 20px);
    mask-image: linear-gradient(to right, transparent 0px, black 20px);
}

/* Reuse existing ticker animation classes but ensure they fit */
.ticker-wrap {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ticker-move {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 25s linear infinite;
    /* Slightly faster for smoothness */
    padding-left: 100%;
    /* Start off-screen */
}

.ticker-move:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-block;
    padding: 0 1.2rem;
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 500;
    line-height: 38px;
    /* Vertically center */
}

.ticker-item i {
    color: var(--secondary-color);
    margin-right: 5px;
}

.ticker-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.ticker-item a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-wrapper {
        min-height: 50vh !important;
        height: auto !important;
        padding-bottom: 60px;
        /* Space for ticker */
    }

    .hero-ticker-wrapper {
        max-width: 100vw;
        overflow: hidden;
    }

    .hero-ticker-wrapper .container-fluid {
        max-width: 100%;
        overflow: hidden;
    }

    .ticker-label {
        padding: 0 8px;
        height: 32px;
        font-size: 0.5rem;
        font-weight: 700;
        letter-spacing: 0.2px;
        flex-shrink: 0;
    }

    .ticker-label i {
        margin-right: 3px;
        font-size: 0.55rem;
    }

    .ticker-wrap-container {
        height: 32px;
        max-width: calc(100vw - 120px);
        overflow: hidden;
        -webkit-mask-image: linear-gradient(to right, transparent 0px, black 10px);
        mask-image: linear-gradient(to right, transparent 0px, black 10px);
    }

    .ticker-item {
        padding: 0 0.7rem;
        font-size: 0.55rem;
        line-height: 32px;
        font-weight: 500;
    }

    .ticker-item i {
        font-size: 0.5rem;
    }

    .hero-content {
        width: 100%;
        padding: 0 15px;
        top: 50%;
        transform: translate(-50%, -50%);
        /* Re-center strictly */
    }

    .hero-content h1 {
        font-size: 2rem;
        /* reduced for 50vh fit */
        margin-bottom: 10px;
    }

    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 15px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        /* Limit lines to prevent overcrowding */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-btns .btn {
        padding: 8px 20px;
        min-width: 130px;
        font-size: 0.9rem;
    }
}

/* Sections */
/* Sections */
.section-padding {
    padding: var(--space-lg) 0;
    /* Huge padding for open feel */
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

/* Alternate dark sections or specific overrides */
.section-padding[style*="background: var(--light-bg)"] {
    background: #f4f7f6 !important;
    /* Solid light gray */
}

.section-padding[style*="background: #000"] {
    background: linear-gradient(135deg, #1A365D 0%, #2A4B7C 100%) !important;
    /* Blue Gradient - Elegant */
    color: #ffffff;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
    /* More space below title */
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    /* Responsive fluid typography */
    font-weight: 800;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

/* Page Header (Inner Pages) */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 3rem 1.5rem;
    /* Compact height */
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 250px;
    /* Fixed compact height */
    margin-bottom: 0;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    color: white;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 500;
}

/* Specific Mobile Adjustments */
@media (max-width: 768px) {
    .page-header {
        min-height: 200px;
        padding: 2.5rem 1rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}

/* Cards (Courses/Faculty) */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

/* Modern Cards */
/* Modern Cards */
.card {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Fix for icons/images overflow */
.card i,
.card img,
.card svg {
    max-width: 100%;
    height: auto;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 0, 0, 0);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s;
}


.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.card-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-overview-text {
    font-weight: 700 !important;
    /* Bold as requested */
    color: var(--primary-color) !important;
    /* Ensure readability */
}

.card-title {
    font-size: 1.7rem;
    font-weight: 800;
    /* Extra Bold */
    margin-bottom: 1rem;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    /* Proper kerning */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.card-text {
    color: var(--text-main);
    /* Darker than text-light */
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 500;
    /* Medium weight */
}

.card-text li {
    font-weight: 600 !important;
    /* Semi-bold */
    color: var(--primary-color) !important;
    /* Premium Dark Navy */
    letter-spacing: 0.2px;
}

/* Star Performers & Faculty - Enhanced */
/* Star Performers & Faculty - Enhanced */
.star-performer,
.faculty-card {
    background: #ffffff;
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    /* Softer, modern radius */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Premium shadow */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy float effect */
    text-align: center;
    border-top: 5px solid var(--secondary-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.star-performer::before,
.faculty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.star-performer:hover,
.faculty-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(13, 39, 87, 0.15);
}

.star-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    transition: transform 0.5s ease;
}

.faculty-img {
    width: 100%;
    /* max-width removed to fill card width */
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 15px;
    /* Soft rounding */
    object-fit: cover;
    object-position: top;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    transition: transform 0.5s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    /* Thin little border */
}

.star-performer:hover .star-img {
    transform: scale(1.08) rotate(3deg);
    border-color: white;
}

.faculty-card:hover .faculty-img {
    transform: scale(1.02);

}

.faculty-card h3,
.star-performer h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.faculty-card p,
.star-performer p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.faculty-subject {
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: block;
}

/* Faculty Lightbox */
#lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 20000;
    /* Ensure it's above floating widgets */
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Ensure overlays don't block clicks */
.gallery-overlay {
    pointer-events: none;
}

#lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

#lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 5px solid white;
}

#lightbox-overlay.active #lightbox-img {
    transform: scale(1);
}

.star-achievement {
    background: #fef9e7;
    color: #f1c40f;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    margin-top: 10px;
    display: inline-block;
    font-size: 0.9rem;
}

/* Horizontal Scrolling Snap for Mobile (Optional usage) */
.snap-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 2rem;
    /* Space for shadow */
    -webkit-overflow-scrolling: touch;
}

.snap-item {
    scroll-snap-align: center;
    flex: 0 0 280px;
    /* Fixed width for cards in carousel */
}

@media (min-width: 900px) {
    .snap-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        overflow-x: visible;
        padding-bottom: 0;
    }

    .snap-item {
        flex: auto;
    }
}


/* Gallery (Collage) - Presrving logic but enhancing look */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 20px;
}

.gallery-item {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
    border: 4px solid white;
    /* Photo frame effect */
}

/* Footer */
footer {
    background: rgba(15, 42, 68, 0.95);
    /* Translucent dark blue */
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.8);
    padding: 5rem 0 2rem;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3,
.footer-col h4 {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}

.footer-col h3::after,
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    min-height: 44px;
    /* Touch target fix */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Separator */
}

.footer-col ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
    /* Subtle hover slide */
}

.footer-col p {
    color: #bdc3c7;
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.designer-text {
    font-size: 0.85rem;
    margin-top: 8px;
    color: var(--accent-color);
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

/* Floating Widgets */
/* Floating Widgets */
.floating-widgets {
    position: fixed !important;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10000 !important;
    align-items: flex-end;
    transform: translateZ(0);
    /* GPU Acceleration */
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
    /* Layered shadow for depth */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Premium smooth easing */
    border: 2px solid rgba(255, 255, 255, 0.2);
    /* Subtle inner rim */
    background-clip: padding-box;
}

.float-btn:hover {
    transform: translateY(-3px) scale(1.05);
    /* Proper lift and scale interaction */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25), 0 4px 10px rgba(0, 0, 0, 0.15);
    /* Deep shadow on hover */
    filter: brightness(1.1);
    /* Subtle brightness boost */
}

.float-btn:active {
    transform: translateY(1px) scale(0.98);
    /* Tactile feedback */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.float-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    /* Brand gradient */
}

.float-phone {
    background: linear-gradient(135deg, #3498db, #2980b9);
    /* Brand gradient */
}

.float-demo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border-radius: 50%;
    /* Round shape */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.4);
    z-index: 10001 !important;
    animation: floatPulse 2s infinite ease-in-out;
    border: 3px solid rgba(255, 255, 255, 0.3);
    position: static !important;
    /* Ensure it flows in flex container */
    margin-bottom: 0px;
}

.float-demo:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #c0392b, #e74c3c);
}

@keyframes floatPulse {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
    }

    50% {
        transform: translateY(-6px) scale(1.05);
        box-shadow: 0 15px 30px rgba(231, 76, 60, 0.6);
    }

    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
    }
}




/* Admin Styling Enhancements */
/* Admin styles removed (moved to admin.css/dashboard.php) */

/* Responsive Media Queries */

/* Tablet & Smaller Laptops */
/* Tablet & Smaller Laptops */
@media (max-width: 1024px) {
    :root {
        --space-lg: 4rem;
        /* Reduce padding slightly */
    }

    .container {
        width: 95%;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 3rem;
    }
}

/* Tablets (Portrait) & Mobile */
@media (max-width: 900px) {

    /* Mobile Menu Consolidated */
    .nav-links {
        position: fixed;
        right: -100%;
        top: 80px;
        /* Below header */
        height: calc(100vh - 80px);
        background-color: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        transition: right 0.3s ease-in-out;
        padding-top: 2rem;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        z-index: 1050;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
        width: 100%;
        text-align: center;
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 0.5rem 2rem;
        color: var(--primary-color);
    }

    .nav-links .btn {
        margin: 1rem auto;
        width: auto;
        min-width: 200px;
        text-align: center;
        display: inline-block;
        /* Ensure button look */
    }

    .hamburger {
        display: block !important;
        font-size: 1.8rem;
        color: var(--primary-color) !important;
        cursor: pointer;
        z-index: 1100;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .footer-col h3::after,
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .top-bar .container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .top-info {
        justify-content: center;
        width: 100%;
        margin-bottom: 5px;
    }

    .top-socials {
        justify-content: center;
        width: 100%;
    }

    /* Adjust Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        grid-auto-rows: 150px;
    }

    /* Footer Stack */
    .footer-grid {
        grid-template-columns: 1fr;
        /* Stack vertically */
        text-align: center;
        gap: 3rem;
    }

    .footer-contact p {
        justify-content: center;
    }

    /* Floating buttons adjustment */
    .floating-widgets {
        bottom: 15px !important;
        right: 15px !important;
        gap: 10px;
        z-index: 10000 !important;
    }

    .float-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .float-demo {
        position: static !important;
        /* Reset to flow in flex container */
        left: auto !important;
        bottom: auto !important;
        width: 50px;
        height: 50px;
        font-size: 0.55rem;
        z-index: 10001 !important;
        margin-bottom: 0;
        /* Let gap handle spacing */
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    :root {
        --space-lg: 3rem;
        /* Compact padding for mobile */
    }

    .section-title {
        font-size: 1.8rem;
        /* readable on small screens */
    }

    .card-img-top {
        height: 180px;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
        /* Full width buttons on mobile */
        margin-bottom: 10px;
    }
}

/* Floating Widgets - Sticker Style for Demo Class */


@media (max-width: 768px) {
    .float-demo {
        width: 70px;
        height: 70px;
        font-size: 0.7rem;
        left: 15px;
        bottom: 15px;
    }

    /* Mobile Navigation handled in 900px block above */
}

/* Latest Updates Ticker */
.latest-updates-ticker {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    height: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
    padding-left: 100%;
    /* Start from right */
}

.ticker-move {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 40s linear infinite;
}

.ticker-move:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-block;
    padding: 0 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-color);
}

.ticker-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.ticker-item a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.ticker-icon {
    color: var(--secondary-color);
    margin-right: 8px;
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* Response adjustment for ticker speed on mobile */
@media (max-width: 768px) {
    .ticker-move {
        animation-duration: 40s;
        /* Keep readable speed */
    }
}

/* Hide header tagline visually but keep in DOM */
.header-tagline {
    display: none !important;
}

/* Star Performer Cursor */
.star-performer.has-result {
    cursor: pointer;
    transition: transform 0.2s;
}

.star-performer.has-result:hover {
    transform: translateY(-5px);
}

.star-images-row {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    padding-top: 20px;
    /* Space for overlay overlap if needed */
}

/* Profile Image - Circular Overlay (Top Right) */
.star-images-row .star-img:not(.result-thumb) {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    position: absolute;
    top: 0;
    right: 10px;
    z-index: 5;
    margin: 0;
    object-fit: cover;
}

/* Result Image - Big Square */
.star-images-row .result-thumb {
    width: 100%;
    max-width: 280px;
    height: 280px;
    /* Square */
    object-fit: contain;
    /* Ensure full result is visible */
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.star-images-row .result-thumb:hover {
    transform: scale(1.02);
}

@media (max-width: 900px) {

    /* Dashboard Sidebar Logic */
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        transform: none;
        display: none;
    }

    .sidebar.active {
        display: block;
        /* Ensure visibility */
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 1rem;
    }

    .mobile-nav-toggle {
        display: flex;
    }
}

/* Testimonial Carousel */
.testimonials-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 2rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: var(--secondary-color) transparent;
    padding: 1rem 0 2rem 0;
    /* Top padding for shadow breathing room */
}

.testimonials-carousel::-webkit-scrollbar {
    height: 8px;
}

.testimonials-carousel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.testimonials-carousel::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    border-radius: 4px;
}

.testimonial-item {
    flex: 0 0 320px;
    /* Fixed width for consistent carousel cards */
    scroll-snap-align: center;
    height: auto;
    /* Allow height to fit content, or fixed if preferred */
    display: flex;
    flex-direction: column;
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .testimonial-item {
        flex: 0 0 280px;
        /* Slightly narrower on mobile */
    }
}

/* Dashboard Grid System */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

/* Mobile Layout Fixes for Attendance & Result */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        /* Stack columns on mobile */
        gap: 20px;
        margin-top: 1rem;
    }

    /* Transform Table to Cards */
    .attendance-table,
    .attendance-table tbody,
    .attendance-table tr,
    .attendance-table td {
        display: block;
        width: 100%;
    }

    .attendance-table thead {
        display: none;
        /* Hide headers */
    }

    .attendance-table tr {
        margin-bottom: 15px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        overflow: hidden;
    }

    .attendance-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        font-size: 0.95rem;
    }

    .attendance-table td:last-child {
        border-bottom: none;
    }

    /* Attendance Labels (Use :nth-of-type because we hide thead) */
    .attendance-table:not(.results-table) td:nth-of-type(1):before {
        content: "Date";
        font-weight: bold;
        color: #555;
    }

    .attendance-table:not(.results-table) td:nth-of-type(2):before {
        content: "Subject";
        font-weight: bold;
        color: #555;
    }

    .attendance-table:not(.results-table) td:nth-of-type(3):before {
        content: "Status";
        font-weight: bold;
        color: #555;
    }

    /* Result Table Labels */
    .results-table td:nth-of-type(1):before {
        content: "Test Info";
        font-weight: bold;
        color: #555;
    }

    .results-table td:nth-of-type(2):before {
        content: "Subject";
        font-weight: bold;
        color: #555;
    }

    .results-table td:nth-of-type(3):before {
        content: "Marks";
        font-weight: bold;
        color: #555;
    }
}

@media (max-width: 768px) {
    .testimonial-item {
        flex: 0 0 280px;
        /* Slightly narrower on mobile */
    }
}

/* Contact Page Enhancements */
.contact-info-item:hover {
    transform: translateX(5px);
    transition: transform 0.3s ease;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border: 1px solid #eee;
    text-decoration: none;
}

.social-btn:hover {
    transform: translateY(-3px);
    color: white !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-btn.yt {
    color: #ff0000;
}

.social-btn.yt:hover {
    background: #ff0000;
}

.social-btn.tw {
    color: #1DA1F2;
}

.social-btn.tw:hover {
    background: #1DA1F2;
}

.social-btn.tg {
    color: #0088cc;
}

.social-btn.tg:hover {
    background: #0088cc;
}

/* =========================================
   MOBILE RESPONSIVENESS FIXES
   ========================================= */

/* 1. Global Text Overflow Prevention */
* {
    word-wrap: break-word;
    /* Break long words */
    overflow-wrap: break-word;
    /* Standard property */
}

/* 2. Navigation Alignment (Max-width 900px) */
@media (max-width: 900px) {
    .nav-links {
        justify-content: flex-start;
        /* Ensure items start from top */
        padding-bottom: 2rem;
        /* Bottom buffer for scrolling */
        overflow-y: auto;
        /* Allow scroll if menu is tall */
    }

    .logo a {
        font-size: 1.2rem;
        /* Slightly smaller logo text */
    }

    .hamburger {
        margin-right: 0;
        /* Align flush right */
    }
}

/* 3. Small Mobile Optimization (Max-width 480px) */
@media (max-width: 480px) {

    /* Better Typography Scaling */
    h1,
    .hero-content h1 {
        font-size: 1.75rem !important;
        /* Prevent massive headings */
    }

    h2,
    .section-title {
        font-size: 1.5rem !important;
        margin-bottom: 2rem !important;
        /* Tighter spacing */
    }

    /* Button Stacking & Spacing */
    .hero-btns {
        flex-direction: column;
        /* Stack buttons vertically */
        width: 100%;
        gap: 15px;
    }

    .btn {
        width: 100%;
        /* Full width touch targets */
        margin: 0;
        /* Reset margins, let gap handle it */
        justify-content: center;
        /* Center icon/text */
    }

    /* Container Padding */
    .container {
        padding: 0 1.5rem;
        /* More breathing room than default */
    }

    /* Contact Page Specifics */
    .contact-info-item {
        flex-direction: column;
        /* Stack icon and text */
        align-items: flex-start !important;
        text-align: left;
    }

    .contact-info-item>div:first-child {
        margin-bottom: 10px;
        /* Space below icon */
    }

    /* Footer Alignment */
    .footer-bottom {
        font-size: 0.8rem;
        /* Smaller footer text */
    }
}

/* =========================================
   MOBILE TOP BAR OPTIMIZATION
   ========================================= */

/* Default Button Style for Top Bar Toggle (Hidden on Desktop) */
.top-bar-toggle {
    display: none;
}

/* Compact Button for Attendance */
.btn-xs-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    background: #fff;
    color: #CD202C !important;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-xs-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {

    /* Main Top Bar Container */
    .top-bar {
        position: relative;
        padding: 5px 0;
        z-index: 1001;
        transition: all 0.4s ease;
    }

    .top-bar .container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        position: relative;
    }

    /* Wrapper for Contact Info - COLLAPSED BY DEFAULT */
    .top-info-wrapper {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.5s ease, opacity 0.4s ease;
        width: 100%;
        text-align: center;
    }

    /* EXPANDED STATE (Toggled by JS) */
    .top-bar.expanded .top-info-wrapper {
        max-height: 200px;
        opacity: 1;
        margin-bottom: 10px;
    }

    /* Info Content Styling */
    .top-info {
        display: flex !important;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding-top: 5px;
    }

    .top-info .d-none-mobile {
        display: flex !important;
        justify-content: center;
    }

    /* Toggle Button Style */
    .top-bar-toggle {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.4);
        border-radius: 20px;
        padding: 4px 12px;
        color: white;
        font-size: 0.8rem;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-bottom: 5px;
    }

    .top-bar-toggle:hover,
    .top-bar.expanded .top-bar-toggle {
        background: white;
        color: #CD202C;
    }

    /* Socials & Button Layout */
    .top-socials {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        width: 100%;
    }

    .top-socials a i {
        font-size: 0.9rem;
    }

    /* Ensure Header Height doesn't break but is compact */
    header {
        height: 60px;
        /* Slight increase for breathing room */
        min-height: 50px;
        padding: 0;
    }

    /* HEADER PADDING FIX */
    header .container {
        padding: 0 15px !important;
        /* Ensure logo isn't flush to edge */
    }

    /* Compact Logo */
    .logo img {
        height: 40px !important;
        /* Keep visible */
    }

    /* Compact Hamburger */
    .hamburger {
        font-size: 1.4rem;
        margin-right: 0;
    }



    /* FLOATING WIDGETS OPTIMIZATION */
    .floating-widgets {
        bottom: 80px !important;
        /* Move up slightly to avoid bottom items */
        right: 15px !important;
        gap: 12px;
    }

    /* Hide text on mobile for Free Demo button to save space */
    /* Mobile Demo Button - Circle Icon Only */
    /* Mobile Demo Button - Circle Icon Only */
    /* Mobile Demo Button - Red Circle with Stacked Text */
    .float-demo {
        width: 65px !important;
        height: 65px !important;
        min-width: 0 !important;
        min-height: 0 !important;
        border-radius: 50% !important;
        padding: 5px !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        font-size: 0.7rem;
        line-height: 1.1;
        text-align: center;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        white-space: normal !important;
        /* Allow text wrapping */
        overflow: hidden !important;
    }

    /* Show the text span */
    .float-demo span {
        display: block !important;
        opacity: 1 !important;
        width: auto !important;
        font-weight: 800;
        text-transform: uppercase;
    }

    /* Remove the icon */
    .float-demo::before {
        content: none !important;
    }

    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* ==================================================
   SEO SAFE H1 VISUAL HIDE
   Purpose: Keep H1 for SEO, hide from UI
   Applies: All devices
   ================================================== */
.seo-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ==================================================
   HEADER LOGO TEXT HIDE (SEO SAFE)
   Purpose: Hide coaching name beside logo visually
   Note: Text remains in HTML for SEO & accessibility
   ================================================== */
.logo a>span {
    display: none !important;
}

/* Why Choose JDEC - Redesign */
.why-choose-card {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-choose-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.why-choose-card i {
    color: #D4AF37 !important;
    /* Gold Icon */
    margin-bottom: 1rem !important;
    font-size: 3rem !important;
}

.why-choose-card h3 {
    color: var(--primary-color);
    /* Dark Blue */
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

.why-choose-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Mobile Layout: Single Column for Big Images */
@media (max-width: 768px) {
    #faculty-section .grid-container {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }

    /* Ensure card remains flush/full-bleed on mobile if needed */
    #faculty-section .faculty-card {
        padding: 0 !important;
    }
}

/* =========================================
   Redesigned Faculty Section (Full Bleed)
   ========================================= */

#faculty-section .grid-container {
    gap: 30px;
}

.faculty-card {
    background: #ffffff;
    padding: 0 !important;
    /* Full bleed image */
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: none !important;
    /* Remove old colored border */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.faculty-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Remove the top gradient line from previous design */
.faculty-card::before {
    display: none !important;
}

.faculty-img-container {
    width: 100%;
    height: 350px;
    /* Big Image */
    overflow: hidden;
    position: relative;
    background: #eef2f5;
}

.faculty-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: top center !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    /* Add pointer to indicate clickability */
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faculty-card:hover .faculty-img {
    transform: scale(1.05);
}

.faculty-details {
    padding: 1.5rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    /* justify-content: space-between; optional */
}

.faculty-details h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.faculty-details .btn-details {
    align-self: center;
    /* Center button */
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 700;
    background: transparent;
    transition: all 0.3s ease;
}

.faculty-details .btn-details:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(15, 23, 42, 0.2);
}

/* Mobile responsive tweak */
@media (max-width: 768px) {
    .faculty-img-container {
        height: 300px;
    }
}

/* =========================================
   GLOBAL TICKER STYLES (Desktop + Mobile)
   ========================================= */
.ticker-label {
    padding: 0 15px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    background: var(--primary-color);
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 2;
    position: relative;
}

.ticker-item {
    font-size: 1rem;
    padding: 0 2rem;
    color: #000000 !important;
    /* Force visible black text */
    display: inline-block;
    white-space: nowrap;
}

.ticker-item a {
    color: #000000 !important;
    text-decoration: none;
    font-weight: 600;
}

.ticker-item a:hover {
    color: var(--primary-color) !important;
    text-decoration: underline;
}