/* 
  Sree Vani School - Warm & Playful Theme (Shelly Inspired)
  Colors: Vibrant Orange, Sunshine Yellow, Clean White
*/

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

:root {
    /* Warm Palette */
    --primary-color: #FD7E14;
    /* Vibrant Orange */
    --primary-hover: #e36002;
    --secondary-color: #FFC107;
    /* Sunshine Yellow */
    --accent-color: #20C997;
    /* Teal for Contrast */
    --text-dark: #212529;
    --text-light: #6c757d;
    --bg-body: #ffffff;
    --bg-light: #fff9f2;
    /* Very faint orange tint */

    /* Layout */
    --container-width: 1440px;
    /* Increased from 1200px */
    --header-height: 90px;
    /* Adjusted to 90px for better balance */
    --radius: 20px;

    /* Typography */
    --font-heading: 'Nunito', 'Noto Sans Telugu', sans-serif;
    --font-body: 'Nunito', 'Noto Sans Telugu', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    /* Offset for sticky header */
    overflow-x: hidden;
    width: 100%;
    font-size: 15px;
    /* Global Scale Down (Default is 16px) */
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-body);
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
    font-size: 0.95rem;
    /* Extra scale down */
}

/* Telugu Specific Font Adjustment */
body.lang-te {
    font-size: 1.1rem !important;
    /* Reduced from 1.25rem to fix 'zoomed' feel */
}

/* Nav Link specificity for Telugu */
body.lang-te .nav-links a {
    font-size: 1.05rem;
    /* Slightly reduced for better fit */
    font-weight: 600;
}

/* Fix muddy Telugu headings by utilizing Noto Sans weights */
body.lang-te h1,
body.lang-te h2,
body.lang-te h3,
body.lang-te h4,
body.lang-te h5,
body.lang-te h6 {
    font-family: 'Noto Sans Telugu', sans-serif !important;
    font-weight: 600 !important;
    /* Clean Bold */
    line-height: 1.4;
}

body.lang-te .feature-card h3 {
    font-size: 1.4rem;
    /* Balanced size */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 60px 0;
    position: relative;
}

/* Section Titles (Clean + Highlight highlight) */
.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-title h2 {
    display: inline-block;
    color: var(--text-dark);
    /* Reset to dark */
    font-size: 2.5rem;
    position: relative;
    background: none;
    box-shadow: none;
    border: none;
    padding: 0;
}

/* Buttons with Shelly Vibe */
.btn {
    display: inline-block;
    padding: 14px 34px;
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-heading);
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(253, 126, 20, 0.25);
}

/* Wavy Underline Theme */
.highlight-orange {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.highlight-orange::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 12px;
    bottom: 5px;
    left: 0;
    background-color: var(--secondary-color);
    z-index: -1;
    opacity: 0.4;
    border-radius: 6px;
    transform: rotate(-1deg);
}


.highlight-orange:hover {
    color: #e36002;
    text-decoration-color: var(--primary-color);
    transform: scale(1.05);
}

/* About Section */
.about-text {
    font-size: 1.1rem;
    /* Reverted */
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Vision Mission Highlight Effects */
.vision-card {
    padding: 25px;
    border-radius: var(--radius);
    background: white;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    cursor: default;
    margin-bottom: 20px;
}

.vision-card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Highlight glow effect */
    border-color: var(--primary-color);
}

.vision-card h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
    font-weight: 700;
}

.vision-card p {
    font-size: 0.95rem;
    /* Reverted */
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Header */
header {
    height: var(--header-height);
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #343a40;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
    /* Reverted */
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.btn-primary {
    color: white;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    padding: 10px 0;
    /* Increase clickable area */
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    border-radius: 12px;
    padding: 10px 0;
    top: 100%;
    left: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Show on hover for Desktop */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        animation: fadeIn 0.3s ease;
    }
}

.dropdown-menu li {
    display: block;
    margin: 0;
}

.dropdown-menu a {
    color: var(--text-dark);
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    transition: 0.2s;
    font-weight: 500;
}

.dropdown-menu a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding-left: 25px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    z-index: 1002;
}

/* =========================================
   Mobile Navigation & Responsive Fixes
   ========================================= */
