/* ===================================
   Hero Slider Styles - Fully Responsive
   Image Cut Fix - All Devices
   =================================== */

.hero-slider {
    position: relative;
    width: 100% !important;
    height: 100vh;
    min-height: 500px;
    max-height: 900px;
    overflow: hidden;
    background: #000; /* side gaps ke liye fallback bg */
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* ===================================
   SLIDE BACKGROUND - IMAGE FIX
   Desktop: cover (full fill)
   Mobile: 100% 100% (poori image dikhe)
   =================================== */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 8s ease-out;
}

/* Desktop zoom effect - thoda kam kiya */
.slide.active .slide-bg {
    transform: scale(1.05);
}

/* ===================================
   SLIDE OVERLAY
   =================================== */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ===================================
   SLIDE CONTENT
   =================================== */
.slide-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px 15px;
    text-align: center;
}

/* ===================================
   TEXT STYLES
   =================================== */
.hero-title {
    font-size: clamp(1.6rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.2rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2.5vw, 1.5rem);
    color: #ffffff;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    font-weight: 300;
    line-height: 1.5;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   TEXT ANIMATIONS
   =================================== */
.animate-text {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 0.8s ease-out forwards;
}

.animate-text-delay {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 0.8s ease-out 0.3s forwards;
}

.animate-buttons {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 0.8s ease-out 1.2s forwards;
}

.slide:not(.active) .animate-text,
.slide:not(.active) .animate-text-delay,
.slide:not(.active) .animate-buttons {
    animation: none;
    opacity: 0;
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   NAVIGATION ARROWS
   =================================== */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev { left: 30px; }
.slider-nav.next { right: 30px; }

/* ===================================
   DOT INDICATORS
   =================================== */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
    align-items: center;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.dot.active {
    background: #ffffff;
    width: 35px;
    border-radius: 6px;
}

/* ===================================
   SCROLL INDICATOR
   =================================== */
.scroll-indicator {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: #ffffff;
    font-size: 24px;
    text-decoration: none;
    animation: bounce 2s infinite;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
    color: #ffffff;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40%  { transform: translateX(-50%) translateY(-10px); }
    60%  { transform: translateX(-50%) translateY(-5px); }
}

/* ===================================
   BUTTON STYLES
   =================================== */
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, #1037e2 0%, #1a4c8d 100%);
    border: none;
    padding: 14px 38px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(22, 63, 245, 0.4);
    color: #fff;
    font-size: 1rem;
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-outline-light {
    border: 2px solid #ffffff;
    padding: 14px 38px;
    font-weight: 600;
    border-radius: 50px;
    background: transparent;
    color: #ffffff;
    transition: all 0.3s ease;
    font-size: 1rem;
    white-space: nowrap;
}

.btn-outline-light:hover {
    background: #ffffff;
    color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* ===================================
   FACILITIES SECTION
   =================================== */
.facilities-section {
    background: #f8f9fa;
    padding: 60px 0;
}

.section-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0a70ff;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #7d726c;
    margin-top: 10px;
}

.facility-box {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    height: 140px;
}

.facility-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.facility-img-wrapper {
    position: relative;
    width: 180px;
    height: 140px;
    flex-shrink: 0;
    overflow: hidden;
}

.facility-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.facility-box:hover .facility-img-wrapper img {
    transform: scale(1.1);
}

.facility-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.facility-badge i {
    color: #ffffff;
    font-size: 1.3rem;
}

.facility-info {
    padding: 20px 25px;
    flex-grow: 1;
}

.facility-info h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.facility-info p {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0;
    line-height: 1.5;
}

/* ===================================
   RESPONSIVE BREAKPOINTS
   =================================== */

/* Large Tablets / Small Laptops (max 1024px) */
@media (max-width: 1024px) {
    .hero-slider {
        min-height: 450px;
    }

    .slider-nav.prev { left: 20px; }
    .slider-nav.next { right: 20px; }
}

/* Tablets (max 991px) */
@media (max-width: 991px) {
    .hero-slider {
        height: 80vh;
        min-height: 420px;
    }

    /* Zoom band - cutting nahi hogi */
    .slide.active .slide-bg {
        transform: scale(1);
    }

    .slide-bg {
        background-size: contain;
    }

    .slider-nav {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .facility-box { height: 130px; }
    .facility-img-wrapper { width: 150px; height: 130px; }
    .facility-info { padding: 15px 20px; }
    .facility-info h4 { font-size: 1.1rem; }
    .facility-badge { width: 45px; height: 45px; }
    .facility-badge i { font-size: 1.1rem; }
}

/* Tablets Portrait (max 768px) */
@media (max-width: 768px) {
    /*
     * height: auto + aspect-ratio se slider
     * apni image ke ratio ke hisaab se automatically resize hoga
     * Agar aapki image 16:9 hai to aspect-ratio: 16/9 rakhein
     * Agar 4:3 hai to 4/3 rakhein
     */
    .hero-slider {
        height: auto;
        min-height: unset;
        aspect-ratio: 16 / 9;
        max-height: none;
    }

    /* 100% 100% = width aur height dono fill - koi bhi corner cut nahi hoga */
    .slide-bg {
        background-size: 100% 100%;
        background-position: center;
    }

    .slide.active .slide-bg {
        transform: scale(1); /* zoom bilkul band */
    }

    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .slider-nav.prev { left: 12px; }
    .slider-nav.next { right: 12px; }

    .slider-dots {
        bottom: 15px;
        gap: 10px;
    }

    .dot { width: 8px; height: 8px; }
    .dot.active { width: 28px; }

    .scroll-indicator {
        bottom: 50px;
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .btn-primary,
    .btn-outline-light {
        padding: 12px 32px;
        width: 100%;
        max-width: 260px;
        font-size: 0.95rem;
    }

    .section-label { font-size: 1.8rem; }
    .facility-box { height: 120px; }
    .facility-img-wrapper { width: 130px; height: 120px; }
    .facility-info { padding: 12px 15px; }
    .facility-info h4 { font-size: 1rem; }
    .facility-info p { font-size: 0.85rem; }
}

/* Large Phones (max 576px) */
@media (max-width: 576px) {
    .hero-slider {
        height: auto;
        aspect-ratio: 4 / 3;   /* mobile par thoda square better lagta hai */
        min-height: unset;
    }

    .slide-bg {
        background-size: 100% 100%; /* poori image - zero cropping */
        background-position: center;
    }

    .slide.active .slide-bg {
        transform: scale(1);
    }

    .slider-nav {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .slider-nav.prev { left: 8px; }
    .slider-nav.next { right: 8px; }

    .slide-content {
        padding: 10px 10px 45px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-outline-light {
        padding: 11px 28px;
        max-width: 240px;
        font-size: 0.9rem;
    }

    .facilities-section { padding: 50px 0; }

    .facility-box {
        height: auto;
        flex-direction: column;
        text-align: center;
    }

    .facility-img-wrapper {
        width: 100%;
        height: 180px;
    }

    .facility-badge {
        top: 10px;
        right: 10px;
    }
}

/* Small Phones (max 480px) */
@media (max-width: 480px) {
    .hero-slider {
        aspect-ratio: 4 / 3;
    }

    .slider-dots {
        bottom: 10px;
        gap: 8px;
    }

    .dot { width: 7px; height: 7px; }
    .dot.active { width: 22px; }

    .scroll-indicator { display: none; }
}

/* Very Small Phones (max 360px) */
@media (max-width: 360px) {
    .hero-slider {
        aspect-ratio: 4 / 3;
    }

    .slider-nav {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }

    .btn-primary,
    .btn-outline-light {
        padding: 10px 22px;
        font-size: 0.85rem;
        max-width: 200px;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-slider {
        height: 100vh;
        aspect-ratio: unset;
        min-height: 250px;
    }

    .slide-bg {
        background-size: contain;
        background-position: center;
    }

    .slide.active .slide-bg {
        transform: scale(1);
    }

    .hero-subtitle { display: none; }
    .scroll-indicator { display: none; }
    .slider-dots { bottom: 8px; }
    .slide-content { padding: 8px; }
}