#close-btn,
#video-overlay {
    background: rgba(0, 0, 0, .5);
}

.about-title,
.counter-no,
.qualifaction-icon i,
.safa-activity-title,
.school-stats .counter,
.school-stats .icon {
    -webkit-text-fill-color: transparent;
}

.children-img {
    border: 2px solid #78e6f7;
    transition: transform .3s ease-in-out;
}

.children-img:hover,
.footer-logo img:hover,
.ng-footer-logo img:hover,
.safa-video-play img:hover,
.teacher-card-v3:hover .teacher-frame-v3 img {
    transform: scale(1.05);
}

.home-about-us {
    margin-top: -50px;
}

li {
    color: #000;
}

.admission-open-form {
    background: linear-gradient(135deg, rgba(0, 28, 92, .75), rgba(0, 140, 180, .65), rgba(0, 255, 180, .45));
    color: #fff;
    padding: 30px 15px;
    text-align: center;
    position: fixed;
    top: 20px;
    left: 25px;
    right: 30px;
    bottom: -30px;
    transform: translate(-50%, -50%);
    z-index: 10001;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .6);
    border-radius: 10px;
    width: 1300px;
    height: 590px;
    border: 2px solid rgba(30, 189, 90, .9);
    overflow: hidden;
    backdrop-filter: blur(6px);
    animation: 6s ease-in-out infinite glowPulse;
}

@keyframes glowPulse {
    0%,
    100% {
        box-shadow: 0 0 15px rgba(0, 255, 180, .4), 0 0 25px rgba(0, 180, 255, .3);
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 255, 150, .7), 0 0 35px rgba(0, 180, 255, .6);
    }
}

.admission-open-form button,
.admission-open-form input {
    padding: 10px;
    margin: 5px 0;
    width: 100%;
    max-width: 350px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, .4);
    background: rgba(255, 255, 255, .1);
    color: #fff;
    transition: .3s;
}

.bottom-footer .legal-list ul,
.footer-social-links ul,
.ng-footer-social-links ul,
.ng-widget ul,
.widget ul {
    list-style: none;
    padding: 0;
}

.admission-open-form input:focus {
    border-color: rgba(0, 255, 180, .8);
    box-shadow: 0 0 10px rgba(0, 255, 150, .6);
}

.admission-open-form button {
    background: linear-gradient(90deg, rgba(0, 255, 150, .8), rgba(0, 180, 255, .8));
    border: none;
    font-weight: 700;
    cursor: pointer;
}

.admission-open-form button:hover {
    transform: scale(1.05);
    background: linear-gradient(90deg, rgba(0, 180, 255, .8), rgba(0, 255, 150, .8));
    box-shadow: 0 0 15px rgba(0, 255, 180, .6);
}

.admission-open-form h3 {
    margin-bottom: 10px;
    text-shadow: 0 0 8px rgba(0, 255, 180, .7);
    animation: 4s infinite alternate textGlow;
}

.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(37, 211, 102, .9), rgba(0, 255, 150, .8));
    color: #fff;
    padding: 10px 15px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 255, 150, .4);
    transition: .3s;
    z-index: 9999;
    margin-bottom: 200px;
}

.about-section,
.about-title {
    margin-bottom: 60px;
    position: relative;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, rgba(0, 255, 150, .9), rgba(0, 180, 255, .8));
    transform: scale(1.08);
    color: wheat;
    box-shadow: 0 0 25px rgba(0, 255, 150, .6);
}

.about-describe:hover,
.counter-item:hover {
    box-shadow: 0 10px 28px rgba(0, 153, 204, .15);
}

.about-section {
    padding: 100px 0 120px;
    background: linear-gradient(180deg, #f8fffc 0, #e8faff 100%);
    font-family: Poppins, Inter, sans-serif;
    overflow: hidden;
    z-index: 1;
}

.dual-image-section,
.home-about-us,
.home-fact-section,
.home-team-section-v3,
.home-testimonial-section,
.nextgen-course-section,
.nextgen-facilities-section,
.nextgen-feature-section,
.nextgen-footer,
.safa-activity-section,
.safa-blog-section,
.safa-gallery-section,
.safa-goal-section,
.safa-hostel-section,
.school-stats,
.site-footer {
    font-family: Poppins, sans-serif;
}

.about-section::before {
    content: "";
    position: absolute;
    top: -150px;
    left: 50%;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle at center, rgba(0, 166, 81, .12), rgba(0, 153, 204, .06) 70%);
    transform: translateX(-50%);
    z-index: 0;
    animation: 8s ease-in-out infinite alternate floatGlow;
}

.title-divider-center {
    box-shadow: 0 0 12px rgba(0, 153, 204, .4);
}

.about-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(90deg, #00a651, #09c);
    -webkit-background-clip: text;
    letter-spacing: 1.5px;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0, 153, 204, .2);
    animation: 1.2s both fadeInDown;
}

.about-describe {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #024b40;
    position: relative;
    background: rgba(255, 255, 255, .5);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(0, 153, 204, .07);
    transition: .4s;
    animation: 1.4s both fadeInUp;
}

.about-describe:hover {
    transform: translateY(-5px);
}

.info-left {
    border-left: 5px solid #00a651;
}

.info-right {
    border-right: 5px solid #09c;
}

.counter-inner {
    margin-top: 70px;
    position: relative;
    z-index: 2;
}

.counter-item {
    text-align: center;
    padding: 30px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .7);
    backdrop-filter: blur(8px);
    transition: .4s;
    box-shadow: 0 5px 20px rgba(0, 166, 81, .05);
}

.counter-item:hover {
    transform: translateY(-8px);
}

.counter-no {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, #00a651, #09c);
    -webkit-background-clip: text;
    margin-bottom: 8px;
}

.Completed {
    font-size: 1.1rem;
    font-weight: 600;
    color: #00695c;
    letter-spacing: .5px;
}

.about-banner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0, 153, 204, .12);
    z-index: 2;
    animation: 1.6s both fadeInUp;
}

.about-left-banner,
.about-right-banner .video-button {
    background: linear-gradient(90deg, #00a651, #09c);
    color: #fff;
}

.figure-round-border {
    flex: 1 1 50%;
    margin: 0;
}

.about-left-banner {
    position: absolute;
    left: 40px;
    bottom: 40px;
    padding: 25px 40px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 166, 81, .3);
    text-align: center;
    animation: 4s ease-in-out infinite alternate floatBox;
}

.about-left-banner .banner-icon {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.about-right-banner {
    flex: 1 1 50%;
    padding: 60px 40px;
    text-align: center;
    background: linear-gradient(180deg, #f7fdfb 0, #ebfaff 100%);
}

.about-right-banner h5 {
    font-size: 1.3rem;
    color: #09c;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.about-right-banner .video-button {
    width: 100px;
    height: 75px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: transform .3s, box-shadow .3s;
    margin-bottom: 20px;
}

.about-right-banner .video-button:hover {
    transform: scale(1.15);
    box-shadow: 0 0 25px rgba(0, 153, 204, .4);
}

.about-right-banner h4 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #024b40;
    margin-bottom: 12px;
}

.about-right-banner p {
    font-size: 1rem;
    color: #00695c;
    line-height: 1.8;
}

@keyframes floatGlow {
    from {
        opacity: .6;
        transform: translate(-50%, 0);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 25px);
    }
}

