/* ===== CSS Variables ===== */
:root {
    --saffron: #FF9933;
    --white: #FFFFFF;
    --green: #138808;
    --navy: #000080;
    --gold: #FFD700;
    --dark: #1a1a2e;
    --darker: #0f0f1a;
    --light: #f8f9fa;
    --gray: #6c757d;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--light);
    color: var(--dark);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== News Ticker ===== */
.news-ticker {
    background: linear-gradient(90deg, var(--saffron), var(--dark), var(--green));
    padding: 8px 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    z-index: 1000;
}

.ticker-label {
    background: var(--gold);
    color: var(--dark);
    padding: 5px 20px;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 2;
    animation: pulse 2s infinite;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
}

.ticker-text {
    color: white;
    white-space: nowrap;
    font-size: 0.9rem;
    animation: ticker 30s linear infinite;
    padding-left: 100%;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 34px;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    transition: var(--transition);
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, var(--saffron), var(--white), var(--green)) 1;
}

.navbar.scrolled {
    top: 0;
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 153, 51, 0.5));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.1rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--saffron), var(--white), var(--green));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.logo-tagline {
    font-size: 0.7rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-link {
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--saffron), var(--green));
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: var(--transition);
}

/* ===== Mobile Menu ===== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg,
            var(--saffron) 0%,
            var(--saffron) 33%,
            var(--white) 33%,
            var(--white) 66%,
            var(--green) 66%,
            var(--green) 100%);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: scale(0.9);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.mobile-menu-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.mobile-menu-close span {
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--dark);
    top: 50%;
    left: 0;
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-menu-close span:first-child {
    transform: rotate(45deg);
}

.mobile-menu-close span:last-child {
    transform: rotate(-45deg);
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav-links li {
    margin: 20px 0;
    opacity: 0;
    transform: translateY(30px);
}

.mobile-menu-overlay.active .mobile-nav-links li {
    animation: slideUp 0.5s forwards;
}

.mobile-nav-links li:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-nav-links li:nth-child(2) {
    animation-delay: 0.2s;
}

.mobile-nav-links li:nth-child(3) {
    animation-delay: 0.3s;
}

.mobile-nav-links li:nth-child(4) {
    animation-delay: 0.4s;
}

.mobile-nav-links li:nth-child(5) {
    animation-delay: 0.5s;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-link {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.3);
    padding: 10px 40px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.mobile-link:hover {
    color: var(--white);
    background: var(--dark);
    text-shadow: 0 0 20px var(--gold);
}

.mobile-contact {
    margin-top: 50px;
    text-align: center;
    color: var(--dark);
    background: rgba(255, 255, 255, 0.4);
    padding: 20px 30px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.mobile-contact p {
    margin: 10px 0;
}

/* ===== Hero Slider ===== */
.hero-slider {
    position: relative;
    height: 85vh;
    min-height: 500px;
    max-height: 800px;
    margin-top: 55px;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* Tricolor gradient background for slider */
.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(90deg,
            #FF9933 0%,
            #FF9933 25%,
            #FFFFFF 25%,
            #FFFFFF 50%,
            #FFFFFF 75%,
            #138808 75%,
            #138808 100%);
}

.slide.active {
    opacity: 1;
}

/* Slides without any content overlay */
.slide.slide-no-content {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4), rgba(19, 136, 8, 0.3));
}

/* No overlay for slides without content */
.slide.slide-no-content .slide-overlay {
    display: none;
}

/* Slide image for height calculation */
.slide-img {
    width: 100%;
    height: auto;
    display: none;
    object-fit: contain;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 90%;
    max-width: 800px;
}

.admission-badge {
    display: inline-block;
    background: linear-gradient(90deg, var(--saffron), var(--gold));
    color: var(--dark);
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 153, 51, 0.5);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(255, 153, 51, 0.8);
    }
}

.slide-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.slide-content .highlight {
    background: linear-gradient(90deg, var(--saffron), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.slide-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--saffron), var(--gold));
    color: var(--dark);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(255, 153, 51, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 153, 51, 0.6);
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active,
.slider-dot:hover {
    background: var(--gold);
    transform: scale(1.2);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    z-index: 10;
    backdrop-filter: blur(5px);
}