@media (max-width: 968px) {
    .container {
        padding: 0 20px;
    }

    .navbar {
        justify-content: space-between;
    }

    .mobile-toggle {
        display: block;
        /* Show Hamburger */
    }

    .nav-links {
        display: block;
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        height: 0;
        background: white;
        transition: all 0.3s ease-in-out;
        z-index: 999;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        text-align: center;
        padding: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        height: calc(100vh - 90px);
        opacity: 1;
        visibility: visible;
        padding: 40px 0;
    }

    .nav-links li {
        margin: 0;
        display: block;
        width: 100%;
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.3s ease;
    }

    /* Stagger Animation */
    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.active li:nth-child(1) {
        transition-delay: 0.05s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.15s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.25s;
    }

    .nav-links a {
        font-size: 1.15rem;
        /* Matches Ref */
        display: block;
        padding: 10px 0;
        /* Reduced from 15px */
        border-bottom: none;
        color: var(--text-dark);
        font-weight: 500;
        /* Medium/Regular Weight */
        justify-content: center;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--primary-color) !important;
        /* Ensure Home is Orange */
        background: transparent;
    }

    /* specific style for Admissions button on mobile */
    .nav-links a.btn-primary {
        background-color: var(--primary-color);
        color: white !important;
        border-radius: 50px;
        padding: 12px 40px;
        margin: 15px auto 15px;
        /* Compact Spacing */
        width: fit-content;
        /* Pill shape */
        border: none;
        box-shadow: 0 10px 20px rgba(253, 126, 20, 0.3);
        font-weight: 700;
    }

    .nav-links a.btn-primary:hover {
        background-color: #e36002;
        transform: translateY(-2px);
        box-shadow: 0 15px 25px rgba(253, 126, 20, 0.4);
    }

    /* Mobile Dropdowns */
    .dropdown {
        border-bottom: none;
    }

    .dropdown>a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding: 10px 0;
        display: none;
        /* JS toggles Block */
        background: #fff8f0;
        /* Very light orange tint for menu */
        width: 100%;
        margin-bottom: 10px;
    }

    .dropdown.active .dropdown-menu {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    .dropdown-menu a {
        padding: 12px 0;
        font-size: 1.1rem;
        color: #555;
        font-weight: 500;
        /* Regular weight */
    }

    .dropdown-menu a:hover {
        color: var(--primary-color);
        padding-left: 0;
        /* Remove desktop slide effect */
        background: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
        animation: none;
    }

    /* Rotate arrow on active */
    .dropdown.active>a i {
        transform: rotate(180deg);
    }

    /* Hide the bottom Orb, but show the top one as requested */
    .hero::after {
        display: none;
    }

    .hero::before {
        display: block;
        width: 150px;
        /* Smaller size */
        height: 150px;
        top: 90px;
        /* Position near Welcome badge */
        left: -40px;
        /* Peeking from left */
        right: auto;
        opacity: 0.6;
    }

    /* Fix Hero Content */
    .hero-content h1 {
        font-size: 2.2rem;
    }

    /* Fix Calendar overflow */
    .flatpickr-calendar {
        width: 300px !important;
        /* Slightly smaller */
        max-width: 90vw !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}


/* Hero Section (Clean White + Orange) */
.hero {
    position: relative;
    padding: 60px 0 40px;
    /* Reduced padding to move content up */
    overflow: hidden;
    background: linear-gradient(135deg, #FFFBF0 0%, #FFFFFF 100%);
}

.section {
    padding: 40px 0;
    position: relative;
}

/* Section Titles (Clean + Highlight highlight) */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

/* Page Headers */
.page-header {
    background-color: var(--bg-light);
    padding: 40px 0;
    text-align: center;
}

/* Footer */
footer {
    background: white;
    color: var(--text-dark);
    padding: 30px 0 20px;
    border-top: 1px solid #eee;
}

/* Testimonials Spacing */
#testimonials {
    background: var(--bg-light);
    padding-bottom: 50px;
    padding-top: 30px;
    overflow-x: hidden;
}

/* Decorative Background Elements (Orbs) for Depth */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(253, 126, 20, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    animation: pulseOrb 10s ease-in-out infinite;
    /* Subtle pulse */
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(13, 202, 240, 0.06) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

/* Floating Hero Bubbles (Interactive) */
.hero-bubble {
    position: absolute;
    border-radius: 50%;
    object-fit: cover;
    max-width: none;
    /* Prevent constraint */
    border: 3px solid white;
    /* Thinner border for professional look */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Smooth fluid escape */
    pointer-events: none;
    will-change: transform;
}

/* Specific Positions (Relative to Image Wrapper) */
.hb1 {
    width: 90px;
    height: 90px;
    top: -40px;
    left: -40px;
}

/* Moved to User Marked Position (Near Welcome Badge) */
.hb2 {
    width: 80px;
    height: 80px;
    top: -5%;
    left: -65%;
}

/* Image Bottom Left */
.hb4 {
    width: 75px;
    height: 75px;
    bottom: 40px;
    left: -50px;
}

/* Image Right Middle */
.hb5 {
    width: 85px;
    height: 85px;
    top: 45%;
    right: -60px;
}

@keyframes pulseOrb {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.hero .container {
    position: relative;
    z-index: 1;
}

/* Ensure Text/Buttons are ABOVE image/bubbles */
.hero-content {
    position: relative;
    z-index: 10;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 25px;
    line-height: 1.1;
}


.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* Hero Image Wrapper (Frame + Float) */
.hero-image-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    /* Hug content */
    margin: 0 auto;
    animation: floatHero 6s ease-in-out infinite;
    /* Float the WHOLE wrapper */
}

/* Background Frame Effect */
.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 25px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--primary-color);
    /* Orange Frame */
    border-radius: 20px;
    z-index: -1;
    transition: all 0.3s ease;
    opacity: 0.6;
}