@keyframes pulseLine {
    from {
        box-shadow: 0 0 10px rgba(0, 153, 204, .2);
    }
    to {
        box-shadow: 0 0 20px rgba(0, 166, 81, .6);
    }
}

@keyframes floatBox {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-10px);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width:992px) {
    .about-title {
        font-size: 2.2rem;
    }
    .about-banner {
        flex-direction: column;
    }
    .figure-round-border {
        flex: 1 1 100%
    }
    .about-right-banner {
        padding: 40px 20px;
    }
}

#close-btn,
.nav-arrow {
    font-size: 28px;
    transition: .3s;
    cursor: pointer;
}

#video-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}

#video-overlay video {
    width: 1280px;
    height: 590px;
    object-fit: cover;
    border-radius: 7px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .5);
    display: block;
}

@media (max-width:1024px) {
    #video-overlay video {
        width: 90%;
        height: auto;
    }
}

#close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

#close-btn:hover {
    background: rgba(0, 255, 21, .7);
}

#main-content {
    display: block;
}

.banner-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #001f3f;
}

.nav-arrow,
.txt {
    position: absolute;
    color: #fff;
}

.nav-arrow,
.nav-arrow:hover {
    background: rgba(0, 0, 0, .2);
}

.banner-slide {
    display: none;
    width: 100%;
    height: auto;
}

.active {
    display: block;
    animation: 1s ease-in-out fadeSlide;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-arrow {
    top: 50%;
    transform: translateY(-50%);
    padding: 12px;
    border-radius: 50%;
    user-select: none;
}

.txt {
    font-weight: 700;
    font-size: 56px;
}

.left-arrow {
    left: 15px;
}

.right-arrow {
    right: 15px;
}

.col-md-6 {
    margin-top: -30px;
}

.line {
    height: 10px;
    width: 1200px;
    background-color: red;
}

.site-footer {
    position: relative;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #fff;
    padding-top: 50px;
    animation: 1s ease-in-out fadeInUp;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: url("assets/img/footer-bg.png") center/cover no-repeat;
    opacity: .08;
}

.nextgen-feature-card *,
.top-footer {
    position: relative;
    z-index: 2;
}

.footer-logo img {
    max-width: 150px;
    transition: transform .3s;
}

.textwidget {
    margin: 15px 0;
    color: #dfeff3;
    line-height: 1.6;
}

.footer-social-links ul {
    margin: 15px 0 0;
    display: flex;
    gap: 12px;
}

.footer-social-links a {
    color: #fff;
    font-size: 16px;
    display: inline-flex;
    height: 36px;
    width: 36px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .1);
    border-radius: 50%;
    transition: .3s;
}

.footer-social-links a:hover {
    background: #fc0;
    color: #0d3b66;
    transform: translateY(-4px);
}

.widget-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #fc0;
    position: relative;
}

.widget-title::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #fc0;
}

.widget ul li {
    margin: 8px 0;
}

.widget ul li a {
    color: #dfeff3;
    text-decoration: none;
    transition: .3s;
}

.widget ul li a:hover {
    color: #fc0;
    padding-left: 5px;
}

.bottom-footer {
    border-top: 1px solid rgba(255, 255, 255, .2);
    margin-top: 40px;
    padding: 20px 0;
    font-size: 14px;
    color: #dfeff3;
}

.bottom-footer .legal-list {
    text-align: right;
}

.bottom-footer .legal-list ul {
    margin: 0;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.bottom-footer .legal-list a {
    color: #fc0;
    text-decoration: none;
    transition: color .3s;
}

.bottom-footer .legal-list a:hover {
    color: #fff;
}

@keyframes fadeInUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.school-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    margin: 30px 10px;
    padding: 60px 15px;
    border-radius: 25px;
    background: linear-gradient(135deg, #0a192f, #007878, rgba(0, 180, 255, .9));
    position: relative;
    overflow: hidden;
    color: #fff;
    text-align: center;
}

.school-stats::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 255, 200, .15) 0, transparent 70%), radial-gradient(circle at top right, rgba(0, 128, 255, .15) 0, transparent 70%);
    animation: 18s linear infinite rotateBG;
    z-index: 0;
}

@keyframes rotateBG {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}

.school-stats .stat {
    position: relative;
    margin: 20px;
    padding: 10px;
    z-index: 1;
    transition: transform .3s;
}

.fact-inner-box figure.fact-image img:hover,
.nextgen-feature-card:hover::before,
.school-stats .stat:hover {
    transform: scale(1.08);
}

.school-stats .icon {
    font-size: 40px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #0fc, #09f);
    -webkit-background-clip: text;
    animation: 3s ease-in-out infinite float;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.school-stats .counter {
    font-size: 34px;
    font-weight: 700;
    background: linear-gradient(90deg, #0fc, #0af);
    -webkit-background-clip: text;
    position: relative;
    display: inline-block;
}

.school-stats .counter::after {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(90deg, #0fc, #0af);
    margin: 5px auto 0;
    border-radius: 3px;
    width: 0;
    animation: 2s forwards underlineGrow;
}

@keyframes underlineGrow {
    from {
        width: 0;
    }
    to {
        width: 60%
    }
}

.school-stats .stat p {
    font-size: 14px;
    margin-top: 5px;
    color: rgba(255, 255, 255, .85);
}

@media screen and (max-width:768px) {
    .school-stats {
        flex-direction: column;
        padding: 40px 10px;
    }
    .school-stats .icon {
        font-size: 32px;
    }
    .school-stats .counter {
        font-size: 28px;
    }
    .school-stats .stat p {
        font-size: 13px;
    }
}

@media screen and (max-width:480px) {
    .school-stats {
        padding: 30px 5px;
    }
    .school-stats .icon {
        font-size: 28px;
    }
    .school-stats .counter {
        font-size: 24px;
    }
    .school-stats .stat {
        margin: 15px 0;
    }
    .school-stats .stat p {
        font-size: 12px;
    }
}

.home-about-us {
    position: relative;
    padding: 70px 30px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0, 255, 128, .08), rgba(0, 128, 255, .1));
    color: #fff;
    overflow: hidden;
}

.home-about-us::after,
.home-about-us::before {
    content: "";
    position: absolute;
    border-radius: 50%;
    width: 300px;
    height: 300px;
    filter: blur(90px);
    animation: 8s infinite alternate floatGlow;
    z-index: 0;
}

.home-about-us::before,
.safa-goal-section::before {
    top: -120px;
    left: -80px;
    background: rgba(0, 255, 128, .5);
}

.home-about-us::after {
    bottom: -120px;
    right: -100px;
    background: rgba(0, 128, 255, .5);
    animation-delay: 3s;
}

@keyframes floatGlow {
    from {
        transform: translateY(0) translateX(0);
    }
    to {
        transform: translateY(-40px) translateX(40px);
    }
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    z-index: 1;
    position: relative;
}

.about-image {
    flex: 1 1 45%;
    max-width: 45%
}

.about-image img {
    object-fit: cover;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .4);
    transition: transform .4s, box-shadow .4s;
}