.slider-arrow:hover {
    background: var(--saffron);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

/* ===== Section Styles ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(90deg, var(--saffron), var(--green));
    color: white;
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-header.light h2 {
    color: white;
}

.text-gradient {
    background: linear-gradient(90deg, var(--saffron), var(--green));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-light {
    background: linear-gradient(90deg, var(--gold), var(--saffron));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--saffron), var(--white), var(--green));
    margin: 0 auto;
    border-radius: 2px;
}

.header-line.light {
    background: linear-gradient(90deg, var(--gold), var(--saffron));
}

/* ===== About Section ===== */
.about-section {
    padding: 100px 0;
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
    min-height: 500px;
}

.image-frame::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;
    border: 3px solid;
    border-image: linear-gradient(135deg, var(--saffron), var(--green)) 1;
    border-radius: 20px;
    z-index: -1;
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.image-frame:hover img {
    transform: scale(1.05);
}

.image-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--saffron), var(--gold));
    color: var(--dark);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
}

.about-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.about-content p {
    color: var(--gray);
    margin-bottom: 25px;
    line-height: 1.8;
}

.hostel-highlight {
    margin-bottom: 25px;
}

.hostel-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--saffron), var(--gold));
    color: var(--dark);
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 5px 25px rgba(255, 153, 51, 0.4);
    animation: hostelPulse 2s infinite;
}

@keyframes hostelPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 5px 25px rgba(255, 153, 51, 0.4);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 8px 35px rgba(255, 153, 51, 0.6);
    }
}

.forces-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.force-tag {
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.1), rgba(19, 136, 8, 0.1));
    border: 1px solid rgba(255, 153, 51, 0.3);
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.force-tag:hover {
    background: linear-gradient(135deg, var(--saffron), var(--green));
    color: white;
    transform: translateY(-2px);
}

.about-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.1), rgba(19, 136, 8, 0.1));
    border-radius: 15px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--saffron), var(--green));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
}

/* ===== Trainer Section ===== */
.trainer-section {
    padding: 100px 0;
    position: relative;
    background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
    overflow: hidden;
}

.trainer-bg {
    position: absolute;
    inset: 0;
    background: url('uploads/background.jpg') center/cover;
    opacity: 0.1;
}

.trainer-card {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.trainer-image {
    position: relative;
    flex: 0 0 400px;
}

.trainer-image img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
}

.trainer-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, var(--saffron), var(--gold));
    color: var(--dark);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
}

.trainer-info {
    flex: 1;
    padding: 50px;
    color: white;
}

.trainer-name {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--saffron), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.trainer-highlight {
    display: inline-block;
    background: linear-gradient(135deg, var(--saffron), var(--gold));
    color: var(--dark);
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 15px;
    box-shadow: 0 5px 20px rgba(255, 153, 51, 0.4);
    animation: highlightPulse 2s infinite;
}

@keyframes highlightPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 5px 20px rgba(255, 153, 51, 0.4);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 8px 30px rgba(255, 153, 51, 0.6);
    }
}

.trainer-designation {
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 20px;
}

.trainer-divider {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--saffron), var(--green));
    margin-bottom: 25px;
}

.trainer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 153, 51, 0.1);
    border-left: 4px solid var(--saffron);
    border-radius: 0 10px 10px 0;
}

.trainer-specialties {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.specialty {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 50px;
}

.specialty-icon {
    font-size: 1.3rem;
}

.btn-trainer {
    display: inline-block;
    background: linear-gradient(135deg, var(--saffron), var(--gold));
    color: var(--dark);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-trainer:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 153, 51, 0.4);
}

/* ===== Mission Section ===== */
.mission-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mission-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--saffron), var(--green));
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
}

.mission-icon {
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.2), rgba(255, 153, 51, 0.1));
}

.vision-icon {
    background: linear-gradient(135deg, rgba(19, 136, 8, 0.2), rgba(19, 136, 8, 0.1));
}

.values-icon {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
}

.mission-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.mission-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* ===== Services Section ===== */
.services-section {
    padding: 100px 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.05), rgba(19, 136, 8, 0.05));
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--saffron), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: rotateY(180deg);
}

.service-icon svg {
    width: 35px;
    height: 35px;
    fill: var(--dark);
}

.service-card h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--dark);
}