/* Hover Effect: Shift Frame closer */
.hero-image-wrapper:hover::before {
    top: 15px;
    left: 15px;
    opacity: 1;
}

/* Floating Animation for School Building (Image itself is static inside wrapper) */
.hero-image-wrapper img:not(.hero-bubble) {
    /* Animation removed (handled by wrapper) */
    transition: transform 0.3s ease;
    max-width: 450px;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.hero-image-wrapper img:not(.hero-bubble):hover {
    transform: scale(1.02);
    /* slight zoom on hover */
}

@keyframes floatHero {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* Removed Deprecated Collage Styles (blob, bubble-img, etc.) */

/* Cards */
.card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    border: 1px solid #f1f3f5;
}

.card:hover {
    transform: translateY(-5px) scale(1.03);
    /* Slight lift + scale */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    /* Stronger shadow */
    border-color: var(--primary-color);
    /* Highlight border */
}

/* Unified Page Headers (Orange) */
.page-header {
    background-color: var(--bg-light);
    /* Light Orange Theme */
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-header p {
    color: var(--text-light);
}

/* Tables */
.table-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    white-space: nowrap;
}

th {
    background: #ffe8cc;
    color: var(--primary-color);
    padding: 18px;
    font-weight: 700;
}

td {
    padding: 16px;
    border-bottom: 1px solid #f1f1f1;
}

/* Footer */
footer {
    background: white;
    color: var(--text-dark);
    padding: 80px 0 30px;
    border-top: 1px solid #eee;
}

.footer-col h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 20px;
}

/* Footer Links Interaction */
footer .footer-links a {
    color: #555;
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
    padding: 5px 0;
    font-weight: 600;
}

footer .footer-links a:hover,
footer .footer-links a:focus {
    color: var(--primary-color) !important;
    padding-left: 8px;
    background: rgba(0, 0, 0, 0.02);
    /* Subtle background highlight */
}

footer .footer-links a:active {
    color: #e65100 !important;
    transform: scale(0.98);
}

/* Mobile */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 30px;
        border-bottom: 2px solid var(--primary-color);
        transform: translateY(-150%);
        transition: transform 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .mobile-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-image-wrapper {
        height: 350px;
        margin-top: 40px;
    }

    .b1 {
        width: 220px;
        height: 220px;
    }

    .b2 {
        width: 140px;
        height: 140px;
        right: 10px;
    }

    /* Principal & Vision Mobile Optimizations */
    .grid-container {
        grid-template-columns: 1fr !important;
        /* Override inline styles */
        gap: 40px !important;
    }

    .hover-frame {
        width: 280px !important;
        /* Smaller width for mobile */
        max-width: 100% !important;
        margin: 0 auto;
        /* Force center */
    }

    .hover-frame img {
        height: 350px !important;
        /* Reduce height */
    }

    .frame-border {
        top: 15px !important;
        left: 15px !important;
        /* Tighter offset */
    }


    /* Vision Grid Mobile */
    .vision-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    /* Table Scroll Fix */
    .table-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        display: block;
        padding-bottom: 20px;
        /* Space for scrollbar */
    }

    .table-container table {
        min-width: 900px;
        /* Force min-width to trigger scroll */
    }
}

/* Tablet Optimization (iPad/Portrait) */
@media (max-width: 1024px) {

    /* Ensure Table Scrols on Tablets */
    .table-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        display: block;
        padding-bottom: 20px;
        box-shadow: inset -10px 0 10px rgba(0, 0, 0, 0.05);
        /* Hint scroll */
    }

    .table-container table {
        min-width: 900px;
    }

    /* Adjust Container Padding */
    .container {
        padding: 0 20px;
    }
}