.about-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 255, 128, .4);
}

.about-text-box {
    flex: 1 1 50%;
    max-width: 50%;
    padding: 25px 30px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(0, 255, 128, .85), rgba(0, 128, 255, .85));
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 255, 128, .2);
    animation: 1.2s ease-out fadeInRight;
    transition: .4s ease-in-out;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.about-text-box p {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
    margin: 0;
}

.about-text-box:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 128, 255, .4);
    background: linear-gradient(135deg, rgba(0, 128, 255, .9), rgba(0, 255, 128, .9));
}

.about-text-box::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ff80, #0080ff, #00ff80);
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity .4s ease-in-out;
    background-size: 300% 300%;
    animation: 6s infinite gradientMove;
}

.about-text-box:hover::before {
    opacity: 1;
}

@keyframes gradientMove {
    0%,
    100% {
        background-position: 0 50%
    }
    50% {
        background-position: 100% 50%
    }
}

@media (max-width:768px) {
    .admission-open-form {
        width: 300px;
        height: auto;
        transform: translate(-50%, -50%);
        padding: 20px 10px;
        border-radius: 8px;
        background: linear-gradient(145deg, rgba(0, 40, 90, .9), rgba(0, 180, 255, .5));
        box-shadow: 0 0 25px rgba(0, 180, 255, .6);
    }
    .admission-open-form button,
    .admission-open-form input {
        max-width: 100%;
        font-size: 14px;
    }
    .admission-open-form h3 {
        font-size: 18px;
    }
    .whatsapp-btn {
        width: 55px;
        height: 55px;
        border-radius: 50%;
        justify-content: center;
        font-size: 0;
        padding: 0;
    }
    .whatsapp-btn img {
        margin-right: 0;
        width: 28px;
    }
    #video-overlay {
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: visible;
        padding: 15px;
    }
    #video-overlay video {
        width: 100%;
        max-width: 380px;
        height: auto;
        object-fit: contain;
        border-radius: 10px;
    }
    .about-text-box {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 20px;
        font-size: 1rem;
    }
}

.regarding-us {
    display: flex;
    flex-wrap: wrap;
    margin-top: 30px;
    gap: 20px;
}

.about-desc-text {
    color: #000;
    font-size: 40px;
    font-weight: 700;
}

.qulifaction-content {
    flex: 1 1 45%;
    min-width: 220px;
    background: rgba(0, 0, 0, .25);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: transform .4s, box-shadow .4s;
    border: 1px solid rgba(255, 255, 255, .1);
}

.qulifaction-content:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 255, 128, .3);
}

