/* ==========================================================================
   HERO SLIDER — Full Responsive, Device-Friendly
   ========================================================================== */

/* Each slide uses absolute positioned bg + overlay so height is pure CSS-controlled */
.hero-slider {
    position: relative;
    width: 100%;
    height: clamp(400px, 65vh, 700px);
    overflow: hidden;
    background: #001f3f;
    margin-top: 0;
}

.hero-slider .swiper,
.hero-slider .swiper-wrapper,
.hero-slider .swiper-slide {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Background image layer — separate div so object-fit works cleanly */
.hero-slider .slide-bg {
    position: absolute;
    inset: -20px; /* overflow slightly to prevent edge gaps during Ken Burns */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1.02);
    transition: transform 8s ease;
    will-change: transform;
}

.swiper-slide-active .slide-bg {
    transform: scale(1); /* Ken Burns effect */
}

/* Ensure images cover the full area on all screen sizes */
@media (max-width: 768px) {
    .hero-slider .slide-bg {
        background-position: center center;
    }
}

/* Dark gradient overlay */
.hero-slider .slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 31, 63, 0.85) 0%,
        rgba(0, 80, 160, 0.7) 60%,
        rgba(0, 31, 63, 0.55) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 50px; /* top: clear fixed header */
    text-align: center;
}

/* Top gradient for header readability */
.hero-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, transparent 100%);
    z-index: 5;
    pointer-events: none;
}

/* Content box */
.hero-slider .hero-content {
    max-width: 860px;
    width: 100%;
    color: #fff;
    animation: heroFadeUp 0.9s ease-out both;
}

/* Badge pill */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 122, 0, 0.85);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 1rem;
}

/* Headline */
.hero-slider h1 {
    font-size: clamp(1.6rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.9rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.01em;
    color: #fff;
}

.hero-slider h1 span {
    color: #ffa94d;
}

/* Sub headline */
.hero-slider p {
    font-size: clamp(0.95rem, 2.5vw, 1.25rem);
    margin-bottom: 2rem;
    opacity: 0.92;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA buttons */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 2px solid transparent;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #ff7a00, #ffa94d);
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 122, 0, 0.4);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(255, 122, 0, 0.5);
    color: #fff;
}

.btn-hero-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    transform: translateY(-3px);
    color: #fff;
}

/* Swiper overrides */
.swiper-button-next,
.swiper-button-prev {
    color: #fff !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition: background 0.3s;
    z-index: 10 !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(255, 122, 0, 0.7);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1rem !important;
}

/* Hide arrows on tiny phones */
@media (max-width: 480px) {
    .swiper-button-next,
    .swiper-button-prev { display: none !important; }
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.6) !important;
    width: 8px !important;
    height: 8px !important;
    opacity: 1 !important;
}

.swiper-pagination-bullet-active {
    background: #ff7a00 !important;
    width: 28px !important;
    border-radius: 4px !important;
    transition: width 0.4s ease;
}

.swiper-pagination {
    z-index: 10 !important;
}

/* Scroll bounce indicator */
.scroll-hint {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: none; /* shown only on md+ */
}

.scroll-hint span {
    display: block;
    width: 22px;
    height: 34px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 12px;
    position: relative;
}

.scroll-hint span::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    animation: scrollBounce 1.8s infinite;
}

@keyframes scrollBounce {
    0%, 100% { top: 5px; opacity: 1; }
    60% { top: 16px; opacity: 0; }
}

@media (min-width: 768px) {
    .hero-slider {
        height: clamp(500px, 80vh, 850px);
    }
    .hero-slider .slide-overlay {
        padding: 100px 40px 60px;
    }
    .scroll-hint { display: block; }
}

@media (min-width: 1200px) {
    .hero-slider {
        height: clamp(600px, 90vh, 1000px);
    }
}

/* Fade-up keyframe */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   NEWS TICKER
   ========================================================================== */
.news-ticker {
    background: #001f3f;
    color: #fff;
    padding: 10px 0;
    border-bottom: 3px solid #ff7a00;
    overflow: hidden;
}

.ticker-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.ticker-label {
    flex-shrink: 0;
    background: #ff7a00;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    z-index: 2;
    position: relative;
}

.ticker-scroll-wrap {
    overflow: hidden;
    flex: 1;
    padding-left: 16px;
}

.ticker-text {
    display: inline-block;
    white-space: nowrap;
    font-size: 0.9rem;
    animation: tickerRun 30s linear infinite;
}

@keyframes tickerRun {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ==========================================================================
   SECTION COMMON
   ========================================================================== */
.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 0 15px;
}

.section-title h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: #001f3f;
    margin-bottom: 0.6rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #ff7a00, #ffa94d);
    border-radius: 2px;
    margin: 8px auto 0;
}