/* Features */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.icon-box {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.feature-card {
    padding: 40px 30px;
    text-align: left;
}

.c-orange .icon-box {
    background: #ffe8cc;
    color: #fd7e14;
}

.c-blue .icon-box {
    background: #cff4fc;
    color: #0dcaf0;
}

.c-yellow .icon-box {
    background: #fff3cd;
    color: #ffc107;
}

/* Stats */
.stat-item h3 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* Forms */
.form-control {
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    width: 100%;
    background: #f8f9fa;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}

/* Preloader Styles */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out;
}

.loader-content {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-logo {
    width: 120px;
    animation: pulseLogo 2s infinite ease-in-out;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(253, 126, 20, 0.2);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulseLogo {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Dual Filter System */
.filters-wrapper {
    text-align: center;
    margin-bottom: 50px;
}

.category-row {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.year-row {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.category-btn {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
    cursor: pointer;
    padding: 10px 20px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

/* Horizontal Scroll Carousel for Team */
/* Horizontal Scroll Carousel for Team */
.team-carousel {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 5px 40px 5px;
    /* Bottom padding for shadow/scroll */
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Hide scrollbar for cleaner look, use dots */
    -ms-overflow-style: none;
}

.team-carousel::-webkit-scrollbar {
    display: none;
}

.team-card {
    min-width: 300px;
    width: 300px;
    flex: 0 0 auto;
    background: transparent;
    border-radius: 20px;
    position: relative;
    transition: all 0.3s ease;
    scroll-snap-align: center;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-img-wrapper {
    position: relative;
    width: 100%;
    height: 380px;
    /* Taller image area */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s;
}

.team-card:hover .team-img {
    transform: scale(1.05);
}

/* Plus Button Overlay */
.plus-btn {
    position: absolute;
    bottom: 25px;
    /* Sitting on the image corner */
    right: 25px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(255, 179, 14, 0.5);
    z-index: 5;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 4px solid white;
}

.plus-btn:hover {
    transform: rotate(90deg) scale(1.1);
    background: var(--primary-color);
}

.team-info {
    padding: 20px 10px;
    text-align: left;
}

.team-info h3 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.team-info p {
    color: var(--primary-color);
    font-size: 0.95rem;
    /* Reverted */
    font-weight: 600;
    margin: 0;
}

/* Dots Styling */
.scroll-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background: #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Large Vision Text */
.vision-text-large {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #444;
    font-weight: 500;
}

.category-btn.active,
.category-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.year-btn {
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 0.9rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
}

.year-btn.active,
.year-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Circular Profile Card Style */
.profile-card {
    background: transparent;
    border: none;
    text-align: center;
    padding: 20px;
    transition: transform 0.3s;
}

/* Google Translate Styling (Hidden) */
/* #google_translate_element {
    display: none;  <-- Removed to allow initialization
} */


/* Language Toggle Switch (Compact) */
.lang-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e0e0e0;
    transition: .4s;
    border-radius: 34px;
    box-shadow: inset 3px 3px 6px #bebebe, inset -3px -3px 6px #ffffff;
}

.lang-knob {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    font-weight: 800;
    color: var(--primary-color);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
}

.lang-knob::after {
    content: "Eng";
}

input:checked+.slider .lang-knob {
    transform: translateX(30px);
}

input:checked+.slider .lang-knob::after {
    content: "Tel";
}

/* Fix for Telugu Font Boldness */
body.lang-te * {
    font-weight: 400 !important;
}

body.lang-te h1,
body.lang-te h2,
body.lang-te h3 {
    font-weight: 600 !important;
}

/* Google Translate Element - Hidden via HTML inline style */

/* input:checked + .slider {
    background-color: #d1ecf1; 
} Optional: Change track color on active */

.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0px !important;
}

.profile-card:hover {
    transform: translateY(-10px);
}

.profile-img-container {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.profile-card:hover .profile-img-container {
    box-shadow: 0 15px 35px rgba(253, 126, 20, 0.2);
    transform: scale(1.05);
    border-color: var(--secondary-color);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.profile-role {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 600;
}

.profile-stat {
    margin-top: 10px;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-color);
}

/* Adaptation for Carousel View */
.team-carousel .profile-card {
    min-width: 280px;
    flex: 0 0 auto;
    scroll-snap-align: center;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-upcoming {
    background: #fff3cd;
    color: #856404;
}

/* Exam Schedule List */
.exam-list {
    max-width: 800px;
    margin: 0 auto;
}

.exam-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 5px solid var(--primary-color);
}

.exam-info h4 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.exam-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Tabs */
.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.tab-btn {
    background: white;
    border: 2px solid #eee;
    padding: 10px 30px;
    border-radius: 30px;
    font-weight: 700;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(253, 126, 20, 0.3);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

/* Video Section */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 10px;
}

.video-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.video-card iframe {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
}

.video-info {
    padding: 20px;
}

.video-info h4 {
    color: var(--text-dark);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.video-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* Video Facade (Thumbnail Overlay) */
.video-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #000;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Contain ensures full short is seen with black bars */
    opacity: 0.8;
    transition: 0.3s;
}

.video-placeholder:hover img {
    opacity: 0.6;
    transform: scale(1.05);
    /* Subtle zoom */
}

.play-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(253, 126, 20, 0.9);
    /* Primary Color */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 0 20px rgba(253, 126, 20, 0.5);
    transition: 0.3s;
    z-index: 2;
}

.video-placeholder:hover .play-icon {
    transform: scale(1.1);
    background: #e36002;
    /* Primary Hover */
}

/* When iframe is loaded */
/* When iframe is loaded */
.video-placeholder iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* FIX: Protect Font Awesome Icons from Telugu Font Overrides */
body.lang-te .fas,
body.lang-te .fa-solid,
body.lang-te .fab,
body.lang-te .fa-brands,
body.lang-te .far,
body.lang-te .fa-regular,
body.lang-te .fas::before,
body.lang-te .fa-solid::before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1;
}

body.lang-te .fab,
body.lang-te .fa-brands,
body.lang-te .fab::before,
body.lang-te .fa-brands::before {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

/* Compact Table Layout (User Request) */
.table-container th,
.table-container td {
    padding: 12px 16px !important;
    /* Increased spacing for readability */
    height: auto !important;
    border: 1px solid #dee2e6;
    /* Add grid lines */
    vertical-align: middle !important;
    /* Ensure everything is vertically centered */
}

/* Zebra Striping for Readability */
.table-container tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Break Columns: Narrow & Visible */
.break-cell {
    width: 26px !important;
    min-width: 26px !important;
    max-width: 26px !important;
    padding: 0 !important;
    vertical-align: middle !important;
    text-align: center !important;
    background-color: #fff3cd !important;
    /* Distinct Yellow */
    color: #856404 !important;
    font-weight: 800 !important;
    font-size: 0.8rem !important;
    /* Slightly smaller to fit well */
    border: 1px solid #ffeeba !important;
}

/* Break Headers: Vertical Time */
.break-header {
    width: 26px !important;
    min-width: 26px !important;
    max-width: 26px !important;
    padding: 0 !important;
    /* Reduced padding */
    white-space: nowrap;
    text-align: center;
    vertical-align: middle !important;
    /* Force center */
    background: #f8f9fa;
    /* Slight off-white for header distinction */
}

/* Revert rotation if vertical-rl is sufficient. vertical-rl on English text rotates it 90deg CW. Reading top-to-bottom. Correct. */

/* Lunch Column: Distinct Color */
.lunch-cell {
    background-color: #f8d7da !important;
    /* Distinct Red-ish */
    color: #721c24 !important;
    border-color: #f5c6cb !important;
}

/* Vertical Text for Break/Lunch Columns (Body & Header) */
.vertical-text {
    writing-mode: vertical-rl;
    /* Rotates text 90deg CW (Top-to-Bottom) */
    text-orientation: mixed;
    /* Standard rotation for Latin & script */
    display: inline-block;
    /* Inline-block allows parent td to vertically center it */
    width: 26px !important;
    line-height: 26px !important;
    /* Force text to center of strip */
    margin: 0;
    white-space: nowrap;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-indent: 2px;
    /* Balance the letter spacing */
    text-transform: uppercase;
}

/* Specific styling for Vertical Time Headers */
.table-container th .vertical-text {
    letter-spacing: 0;
    text-indent: 0;
    font-size: 0.7rem;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
    line-height: 26px !important;
}

/* Ensure Telugu text in table doesn't force extra height */
body.lang-te .table-container td {
    line-height: 1.3;
    padding: 6px 10px !important;
}

/* Principal Photo Hover Effect */
/* Photo Hover Effect (Principal & Faculty) */
.hover-frame {
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative;
    /* Ensure relative positioning for inner absolutes */
}

.hover-frame:hover {
    transform: translateY(-10px);
}

.hover-frame img {
    transition: box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
    display: block;
    /* Remove inline gap */
}

.hover-frame:hover img {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35) !important;
}

/* Shared Frame Border Style */
.frame-border {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--secondary-color);
    top: 20px;
    left: 20px;
    border-radius: var(--radius);
    z-index: 0;
    transition: all 0.3s ease;
}

/* Check if we want the border to move or change color on hover? */
.hover-frame:hover .frame-border {
    border-color: var(--primary-color);
    /* Nice interactive touch? User didn't ask but "button hover" implies feedback */
    top: 25px;
    /* Subtle shift? Maybe too much. Let's keep it simple first. */
}

/* UNIFIED HOVER EFFECTS (User Request) */
.feature-card,
.vision-card,
.video-card,
.team-card,
.profile-card,
.gallery-item,
.exam-item {
    transition: all 0.3s ease-in-out;
    /* Ensure smooth transition for all */
}

/* Scroll to Top Button */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    /* Circle */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    width: 50px;
    height: 50px;
    display: flex;
    /* Flex center the icon */
    align-items: center;
    justify-content: center;
}

#scrollTopBtn:hover {
    background-color: #e36002;
    /* Darker orange */
    transform: translateY(-5px);
    /* Lift */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

#scrollTopBtn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.team-card {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    overflow: visible !important;
    padding: 0 !important;
    transition: transform 0.3s ease;
}

.team-card .team-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: top;
    border-radius: 20px;
    /* Rounded Photo */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    /* Space before Name Card */
    transition: all 0.3s ease;
}

.team-card .team-info {
    background: white;
    padding: 25px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 4px solid var(--secondary-color);
    /* The "Card" bottom border */
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    /* Subtle border for structure */
    border-bottom-width: 4px;
    /* Ensure bottom is thick */
}

/* Hover Group Effects */
.team-card:hover {
    transform: translateY(-10px) !important;
    /* Lift the whole group */
}

.team-card:hover .team-img {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
}

.team-card:hover .team-info {
    border-bottom-color: var(--primary-color);
    /* Switch highlight color */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.vision-card:hover,
.video-card:hover,
.team-card:hover,
.profile-card:hover,
.gallery-item:hover,
.exam-item:hover {
    transform: translateY(-7px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12) !important;
    border-color: var(--primary-color) !important;
}

/* Specific fix: Team Card needs its image to trigger too */
.team-card:hover .team-img {
    transform: scale(1.05);
}

/* CRITICAL FIX: Reduce Boldness for Telugu Highlighted Text */
body.lang-te .highlight-orange {
    font-weight: 400 !important;
    /* Force normal weight on highlights */
    -webkit-text-stroke-width: 0px;
    /* Remove any stroke buildup */
}

body.lang-te strong,
body.lang-te b {
    font-weight: 500 !important;
    /* Cap bold tags at 500 */
}

/* Scroll to Top Button */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#scrollTopBtn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

#scrollTopBtn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* =========================================
   Refined Vision Section (Professional)
   ========================================= */

/* Card Styling */
.vision-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f8f9fa;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.vision-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    /* Color handled by inline or override */
}

.vision-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Vision Stats */
.vision-stats-container {
    display: flex;
    gap: 50px;
    margin-top: 35px;
    margin-bottom: 10px;
    padding-left: 10px;
}

.stat-box {
    text-align: left;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 5px;
    line-height: 1;
}

.stat-number.highlight-orange {
    color: var(--primary-color);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* Vision Layout (Grid) */
.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    /* Spacious gap */
    align-items: center;
}

/* Vision Image (Responsive Frame) */
.vision-img {
    border-radius: var(--radius);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    width: 100%;
    height: auto;
    max-height: 400px;
    /* Restrict height */
    object-fit: contain;
    background: white;
    padding: 15px;
    border: 1px solid #f0f0f0;
}

/* Responsive (Tablet & Mobile Optimized) */
@media (max-width: 1024px) {

    /* --- Hero Section Stacking --- */
    .hero .container>div {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .hero-content {
        align-items: center;
        margin-bottom: 40px;
        z-index: 20;
    }

    /* Center Buttons */
    .hero-buttons {
        justify-content: center;
        margin-top: 10px;
    }

    /* Hide extra bubbles (Show only 2) */
    .hb2,
    .hb4 {
        display: none !important;
    }

    /* --- Vision Section Stacking & Ordering --- */
    .vision-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    /* Vision Section: Natural Order (Image Top) */
    .vision-grid>div {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    /* Removed 'order' rules so Image stays on TOP */

    .vision-img {
        max-height: 350px;
        margin-bottom: 20px;
        width: auto;
        max-width: 100%;
        display: block;
    }

    .vision-stats-container {
        gap: 30px;
        justify-content: center;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-box {
        text-align: center;
    }

    /* --- Bubbles (Mobile Specific) --- */
    /* Show only HB1 and HB5 */
    .hb2,
    .hb3,
    .hb4 {
        display: none !important;
    }

    .hb1,
    .hb5 {
        width: 70px !important;
        height: 70px !important;
        display: block !important;
        opacity: 1;
    }

    /* HB1: Floating High near "Welcome" Text */
    .hb1 {
        top: -360px !important;
        /* Move WAY up to Text Area */
        left: 5% !important;
        /* Left side */
        right: auto !important;
        bottom: auto !important;
    }

    /* HB5: Top-Right Corner of Image */
    .hb5 {
        top: -30px !important;
        right: -15px !important;
        left: auto !important;
        bottom: auto !important;
    }
}

/* =========================================
   School Life Gallery (Masonry & Lightbox)
   ========================================= */

#gallery {
    padding: 80px 0;
    background: #fff;
    overflow: hidden;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    grid-auto-rows: 180px;
    gap: 15px;
    grid-auto-flow: dense;
    /* Crucial for masonry packing */
}

.gallery-item-masonry {
    /* Renamed to avoid overlap with existing .gallery-item class if any, though existing is likely .card.gallery-item */
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
    background: #f0f0f0;
}

.gallery-item-masonry img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-item-masonry:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.gallery-item-masonry:hover img {
    transform: scale(1.1);
}

/* Masonry Variations */
.gallery-item-masonry.wide {
    grid-column: span 2;
}

.gallery-item-masonry.tall {
    grid-row: span 2;
}

.gallery-item-masonry.big {
    grid-column: span 2;
    grid-row: span 2;
}

/* Lightbox Modal */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

#lightbox.active {
    opacity: 1;
    pointer-events: all;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 12px;
}

#lightbox.active img {
    transform: scale(1);
}

#lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    transition: transform 0.3s;
    background: none;
    border: none;
}

