﻿/* --- CSS VARIABLES --- */
:root {
    --primary-color: #3b8a96; /* Deep Teal from Logo */
    --secondary-color: #e58b33; /* Sun Orange from Logo */
    --accent-color: #212d3b; /* Dark Slate from Logo Background */
    --text-dark: #212d3b;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* --- RESET & BASIC --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    font-weight: 600;
}

.btn-secondary:hover {
    background-color: #c9792c;
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* --- TOP BAR --- */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.top-bar-left {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.top-bar-left span {
    display: flex;
    align-items: center;
}

.top-bar-left i {
    color: var(--secondary-color);
    margin-right: 8px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    cursor: pointer;
    border-left: 1px solid rgba(255,255,255,0.3);
    padding-left: 15px;
    transition: var(--transition);
}

.lang-toggle:hover {
    color: var(--secondary-color);
}

.top-bar-right .top-bar-link {
    color: var(--white);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.top-bar-right .top-bar-link .highlight-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-right .top-bar-link:hover .highlight-btn {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.top-bar-right .top-bar-link:hover {
    color: var(--white); /* Keeps the text white on hover */
}

/* --- HEADER / NAVBAR --- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: 0 5px 18px rgba(0,0,0,0.12);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 2rem;
    color: var(--secondary-color);
}

.header-logo-img {
    height: 60px;
    width: auto;
}

.footer-logo-img {
    height: 70px;
    width: auto;
    background-color: var(--white);
    border-radius: 50%;
    padding: 2px;
}

.logo-text h1 {
    font-size: 1.35rem;
    line-height: 1.15;
    margin: 0;
    white-space: nowrap; /* Forces logo text to stay on one line */
}

.logo-text span {
    font-size: 0.72rem;
    color: var(--text-light);
    font-family: var(--font-body);
    white-space: nowrap; /* address on a single line */
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links li a {
    font-weight: 500;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-links li a.nav-btn::after {
    display: none; /* We will use custom ::after for these */
}

.nav-btn {
    background-color: transparent;
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition);
    line-height: 1; /* Ensures both have exact same height */
}

/* Contact Number */
.nav-links li a.btn-contact-num {
    background-color: var(--secondary-color); /* Eye-catching Orange */
    color: var(--white);
    border: none;
    font-size: 1rem;
    font-weight: 800;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 50px; /* Modern Pill shape */
    box-shadow: 0 4px 15px rgba(229, 139, 51, 0.4);
    white-space: nowrap; /* Prevents the ugly wrapping seen in the image */
    letter-spacing: 0.5px;
}

.nav-links li a.btn-contact-num i {
    font-size: 1.1rem;
    /* Subtle ringing animation to draw attention */
    animation: phoneRing 2.5s infinite ease-in-out;
}

.nav-links li a.btn-contact-num:hover {
    background-color: var(--primary-color); /* Swaps to blue on hover */
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
    color: var(--white);
}

@keyframes phoneRing {
    0%, 20%, 40%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(15deg); }
    15%, 35% { transform: rotate(-15deg); }
}

/* Fee Payment */
.nav-links li a.btn-fee {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    white-space: nowrap; /* Prevents Fee Payment from wrapping to 2 lines */
}

.nav-links li a.btn-fee:hover {
    background-color: var(--accent-color); /* Navy Blue */
    color: var(--white);
}

.nav-links li a.btn-fee::after {
    content: '';
    position: absolute;
    display: block;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color); /* #e58b33 underline */
    transition: var(--transition);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* --- HERO SECTION --- */
.hero {
    height: 80vh;
    min-height: 500px;
    max-height: 700px;
    position: relative;
    width: 100%;
    overflow: hidden;
    color: var(--white);
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slider .swiper-slide {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.hero-slider .swiper-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35); /* Lighter balanced overlay */
    z-index: 1;
}

.hero-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    position: relative;
    z-index: 0;
}

.hero-pagination .swiper-pagination-bullet {
    background: var(--white);
    opacity: 0.7;
}

.hero-pagination .swiper-pagination-bullet-active {
    background: var(--secondary-color) !important;
    opacity: 1;
}

.hero-btn-next, .hero-btn-prev {
    color: var(--white);
    background-color: rgba(0, 0, 0, 0.5); /* fallback */
    border: 3px solid rgba(255, 255, 255, 0.8);
    width: 75px;
    height: 75px;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero-btn-next:hover, .hero-btn-prev:hover {
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.hero-btn-next::after, .hero-btn-prev::after {
    font-size: 1.5rem;
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8); /* Ensures arrow is visible over thumbnail */
}

.hero-content-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999; /* Increased to ensure it's above Swiper's generated z-indexes */
    width: 100%;
    pointer-events: none; /* Let clicks pass through empty space to slider */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: 0.3s;
}

.swiper-slide-active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 1;
    color: var(--white);
    text-shadow: 1px 1px 5px rgba(0,0,0,0.9);
    font-weight: 500;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* --- WELCOME SECTION --- */
.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.welcome-text h3 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-family: var(--font-body);
}

.welcome-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.welcome-text p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.about-stat-item {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition);
}

.about-stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.about-stat-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 15px;
}

