/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    overflow-x: hidden;
    background-color: #f8f9fa;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    color: #003366 !important;
}

.nav-link {
    font-weight: 500;
    color: #555 !important;
    margin: 0 10px;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #003366 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #003366;
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-login {
    background: #003366;
    color: white !important;
    border-radius: 20px;
    padding: 8px 25px !important;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
    transition: transform 0.3s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.4);
}

/* Mobile Fixes */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        margin-top: 15px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        padding-top: 120px;
    }
}

/* ─── HERO ─────────────────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, rgba(0,31,63,0.92) 0%, rgba(0,51,102,0.85) 50%, rgba(0,80,150,0.9) 100%),
                url('../img/hero-bg.png') center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 100px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

/* Animated Circles Background — varied sizes & timing */
.circles {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    z-index: 0;
}

.circles li {
    position: absolute;
    display: block;
    list-style: none;
    background: rgba(255,255,255,0.08);
    animation: floatUp linear infinite;
    bottom: -200px;
    border-radius: 50%;
}

.circles li:nth-child(1)  { width:80px;  height:80px;  left:10%; animation-duration:18s; animation-delay:0s;   background:rgba(255,193,7,0.15);  }
.circles li:nth-child(2)  { width:30px;  height:30px;  left:20%; animation-duration:12s; animation-delay:2s;   }
.circles li:nth-child(3)  { width:50px;  height:50px;  left:30%; animation-duration:15s; animation-delay:4s;   background:rgba(0,212,255,0.12); }
.circles li:nth-child(4)  { width:100px; height:100px; left:40%; animation-duration:22s; animation-delay:0s;   background:rgba(255,255,255,0.05); }
.circles li:nth-child(5)  { width:20px;  height:20px;  left:55%; animation-duration:10s; animation-delay:1s;   background:rgba(255,193,7,0.2);  }
.circles li:nth-child(6)  { width:60px;  height:60px;  left:65%; animation-duration:16s; animation-delay:3s;   background:rgba(0,212,255,0.1);  }
.circles li:nth-child(7)  { width:40px;  height:40px;  left:75%; animation-duration:13s; animation-delay:5s;   }
.circles li:nth-child(8)  { width:90px;  height:90px;  left:5%;  animation-duration:20s; animation-delay:6s;   background:rgba(255,255,255,0.05); }
.circles li:nth-child(9)  { width:25px;  height:25px;  left:85%; animation-duration:11s; animation-delay:2s;   background:rgba(255,193,7,0.15);  }
.circles li:nth-child(10) { width:70px;  height:70px;  left:92%; animation-duration:17s; animation-delay:4s;   background:rgba(0,212,255,0.08); }

@keyframes floatUp {
    0%   { transform: translateY(0) rotate(0deg) scale(1);   opacity:0.8; }
    50%  { transform: translateY(-500px) rotate(360deg) scale(1.1); opacity:0.5; }
    100% { transform: translateY(-1100px) rotate(720deg) scale(0.8); opacity:0; }
}

/* Hero wave bottom */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 100%; height: 60px;
    background: #f8f9fa;
    clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
    padding: 20px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,193,7,0.2);
    border: 1px solid rgba(255,193,7,0.4);
    color: #FFC107;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.3);
    line-height: 1.1;
}

.hero-title span {
    color: #FFC107;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.85;
    line-height: 1.6;
}

/* Feature Cards in Hero */
.hero-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.hero-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 22px 28px;
    border-radius: 16px;
    width: 180px;
    transition: transform 0.3s, background 0.3s;
}

.hero-card:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.18);
}

.hero-card i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
    color: #FFC107;
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-features {
        flex-wrap: nowrap;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 10px;
        justify-content: flex-start;
    }
    .hero-card {
        width: auto;
        flex: 0 0 130px;
        padding: 14px 10px;
    }
    .hero-card i { font-size: 1.6rem; }
    .hero-card h5 { font-size: 0.85rem; margin: 0; }
}