.qualifaction-icon i {
    font-size: 40px;
    background: linear-gradient(135deg, #00ff80, #0080ff);
    -webkit-background-clip: text;
    animation: 2s infinite bounceIcon;
}

@keyframes bounceIcon {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.qualifaction-title h5 {
    font-size: 20px;
    font-weight: 700;
    margin: 10px 0 5px;
    color: #fff;
}

.qulifaction-detail p {
    font-size: 15px;
    color: #dffaf1;
    line-height: 1.6;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.safa-activity-section {
    position: relative;
    background: linear-gradient(135deg, #012a4a, #005f73, #0077b6, #00bfa5);
    color: #fff;
    padding: 30px 0;
    overflow: hidden;
    margin-top: 60px;
    border-radius: 15px;
    margin-bottom: 140px;
}

.safa-activity-overlay,
.safa-activity-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.safa-activity-overlay {
    background: radial-gradient(circle at 40% 40%, rgba(0, 191, 165, .15), transparent 70%);
    animation: 10s ease-in-out infinite alternate safaGlow;
}

.safa-activity-pattern {
    background: url("https://www.transparenttextures.com/patterns/graphy.png");
    opacity: .07;
}

@keyframes safaGlow {
    0% {
        transform: scale(1);
        opacity: .5;
    }
    100% {
        transform: scale(1.1);
        opacity: .9;
    }
}

.safa-activity-col-title {
    text-align: center;
    margin-bottom: 50px;
}

.safa-activity-divider {
    width: 90px;
    height: 4px;
    margin: 0 auto 15px;
    background: linear-gradient(90deg, #00e676, #00bfa5, #00c4ff);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 230, 118, .4);
}

.safa-activity-title {
    font-size: 2.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #00e5ff, #00bfa5);
    -webkit-background-clip: text;
}

.safa-activity-info {
    font-size: 16px;
    color: rgba(255, 255, 255, .9);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.safa-activity-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 35px;
    position: relative;
    z-index: 1;
}

.safa-activity-card {
    width: 320px;
    background: rgba(255, 255, 255, .07);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
    transition: .4s;
    backdrop-filter: blur(6px);
}

.safa-activity-btn,
.safa-activity-tag {
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
}

.safa-activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 191, 165, .4);
}

.safa-activity-btn:hover,
.safa-hostel-section .button-round-secondary:hover {
    background: linear-gradient(90deg, #00bfa5, #00e5ff);
    transform: translateY(-3px);
}

.safa-activity-image {
    position: relative;
    overflow: hidden;
}

.safa-activity-image img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: transform .6s;
}

.safa-activity-card:hover .safa-activity-image img,
.safa-hostel-section .fact-inner-box:hover::before {
    transform: scale(1.07);
}

.safa-activity-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(90deg, #00bfa5, #00e676);
    padding: 6px 12px;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(0, 230, 118, .4);
}

.safa-activity-tag a {
    color: #fff;
    text-decoration: none;
}

.safa-activity-content {
    padding: 25px 20px 30px;
    text-align: center;
}

.safa-activity-content h4 a {
    color: #fff;
    font-weight: 600;
    font-size: 20px;
    text-decoration: none;
    transition: .3s;
}

.safa-activity-content h4 a:hover {
    color: #00e5ff;
}

.safa-activity-content p {
    font-size: 14.5px;
    color: rgba(255, 255, 255, .8);
    margin-top: 10px;
    line-height: 1.7;
}

.safa-activity-btn-wrap {
    text-align: center;
    margin-top: 60px;
}

.safa-activity-btn {
    background: linear-gradient(90deg, #00e676, #00bfa5, #00e5ff);
    color: #002147;
    padding: 12px 35px;
    letter-spacing: .5px;
    text-decoration: none;
    transition: .4s;
    box-shadow: 0 4px 15px rgba(0, 230, 118, .4);
}

.safa-activity-btn:hover {
    box-shadow: 0 8px 20px rgba(0, 230, 118, .6);
}

@media (max-width:992px) {
    .safa-activity-title {
        font-size: 1.9rem;
    }
    .safa-activity-info {
        font-size: 15px;
    }
}

.safa-hostel-section {
    position: relative;
    background: linear-gradient(135deg, #004e64, #0077b6, #00bfa5);
    color: #fff;
    padding: 100px 0;
    overflow: hidden;
}

.safa-hostel-section .overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(0, 191, 165, .15), transparent 70%);
    animation: 12s ease-in-out infinite alternate safaHostelGlow;
    z-index: 0;
}

@keyframes safaHostelGlow {
    0% {
        opacity: .4;
        transform: scale(1);
    }
    100% {
        opacity: .9;
        transform: scale(1.08);
    }
}

.safa-hostel-section .fact-section-head {
    position: relative;
    z-index: 2;
    text-align: left;
    padding-right: 30px;
}

.safa-hostel-section .title-divider {
    width: 90px;
    height: 4px;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #00e676, #00bfa5, #00e5ff);
    border-radius: 5px;
    box-shadow: 0 0 12px rgba(0, 230, 118, .5);
}

.safa-hostel-section .fact-section-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #00e676, #00bfa5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.safa-hostel-section .fact-section-info {
    color: rgba(255, 255, 255, .9);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.safa-hostel-section .fact-list ul {
    list-style: none;
    padding: 0;
    margin: 0 0 35px;
}

.safa-hostel-section .fact-list li {
    font-size: 15px;
    color: #dffcf1;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.safa-hostel-section .fact-list li::before {
    content: "✔";
    color: #00e676;
    position: absolute;
    left: 0;
    font-size: 15px;
}

.safa-hostel-section .button-round-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #00e676, #00bfa5);
    color: #00334e;
    font-weight: 600;
    border-radius: 50px;
    padding: 12px 28px;
    text-transform: uppercase;
    letter-spacing: .5px;
    text-decoration: none;
    box-shadow: 0 6px 15px rgba(0, 230, 118, .4);
    transition: .3s;
}

.safa-hostel-section .button-round-secondary:hover {
    box-shadow: 0 8px 25px rgba(0, 230, 118, .6);
}

.safa-hostel-section .fact-right-inner-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.safa-hostel-section .fact-inner-box {
    position: relative;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    background: radial-gradient(circle, #00bfa5, #0077b6);
    box-shadow: 0 0 30px rgba(0, 230, 118, .4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.safa-hostel-section .fact-inner-box::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: url("NaseebKhan/assests/studyy_result.webp") center/cover no-repeat;
    transition: transform .5s;
}

.safa-hostel-section .fact-inner-box h4 {
    position: absolute;
    bottom: 25px;
    color: #fff;
    background: rgba(0, 0, 0, .4);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    letter-spacing: .3px;
}

@media (max-width:992px) {
    .safa-hostel-section {
        padding: 80px 0;
    }
    .safa-hostel-section .fact-section-title {
        font-size: 1.9rem;
    }
}

.home-fact-section {
    position: relative;
    background: linear-gradient(135deg, #004b6b, #00bfa5, #00e676);
    color: #fff;
    padding: 100px 0;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    box-sizing: border-box;
}

.home-fact-section .overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(0, 255, 136, .15), transparent 70%);
    z-index: 0;
    animation: 8s ease-in-out infinite alternate overlayPulse;
}

@keyframes overlayPulse {
    0% {
        opacity: .5;
        transform: scale(1);
    }
    100% {
        opacity: .9;
        transform: scale(1.05);
    }
}

.fact-right-inner-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 10px 0;
    z-index: 1;
    flex-wrap: wrap;
}

.fact-inner-box {
    position: relative;
    width: 380px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #00e676, #00bfa5, #006d77);
    box-shadow: 0 0 40px rgba(0, 255, 128, .35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
    padding: 25px;
    animation: 6s ease-in-out infinite floatCircle;
    transition: transform .6s, box-shadow .6s;
}

.fact-inner-box:hover {
    transform: scale(1.05);
    box-shadow: 0 0 55px rgba(0, 255, 128, .6);
}

@keyframes floatCircle {
    0%,
    100% {
        transform: translateY(0);
        box-shadow: 0 0 40px rgba(0, 255, 128, .35);
    }
    50% {
        transform: translateY(-8px);
        box-shadow: 0 0 55px rgba(0, 255, 128, .6);
    }
}

.fact-inner-box .fact-content,
.fact-inner-box figure.fact-image {
    width: 90%;
    height: 85px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(4px);
    box-shadow: 0 0 12px rgba(0, 0, 0, .25);
    overflow: hidden;
    text-align: center;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    animation: 1.2s forwards fadeInUp;
}

.fact-inner-box .fact-content:first-child {
    animation-delay: .2s;
}

.fact-inner-box figure.fact-image:nth-child(2) {
    animation-delay: .4s;
}

.fact-inner-box .fact-content:nth-child(3) {
    animation-delay: .6s;
}

.fact-inner-box figure.fact-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 1s;
}

.fact-inner-box .fact-content {
    background: rgba(0, 0, 0, .35);
    border: 1px solid rgba(255, 255, 255, .15);
}

.home-fact-section .fact-section-title,
.safa-caption h3 {
    background: linear-gradient(90deg, #00e676, #00bfa5);
    -webkit-text-fill-color: transparent;
}

.home-fact-section .fact-section-head {
    position: relative;
    z-index: 1;
    text-align: left;
    padding-right: 20px;
}

.home-fact-section .fact-section-title {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    -webkit-background-clip: text;
    animation: 4s linear infinite shimmerText;
}

@keyframes shimmerText {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: 200px 0;
    }
}

@media (max-width:992px) {
    .home-fact-section {
        margin-left: 0;
        width: 100%;
        padding: 80px 20px;
    }
    .fact-inner-box {
        width: 320px;
    }
    .fact-inner-box .fact-content,
    .fact-inner-box figure.fact-image {
        height: 75px;
    }
}

@media (max-width:768px) {
    .safa-activity-card {
        width: 90%
    }
    .safa-activity-content h4 {
        font-size: 18px;
    }
    .safa-hostel-section .fact-right-inner-wrap {
        margin-top: 40px;
    }
    .safa-hostel-section .fact-inner-box {
        width: 250px;
        height: 250px;
    }
    .home-fact-section {
        margin-left: 0;
        width: 100%;
        padding: 70px 20px;
    }
    .fact-right-inner-wrap {
        flex-direction: column;
        margin-top: 40px;
    }
    .fact-inner-box {
        width: 260px;
        aspect-ratio: auto;
        border-radius: 20px;
    }
    .fact-inner-box .fact-content,
    .fact-inner-box figure.fact-image {
        width: 100%;
        height: auto;
        font-size: 14px;
    }
    .fact-inner-box figure.fact-image img {
        width: 100%;
        height: auto;
    }
    .home-fact-section .fact-section-title {
        font-size: 1.8rem;
    }
}

@media (max-width:576px) {
    .home-fact-section .fact-section-title,
    .safa-activity-title,
    .safa-hostel-section .fact-section-title {
        font-size: 1.6rem;
    }
    .safa-activity-info {
        padding: 0 10px;
    }
    .safa-hostel-section .fact-section-info {
        font-size: 15px;
    }
    .home-fact-section {
        margin-left: 0;
        width: 100%
    }
    .home-fact-section .fact-section-head {
        text-align: center;
        padding: 0;
    }
    .fact-inner-box {
        width: 90%;
        gap: 15px;
        padding: 15px;
        border-radius: 25px;
    }
    .fact-inner-box .fact-content,
    .fact-inner-box figure.fact-image {
        width: 100%;
        height: auto;
        font-size: 13px;
    }
}

@media (max-width:400px) {
    .fact-inner-box {
        width: 95%
    }
}

.safa-gallery-section {
    background: linear-gradient(135deg, #e0f7fa, #f1f8e9, #fff);
    padding: 4px 0;
    position: relative;
    overflow: hidden;
    margin-top: -70px;
}

.safa-gallery-container {
    max-width: 1300px;
    margin: auto;
    position: relative;
    z-index: 1;
}

.nextgen-facilities-header,
.nextgen-feature-section .title-area,
.safa-gallery-header {
    text-align: center;
    margin-bottom: 60px;
}

.safa-title-divider {
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, #00bfa5, #00e676);
    border-radius: 8px;
    margin: 0 auto 20px;
    box-shadow: 0 0 15px rgba(0, 191, 165, .4);
}

.safa-gallery-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, #004b6b, #00bfa5, #00e676);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: capitalize;
    letter-spacing: 1px;
}

.safa-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 0 40px;
}

.safa-gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
    background: #fff;
    transition: transform .6s cubic-bezier(.19, 1, .22, 1);
}