.about-stat-text h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-color);
    margin: 0 0 2px 0;
    line-height: 1;
    font-family: var(--font-heading);
}

.about-stat-text p {
    font-size: 0.75rem !important;
    font-weight: 700;
    color: var(--text-light);
    margin: 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.welcome-image {
    position: relative;
}

.welcome-image img {
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: linear-gradient(135deg, var(--secondary-color), #c9792c);
    color: var(--white);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 20px rgba(229, 139, 51, 0.3);
    border: 6px solid var(--white);
    animation: floatBadge 3s ease-in-out infinite;
    z-index: 2;
}

.experience-badge h4 {
    color: var(--white);
    font-size: 2.5rem;
    margin: 0;
    line-height: 1;
    font-weight: 700;
}

.experience-badge p {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

@keyframes floatBadge {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

/* --- WHY CHOOSE US --- */
.why-choose {
    background-color: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-bottom: 4px solid var(--secondary-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-bottom-color: var(--primary-color);
}

.feature-icon {
    font-size: 2rem;
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background-color: var(--secondary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.5s ease;
}

.feature-card:hover .feature-icon {
    background-color: var(--primary-color);
    transform: rotateY(360deg);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- ACADEMIC EXCELLENCE --- */
.academics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.academic-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--white);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05), 0 6px 6px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-bottom: 5px solid #d1d9e6;
}

.academic-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15), 0 10px 15px rgba(0,0,0,0.1);
    border-bottom: 5px solid var(--secondary-color);
}

.academic-img {
    height: 200px;
    overflow: hidden;
}

.academic-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.academic-card:hover .academic-img img {
    transform: scale(1.1);
}

.academic-content {
    padding: 25px;
    background-color: var(--white);
    text-align: center;
    position: relative;
}

.academic-icon {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 2;
    border: 3px solid var(--white);
    transition: all 0.5s ease;
}

.academic-card:hover .academic-icon {
    background-color: var(--secondary-color);
    transform: translateX(-50%) rotate(360deg) scale(1.1);
}


.academic-content h3 {
    margin-top: 15px;
    margin-bottom: 10px;
}

.academic-content p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* --- FACILITIES --- */
.facilities {
    background-color: var(--bg-light);
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.facility-item,
.facility-card {
    background-color: var(--white);
    padding: 35px 20px 25px;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06), inset 0 0 0 1px rgba(255,255,255,1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transform-style: preserve-3d;
    border: 1px solid rgba(0,0,0,0.05);
    border-bottom: 5px solid transparent;
}

.facility-item::before,
.facility-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.1));
    z-index: -1;
    transition: all 0.4s ease;
}

.facility-item:hover,
.facility-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12), inset 0 0 0 1px rgba(255,255,255,1);
}

/* 3D Icon Container */
.fac-icon-3d,
.facility-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #fff;
    background: #ccc; /* fallback */
    box-shadow: 
        inset 2px 2px 5px rgba(255,255,255,0.4),
        inset -3px -3px 5px rgba(0,0,0,0.1),
        0 10px 20px rgba(0,0,0,0.15),
        0 5px 5px rgba(0,0,0,0.1);
    transform: translateZ(20px);
    transition: all 0.4s ease;
}

.facility-item:hover .fac-icon-3d,
.facility-item:hover .facility-icon,
.facility-card:hover .fac-icon-3d,
.facility-card:hover .facility-icon {
    transform: translateZ(40px) scale(1.1) rotate(5deg);
    box-shadow: 
        inset 2px 2px 5px rgba(255,255,255,0.6),
        inset -3px -3px 5px rgba(0,0,0,0.15),
        0 15px 25px rgba(0,0,0,0.25),
        0 8px 10px rgba(0,0,0,0.15);
}

.fac-icon-3d i,
.facility-icon i {
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.3));
}

.facility-item h4,
.facility-card h4 {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--accent-color);
    transform: translateZ(10px);
}

.facility-item p,
.facility-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    transform: translateZ(5px);
    margin: 0;
    line-height: 1.5;
}