.service-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ===== Why Section ===== */
.why-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--dark), var(--darker));
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.why-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 40px 25px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.why-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--saffron), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.why-card h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.why-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ===== Gallery Section ===== */
.gallery-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '🔍';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    z-index: 2001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: var(--saffron);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition);
    z-index: 2001;
}

.lightbox-nav:hover {
    background: var(--saffron);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 25px;
    border-radius: 50px;
}




/* ===== Success Section ===== */
.success-section {
    padding: 100px 0;
    background: white;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.success-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 100%;
}

.success-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.success-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.success-card img {
    width: 100%;
    height: 280px;
    object-fit: contain; /* Changed from cover to contain - shows full image */
    background: #f8f9fa; /* Light background for letterboxing */
    transition: transform 0.5s ease;
    display: block;
}

.success-card:hover img {
    transform: scale(1.05);
}

.success-overlay {
    display: none;
}

/* ===== Responsive Design ===== */

/* Large screens */
@media (max-width: 1200px) {
    .success-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
    
    .success-card img {
        height: 260px;
    }
}

/* Laptops and tablets landscape */
@media (max-width: 1024px) {
    .success-section {
        padding: 80px 0;
    }
    
    .success-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .success-card img {
        height: 240px;
    }
}

/* Tablets portrait */
@media (max-width: 768px) {
    .success-section {
        padding: 60px 0;
    }
    
    .success-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .success-card {
        border-radius: 12px;
    }
    
    .success-card img {
        height: 220px;
    }
}

/* Mobile devices */
@media (max-width: 480px) {
    .success-section {
        padding: 40px 0;
    }
    
    .success-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px; /* Limit width on mobile for better viewing */
        margin: 0 auto;
    }
    
    .success-card {
        border-radius: 10px;
    }
    
    .success-card img {
        height: 300px; /* Taller on mobile for single column */
    }
    
    .success-card:hover img {
        transform: scale(1.02); /* Reduced zoom on mobile */
    }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
    .success-section {
        padding: 30px 0;
    }
    
    .success-grid {
        gap: 15px;
    }
    
    .success-card img {
        height: 280px;
    }
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 80px 0;
    background: url('uploads/slider2.jpg') center/cover fixed;
    position: relative;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.9), rgba(19, 136, 8, 0.9));
}