#lightbox-close:hover {
    transform: rotate(90deg) scale(1.2);
    color: var(--primary-color);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        grid-auto-rows: 150px;
        gap: 15px;
    }

    /* Keep variations but respect screen width */
    .gallery-item-masonry.wide,
    .gallery-item-masonry.big {
        grid-column: span 2;
    }
}

/* =========================================
   Testimonials Section
   ========================================= */

#testimonials {
    background: var(--bg-light);
    padding-bottom: 80px;
    padding-top: 50px;
    overflow-x: hidden;
}

.testimonial-card {
    min-width: 320px;
    width: 320px;
    background: white;
    padding: 40px 30px 40px 60px;
    /* More left padding */
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--primary-color);
    scroll-snap-align: center;
    margin: 20px 20px 20px 50px;
    /* Left margin for floating image */
    overflow: visible;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
}

.quote-icon {
    font-size: 5rem;
    color: #e0e0e0;
    position: absolute;
    top: -35px;
    right: 20px;
    font-family: serif;
    line-height: 1;
    z-index: 0;
    pointer-events: none;
}

/* Floating Avatar on Left Edge */
.author-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.author-info {
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    text-align: left;
}

.author-info h4 {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.author-info p {
    color: var(--primary-color);
    font-size: 0.8rem;
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
    position: relative;
    z-index: 1;
    text-align: left;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .testimonial-card {
        min-width: 280px;
        width: 280px;
        padding: 30px 20px 30px 50px;
        margin-left: 40px;
    }

    .author-img {
        width: 65px;
        height: 65px;
        left: -32.5px;
        border-width: 3px;
    }
}

/* =========================================
   Testimonials Section
   ========================================= */

#testimonials {
    background: var(--bg-light);
    padding-bottom: 80px;
    padding-top: 50px;
    overflow-x: hidden;
}