/* Unique Colors for Facilities */
.fac-smart { border-bottom-color: #3b82f6; }
.fac-smart .fac-icon-3d, .fac-smart .facility-icon { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.fac-smart:hover { box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2); }

.fac-computer { border-bottom-color: #06b6d4; }
.fac-computer .fac-icon-3d, .fac-computer .facility-icon { background: linear-gradient(135deg, #22d3ee, #0891b2); }
.fac-computer:hover { box-shadow: 0 20px 40px rgba(6, 182, 212, 0.2); }

.fac-science { border-bottom-color: #8b5cf6; }
.fac-science .fac-icon-3d, .fac-science .facility-icon { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.fac-science:hover { box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2); }

.fac-library { border-bottom-color: #f97316; }
.fac-library .fac-icon-3d, .fac-library .facility-icon { background: linear-gradient(135deg, #fb923c, #ea580c); }
.fac-library:hover { box-shadow: 0 20px 40px rgba(249, 115, 22, 0.2); }

.fac-sports { border-bottom-color: #22c55e; }
.fac-sports .fac-icon-3d, .fac-sports .facility-icon { background: linear-gradient(135deg, #4ade80, #16a34a); }
.fac-sports:hover { box-shadow: 0 20px 40px rgba(34, 197, 94, 0.2); }

.fac-transport { border-bottom-color: #eab308; }
.fac-transport .fac-icon-3d, .fac-transport .facility-icon { background: linear-gradient(135deg, #facc15, #ca8a04); }
.fac-transport:hover { box-shadow: 0 20px 40px rgba(234, 179, 8, 0.2); }

.fac-art { border-bottom-color: #ec4899; }
.fac-art .fac-icon-3d, .fac-art .facility-icon { background: linear-gradient(135deg, #f472b6, #db2777); }
.fac-art:hover { box-shadow: 0 20px 40px rgba(236, 72, 153, 0.2); }

.fac-medical { border-bottom-color: #ef4444; }
.fac-medical .fac-icon-3d, .fac-medical .facility-icon { background: linear-gradient(135deg, #f87171, #dc2626); }
.fac-medical:hover { box-shadow: 0 20px 40px rgba(239, 68, 68, 0.2); }

.fac-water { border-bottom-color: #0284c7; }
.fac-water .fac-icon-3d, .fac-water .facility-icon { background: linear-gradient(135deg, #38bdf8, #0284c7); }
.fac-water:hover { box-shadow: 0 20px 40px rgba(2, 132, 199, 0.2); }

.fac-indoor { border-bottom-color: #6366f1; }
.fac-indoor .fac-icon-3d, .fac-indoor .facility-icon { background: linear-gradient(135deg, #818cf8, #4f46e5); }
.fac-indoor:hover { box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2); }

.fac-security { border-bottom-color: #0f766e; }
.fac-security .fac-icon-3d, .fac-security .facility-icon { background: linear-gradient(135deg, #2dd4bf, #0f766e); }
.fac-security:hover { box-shadow: 0 20px 40px rgba(15, 118, 110, 0.2); }

.fac-cafeteria { border-bottom-color: #d97706; }
.fac-cafeteria .fac-icon-3d, .fac-cafeteria .facility-icon { background: linear-gradient(135deg, #fbbf24, #d97706); }
.fac-cafeteria:hover { box-shadow: 0 20px 40px rgba(217, 119, 6, 0.2); }

.fac-yoga { border-bottom-color: #10b981; }
.fac-yoga .fac-icon-3d, .fac-yoga .facility-icon { background: linear-gradient(135deg, #34d399, #059669); }
.fac-yoga:hover { box-shadow: 0 20px 40px rgba(16, 185, 129, 0.2); }

.fac-robotics { border-bottom-color: #7c3aed; }
.fac-robotics .fac-icon-3d, .fac-robotics .facility-icon { background: linear-gradient(135deg, #c084fc, #7c3aed); }
.fac-robotics:hover { box-shadow: 0 20px 40px rgba(124, 58, 237, 0.2); }

.fac-language { border-bottom-color: #0d9488; }
.fac-language .fac-icon-3d, .fac-language .facility-icon { background: linear-gradient(135deg, #5eead4, #0d9488); }
.fac-language:hover { box-shadow: 0 20px 40px rgba(13, 148, 136, 0.2); }

.fac-auditorium { border-bottom-color: #e11d48; }
.fac-auditorium .fac-icon-3d, .fac-auditorium .facility-icon { background: linear-gradient(135deg, #fb7185, #e11d48); }
.fac-auditorium:hover { box-shadow: 0 20px 40px rgba(225, 29, 72, 0.2); }

@media (max-width: 991px) {
    .facilities-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .facilities-grid { grid-template-columns: 1fr; }
}

/* --- STATISTICS --- */
.statistics {
    background: linear-gradient(rgba(33, 45, 59, 0.9), rgba(33, 45, 59, 0.9)), url('https://images.unsplash.com/photo-1577896851231-70ef18881754?auto=format&fit=crop&q=80') center/cover fixed;
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-item i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
}

/* --- STUDENT LIFE --- */
.gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 15px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(33, 45, 59, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    color: var(--white);
    font-family: var(--font-body);
    margin: 0;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-btn-container {
    text-align: center;
    margin-top: 40px;
}

/* --- GALLERY LIGHTBOX --- */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    z-index: 10000;
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox-img-container img {
    max-width: 100%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-lightbox.active .lightbox-img-container img {
    transform: scale(1);
}

.lightbox-caption {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 15px;
    font-family: var(--font-body);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-close:hover {
    background: #ef4444;
    transform: rotate(90deg);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.lightbox-prev:hover, .lightbox-next:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

@media (max-width: 1200px) {
    .lightbox-prev { left: -20px; }
    .lightbox-next { right: -20px; }
}

@media (max-width: 768px) {
    .lightbox-content { width: 95%; height: 70vh; }
    .lightbox-prev { left: -10px; width: 40px; height: 40px; font-size: 1.2rem; }
    .lightbox-next { right: -10px; width: 40px; height: 40px; font-size: 1.2rem; }
    .lightbox-close { top: -50px; right: 10px; }
}

.gallery-item {
    cursor: pointer;
}

/* --- EXACT ADMISSIONS HERO --- */
.admissions-exact-hero {
    position: relative;
    width: 100vw;
    min-height: 700px;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    background: #dbeafe; /* fallback */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0 150px 0;
}

.hero-bg-full {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* White radial glow in the center so the text is perfectly readable */
.hero-center-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 140%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,1) 0%, rgba(255,255,255,0.85) 45%, rgba(255,255,255,0) 75%);
    z-index: 2;
    pointer-events: none;
}

/* Left elements (Text) */
.hero-left-text {
    position: absolute;
    top: 15%;
    left: 8%;
    font-family: 'Playfair Display', cursive, serif;
    font-size: 2.8rem;
    line-height: 1.1;
    color: #1e3a8a;
    font-weight: 700;
    transform: rotate(-8deg);
    z-index: 3;
    pointer-events: none;
    text-shadow: 2px 2px 5px rgba(255,255,255,0.8);
}

.hero-left-text span {
    position: relative;
    display: inline-block;
}

.succeed-underline {
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 110%;
    height: 20px;
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
}

.hero-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1rem;
    font-weight: 700;
    color: #1e3a8a;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-subtitle .line {
    height: 1px;
    width: 60px;
    background-color: #1e3a8a;
}

.hero-title {
    font-family: var(--font-body);
    font-size: 4.8rem;
    font-weight: 900;
    color: #1e3a8a;
    line-height: 1.1;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.hero-title .text-red {
    color: #e11d48;
}

.title-underline {
    width: 250px;
    height: 20px;
    margin: 0 auto 20px;
}
.title-underline svg {
    width: 100%;
    height: 100%;
}

.hero-desc {
    font-size: 1.25rem;
    color: #374151;
    font-weight: 500;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.btn-red-pill {
    background: #e11d48;
    color: #fff;
    border-radius: 50px;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(225, 29, 72, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    transition: all 0.3s ease;
}
.btn-red-pill:hover {
    background: #be123c;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(225, 29, 72, 0.5);
}

.btn-outline-pill {
    background: #fff;
    color: #1e3a8a;
    border: 2px solid #1e3a8a;
    border-radius: 50px;
    padding: 13px 38px;
    font-size: 1.2rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}
.btn-outline-pill:hover {
    background: #1e3a8a;
    color: #fff;
}

/* Features */
.hero-features-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.hero-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hero-feature .icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.hero-feature:hover .icon-circle {
    transform: scale(1.1);
}

.hero-feature span {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e3a8a;
    line-height: 1.2;
}

.bg-yellow { background: #f59e0b; }
.bg-pink { background: #ec4899; }
.bg-green { background: #22c55e; }
.bg-blue { background: #3b82f6; }

.feature-divider {
    width: 1px;
    height: 70px;
    background: #cbd5e1;
}

/* Bottom Graphics */
.hero-bottom-graphics {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    z-index: 10;
    pointer-events: none;
}

.bottom-wave-yellow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bottom-wave-blue {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 130%;
    z-index: 2;
}

.bottom-text-left {
    position: absolute;
    bottom: 30px;
    left: 8%;
    z-index: 3;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.8rem;
    color: #fff;
    line-height: 1.2;
}

.bottom-text-right {
    position: absolute;
    bottom: 35px;
    right: 5%;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 25px;
    color: #1e3a8a;
    font-weight: 800;
    font-size: 1rem;
}

.bottom-stat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bottom-stat i {
    font-size: 1.3rem;
    color: #1e3a8a;
}

.stat-divider {
    width: 2px;
    height: 25px;
    background: #1e3a8a;
    opacity: 0.2;
}

/* Responsive Overrides */
@media (max-width: 1200px) {
    .hero-title { font-size: 3.8rem; }
    .bottom-wave-blue { width: 60%; }
}

@media (max-width: 991px) {
    .hero-center-glow { width: 100%; height: 100%; }
    .bottom-wave-blue { width: 80%; }
    .hero-left-text { display: none; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.8rem; }
    .hero-features-row { flex-wrap: wrap; }
    .feature-divider { display: none; }
    .hero-feature { width: 40%; margin-bottom: 15px; }
    .hero-buttons { flex-direction: column; padding: 0 20px; }
    .bottom-text-right { display: none; }
    .hero-bottom-graphics { height: 120px; }
    .bottom-text-left { font-size: 1.4rem; bottom: 20px; }
}

/* --- FAQ & HELP DESK SECTION --- */
.faq-support-section {
    background-color: var(--bg-light); 
}

.faq-support-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    align-items: flex-start;
}

/* Left Column Card */
.help-desk-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.help-desk-img-container {
    position: relative;
    height: 220px;
}

.help-desk-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.help-desk-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.help-desk-content {
    padding: 30px 25px;
}

.help-desk-content h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    font-weight: 800;
}

.help-desk-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Custom Buttons for Help Desk */
.btn-solid-full, .btn-outline-full {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-solid-full {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-solid-full i {
    margin-right: 8px;
}

.btn-solid-full:hover {
    background-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-full {
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid rgba(0,0,0,0.1);
}

.btn-outline-full:hover {
    background-color: var(--bg-light);
    border-color: rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

/* Right Column FAQ */
.faq-accordion-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.faq-item.active {
    border-color: rgba(0,0,0,0.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    cursor: pointer;
    background: var(--white);
    transition: all 0.3s ease;
}

.faq-question h4,
.faq-question span {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
    transition: color 0.3s ease;
    user-select: none;
}

.faq-question i {
    font-size: 0.9rem;
    color: var(--primary-color);
    background: rgba(0,0,0,0.05);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.4s ease, background 0.3s ease, color 0.3s ease;
}

.faq-item.active .faq-question h4,
.faq-item.active .faq-question span {
    color: var(--primary-color);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    background: var(--primary-color);
    color: var(--white);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: var(--white);
}

.faq-item.active .faq-answer {
    padding: 0 25px 25px 25px;
    max-height: 600px;
}

.faq-answer p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 991px) {
    .faq-support-grid {
        grid-template-columns: 1fr;
    }
    .help-desk-card {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* --- TESTIMONIALS --- */
.testimonials {
    background-color: var(--bg-light);
}

.testimonial-bubble {
    position: relative;
    color: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin: 20px 10px 30px 10px; /* Space for the tail */
    z-index: 1;
}

/* Chat bubble tail */
.testimonial-bubble::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 40px;
    border-width: 15px 15px 0 0;
    border-style: solid;
    z-index: 1;
}

/* Colors based on image */
.bg-purple { background-color: #8b8be6; }
.bg-purple::after { border-color: #8b8be6 transparent transparent transparent; }

.bg-orange { background-color: #f78d6c; }
.bg-orange::after { border-color: #f78d6c transparent transparent transparent; }

.bg-teal { background-color: #38bdf8; }
.bg-teal::after { border-color: #38bdf8 transparent transparent transparent; }

.bg-pink { background-color: #ec4899; }
.bg-pink::after { border-color: #ec4899 transparent transparent transparent; }

.quote-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    color: rgba(255, 255, 255, 0.15);
    font-size: 5rem;
    z-index: -1;
    margin: 0;
}

.testimonial-text {
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 0;
    color: var(--white);
    position: relative;
    z-index: 2;
	padding:25px 0px 25px 40px;
	text-align:justify;
}

.testimonial-author-outside {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-left: 20px;
    margin-bottom: 20px;
}

.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.author-info h4 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 800;
}

.author-info p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
}

.swiper-pagination-bullet-active {
    background-color: var(--secondary-color) !important;
}

.testimonial-controls-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
    gap: 15px;
    position: relative;
    z-index: 10;
}

.testimonial-controls-wrap .swiper-pagination {
    position: static;
    display: block;
    width: auto;
}

.testimonial-nav-btns {
    display: flex;
    gap: 15px;
}

.testimonial-prev,
.testimonial-next {
    width: 40px;
    height: 40px;
    background-color: #fbbf24;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(251, 191, 36, 0.4);
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background-color: #f59e0b;
    transform: scale(1.1);
}

/* --- NEWS & NOTICE BOARD --- */
.news-notice-section {
    background-color: var(--white);
}

.news-notice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.column-header {
    margin-bottom: 30px;
}

.sub-heading-yellow {
    color: #facc15; /* Yellow/Gold from image */
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

.main-heading-blue {
    color: #0f172a; /* Very dark blue */
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0;
    font-family: 'Playfair Display', serif; /* Or similar elegant font */
    position: relative;
    padding-bottom: 15px;
}

.main-heading-blue::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Latest News Left Side */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.news-card {
    display: flex;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    border: 1px solid #f1f5f9;
}

.news-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.news-img {
    flex: 0 0 140px;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 20px;
    flex: 1;
}

.news-date, .notice-date {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.news-title {
    font-size: 1.1rem;
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 8px;
}

.news-desc {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.read-more {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Notice Board Right Side */
.notice-board-container {
    background-color: #f8fafc;
    padding: 25px;
    border-radius: 8px;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.notice-scrolling-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: scrollUp 15s linear infinite;
}

.notice-scrolling-wrapper:hover {
    animation-play-state: paused;
}

@keyframes scrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.notice-item {
    background-color: var(--white);
    padding: 20px;
    border-radius: 4px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

.notice-item:hover {
    transform: translateX(5px);
}

.notice-title {
    font-size: 1.1rem;
    color: #1e293b;
    font-weight: 800;
    margin-bottom: 5px;
}

.notice-desc {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

@media (max-width: 991px) {
    .news-notice-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 576px) {
    .news-card {
        flex-direction: column;
    }
    .news-img {
        height: 200px;
    }
}

/* --- OUR TEACHERS --- */
.our-teachers {
    background-color: var(--white);
}

.teachers-grid-horizontal {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.teacher-card-horizontal {
    background: var(--white);
    border: 1px solid #e5e7eb; /* Light gray border */
    border-radius: 16px;
    padding: 20px;
    display: flex;
    gap: 25px;
    align-items: stretch;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    contain: layout;
}

.teacher-card-horizontal:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.teacher-img-left {
    flex: 0 0 180px;
    min-height: 180px;
    overflow: hidden;
    border-radius: 12px;
}

.teacher-img-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.teacher-info-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Prevents flex children from overflowing */
}

.teacher-top-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 8px;
}

.schedule-badge {
    background-color: #ecfdf5; /* Light green background */
    color: #059669; /* Dark green text */
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.room-info {
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 700;
}

.teacher-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.teacher-qualifications {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.teacher-designation {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 12px;
}

.teacher-desc {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px; 
    flex-grow: 1;
}

.btn-primary-solid {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary-solid:hover {
    background-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

@media (max-width: 1200px) {
    .teachers-grid-horizontal {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .teacher-card-horizontal {
        flex-direction: column;
    }
    .teacher-img-left {
        height: 230px;
        flex: 0 0 auto;
    }
    .btn-primary-solid {
        width: 100%;
    }
}

/* --- OUR TOPPERS --- */
.our-toppers {
    background: linear-gradient(rgba(10, 15, 30, 0.88), rgba(10, 15, 30, 0.88)), url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1600&q=80') center/cover fixed;
}

.our-toppers .section-title h2,
.our-toppers .section-title p {
    color: var(--white);
}

.toppers-grid-new {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.topper-card-new {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    padding: 35px 20px 25px 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
}

.topper-card-new:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.topper-img-circle {
    width: 150px;
    height: 150px;
    margin: 0 auto 25px auto;
    border-radius: 50%;
    background-color: var(--bg-light); /* light grey behind image if transparent */
    border: 4px solid transparent; /* invisible border by default for spacing */
    transition: border-color 0.3s ease;
    padding: 3px; /* spacing between image and border */
}

/* One of the cards in the image has a teal border, let's make it the theme primary color */
.topper-img-circle.topper-border {
    border-color: var(--primary-color);
}
.topper-card-new:hover .topper-img-circle {
    border-color: var(--primary-color);
}

.topper-img-circle img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.topper-name-new {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent-color);
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.topper-score-new {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
}

@media (max-width: 991px) {
    .toppers-grid-new {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .toppers-grid-new {
        grid-template-columns: 1fr;
    }
}

/* --- CONTACT SECTION --- */
.contact {
    background-color: var(--bg-light);
}

.contact-wrapper {
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    overflow: hidden;
    margin-bottom: 40px;
}

.contact-grid-modern {
    display: grid;
    grid-template-columns: 2fr 3fr;
	border:1px dotted #000;
}

.contact-info-modern {
    background: linear-gradient(135deg, var(--primary-color), #2a646d);
    color: var(--white);
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
}

.contact-info-modern::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.contact-info-modern h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.contact-subtext {
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    font-size: 0.95rem;
}

.contact-item-modern {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.icon-box {
    width: 45px;
    height: 45px;
    min-width: 45px;
    background-color: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--white);
}

.contact-item-modern h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-item-modern p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.social-links-modern {
    display: flex;
    gap: 15px;
    margin-top: 50px;
}

.social-links-modern a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links-modern a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.contact-form-container {
    padding: 50px 40px;
}

.contact-form-container h3 {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.modern-form .form-group {
    margin-bottom: 20px;
}

.modern-form input,
.modern-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: #f8fafc;
    transition: var(--transition);
}

.modern-form input:focus,
.modern-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(59, 138, 150, 0.1);
}

.modern-form textarea {
    resize: vertical;
}

.contact-map-modern {
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 5px solid var(--white);
}

.contact-map-modern iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- FOOTER --- */
footer {
    background-color: #151e29;
    color: var(--white);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    color: var(--secondary-color);
}

.footer-logo h2 {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0;
}

.footer-about p {
    color: #a0aec0;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.footer-links h4, .footer-contact h4 {
    color: var(--white);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    color: #a0aec0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links ul li a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--secondary-color);
    font-size: 0.8rem;
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer-contact p {
    color: #a0aec0;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
}

.footer-contact i {
    color: var(--secondary-color);
    margin-top: 5px;
}

.footer-bottom {
    background-color: #0d131a;
    padding: 20px 0;
    text-align: center;
    color: #a0aec0;
    font-size: 0.9rem;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .gallery-preview-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .welcome-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .contact-info-modern,
    .contact-form-container {
        padding: 30px 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .gallery-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item.large {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .testimonial-controls-wrap {
        margin-top: 20px;
    }
    
    .cta-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .cta-glass-card h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .facilities-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .cta-btns {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 576px) { .about-stats-grid { grid-template-columns: 1fr; } }

/* Floating Action Buttons */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.float-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.6rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.float-btn:hover {
    transform: translateY(-3px);
    color: white;
}

/* Call & Top Button Theme */
.call-btn, .top-btn {
    background: #0056b3;
}
.call-btn:hover, .top-btn:hover {
    background: #004494;
}

/* Scroll To Top Specific */
.top-btn {
    opacity: 0;
    visibility: hidden;
    font-size: 1.4rem; /* slightly smaller icon */
}
.top-btn.visible {
    opacity: 1;
    visibility: visible;
}

/* WhatsApp Button Theme */
.whatsapp-btn {
    background: #25D366;
}
.whatsapp-btn:hover {
    background: #128C7E;
}

/* WhatsApp Pulse Animation */
.wa-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(37, 211, 102, 0.4);
    border-radius: 50%;
    z-index: -1;
    animation: waPulse 1.5s infinite;
}

@keyframes waPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }
    .float-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

/* Global Mobile Fixes (Catch-all) */
@media (max-width: 576px) {
    /* Reduce heading sizes slightly for small screens */
    .section-title h2 { font-size: 2rem; }
    .logo-text h1 { font-size: 1.2rem; }
    .logo-text span { font-size: 0.7rem; }
    
    /* Ensure footer text flows nicely */
    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    /* Stats grid */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Padding for mobile */
    .section-padding {
        padding: 60px 0;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .header-main .container {
        padding: 10px 15px;
    }
    
    /* Mobile nav links spacing */
    .nav-links li {
        margin: 10px 0;
    }
}
/* --- ACTIVE NAV HIGHLIGHT --- */
.nav-links li a.active {
    color: var(--secondary-color);
}
.nav-links li a.active::after {
    width: 100%;
}

/* --- DROPDOWN SUBMENUS (has-sub) — school-3 nav, used by template10/11 --- */
.nav-links li.has-sub { position: relative; }
.nav-links li.has-sub > a::before { display: none; }
.nav-links li.has-sub > a .nav-caret { font-size: 9px; opacity: .65; margin-left: 4px; transition: transform .25s ease, opacity .2s; }
.nav-links li.has-sub:hover > a .nav-caret { transform: rotate(180deg); opacity: 1; }
/* invisible hover bridge so the menu doesn't close while crossing the gap */
.nav-links li.has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.nav-links li.has-sub > .sub {
    position: absolute; top: 100%; left: 0; min-width: 234px;
    list-style: none; margin: 0; padding: 8px 0; background: #fff; border-radius: 0 0 12px 12px;
    border-top: 4px solid var(--primary-color); border-image: linear-gradient(90deg, var(--secondary-color), var(--primary-color)) 1; box-shadow: 0 16px 40px rgba(0,0,0,.14);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s; z-index: 1300;
}
.nav-links li.has-sub:hover > .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-links li.has-sub > .sub li { display: block; float: none; margin: 0; }
.nav-links li.has-sub > .sub li a {
    display: block; padding: 9px 18px; font-size: .9rem; font-weight: 500; line-height: 1.5;
    color: var(--text-dark, #2d3a45); white-space: nowrap;
}
.nav-links li.has-sub > .sub li a .sub-arrow { float: right; margin-left: 16px; margin-top: 4px; font-size: .64rem; opacity: .4; }
.nav-links li.has-sub > .sub li a::after { display: none; }
.nav-links li.has-sub > .sub li a:hover { background: color-mix(in srgb, var(--primary-color) 8%, #fff); color: var(--primary-color); }
.nav-links li.has-sub > .sub li a:hover .sub-arrow { opacity: 1; color: var(--primary-color); }

@media (max-width: 768px) {
    .nav-links li.has-sub > a::before { display: none; }
    .nav-links li.has-sub::after { display: none; }
    .nav-links li.has-sub > .sub {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border-top: none; border-radius: 0; background: transparent;
        min-width: 0; padding: 2px 0 2px 14px; margin-top: 4px;
    }
    .nav-links li.has-sub > .sub li a { padding: 6px 0; font-size: .95rem; }
    .nav-links li.has-sub > .sub li a:hover { background: transparent; }
}

/* --- ANNOUNCEMENT MARQUEE (shared by homepage + inner pages) --- */
.t10-marquee { background: var(--primary-color); color: #fff; overflow: hidden; }
.t10-marquee .container { display: flex; align-items: center; min-height: 42px; overflow: hidden; }
.t10-mq-label { flex: 0 0 auto; background: var(--secondary-color); color: #fff; font-weight: 700; font-size: 13px; padding: 11px 16px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.t10-mq-track { flex: 1 1 auto; overflow: hidden; white-space: nowrap; position: relative; }
.t10-mq-track .t10-mq-in { display: inline-block; padding-left: 100%; animation: t10mq 24s linear infinite; }
.t10-mq-track a { color: #fff; font-size: 14px; font-weight: 500; text-decoration: none; }
.t10-mq-track a:hover { color: var(--secondary-color); }
.t10-mq-dot { color: var(--secondary-color); margin: 0 18px; }
@keyframes t10mq { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* --- TEMPLATE11: polished centred header (identical on home + every inner page) + rectangular footer logo --- */
body.tpl-template11 header { background: #fff; box-shadow: 0 2px 16px rgba(0,0,0,.07); }
body.tpl-template11 header .navbar { display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: center !important; gap: 10px !important; padding: 14px 0 !important; position: relative; }
/* full-width coloured nav bar (like BM Bharti) */
body.tpl-template11 .t11-navbar { background: var(--primary-color); }
body.tpl-template11 .t11-navbar .nav-links > li > a:not(.nav-btn):hover,
body.tpl-template11 .t11-navbar .nav-links > li.has-sub:hover > a { background: rgba(255,255,255,.14); }
body.tpl-template11 .t11-navbar .nav-caret { color: #fff; }
body.tpl-template11 header .navbar > .logo { margin: 0 auto !important; display: inline-flex !important; align-items: center; width: auto !important; max-width: none !important; flex: 0 0 auto !important; float: none !important; padding: 0 !important; }
body.tpl-template11 header .header-logo-img { height: 100px !important; width: auto !important; max-width: none !important; border-radius: 6px; }
body.tpl-template11 .nav-links { display: flex !important; justify-content: center !important; flex-wrap: wrap !important; gap: 6px 6px !important; margin: 0 !important; padding: 0 !important; }
body.tpl-template11 .t11-navbar .nav-links > li > a:not(.nav-btn) { font-size: .95rem !important; font-weight: 600 !important; text-transform: none !important; letter-spacing: normal !important; color: #fff !important; font-family: 'Inter', sans-serif !important; padding: 11px 15px !important; background: none; display: inline-block; border-radius: 6px; transition: background .18s; }
body.tpl-template11 .mobile-toggle { position: absolute; right: 6px; top: 28px; }
body.tpl-template11 .footer-logo-img { height: auto !important; width: auto !important; max-width: 240px; max-height: 84px; background: #fff !important; border-radius: 10px !important; padding: 10px 16px !important; display: block; object-fit: contain; }
@media (max-width: 768px) {
    body.tpl-template11 header .navbar { flex-direction: row !important; justify-content: space-between !important; padding: 10px 0 !important; }
    body.tpl-template11 header .header-logo-img { height: 54px !important; }
    body.tpl-template11 .nav-links { justify-content: flex-start !important; }
}
/* on scroll the MENU sticks to the top, but the big logo row is hidden (only the nav shows) */
/* only the blue nav bar sticks on scroll (logo row scrolls away naturally — no blink/jump) */
body.tpl-template11 header { position: static; }
body.tpl-template11 .t11-navbar { position: sticky; top: 0; z-index: 1100; box-shadow: 0 4px 14px rgba(0,0,0,.10); }
/* inner-page banner: plain theme-colour background (no student photo) */
body.tpl-template11 .ip-banner { background: var(--primary-color) !important; min-height: 210px !important; }
body.tpl-template11 .ip-banner::before { background: linear-gradient(120deg, rgba(0,0,0,.20), rgba(255,255,255,.12)) !important; }
/* Shining Stars: plain light background unless a stars_bg image is actually uploaded (inline style wins when it is) */
body.tpl-template11 .our-toppers { background: #f8fafc; }
body.tpl-template11 .our-toppers .section-title h2,
body.tpl-template11 .our-toppers .section-title p { color: var(--text-dark, #2d3a45); }
/* footer in the theme's primary colour (blue) instead of near-black */
body.tpl-template11 footer { background-color: var(--primary-color); }
body.tpl-template11 .footer-bottom { background-color: rgba(0,0,0,.18); }
/* wider header/top-bar so content isn't squeezed into the middle (less side gap) */
body.tpl-template11 .top-bar .container, body.tpl-template11 header .container { max-width: 1340px !important; padding-left: 22px !important; padding-right: 22px !important; }
/* social icons in the top bar */
body.tpl-template11 .top-bar-right { display: flex; align-items: center; gap: 20px; }
body.tpl-template11 .top-bar-social { display: inline-flex; align-items: center; gap: 13px; }
body.tpl-template11 .top-bar-social a { color: #fff; font-size: .98rem; opacity: .88; transition: .2s; line-height: 1; }
body.tpl-template11 .top-bar-social a:hover { opacity: 1; color: var(--secondary-color); transform: translateY(-1px); }
/* gallery: clean uniform grid (not the irregular masonry) */
body.tpl-template11 .masonry-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important; gap: 18px !important; grid-auto-rows: auto !important; }
body.tpl-template11 .masonry-grid .masonry-item { grid-column: auto !important; grid-row: auto !important; height: 220px !important; width: auto !important; border-radius: 12px; overflow: hidden; }
body.tpl-template11 .masonry-grid .masonry-item img { width: 100% !important; height: 100% !important; object-fit: cover !important; }

/* --- CALL TO ACTION (CTA) SECTION --- */
.cta {
    position: relative;
    padding: 90px 0;
    background: linear-gradient(rgba(10, 15, 30, 0.86), rgba(10, 15, 30, 0.9)), url('../images/hero-banner2.png') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    overflow: hidden;
    margin-top: 0;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.cta-content {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--white) !important;
    margin-bottom: 18px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    line-height: 1.25;
}

.cta-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto 35px;
    line-height: 1.7;
    max-width: 650px;
}

.cta-btns {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-btns .btn {
    padding: 14px 34px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.cta-btns .btn-primary {
    background-color: var(--secondary-color);
    color: var(--white) !important;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 10px 25px rgba(229, 139, 51, 0.4);
}

.cta-btns .btn-primary:hover {
    background-color: #d17a25;
    border-color: #d17a25;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(229, 139, 51, 0.5);
    color: var(--white) !important;
}

.cta-btns .btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white) !important;
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
}

.cta-btns .btn-outline:hover {
    background: var(--white);
    color: var(--accent-color) !important;
    border-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .cta {
        padding: 65px 0;
    }
    .cta-content h2 {
        font-size: 2.1rem;
    }
    .cta-content p {
        font-size: 1rem;
    }
    .cta-btns {
        flex-direction: column;
        gap: 15px;
    }
    .cta-btns .btn {
        width: 100%;
        max-width: 300px;
    }
}