.section-title p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: #666;
    max-width: 550px;
    margin: 0 auto;
}

/* ==========================================================================
   QUICK LINKS / PROGRAMS
   ========================================================================== */
.quick-links {
    padding: clamp(40px, 6vw, 90px) 0;
    background: #f8f9fa;
}

.links-grid {
    display: grid;
    grid-template-columns: 1fr; /* mobile: 1 column */
    gap: 1.25rem;
    padding: 0 15px;
}

/* 2 columns on tablets */
@media (min-width: 576px) {
    .links-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 3 columns on desktops */
@media (min-width: 992px) {
    .links-grid { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; padding: 0 20px; }
}

.link-card {
    background: #fff;
    padding: 1.75rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    text-align: center;
    transition: all 0.32s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.link-card::after {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 0;
    background: linear-gradient(90deg, #ff7a00, #ffa94d);
    transition: height 0.3s ease;
}

.link-card:hover { border-color: #ff7a00; transform: translateY(-6px); box-shadow: 0 12px 28px rgba(0,0,0,0.12); }
.link-card:hover::after { height: 4px; }

.link-icon {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, #ff7a00, #ffa94d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.1rem;
    transition: transform 0.3s ease;
}

.link-icon i { font-size: 1.7rem; color: #fff; }
.link-card:hover .link-icon { transform: scale(1.12) rotate(6deg); }

.link-card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; color: #001f3f; }
.link-card p  { font-size: 0.92rem; color: #666; margin-bottom: 1.2rem; line-height: 1.55; }
.link-card .btn { border-radius: 25px; padding: 9px 24px; font-size: 0.88rem; }

/* ==========================================================================
   STATS SECTION
   ========================================================================== */
.stats-section {
    background: linear-gradient(135deg, #001f3f 0%, #003366 100%);
    padding: clamp(40px, 6vw, 60px) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0 15px;
    text-align: center;
}

@media (min-width: 768px) {
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-item { color: #fff; }

.stat-num {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #ffa94d;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.85;
    font-weight: 500;
}

/* ==========================================================================
   STUDENT LOGIN SECTION
   ========================================================================== */
.student-login {
    padding: clamp(50px, 8vw, 80px) 0;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8ecff 100%);
    text-align: center;
    position: relative;
}

.student-login::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff7a00, #ffa94d);
}

.login-inner {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 15px;
}

.login-icon {
    font-size: 3rem;
    color: #ff7a00;
    margin-bottom: 1rem;
}

.student-login h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    margin-bottom: 0.8rem;
    color: #001f3f;
}

.student-login p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: #555;
    margin-bottom: 2rem;
}

.login-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.login-buttons .btn {
    border-radius: 30px;
    padding: 12px 28px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 160px;
    justify-content: center;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials {
    padding: clamp(50px, 7vw, 90px) 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 15px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .testimonial-grid { 
        grid-template-columns: repeat(3, 1fr); 
        gap: 2rem; 
        padding: 0 20px; 
    }
}

.testimonial-card {
    background: #fff;
    padding: 2rem 1.75rem;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #ff7a00;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff7a00, #ffa94d);
    border-radius: 16px 16px 0 0;
}

.testimonial-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 16px 40px rgba(0, 122, 0, 0.15); 
}

.quote-icon { 
    font-size: 2rem; 
    color: #ffa94d; 
    line-height: 1;
    opacity: 0.7;
}

.testimonial-stars {
    display: flex;
    gap: 3px;
    color: #ffc107;
    font-size: 0.85rem;
}

.testimonial-text {
    font-size: 0.98rem;
    color: #444;
    line-height: 1.8;
    font-style: italic;
    flex: 1;
    position: relative;
    padding-left: 0;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff7a00, #ffa94d);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.3);
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.testimonial-author strong {
    font-size: 0.95rem;
    color: #001f3f;
    font-weight: 600;
}

.testimonial-author span {
    font-size: 0.82rem;
    color: #888;
    font-weight: 400;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.link-card { animation: fadeInUp 0.55s ease-out both; }
.link-card:nth-child(2) { animation-delay: 0.08s; }
.link-card:nth-child(3) { animation-delay: 0.16s; }
.link-card:nth-child(4) { animation-delay: 0.24s; }
.link-card:nth-child(5) { animation-delay: 0.32s; }
.link-card:nth-child(6) { animation-delay: 0.40s; }

.testimonial-card { animation: fadeInUp 0.6s ease-out both; }
.testimonial-card:nth-child(2) { animation-delay: 0.12s; }
.testimonial-card:nth-child(3) { animation-delay: 0.24s; }

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .ticker-text,
    .link-card,
    .testimonial-card,
    .slide-bg,
    .btn-hero,
    .hero-slider .hero-content { animation: none !important; transition: none !important; }
}