.testimonial-card {
    min-width: 320px;
    width: 320px;
    background: white;
    padding: 40px 30px 40px 60px;
    /* More left padding */
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--primary-color);
    scroll-snap-align: center;
    margin: 20px 20px 20px 50px;
    /* Left margin for floating image */
    overflow: visible;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
}

.quote-icon {
    font-size: 5rem;
    color: #e0e0e0;
    position: absolute;
    top: -35px;
    right: 20px;
    font-family: serif;
    line-height: 1;
    z-index: 0;
    pointer-events: none;
}

/* Floating Avatar on Left Edge */
.author-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.author-info {
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    text-align: left;
}

.author-info h4 {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.author-info p {
    color: var(--primary-color);
    font-size: 0.8rem;
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
    position: relative;
    z-index: 1;
    text-align: left;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .testimonial-card {
        min-width: 280px;
        width: 280px;
        padding: 30px 20px 30px 50px;
        margin-left: 40px;
    }

    .author-img {
        width: 65px;
        height: 65px;
        left: -32.5px;
        border-width: 3px;
    }
}

/* Footer Links Hover Effect */
.footer-links a {
    color: #666 !important;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Global Selection Color */
::selection {
    background: var(--primary-color);
    color: white;
}



/* =========================================
   Form Enhancements
   ========================================= */
/* HIDE Native Select (but keep it accessible/functional for form data) */
select.form-control {
    display: none;
    /* JS will show custom, or we toggle this class */
}

/* Custom Select Container */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
}

/* The Box showing selected value */
.custom-select-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    font-size: 1rem;
    /* Reverted to 1rem */
    font-weight: 700;
    color: #333;
    /* Dark Gray (Not Orange) */
    /* Orange Text removed */
    height: 50px;
    /* Match Input Height */
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-select-trigger:after {
    content: '';
    width: 15px;
    height: 15px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e65100' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.3s;
}

.custom-select-wrapper.open .custom-select-trigger:after {
    transform: rotate(180deg);
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(230, 81, 0, 0.25);
}

/* The Dropdown List */
.custom-options {
    position: absolute;
    display: block;
    top: 110%;
    left: 0;
    right: 0;
    border: 1px solid #f0f0f0;
    border-radius: var(--radius);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background: #fff;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    z-index: 100;
    max-height: 250px;
    overflow-y: auto;
}

.custom-select-wrapper.open .custom-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Individual Option */
.custom-option {
    position: relative;
    display: block;
    padding: 12px 15px;
    font-size: 0.95rem;
    /* Reverted/Kept small */
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #f9f9f9;
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover,
.custom-option.selected {
    background-color: #fff3e0;
    /* Pale Orange (Softer) */
    color: #e65100;
    /* Dark Orange Text */
}

input[type="date"].form-control {
    position: relative;
    padding-right: 10px;
}

/* Validation Styles */
.form-control.error {
    border-color: #dc3545 !important;
    background-color: #fff8f8;
    animation: shake 0.3s ease-in-out;
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* =========================================
   Floating Labels (Professional Form)
   ========================================= */
.form-group {
    position: relative;
    margin-bottom: 25px;
    /* More spacing */
}

/* Hide default label if using floating (will swap in HTML) */
.form-group label.floating-label {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    background: white;
    /* Ensure it covers the border */
    padding: 0 5px;
    font-size: 1rem;
    color: #666;
    /* Default gray */
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 5;
}

/* Input Styles for Floating */
.form-control {
    height: 55px;
    /* Taller input */
    padding: 0 20px;
    /* More padding */
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    /* Softer transition */
    background: #fcfcfc;
    transition: all 0.3s ease;
    font-size: 1.3rem;
    /* Increased Size */
}

.form-control:focus {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(230, 81, 0, 0.1);
    /* Orange glow */
}

/* Active State (Focus or Value present) */
.form-control:focus~.floating-label,
.form-control:not(:placeholder-shown)~.floating-label {
    top: 0;
    font-size: 1rem;
    /* Increased from 0.8rem */
    color: var(--primary-color);
    background: white;
    /* Cover line */
    font-weight: 700;
}

/* FIX: Textarea Text Overlap */
textarea.form-control {
    padding-top: 25px;
    /* Push text down below floating label */
    height: auto;
    min-height: 120px;
}

/* =========================================
   Flatpickr (Clean Material Theme)
   ========================================= */
.flatpickr-calendar {
    width: 320px !important;
    padding: 10px !important;
    font-family: 'Nunito', sans-serif !important;
    border: none !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    border-radius: 12px !important;
    background: white !important;
}

.flatpickr-months {
    background: white !important;
    color: #333 !important;
    padding-bottom: 5px;
}

.flatpickr-month {
    background: transparent !important;
    color: #333 !important;
    fill: #333 !important;
    position: relative;
    text-align: center;
}

span.flatpickr-weekday {
    background: white !important;
    color: #999 !important;
    font-weight: 600;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    color: #333 !important;
    font-weight: 700;
}

/* Selected Days & Hovers - ORANGE DOT style */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day:hover,
.flatpickr-day:focus {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
    border-radius: 50% !important;
    /* Circle shape for cleaner look */
}

.flatpickr-day.today {
    border-color: var(--primary-color) !important;
    background: transparent !important;
    color: var(--primary-color) !important;
    font-weight: bold;
}

/* Arrows */
.flatpickr-prev-month,
.flatpickr-next-month {
    fill: var(--primary-color) !important;
}

/* Refine Dropdown Hover Width */
.custom-option {
    margin: 4px 6px;
    border-radius: 6px;
    width: auto;
}

.custom-option:hover {
    transform: translateX(2px);
}

/* FIX: Unify Static Labels (Dropdowns) with Floating Labels */
.form-group label:not(.floating-label) {
    position: absolute;
    top: 0;
    left: 15px;
    transform: translateY(-50%);
    background: white;
    padding: 0 5px;
    font-size: 1rem;
    /* Increased from 0.8rem */
    color: var(--primary-color);
    font-weight: 700;
    z-index: 10;
    pointer-events: none;
}

/* PRODUCTION FIX: Responsive Form Grid */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Desktop: 2 Columns */
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr !important;
        /* Mobile: 1 Column Stack */
        gap: 15px;
    }

    .form-control,
    .form-group {
        width: 100% !important;
    }
}

/* Footer Layout Fix */
.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 0.8fr;
    gap: 60px;
}