/* ─── STATS COUNTER SECTION ────────────────────────────── */
.stats-section {
    background: linear-gradient(135deg, #003366 0%, #00509e 100%);
    padding: 60px 0;
    position: relative;
    z-index: 2;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -2px; left: 0;
    width: 100%; height: 60px;
    background: #f8f9fa;
    clip-path: ellipse(55% 100% at 50% 0%);
}

.stat-item {
    text-align: center;
    color: white;
    padding: 20px;
}

.stat-number {
    font-size: 3.2rem;
    font-weight: 900;
    color: #FFC107;
    line-height: 1;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.85;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.stat-icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
    opacity: 0.7;
}

@media (max-width: 576px) {
    .stat-number { font-size: 2.4rem; }
    .stat-label  { font-size: 0.85rem; }
}

/* ─── SECTIONS ──────────────────────────────────────────── */
.section {
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

.section.bg-white { background-color: #fff; }
.section.bg-light  { background-color: #f8f9fa; }

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: #FFC107;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* ─── NEWS CARDS ────────────────────────────────────────── */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.hover-lift:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12) !important;
}

.card-img-top {
    transition: transform 0.4s ease;
    overflow: hidden;
}

.card:hover .card-img-top {
    transform: scale(1.04);
}

.card { overflow: hidden; border: none !important; border-radius: 16px !important; }

/* ─── ACHIEVEMENTS ──────────────────────────────────────── */
.achievement-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.card-header-icon {
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3.5rem;
    position: relative;
}

/* Gold — 1st, 4th, 7th ... */
.card-header-icon.gold {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

/* Silver — auto via nth-child when all are .gold */
.col-md-6:nth-child(3n+2) .card-header-icon.gold,
.col-lg-4:nth-child(3n+2) .card-header-icon.gold {
    background: linear-gradient(135deg, #bdc3c7 0%, #8ec5fc 100%);
}

/* Bronze */
.col-md-6:nth-child(3n+3) .card-header-icon.gold,
.col-lg-4:nth-child(3n+3) .card-header-icon.gold {
    background: linear-gradient(135deg, #cd7f32 0%, #d4a05a 100%);
}

.card-header-icon.silver {
    background: linear-gradient(135deg, #bdc3c7 0%, #8ec5fc 100%);
}

.card-header-icon.bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #d4a05a 100%);
}

/* Medal badge */
.card-header-icon::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.15), transparent);
}

.ach-body {
    padding: 22px;
    text-align: center;
}

.ach-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.ach-person {
    color: #003366;
    font-weight: 600;
    margin-bottom: 4px;
}

.ach-date { color: #999; font-size: 0.85rem; }

/* ─── CONTACT ───────────────────────────────────────────── */
.contact-info-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.contact-icon {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, #fff8e1, #fff3cd);
    color: #FFC107;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(255,193,7,0.25);
}

/* ─── FOOTER ────────────────────────────────────────────── */
footer {
    background: linear-gradient(135deg, #001129 0%, #001f3f 100%);
    color: white;
    padding: 50px 0 25px;
    text-align: center;
}

.social-links a {
    color: rgba(255,255,255,0.7);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
}

.social-links a:hover {
    color: #FFC107;
    transform: translateY(-3px);
}

/* ─── TEAM ──────────────────────────────────────────────── */
.team-card {
    background: white;
    padding: 28px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.team-img {
    width: 110px; height: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    border: 4px solid #f0f4ff;
    transition: border-color 0.3s, transform 0.3s;
}

.team-card:hover .team-img {
    border-color: #003366;
    transform: scale(1.05);
}

.team-name {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: #333;
}

.team-role {
    color: #FFC107;
    font-weight: 600;
    font-size: 0.85rem;
}

/* ─── TEAM SLIDER ───────────────────────────────────────── */
.team-slider-container { padding: 0 50px; }
.team-track {
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.team-track::-webkit-scrollbar { display: none; }
.team-slide {
    flex: 0 0 calc(25% - 18px);
    scroll-snap-align: start;
}
.team-nav-btn {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    z-index: 10;
    width: 42px; height: 42px;
    border-radius: 50%;
    padding: 0;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0,51,102,0.2);
    background: #003366 !important;
    border: none !important;
}
.prev-btn { left: 0; }
.next-btn { right: 0; }

@media (max-width: 992px) {
    .team-slide { flex: 0 0 calc(50% - 12px); }
}
@media (max-width: 576px) {
    .team-slide { flex: 0 0 calc(33.333% - 16px); }
    .team-slider-container { padding: 0 20px; }
    .team-nav-btn { width: 28px; height: 28px; font-size: 11px; }
    .prev-btn { left: -5px; }
    .next-btn { right: -5px; }
    .team-img { width: 60px !important; height: 60px !important; border-width: 2px !important; }
    .team-name { font-size: 0.78rem; }
    .team-role { font-size: 0.65rem; }
    .team-card { padding: 14px 5px; }
}

/* ─── AOS CUSTOM ────────────────────────────────────────── */
[data-aos] { transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94) !important; }