.cta-content {
    position: relative;
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-cta {
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-cta.primary {
    background: white;
    color: var(--dark);
}

.btn-cta.secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ===== Contact Section ===== */
.contact-section {
    padding: 100px 0;
    background: #f8f9fa;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 100%; /* Ensure it doesn't exceed container */
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.contact-info>p {
    color: var(--gray);
    margin-bottom: 30px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px; /* Prevent shrinking */
    background: linear-gradient(135deg, var(--saffron), var(--gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.contact-detail {
    display: flex;
    flex-direction: column;
    overflow-wrap: break-word;
    word-break: break-word;
}

.contact-detail .label {
    font-size: 0.85rem;
    color: var(--gray);
}

.contact-detail a,
.contact-detail span {
    font-weight: 600;
    color: var(--dark);
}

.contact-detail a:hover {
    color: var(--saffron);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

.social-link.facebook {
    background: #1877f2;
    color: white;
}

.social-link.whatsapp {
    background: #25d366;
    color: white;
}

.social-link.youtube {
    background: #FF0000;
    color: white;
}

.social-link.instagram {
    background: radial-gradient(circle at 30% 30%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 100%);
    color: white;
}

.social-link.phone {
    background: var(--saffron);
    color: white;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 400px;
    width: 100%; /* Ensure it doesn't overflow */
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: 0;
}

/* ===== Responsive Design ===== */

/* Tablets and smaller laptops */
@media (max-width: 1024px) {
    .contact-section {
        padding: 80px 0;
    }
    
    .contact-grid {
        gap: 40px;
    }
    
    .contact-info h3 {
        font-size: 1.6rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info h3 {
        font-size: 1.5rem;
    }
    
    .contact-item {
        padding: 15px;
        gap: 15px;
    }
    
    .contact-item:hover {
        transform: translateX(5px);
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
        font-size: 1.2rem;
    }
    
    .contact-map {
        min-height: 350px;
    }
    
    .contact-map iframe {
        min-height: 350px;
    }
}

/* Mobile devices */
@media (max-width: 480px) {
    .contact-section {
        padding: 40px 0;
    }
    
    .contact-grid {
        gap: 30px;
    }
    
    .contact-info h3 {
        font-size: 1.3rem;
    }
    
    .contact-info>p {
        font-size: 0.95rem;
    }
    
    .contact-item {
        padding: 12px;
        gap: 12px;
        flex-direction: row;
        align-items: flex-start;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1.1rem;
    }
    
    .contact-detail .label {
        font-size: 0.8rem;
    }
    
    .contact-detail a,
    .contact-detail span {
        font-size: 0.9rem;
    }
    
    .social-links {
        gap: 10px;
        margin-top: 20px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
    
    .social-link svg {
        width: 20px;
        height: 20px;
    }
    
    .contact-map {
        min-height: 300px;
        border-radius: 15px;
    }
    
    .contact-map iframe {
        min-height: 300px;
    }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
    .contact-section {
        padding: 30px 0;
    }
    
    .contact-info h3 {
        font-size: 1.2rem;
    }
    
    .contact-item {
        padding: 10px;
        gap: 10px;
    }
    
    .contact-icon {
        width: 35px;
        height: 35px;
        min-width: 35px;
        font-size: 1rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .contact-map {
        min-height: 250px;
    }
    
    .contact-map iframe {
        min-height: 250px;
    }
}
/* ===== Footer ===== */
.footer {
    background: var(--darker);
    color: white;
}

.footer-top {
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-logo {
    width: 80px;
    margin-bottom: 15px;
}

.footer-about h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    background: linear-gradient(90deg, var(--saffron), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--gold);
}

.footer-links ul,
.footer-services ul {
    list-style: none;
}

.footer-links li,
.footer-services li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--saffron);
    padding-left: 5px;
}

.footer-services li {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact p {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--saffron);
}

.footer-bottom {
    padding: 20px 0;
}

.footer-bottom-content {
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--gold);
    font-weight: 600;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--saffron);
}

/* ===== WhatsApp Float ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.5);
    z-index: 999;
    animation: floatBounce 2s infinite;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

@keyframes floatBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .trainer-card {
        flex-direction: column;
    }

    .trainer-image {
        flex: none;
    }

    .trainer-image img {
        min-height: 350px;
    }

    .mission-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .success-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .logo-title {
        font-size: 1rem;
    }

    .logo-tagline {
        font-size: 0.6rem;
    }

    .hero-slider {
        height: auto;
        min-height: 50vh;
        max-height: none;
        margin-top: 65px;
    }

    .slider-container {
        background: #1a1a2e;
        min-height: 50vh;
    }

    .slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
    }

    .slide.slide-no-content {
        background-size: cover;
        background-position: center;
    }

    .slide-img {
        display: none;
    }

    .slide-content h1 {
        font-size: 2.2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .mission-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Lightbox Mobile Responsive */
    .lightbox-content {
        max-width: 95vw;
        max-height: 70vh;
        padding: 10px;
    }

    .lightbox-content img {
        max-width: 100%;
        max-height: 70vh;
        border-radius: 5px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.8rem;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-counter {
        bottom: 15px;
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .success-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .trainer-info {
        padding: 30px;
    }

    .trainer-name {
        font-size: 1.6rem;
    }

    .trainer-specialties {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .news-ticker {
        padding: 6px 0;
    }

    .ticker-label {
        padding: 4px 12px;
        font-size: 0.75rem;
    }

    .nav-logo img {
        width: 45px;
        height: 45px;
    }

    .slide-content h1 {
        font-size: 1.8rem;
    }

    .admission-badge {
        padding: 8px 20px;
        font-size: 0.8rem;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .about-stats {
        gap: 15px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .success-grid {
        grid-template-columns: 1fr;
    }

    .success-card img {
        height: 250px;
    }

    /* Gallery for small screens */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Lightbox for small screens */
    .lightbox-content {
        max-width: 100vw;
        max-height: 80vh;
        padding: 5px;
    }

    .lightbox-content img {
        max-width: 100%;
        max-height: 80vh;
        border-radius: 0;
    }

    .lightbox-nav {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .lightbox-prev {
        left: 5px;
    }

    .lightbox-next {
        right: 5px;
    }

    .lightbox-close {
        top: 5px;
        right: 5px;
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }

    .lightbox-counter {
        bottom: 10px;
        padding: 6px 15px;
        font-size: 0.8rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}