.safa-gallery-item:hover {
    transform: translateY(-10px) scale(1.03);
}

.safa-gallery-img {
    position: relative;
    margin: 0;
}

.safa-gallery-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform .8s, filter .5s;
}

.safa-blog-card:hover .safa-blog-image img,
.safa-gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.dual-image-box:hover img,
.nextgen-col:hover img {
    transform: scale(1.08);
    filter: brightness(1.15) contrast(1.1);
}

.safa-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 191, 165, .1) 0, rgba(0, 0, 0, .75) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 25px;
    opacity: 0;
    transform: translateY(40px);
    transition: .5s;
}

.safa-gallery-item:hover .safa-caption {
    opacity: 1;
    transform: translateY(0);
}

.safa-caption h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
    -webkit-background-clip: text;
}

.safa-caption p {
    font-size: 1rem;
    max-width: 90%;
    line-height: 1.6;
    opacity: .95;
}

@media (max-width:992px) {
    .safa-gallery-grid {
        grid-template-columns: 1fr;
        padding: 0 25px;
    }
    .safa-gallery-img img {
        height: 350px;
    }
    .safa-caption h3 {
        font-size: 1.4rem;
    }
}

.dual-image-section {
    padding: 50px 20px;
    background: linear-gradient(135deg, rgba(0, 255, 128, .05), rgba(0, 128, 255, .05));
    margin-top: -20px;
    margin-bottom: -100px;
}

.dual-image-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 25px;
    flex-wrap: wrap;
}

.dual-image-box {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    flex: 1 1 45%;
    max-width: 48%;
    min-height: 380px;
    box-shadow: 0 8px 25px rgba(0, 128, 255, .2);
    transition: transform .4s ease-in-out, box-shadow .4s ease-in-out;
}

.dual-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform .6s, filter .6s;
}

.dual-image-box:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 18px 40px rgba(0, 255, 128, .4);
}

.dual-with-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.image-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    border-radius: 0 0 20px 20px;
    background: linear-gradient(135deg, rgba(0, 255, 128, .85), rgba(0, 128, 255, .85));
    color: #fff;
    text-align: left;
    animation: 1.2s fadeInUp;
}

.image-overlay-text h3 {
    font-size: 22px;
    margin-bottom: 8px;
    font-weight: 700;
}

.image-overlay-text p {
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    color: #f1fdfc;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100%,
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        opacity: 0;
        transform: translateY(30px);
    }
}

.nextgen-course-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(0, 255, 128, .05), rgba(0, 128, 255, .05));
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.nextgen-course-section::after,
.nextgen-course-section::before {
    content: "";
    position: absolute;
    border-radius: 50%;
    width: 400px;
    height: 400px;
    filter: blur(60px);
    z-index: 0;
    animation: 8s ease-in-out infinite alternate nextgenFloat;
}

.nextgen-course-section::before {
    top: -150px;
    left: -120px;
    background: rgba(0, 255, 128, .35);
}

.nextgen-course-section::after {
    bottom: -160px;
    right: -160px;
    background: rgba(0, 128, 255, .35);
    animation-delay: 3s;
}

@keyframes nextgenFloat {
    from {
        transform: translateY(0) translateX(0);
    }
    to {
        transform: translateY(-40px) translateX(40px);
    }
}

.nextgen-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.nextgen-col {
    flex: 1 1 45%;
    max-width: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform .6s, box-shadow .6s;
    animation: 1.5s fadeInUp;
}

.nextgen-feature-image img {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 128, 255, .2);
    transition: transform .6s, box-shadow .6s, filter .6s;
}

.nextgen-col:hover img {
    box-shadow: 0 25px 60px rgba(0, 255, 128, .4);
}

@media (max-width:992px) {
    .nextgen-col {
        flex: 1 1 100%;
        max-width: 100%
    }
    .nextgen-feature-image img {
        max-width: 100%;
        height: auto;
    }
    .nextgen-row {
        gap: 20px;
    }
}

.nextgen-facilities-section {
    margin-top: 30px;
    margin-bottom: -60px;
    background: #f9fafc;
}

.nextgen-facilities-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px;
}

.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:first-child {
    background-image: url("assests/class\ room_result.webp");
}

.nextgen-facilities-card:nth-child(2) {
    background-image: url("assests/Computer\ Lab_result.webp");
}

.nextgen-facilities-card:nth-child(3) {
    background-image: url("assests/Science_result.webp");
}

.nextgen-facilities-card:nth-child(4),
.nextgen-feature-card:first-child::before {
    background-image: url("assests/Library_result.webp");
}

.nextgen-facilities-card:nth-child(5) {
    background-image: url("Teacher_Image/ground_result.webp");
}

.nextgen-facilities-card:nth-child(6),
.nextgen-feature-card:nth-child(2)::before {
    background-image: url("assests/camera_result.webp");
}

.nextgen-facilities-card:nth-child(7) {
    background-image: url("Teacher_Image/groundd_result.webp");
}

.nextgen-facilities-card:nth-child(8) {
    background-image: url("assests/Dorimatory_result.webp");
}

