/* 🌅 Inner Banner Section */

.inner-banner-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 0;
}


/* 🏞️ Background Image Container */

.inner-baner-container {
    position: relative;
    width: 100%;
    height: 420px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-bottom: 4px solid #00a651;
}


/* Remove overlay for crystal-clear image */

.inner-baner-container::before {
    content: none;
}


/* 🎯 Banner Text Container */

.inner-banner-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    z-index: 2;
    padding: 0 20px;
    animation: fadeInUp 1.2s ease-out;
}


/* ✨ Main Title Styling */

.inner-title {
    font-size: 3.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    background: linear-gradient(90deg, #ffffff, #d1fff0, #a8ffe0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    font-family: "Poppins", "Montserrat", sans-serif;
    position: relative;
    transition: all 0.4s ease;
}


/* Subtle glowing animation on hover */

.inner-title:hover {
    transform: scale(1.03);
    text-shadow: 0 0 25px rgba(0, 255, 170, 0.6);
}


/* 🌈 Stylish underline effect */

.inner-title::after {
    content: "";
    display: block;
    width: 100px;
    height: 4px;
    margin: 18px auto 0;
    background: linear-gradient(90deg, #00a651, #00e6cc, #0099cc);
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0, 166, 81, 0.5);
    animation: lineGlow 2.5s infinite alternate;
}


/* ✨ Animation Keyframes */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lineGlow {
    from {
        box-shadow: 0 0 8px rgba(0, 166, 81, 0.4);
    }
    to {
        box-shadow: 0 0 18px rgba(0, 230, 204, 0.8);
    }
}


/* 📱 Responsive Adjustments */

@media (max-width: 992px) {
    .inner-baner-container {
        height: 340px;
    }
    .inner-title {
        font-size: 2.4rem;
        letter-spacing: 1.2px;
    }
}

@media (max-width: 600px) {
    .inner-baner-container {
        height: 260px;
    }
    .inner-title {
        font-size: 1.9rem;
        letter-spacing: 1px;
    }
    .inner-title::after {
        width: 70px;
        height: 3px;
    }
}

.premium-feature-section {
    background: linear-gradient(135deg, #f7faff, #ffffff);
    padding: 100px 0;
    font-family: "Poppins", sans-serif;
    margin-top: -80px;
}

.feature-card {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 40px;
    /* 🟢 Gap between text card & image card */
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.feature-text,
.feature-image {
    flex: 1 1 48%;
    border-radius: 25px;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    overflow: hidden;
}


/* 🟢 Image card style */

.feature-image {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
    transition: transform 0.8s ease;
}

.feature-image:hover img {
    transform: scale(1.05);
}


/* 🟢 Text card style */

.feature-text {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(145deg, #ffffff, #f9fbff);
}

.feature-text:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 153, 204, 0.25);
}

.feature-text h2 {
    font-family: "Playfair Display", serif;
    font-size: 2.4rem;
    color: #003d2e;
    font-weight: 700;
    margin-bottom: 20px;
}

.feature-text p {
    color: #004a38;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.feature-btn {
    align-self: start;
    margin-top: 15px;
    background: linear-gradient(90deg, #00a651, #0099cc);
    color: #fff;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 153, 204, 0.2);
}

.feature-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 153, 204, 0.35);
}


/* 🟢 Responsive Design */

@media (max-width: 992px) {
    .feature-card {
        flex-direction: column;
        gap: 25px;
    }
    .feature-text,
    .feature-image {
        flex: 1 1 100%;
    }
    .feature-text {
        padding: 40px 25px;
    }
}

.nextgen-facilities-section {
    margin-top: 30px;
    margin-bottom: -60px;
    background: #f9fafc;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 20px;
    margin-top: -140px;
}


/* Container */

.nextgen-facilities-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px;
}


/* Header */

.nextgen-facilities-header {
    text-align: center;
    margin-bottom: 60px;
}

.nextgen-facilities-header h2 {
    font-size: 2.8rem;
    color: #000;
    font-weight: 700;
    letter-spacing: 1px;
}

.nextgen-facilities-divider {
    width: 90px;
    height: 4px;
    margin: 14px auto;
    background: linear-gradient(90deg, #00b4d8, #00ff9d);
    border-radius: 1px;
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.4);
}


/* Grid Layout */

.nextgen-facilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    justify-items: center;
}


/* Card */

.nextgen-facilities-card {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    transition: all 0.5s ease;
    cursor: pointer;
    /* ✅ Center icon + text perfectly */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


/* Animated Gradient Dotted Border */

.nextgen-facilities-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 3px dotted transparent;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, #00c853, #007bff, #00c853);
    background-size: 400% 400%;
    animation: borderFlow 6s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 2;
    pointer-events: none;
}

@keyframes borderFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


/* Overlay */

.nextgen-facilities-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
    transition: background 0.4s ease;
}

.nextgen-facilities-card:hover::before {
    background: rgba(0, 0, 0, 0.55);
}


/* Inner Content */

.nextgen-facilities-card i,
.nextgen-facilities-card h4,
.nextgen-facilities-card p {
    position: relative;
    z-index: 3;
    transition: all 0.4s ease;
}


/* Icon */

.nextgen-facilities-card i {
    font-size: 42px;
    color: #00ffcc;
    margin-bottom: 10px;
    text-shadow: 0 0 8px rgba(0, 255, 204, 0.6);
}


/* Title */

.nextgen-facilities-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6);
}


/* Subtitle */

.nextgen-facilities-sub {
    font-size: 1rem;
    color: #e0ffe0;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}


/* Hover Effects */

.nextgen-facilities-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 200, 83, 0.35);
}

.nextgen-facilities-card:hover i {
    color: #00b4d8;
    transform: scale(1.15);
}


/* Background Images */

.nextgen-facilities-card:nth-child(1) {
    background-image: url("/NaseebKhan/assests/class\ room_result.webp");
}

.nextgen-facilities-card:nth-child(2) {
    background-image: url("/NaseebKhan/assests/Computer\ Lab_result.webp");
}

.nextgen-facilities-card:nth-child(3) {
    background-image: url("/NaseebKhan/assests/Science_result.webp");
}

.nextgen-facilities-card:nth-child(4) {
    background-image: url("/NaseebKhan/assests/Library_result.webp");
}

.nextgen-facilities-card:nth-child(5) {
    background-image: url("/NaseebKhan/Teacher_Image/ground_result.webp");
}

.nextgen-facilities-card:nth-child(6) {
    background-image: url("/NaseebKhan/assests/camera_result.webp");
}

.nextgen-facilities-card:nth-child(7) {
    background-image: url("/NaseebKhan/Teacher_Image/groundd_result.webp");
}

.nextgen-facilities-card:nth-child(8) {
    background-image: url("/NaseebKhan/assests/Dorimatory_result.webp");
}


/* ✅ Responsive Design - smooth animation + layout on all devices */

@media (max-width: 1200px) {
    .nextgen-facilities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .nextgen-facilities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .nextgen-facilities-card {
        height: 260px;
    }
}

@media (max-width: 576px) {
    .nextgen-facilities-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .nextgen-facilities-card {
        height: 230px;
        animation: borderFlow 8s linear infinite;
        /* keeps border moving smoothly on mobile */
    }
    .nextgen-facilities-card i {
        font-size: 36px;
    }
    .nextgen-facilities-title {
        font-size: 1.2rem;
    }
    .nextgen-facilities-sub {
        font-size: 0.95rem;
    }
}