@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: 1fr;
        /* Stack vertically on mobile/tablet */
        gap: 40px;
        text-align: left;
    }

    .footer-col {
        width: 100%;
    }
}

/* Floating Share Button */
.share-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
    background: var(--primary-hover);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* Loading Spinner for Buttons */
.btn-loading {
    position: relative;
    pointer-events: none;
    color: transparent !important;
    /* Hide text */
}

/* =========================================
   Production Utilities (Refactored from Inline)
   ========================================= */

/* Hero Grid Layout */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Welcome Badge */
.welcome-badge {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Principal Image Frame */
.principal-frame {
    width: 100%;
    max-width: 350px;
    position: relative;
}

.principal-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--radius);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* Background Utilities */
.bg-light-section {
    background: var(--bg-light);
}


/* Footer Utilities (Refactored) */
.main-footer {
    background: #F2F5F7;
    border-top: none;
    padding-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1fr;
    gap: 60px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.footer-brand-desc {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-contact-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.footer-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 5px;
}

.footer-heading {
    color: #333;
    margin-bottom: 5px;
    font-weight: 700;
}

.contact-text {
    color: #666;
    font-size: 0.95rem;
}

.contact-link {
    color: #666;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.3s;
}

.contact-link:hover {
    color: var(--primary-color) !important;
}

.footer-quick-links li {
    margin-bottom: 12px;
}

.footer-copyright {
    border-top: 1px solid #e1e1e1;
    margin-top: 60px;
    padding-top: 30px;
    text-align: center;
    color: #999;
    font-size: 0.85rem;
}



.btn-loading::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    top: 50%;
    left: 50%;
    margin-left: -12px;
    margin-top: -12px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}