@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;
    }
}

.safa-blog-section {
    background: linear-gradient(135deg, #e6fffa 0, #f0fff4 50%, #fff 100%);
    padding: 30px 0;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    margin-top: -80px;
    margin-bottom: 40px;
}

.safa-blog-section::before {
    content: "";
    position: absolute;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle at 30% 20%, rgba(0, 191, 165, .15), transparent 60%), radial-gradient(circle at 80% 80%, rgba(0, 230, 118, .1), transparent 70%);
    animation: 18s ease-in-out infinite alternate moveGlow;
    top: -50%;
    left: -50%;
    z-index: 0;
}

@keyframes moveGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(50px, 50px) scale(1.05);
    }
}

.safa-blog-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 850px;
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

.safa-blog-divider {
    width: 120px;
    height: 6px;
    background: linear-gradient(90deg, #00bfa5, #00e676);
    margin: 0 auto 20px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 191, 165, .4);
}

.safa-blog-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: .5px;
    background: linear-gradient(90deg, #00796b, #00bfa5, #00e676);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: capitalize;
    margin-bottom: 15px;
    animation: 5s ease-in-out infinite alternate textGlow;
}

@keyframes textGlow {
    0% {
        text-shadow: 0 0 8px rgba(0, 230, 118, .3);
    }
    100% {
        text-shadow: 0 0 18px rgba(0, 191, 165, .5);
    }
}

.safa-blog-subtitle {
    color: #004b6b;
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: .85;
}

.safa-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 45px;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding-inline: 60px;
}

.safa-blog-card {
    background: rgba(255, 255, 255, .85);
    border-radius: 24px;
    backdrop-filter: blur(8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, .12);
    overflow: hidden;
    transition: .6s cubic-bezier(.19, 1, .22, 1);
    transform: translateY(0);
    animation: 1.2s forwards fadeInUp;
    border: 1px solid rgba(0, 191, 165, .15);
}

.safa-blog-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 25px 60px rgba(0, 191, 165, .25);
    border-color: rgba(0, 230, 118, .3);
}

.safa-blog-image {
    width: 100%;
    height: 260px;
    overflow: hidden;
    border-bottom: 4px solid rgba(0, 191, 165, .3);
    background: #e0f7fa;
    position: relative;
}

.safa-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s, filter .6s;
}

.safa-blog-content {
    padding: 30px 25px 40px;
    text-align: center;
    transition: .4s;
}

.safa-blog-content h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(90deg, #004b6b, #00bfa5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.safa-blog-content h4 a {
    text-decoration: none;
    color: inherit;
    transition: color .3s;
}

.safa-blog-content h4 a:hover {
    color: #00bfa5;
}

.safa-blog-content p {
    font-size: 1rem;
    color: #333;
    line-height: 1.7;
    opacity: .9;
    transition: color .3s;
}

.safa-blog-card:hover .safa-blog-content p {
    color: #004b6b;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
    0% {
        opacity: 0;
        transform: translateY(60px) scale(.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.course-bhn {
    margin-top: -200px;
}

.button-round-primary {
    margin-top: -400px;
}

.home-fact-section {
    margin-top: -100px;
}

.home-feature-section {
    margin-top: -80px;
}

.nextgen-feature-section {
    margin-top: 0;
    color: #000;
    position: relative;
    overflow: hidden;
}

.nextgen-feature-section .title-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #00a651, #09c);
    margin: 0 auto 18px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 255, 123, .4);
}

.nextgen-feature-section .nextgen-feature-title {
    font-size: 2.3rem;
    font-weight: 700;
    color: #000;
    letter-spacing: .5px;
    margin-bottom: 15px;
}

.nextgen-feature-section .nextgen-feature-subtitle {
    color: #009e8f;
    font-size: 1.05rem;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

.nextgen-feature-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 35px;
}

.nextgen-feature-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 4px solid rgba(0, 126, 88, .966);
    flex: 1 1 calc(33.333% - 35px);
    min-height: 360px;
    text-align: center;
    box-sizing: border-box;
    padding: 45px 30px;
    background: rgba(255, 255, 255, .05);
    transition: .5s;
    cursor: pointer;
    backdrop-filter: blur(2px);
}

.nextgen-feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 1;
    transform: scale(1);
    transition: transform 1.5s, opacity .8s;
}

.nextgen-feature-card:nth-child(3)::before {
    background-image: url("assests/Computer Lab_result.webp");
}

.nextgen-feature-card:nth-child(4)::before {
    background-image: url("assests/Sports_result.webp");
}

.nextgen-feature-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(to bottom right, rgba(0, 0, 0, .35), rgba(0, 0, 0, .15));
    z-index: 1;
    transition: background .4s;
}

.nextgen-feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 166, 81, .3);
}

.nextgen-feature-card:hover::after {
    background: linear-gradient(to bottom right, rgba(0, 0, 0, .25), rgba(0, 0, 0, .05));
}

.nextgen-feature-icon {
    font-size: 64px;
    color: #00ffb3;
    margin-bottom: 18px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .4);
    transition: transform .5s, color .3s;
}

.nextgen-feature-card:hover .nextgen-feature-icon {
    transform: scale(1.15) rotate(4deg);
    color: #00ffea;
}

.nextgen-feature-heading {
    font-size: 1.55rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: .3px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}

.nextgen-feature-text {
    color: #e5f9f3;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .5);
    font-weight: 400;
}

.nextgen-feature-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(90deg, #00a651, #09c);
    color: #fff;
    font-size: 1.3rem;
    text-decoration: none;
    transition: .4s;
    box-shadow: 0 4px 12px rgba(0, 166, 81, .3);
}

.ng-widget ul li a,
.team-btn-v3 {
    transition: .3s;
    text-decoration: none;
}

