.inner-banner-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 0;
}

.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;
}

.inner-baner-container::before {
    content: none;
}

.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: 1.2s ease-out fadeInUp;
}

.inner-title {
    font-size: 3.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    background: linear-gradient(90deg, #fff, #d1fff0, #a8ffe0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(255, 255, 255, .4);
    font-family: Poppins, Montserrat, sans-serif;
    position: relative;
    transition: .4s;
}

.inner-title:hover {
    transform: scale(1.03);
    text-shadow: 0 0 25px rgba(0, 255, 170, .6);
}

.inner-title::after {
    content: "";
    display: block;
    width: 100px;
    height: 4px;
    margin: 18px auto 0;
    background: linear-gradient(90deg, #00a651, #00e6cc, #09c);
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0, 166, 81, .5);
    animation: 2.5s infinite alternate lineGlow;
}

@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, .4);
    }
    to {
        box-shadow: 0 0 18px rgba(0, 230, 204, .8);
    }
}

@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, #fff);
    padding: 100px 0;
    font-family: Poppins, sans-serif;
}

.feature-card {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.feature-image,
.feature-text {
    flex: 1 1 48%;
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .08);
    transition: .4s;
    overflow: hidden;
}

.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 .8s;
}

.feature-image:hover img {
    transform: scale(1.05);
}

.feature-text {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(145deg, #fff, #f9fbff);
}

.feature-text:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 153, 204, .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, #09c);
    color: #fff;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: .3s;
    box-shadow: 0 5px 15px rgba(0, 153, 204, .2);
}

.feature-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 153, 204, .35);
}

.nextgen-facilities-section {
    background: #f9fafc;
    font-family: Poppins, sans-serif;
    margin-bottom: 20px;
    margin-top: -140px;
}

.nextgen-facilities-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px;
}

.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, .4);
}

.nextgen-facilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    justify-items: center;
}

.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, .12);
    transition: .5s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.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: 6s linear infinite borderFlow;
    -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%,
    100% {
        background-position: 0 50%
    }
    50% {
        background-position: 100% 50%
    }
}

.nextgen-facilities-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    z-index: 1;
    transition: background .4s;
}

.nextgen-facilities-card:hover::before {
    background: rgba(0, 0, 0, .55);
}

.nextgen-facilities-card h4,
.nextgen-facilities-card i,
.nextgen-facilities-card p {
    position: relative;
    z-index: 3;
    transition: .4s;
}

.nextgen-facilities-card i {
    font-size: 42px;
    color: #0fc;
    margin-bottom: 10px;
    text-shadow: 0 0 8px rgba(0, 255, 204, .6);
}

.nextgen-facilities-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, .6);
}

.nextgen-facilities-sub {
    font-size: 1rem;
    color: #e0ffe0;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, .5);
}

.nextgen-facilities-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 200, 83, .35);
}

.nextgen-facilities-card:hover i {
    color: #00b4d8;
    transform: scale(1.15);
}

.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");
}

@media (max-width:1200px) {
    .nextgen-facilities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width:992px) {
    .feature-card {
        flex-direction: column;
        gap: 25px;
    }
    .feature-image,
    .feature-text {
        flex: 1 1 100%
    }
    .feature-text {
        padding: 40px 25px;
    }
    .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: 8s linear infinite borderFlow;
    }
    .nextgen-facilities-card i {
        font-size: 36px;
    }
    .nextgen-facilities-title {
        font-size: 1.2rem;
    }
    .nextgen-facilities-sub {
        font-size: .95rem;
    }
}