.nextgen-feature-link:hover {
    transform: translateY(-4px) rotate(20deg);
    background: linear-gradient(90deg, #09c, #00a651);
    box-shadow: 0 8px 20px rgba(0, 166, 81, .5);
}

@media (max-width:992px) {
    .nextgen-feature-card {
        flex: 1 1 calc(50% - 20px);
        min-height: 320px;
    }
}

@media (max-width:600px) {
    .about-title {
        font-size: 1.8rem;
    }
    .about-left-banner {
        left: 15px;
        bottom: 15px;
        padding: 12px 20px;
    }
    .about-left-banner h3 {
        font-size: 1rem;
    }
    .counter-no,
    .safa-gallery-title {
        font-size: 2rem;
    }
    .safa-gallery-section {
        padding: 70px 0;
    }
    .safa-gallery-img img {
        height: 280px;
    }
    .safa-caption {
        padding: 20px;
    }
    .nextgen-feature-card {
        flex: 1 1 100%;
        min-height: 280px;
    }
    .nextgen-feature-section .nextgen-feature-title {
        font-size: 1.9rem;
    }
    .nextgen-feature-section .nextgen-feature-subtitle {
        font-size: .95rem;
    }
    .nextgen-feature-icon {
        font-size: 55px;
    }
}

.home-team-section-v3 {
    padding: 60px 15px;
    position: relative;
    background: #fff;
}

.team-btn-v3,
.team-divider-v3 {
    background: linear-gradient(90deg, #007bff, #00c853);
}

.team-header-v3 {
    margin-bottom: 40px;
    text-align: center;
}

.team-divider-v3 {
    width: 80px;
    height: 5px;
    border-radius: 6px;
    margin: 0 auto 15px;
}

.team-title-v3 {
    font-size: 36px;
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
}

.team-btn-v3 {
    display: inline-block;
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
}

.team-btn-v3:hover {
    background: linear-gradient(90deg, #00c853, #007bff);
    transform: scale(1.05);
}

.team-wrapper-v3 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    justify-items: center;
    align-items: start;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.teacher-card-v3 {
    width: 100%;
    max-width: 300px;
    height: 380px;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 25px rgba(0, 128, 255, .2);
    transition: .4s;
}

.teacher-card-v3:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 45px rgba(0, 255, 128, .35);
}

.teacher-frame-v3 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(135deg, #007bff, #00c853, #0091ea, #00e676);
    background-size: 400% 400%;
    animation: 5s linear infinite frameGlow;
    display: flex;
    justify-content: center;
    align-items: center;
}

.teacher-frame-v3 img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid #fff;
    object-fit: cover;
    transition: transform .4s;
}

.teacher-info-v3 h4 a {
    color: #000;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
}

.teacher-info-v3 p {
    color: #00bfa5;
    font-size: 16px;
    margin-top: 6px;
    font-weight: 500;
    text-align: center;
}

@media (max-width:1200px) {
    .safa-blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
        padding-inline: 40px;
    }
    .team-wrapper-v3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width:992px) {
    .team-wrapper-v3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .teacher-card-v3 {
        max-width: 260px;
        height: 360px;
    }
    .teacher-frame-v3 {
        width: 170px;
        height: 170px;
    }
}

.home-testimonial-section {
    margin-top: 30px;
    background: #f5f8ff;
}

.title-divider-center {
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, #007bff, #00c853, #0091ea);
    border-radius: 6px;
    margin: 0 auto 15px;
    animation: 3s ease-in-out infinite alternate dividerGlow;
}

@keyframes dividerGlow {
    0%,
    100% {
        background-position: 0 50%
    }
    50% {
        background-position: 100% 50%
    }
}

.testimonial-section-title {
    font-size: 38px;
    font-weight: 800;
    color: #111;
    margin-bottom: 15px;
}

.testimonial-section-info {
    font-size: 17px;
    color: #555;
    text-align: center;
    margin-bottom: 50px;
    line-height: 1.7;
}

.row.testimonial-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.client-content {
    background: #fff;
    border-radius: 25px;
    padding: 25px 20px;
    flex: 1 1 45%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 123, 255, .15);
    transition: .4s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.author-img,
.pattern-overlay.circle-patten {
    background: linear-gradient(135deg, #007bff, #00c853, #0091ea, #00e676);
}

.client-content:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 123, 255, .25);
}

.pattern-overlay.circle-patten {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    opacity: .1;
    top: -20px;
    left: -20px;
    animation: 12s linear infinite rotateCircle;
    z-index: 0;
}

@keyframes rotateCircle {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}

.client-review {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.author-content {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.author-info h5.author-name {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.author-info span.author-title {
    display: block;
    font-size: 14px;
    color: #00bfa5;
    font-weight: 500;
}

.author-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    padding: 4px;
    background-size: 400% 400%;
    animation: 6s linear infinite frameGlow;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.author-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #fff;
    object-fit: cover;
    transition: transform .4s;
}

.client-content:hover .author-img img {
    transform: scale(1.1);
}

.testimonial-btn {
    text-align: center;
    margin-top: 30px;
}

.testimonial-btn a.button-round-primary {
    display: inline-block;
    background: linear-gradient(90deg, #007bff, #00c853, #0091ea);
    color: #fff;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: .3s;
}

.testimonial-btn a.button-round-primary:hover {
    background: linear-gradient(90deg, #00c853, #007bff, #00e676);
    transform: scale(1.05);
}

@keyframes frameGlow {
    0%,
    100% {
        background-position: 0 50%
    }
    50% {
        background-position: 100% 50%
    }
}

@media (max-width:992px) {
    .client-content {
        flex: 1 1 80%;
        gap: 20px;
    }
}

@media (max-width:576px) {
    .nextgen-course-section {
        padding: 40px 15px;
    }
    .nextgen-feature-image img {
        width: 100%;
        height: auto;
        border-radius: 15px;
    }
    .nextgen-row {
        gap: 15px;
    }
    .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;
    }
    .team-wrapper-v3 {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
    }
    .teacher-card-v3 {
        max-width: 230px;
        height: 340px;
    }
    .teacher-frame-v3 {
        width: 150px;
        height: 150px;
    }
    .teacher-info-v3 h4 a {
        font-size: 18px;
    }
    .client-content {
        flex: 1 1 100%;
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    .author-img {
        width: 60px;
        height: 60px;
    }
    .author-info h5.author-name {
        font-size: 16px;
    }
    .author-info span.author-title {
        font-size: 12px;
    }
    .testimonial-section-title {
        font-size: 28px;
    }
    .testimonial-section-info {
        font-size: 15px;
    }
}

.nextgen-footer {
    position: relative;
    background: radial-gradient(circle at 30% 20%, #0f0f0f, #3d3d3d, #a29bfe);
    color: #fff;
    overflow: hidden;
    width: 1355px;
    margin-left: -110px;
    padding-top: 60px;
    margin-bottom: -130px;
}

.ng-textwidget,
.ng-widget ul li a {
    color: rgba(255, 255, 255, .85);
    font-size: 14px;
}

.ng-footer-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .07), transparent 70%), radial-gradient(circle at 80% 80%, rgba(255, 255, 255, .05), transparent 70%);
    animation: 12s ease-in-out infinite alternate ngFooterGlow;
    z-index: 0;
}

.ng-top-footer,
.safa-goal-container {
    z-index: 1;
    position: relative;
}

@keyframes ngFooterGlow {
    0% {
        opacity: .4;
        transform: scale(1);
    }
    100% {
        opacity: .8;
        transform: scale(1.05);
    }
}

.ng-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 25px;
}

.ng-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.ng-col {
    flex: 1 1 250px;
    min-width: 230px;
}

.ng-footer-logo img {
    width: 150px;
    transition: transform .4s;
}

.ng-textwidget {
    margin-top: 15px;
    line-height: 1.7;
}

.ng-footer-social-links ul {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.ng-footer-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border-radius: 50%;
    font-size: 16px;
    transition: .4s;
}

.ng-footer-social-links a:hover {
    background: #00c853;
    transform: translateY(-5px) rotate(8deg);
    box-shadow: 0 0 15px rgba(0, 200, 83, .5);
}

.ng-widget-title {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
}

.ng-widget-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #00e676;
    margin-top: 8px;
    border-radius: 3px;
    transition: width .4s;
}

.ng-widget-title:hover::after {
    width: 80px;
}

.ng-widget ul {
    margin: 0;
}

.ng-widget ul li {
    margin-bottom: 10px;
}

.ng-widget ul li a:hover {
    color: #00e676;
    padding-left: 5px;
}

.school-time span {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #00e676;
}

.school-time p {
    font-size: 13px;
    color: rgba(255, 255, 255, .7);
}

.nextgen-footer::after {
    content: '© 2025 Safa Public School | All Rights Reserved';
    display: block;
    text-align: center;
    padding: 25px 15px;
    margin-top: 50px;
    font-size: 13px;
    color: rgba(255, 255, 255, .6);
    background: rgba(0, 0, 0, .2);
    backdrop-filter: blur(4px);
}

@media (max-width:1024px) {
    .about-container,
    .regarding-us {
        flex-direction: column;
    }
    .about-image,
    .about-text-box {
        max-width: 100%;
        flex: 1 1 100%;
        margin-bottom: 20px;
    }
    .qulifaction-content {
        min-width: 100%
    }
    .nextgen-footer {
        width: 100%;
        margin: 0;
        padding-top: 50px;
    }
    .ng-container {
        padding: 0 20px;
    }
    .ng-row {
        justify-content: center;
    }
}

@media (max-width:768px) {
    .dual-image-container {
        flex-direction: column;
        gap: 20px;
    }
    .dual-image-box {
        max-width: 100%;
        min-height: 280px;
    }
    .dual-with-text {
        flex-direction: column;
    }
    .dual-with-text img {
        border-radius: 20px 20px 0 0;
        height: 220px;
    }
    .image-overlay-text {
        position: relative;
        border-radius: 0 0 20px 20px;
        margin-top: -5px;
        padding: 18px;
        font-size: 14px;
    }
    .image-overlay-text h3 {
        font-size: 18px;
    }
    .image-overlay-text p {
        font-size: 13px;
        line-height: 1.5;
    }
    .safa-blog-section {
        padding: 80px 0;
    }
    .safa-blog-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-inline: 25px;
    }
    .safa-blog-title {
        font-size: 2.2rem;
    }
    .safa-blog-image {
        height: 230px;
    }
    .safa-blog-content {
        padding: 25px;
    }
    .nextgen-footer {
        width: 355px;
        margin-left: -15px;
        margin-bottom: -170px;
        padding: 40px 0;
    }
    .ng-container {
        padding: 0 15px;
    }
    .ng-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    .ng-col {
        flex: 1 1 100%;
        min-width: unset;
    }
    .ng-widget-title::after {
        margin: 8px auto 0;
    }
    .ng-footer-social-links ul {
        justify-content: center;
    }
    .ng-footer-logo img {
        width: 120px;
    }
    .ng-textwidget {
        font-size: 13px;
        line-height: 1.6;
        padding: 0 10px;
    }
    .school-time span {
        font-size: 14px;
    }
    .nextgen-footer::after {
        font-size: 12px;
        margin-top: 30px;
    }
}

:root {
    --safa-green: #00ff99;
    --safa-blue: #0080ff;
    --safa-light: #f0faff;
    --safa-gradient: linear-gradient(135deg, var(--safa-green), var(--safa-blue));
}

.safa-goal-section {
    position: relative;
    padding: 80px 40px;
    background: linear-gradient(160deg, rgba(0, 255, 128, .1), rgba(0, 128, 255, .1));
    border-radius: 25px;
    overflow: hidden;
}

.safa-goal-section::after,
.safa-goal-section::before {
    content: "";
    position: absolute;
    border-radius: 50%;
    width: 320px;
    height: 320px;
    filter: blur(100px);
    animation: 9s infinite alternate safa-floatGlow;
    z-index: 0;
}

.safa-goal-section::after {
    bottom: -140px;
    right: -100px;
    background: rgba(0, 128, 255, .5);
    animation-delay: 3s;
}

@keyframes safa-floatGlow {
    from {
        transform: translateY(0) translateX(0);
    }
    to {
        transform: translateY(-50px) translateX(50px);
    }
}

.safa-goal-container {
    max-width: 1200px;
    margin: auto;
}

.safa-goal-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.safa-goal-col {
    flex: 1;
    min-width: 300px;
}

.safa-video-play {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.safa-video-play img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
    transition: transform .5s;
}

.safa-goal-btn,
.safa-video-btn a {
    transition: transform .3s, box-shadow .3s;
}

.safa-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .3);
    border-radius: 20px;
}

.safa-video-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.safa-video-btn a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    background: var(--safa-gradient);
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
}

.safa-video-btn a:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 128, .6), 0 0 30px rgba(0, 128, 255, .6);
}

.safa-goal-content {
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(20px);
    padding: 40px 35px;
    border-radius: 20px;
    color: var(--safa-light);
    box-shadow: 0 15px 40px rgba(0, 0, 0, .2);
    animation: 1.2s ease-out safa-fadeInRight;
}

.safa-goal-title {
    font-size: 2.4rem;
    font-weight: 700;
    background: var(--safa-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.safa-goal-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #019ba6;
    margin-bottom: 30px;
}

.safa-goal-btn {
    padding: 12px 28px;
    border-radius: 30px;
    background: var(--safa-gradient);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.safa-goal-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 255, 128, .3), 0 12px 25px rgba(0, 128, 255, .3);
}

@keyframes safa-fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width:992px) {
    .safa-goal-row {
        flex-direction: column;
        text-align: center;
    }
    .safa-goal-content {
        margin-top: 30px;
    }
}

@media (max-width:480px) {
    #video-overlay video {
        max-width: 320px;
    }
    .home-about-us {
        padding: 40px 15px;
    }
    .about-text-box {
        padding: 20px;
    }
    .about-text-box p {
        font-size: 1rem;
        line-height: 1.5;
    }
    .qualifaction-icon i {
        font-size: 35px;
    }
    .qulifaction-detail p {
        font-size: 14px;
    }
    .safa-blog-section {
        padding: 70px 0;
    }
    .safa-blog-title,
    .safa-goal-title {
        font-size: 1.8rem;
    }
    .safa-blog-subtitle {
        font-size: .95rem;
    }
    .safa-blog-image {
        height: 200px;
    }
    .nextgen-footer {
        padding: 35px 0;
    }
    .ng-footer-logo img {
        width: 100px;
    }
    .ng-footer-social-links a {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    .ng-widget-title {
        font-size: 16px;
    }
    .ng-widget ul li a {
        font-size: 13px;
    }
    .safa-goal-section {
        padding: 50px 20px;
    }
    .safa-goal-text {
        font-size: 1rem;
        line-height: 1.6;
    }
    .safa-goal-btn {
        padding: 10px 20px;
        font-size: .9rem;
    }
}