/* =========================================
   SAHARA MODEL SCHOOL
   RESPONSIVE CSS
   MOBILE + TABLET + LAPTOP + DESKTOP
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: white;
    width: 100%;
    overflow-x: hidden;
}

/* =========================================
   HEADER
========================================= */

header {
    background: rgb(2, 56, 2);
    color: white;
    padding: 15px 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    min-height: 100px;
    position: relative;
    z-index: 1000;
}

.logo-box {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* =========================================
   ROUND SCHOOL LOGO
========================================= */

.logo-box img {
    width: 60px;
    height: 60px;

    object-fit: cover;

    margin-right: 15px;

    border-radius: 50%;

    border: 3px solid #F59E0B;

    box-shadow:
        0 0 0 2px rgba(255,255,255,0.25),
        0 4px 12px rgba(0,0,0,0.35);

    opacity: 1;

    transition:
        opacity 1s ease-in-out,
        transform .3s ease,
        box-shadow .3s ease;
}

.logo-box img:hover {
    transform: scale(1.06);

    box-shadow:
        0 0 0 3px rgba(245,158,11,0.25),
        0 5px 18px rgba(0,0,0,0.45);
}

.fade {
    opacity: 0;
}

header > h2 {
    font-size: clamp(18px, 2.5vw, 30px);
    text-align: center;
    flex: 1;
}

header > p {
    font-size: 15px;
    white-space: nowrap;
}

/* =========================================
   DESKTOP NAVIGATION
========================================= */

nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    font-weight: bold;
    white-space: nowrap;
}

nav a:hover {
    color: #F59E0B;
}

/* =========================================
   THREE LINE MENU
========================================= */

.menu {
    position: relative;
    display: none;
}

.menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 12px;
}

.menu-items {
    display: none;
    position: absolute;
    right: 0;
    top: 55px;
    background: rgb(8, 92, 60);
    width: 190px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
    z-index: 9999;
    overflow: hidden;
}

.menu-items a {
    display: block;
    padding: 13px 18px;
    color: whitesmoke;
    text-decoration: none;
    font-weight: bold;
    margin: 0;
}

.menu-items a:hover {
    background: #F59E0B;
    color: #0F5233;
}

.menu-items.show {
    display: block;
}

/* =========================================
   SOCIAL ICONS
========================================= */

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.social-icons a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 17px;
    transition: 0.3s;
}

.social-icons a:first-child {
    background: #1877f2;
}

.social-icons a:last-child {
    background: red;
}

.social-icons a:hover {
    transform: scale(1.15);
}

/* =========================================
   HERO
========================================= */

.hero {
    background:
        linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)),
        url('sahara/sahara1.jpeg');

    background-size: cover;
    background-position: center;
    min-height: 500px;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;
    color: white;

    background-attachment: fixed;

    animation: backgroundChange 13s infinite;
    padding: 40px 20px;
}

@keyframes backgroundChange {

    0%, 15% {
        background-image:
        linear-gradient(rgba(0,0,0,.5),rgba(0,0,0,.5)),
        url("saharaman/saharaim1.jpeg");
    }

    18%, 33% {
        background-image:
        linear-gradient(rgba(0,0,0,.5),rgba(0,0,0,.5)),
        url("saharaman/front.jpg");
    }

    36%, 51% {
        background-image:
        linear-gradient(rgba(0,0,0,.5),rgba(0,0,0,.5)),
        url("saharaman/sahara3.jpeg");
    }

    66%, 79% {
        background-image:
        linear-gradient(rgba(0,0,0,.5),rgba(0,0,0,.5)),
        url("saharaman/saharapic.jpeg");
    }

    81%, 100% {
        background-image:
        linear-gradient(rgba(0,0,0,.5),rgba(0,0,0,.5)),
        url("saharaman/front.jpg");
    }
}

.hero h1 {
    font-size: clamp(30px, 5vw, 50px);
    display: inline-block;
    position: relative;
    line-height: 1.2;
}

.hero h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 3px;
    background: #800f56;
    animation: lineMove 4s infinite;
}

@keyframes lineMove {

    0% {
        transform: scaleX(0);
        transform-origin: left;
    }

    50% {
        transform: scaleX(1);
        transform-origin: left;
    }

    100% {
        transform: scaleX(0);
        transform-origin: right;
    }
}

.hero p {
    font-size: clamp(16px, 2.5vw, 22px);
    margin: 20px 0;
    line-height: 1.5;
}

/* =========================================
   BUTTON
========================================= */

.btn {
    display: inline-block;
    background: rgb(53, 83, 8);
    padding: 12px 25px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    transition: .3s;
}

.btn:hover {
    background: #F59E0B;
    color: #111;
    transform: translateY(-2px);
}

/* =========================================
   ABOUT
========================================= */

.about {
    background-color: rgb(179, 214, 179);
    padding: 60px 10%;
    text-align: center;
}

.about h2 {
    color: #00695c;
    margin-bottom: 20px;
    font-size: clamp(25px, 4vw, 35px);
}

.about p {
    font-size: 18px;
    line-height: 1.8;
}

/* =========================================
   FOOTER
========================================= */

footer {
    background: darkgreen;
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
}

footer p {
    line-height: 1.7;
}

/* =========================================
   DIRECTOR
========================================= */

.director {
    text-align: center;
    background-color: #106140;
    padding: 30px 4%;
}

.facility-card1 {
    background: rgb(7, 65, 12);
    padding: 28px 20px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    transition: 0.3s;
    border-bottom: 3px solid transparent;
    max-width: 1100px;
    margin: 20px auto;
}

.facility-card1:hover {
    transform: translateY(-7px);
    border-bottom: 3px solid #0F5233;
}

.facility-icon1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.facility-icon1 img {
    width: min(400px, 90%);
    height: 350px;
    border: 5px solid gold;
    object-fit: cover;
    border-radius: 10px;
}

.facility-card1 h3 {
    color: white;
    font-size: 19px;
    margin: 10px 0;
}

.facility-card1 h2,
.facility-card1 h4 {
    color: white;
}

.facility-card1 p {
    color: white;
    font-size: 15px;
    line-height: 1.7;
    margin: 12px auto;
    max-width: 950px;
}

/* =========================================
   SCHOOL PORTAL
========================================= */

.botam2 {
    width: 100%;
    text-align: center;
    background-color: #0b3d27;
    padding: 1px 0;
}

.school-portal {
    width: calc(100% - 30px);
    max-width: 1100px;
    margin: 40px auto;
    padding: 30px;

    background: linear-gradient(135deg, #0f5233, #083b25);

    border-radius: 20px;
    text-align: center;

    box-shadow: 0 10px 30px rgba(0,0,0,0.20);
}

.school-portal h2 {
    color: white;
    font-size: clamp(23px, 4vw, 30px);
    margin-bottom: 5px;
}

.portal-subtitle {
    color: #e5e5e5;
    margin-bottom: 25px;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

/* =========================================
   PORTAL CARD
   SAME DESIGN + CLICKABLE LINK
========================================= */

.portal-card {
    display: block;

    background: white;
    padding: 22px 10px;

    border-radius: 15px;
    cursor: pointer;

    transition: 0.3s;

    border: 2px solid transparent;

    /* Important for <a> */

    text-decoration: none;
    color: inherit;
}

.portal-card:hover {
    transform: translateY(-7px);
    border-color: #f59e0b;
    box-shadow: 0 8px 20px rgba(0,0,0,0.20);
}

.portal-icon {
    font-size: 38px;
    margin-bottom: 8px;
}

.portal-card h3 {
    margin: 5px 0;
    color: #0f5233;
    font-size: 17px;
}

.portal-card p {
    margin: 5px 0;
    color: #666;
    font-size: 13px;
}

/* Prevent visited link color */

.portal-card:visited {
    color: inherit;
}

/* =========================================
   SCHOOL WELCOME ANIMATION
========================================= */

.school-animation {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
    background: #000;
}

.scene {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;

    background:
    radial-gradient(
        circle at center,
        rgba(15,82,51,.35),
        #000 65%
    );
}

.light {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,0,0,.10);
    filter: blur(60px);
    animation: moveLight 6s infinite alternate ease-in-out;
}

@keyframes moveLight {

    0% {
        left: -100px;
        top: 10%;
    }

    50% {
        left: 55%;
        top: 50%;
    }

    100% {
        left: 80%;
        top: 5%;
    }
}

.ray {
    position: absolute;
    width: 2px;
    height: 120%;

    background:
    linear-gradient(
        transparent,
        rgba(255,0,0,.8),
        transparent
    );

    filter: blur(2px);
    opacity: .4;
    transform: rotate(35deg);

    animation: rayMove 4s linear infinite;
}

.ray:nth-child(2) {
    left: 20%;
    animation-delay: 1s;
}

.ray:nth-child(3) {
    left: 70%;
    animation-delay: 2s;
}

@keyframes rayMove {

    from {
        transform: translateX(-500px) rotate(35deg);
    }

    to {
        transform: translateX(800px) rotate(35deg);
    }
}

.welcome {
    position: absolute;
    top: 50%;
    left: 50%;

    transform: translate(-50%,-50%);

    text-align: center;
    width: 95%;

    opacity: 0;
    z-index: 10;

    animation: showText 2s ease forwards;
    animation-delay: 1s;
}

.welcome h1 {
    font-size: clamp(28px,6vw,70px);
    font-weight: 800;
    color: white;
    letter-spacing: 2px;

    text-shadow:
    0 0 5px white,
    0 0 15px #ff0000,
    0 0 30px #ff0000,
    0 0 60px #ff0000;

    animation: neonPulse 2s infinite alternate;
}

.welcome h2 {
    margin-top: 18px;
    font-size: clamp(18px,3vw,35px);
    color: #ff4d6d;
    letter-spacing: 4px;

    text-shadow:
    0 0 8px #ff0000,
    0 0 20px #ff0000,
    0 0 40px #ff0000;
}

@keyframes showText {

    0% {
        opacity: 0;
        transform: translate(-50%,-50%) scale(.4);
        filter: blur(20px);
    }

    70% {
        opacity: 1;
        transform: translate(-50%,-50%) scale(1.1);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: translate(-50%,-50%) scale(1);
    }
}

@keyframes neonPulse {

    from {
        text-shadow:
        0 0 5px white,
        0 0 15px red,
        0 0 30px red;
    }

    to {
        text-shadow:
        0 0 10px white,
        0 0 25px red,
        0 0 50px red,
        0 0 90px red;
    }
}

.love {
    position: absolute;
    bottom: -50px;
    color: #ff0000;
    font-size: 25px;
    z-index: 5;
    pointer-events: none;

    text-shadow:
    0 0 5px #ff0000,
    0 0 10px #ff0000,
    0 0 20px #ff0000,
    0 0 35px #ff4d6d;

    animation: loveFloat linear infinite;
}

@keyframes loveFloat {

    0% {
        transform: translateY(0) scale(.5) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        transform: translateY(-50vh) scale(1) rotate(15deg);
        opacity: .9;
    }

    80% {
        opacity: .8;
    }

    100% {
        transform: translateY(-115vh) scale(1.5) rotate(-20deg);
        opacity: 0;
    }
}

.line {
    position: absolute;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);

    width: 0;
    height: 3px;

    background: #ff0000;

    box-shadow:
    0 0 10px red,
    0 0 25px red,
    0 0 40px #ff4d6d;

    animation: lineGrow 2s ease forwards;
    animation-delay: 1.5s;

    z-index: 8;
}

@keyframes lineGrow {
    to {
        width: 70%;
    }
}

/* =========================================
   COMPUTER PROGRAMMING SECTION
========================================= */

.computer-section {
    width: 100%;
    min-height: 100vh;

    position: relative;
    overflow: hidden;

    padding: 70px 20px;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;

    background:
    linear-gradient(
        135deg,
        #061f14,
        #0F5233
    );

    color: white;
}

.computer-content {
    width: 100%;
    max-width: 1100px;
    position: relative;
    z-index: 5;
}

.computer-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    animation: computerFloat 8s infinite ease-in-out;
    overflow: hidden;
}

.computer-c1 {
    width: 180px;
    height: 180px;
    left: 5%;
    top: 10%;
}

.computer-c2 {
    width: 250px;
    height: 250px;
    right: 5%;
    bottom: 10%;
    animation-delay: 2s;
}

.computer-c1 img,
.computer-c2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes computerFloat {

    0%,100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-40px) scale(1.1);
    }
}

.computer-logo {
    font-size: 70px;
    margin-bottom: 10px;
    animation: computerMove 2s infinite alternate;
}

@keyframes computerMove {

    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-12px);
    }
}

.computer-title {
    font-size: clamp(28px,5vw,45px);
    margin: 15px 0;
    color: white;
    line-height: 1.3;
}

.computer-title span {
    color: #F59E0B;
}

.computer-subtitle {
    max-width: 900px;
    margin: 0 auto 40px;
    font-size: 19px;
    line-height: 1.8;
    color: white;
}

.computer-programs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* =========================================
   COMPUTER CARD
   SAME DESIGN + CLICKABLE LINK
========================================= */

.computer-card {
    display: block;

    background: rgba(255,255,255,.10);

    border:
    1px solid
    rgba(255,255,255,.18);

    padding: 25px 15px;
    border-radius: 20px;

    backdrop-filter: blur(8px);
    transition: .4s;

    animation:
    computerAppear 1s ease forwards;

    opacity: 0;

    /* Important for <a> */

    text-decoration: none;
    color: white;

    cursor: pointer;
}

.computer-card:visited {
    color: white;
}

.computer-card:hover {
    transform: translateY(-12px) scale(1.04);
    background: rgba(255,255,255,.18);
}

.computer-card:active {
    transform: translateY(-5px) scale(1.01);
}

.computer-card:nth-child(1){animation-delay:.2s;}
.computer-card:nth-child(2){animation-delay:.4s;}
.computer-card:nth-child(3){animation-delay:.6s;}
.computer-card:nth-child(4){animation-delay:.8s;}
.computer-card:nth-child(5){animation-delay:1s;}
.computer-card:nth-child(6){animation-delay:1.2s;}
.computer-card:nth-child(7){animation-delay:1.4s;}
.computer-card:nth-child(8){animation-delay:1.6s;}
.computer-card:nth-child(9){animation-delay:1.8s;}

@keyframes computerAppear {

    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.computer-icon {
    font-size: 45px;
    margin-bottom: 12px;
}

.computer-card h3 {
    color: #F59E0B;
    margin-bottom: 8px;
    font-size: 20px;
}

.computer-card p {
    font-size: 14px;
    line-height: 1.5;
    color: white;
}

.computer-message {
    margin-top: 40px;
    font-size: 22px;
    font-weight: bold;
    animation: computerPulse 2s infinite;
}

@keyframes computerPulse {

    50% {
        transform: scale(1.04);
    }
}

.computer-badge {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 22px;
    border-radius: 30px;
    background: #F59E0B;
    color: #111;
    font-weight: bold;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    header {
        padding: 12px 20px;
    }

    nav {
        gap: 3px;
    }

    nav a {
        margin-left: 8px;
        font-size: 14px;
    }

    .portal-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .computer-programs {
        grid-template-columns: repeat(2, 1fr);
    }

    .computer-section {
        padding: 60px 18px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    body {
        width: 100%;
        overflow-x: hidden;
    }

    /* Header mobile */

    header {
        min-height: 75px;
        padding: 10px 12px;
        gap: 8px;
        justify-content: space-between;
    }

    .menu {
        display: block;
        order: 1;
    }

    .logo-box {
        order: 2;
    }

    .logo-box img {
        width: 52px;
        height: 52px;
        margin-right: 0;
    }

    header > h2 {
        order: 3;
        font-size: 15px;
        line-height: 1.2;
    }

    header > p {
        display: none;
    }

    header nav {
        display: none;
    }

    /* Hero */

    .hero {
        min-height: 430px;
        height: auto;
        padding: 50px 15px;
        background-attachment: scroll;
    }

    .hero h1 {
        font-size: clamp(27px, 8vw, 38px);
    }

    .hero p {
        font-size: 16px;
        margin: 15px 0;
    }

    .btn {
        padding: 11px 18px;
        font-size: 16px;
    }

    /* Animation */

    .school-animation {
        height: 400px;
    }

    .welcome {
        width: 94%;
    }

    .welcome h1 {
        font-size: clamp(27px, 8vw, 42px);
        letter-spacing: 1px;
    }

    .welcome h2 {
        font-size: clamp(15px, 4vw, 22px);
        letter-spacing: 2px;
        line-height: 1.5;
    }

    .line {
        width: 70%;
    }

    /* Portal */

    .school-portal {
        width: calc(100% - 20px);
        margin: 20px auto;
        padding: 20px 10px;
        border-radius: 15px;
    }

    .school-portal h2 {
        font-size: 22px;
    }

    .portal-subtitle {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .portal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .portal-card {
        padding: 18px 7px;
        border-radius: 12px;
    }

    .portal-icon {
        font-size: 30px;
    }

    .portal-card h3 {
        font-size: 14px;
    }

    .portal-card p {
        font-size: 11px;
    }

    /* Director */

    .director {
        padding: 25px 12px;
    }

    .facility-card1 {
        padding: 20px 12px;
    }

    .facility-icon1 img {
        width: 100%;
        height: auto;
        max-height: 400px;
    }

    .facility-card1 p {
        font-size: 14px;
        line-height: 1.7;
        text-align: center;
    }

    /* Computer */

    .computer-section {
        padding: 50px 10px;
    }

    .computer-logo {
        font-size: 55px;
    }

    .computer-title {
        font-size: 27px;
    }

    .computer-title span {
        font-size: 21px;
    }

    .computer-subtitle {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 25px;
    }

    .computer-programs {
        grid-template-columns: repeat(2, 1fr);
        gap: 9px;
    }

    .computer-card {
        padding: 18px 8px;
        border-radius: 14px;
    }

    .computer-icon {
        font-size: 34px;
    }

    .computer-card h3 {
        font-size: 15px;
    }

    .computer-card p {
        font-size: 12px;
        line-height: 1.5;
    }

    .computer-message {
        font-size: 18px;
        margin-top: 25px;
    }

    .computer-badge {
        font-size: 14px;
        padding: 9px 18px;
    }

    /* Background circles */

    .computer-c1 {
        width: 100px;
        height: 100px;
        left: -30px;
    }

    .computer-c2 {
        width: 130px;
        height: 130px;
        right: -40px;
    }

    /* About */

    .about {
        padding: 45px 18px;
    }

    .about p {
        font-size: 15px;
        line-height: 1.7;
    }

    /* Footer */

    footer {
        padding: 25px 12px;
        font-size: 14px;
    }

    footer .social-icons {
        margin: 15px 0;
    }
}

/* =========================================
   VERY SMALL MOBILE
========================================= */

@media (max-width: 400px) {

    header > h2 {
        font-size: 12px;
    }

    .logo-box img {
        width: 45px;
        height: 45px;
    }

    .menu-btn {
        font-size: 30px;
    }

    .hero {
        min-height: 400px;
    }

    .hero h1 {
        font-size: 27px;
    }

    .portal-grid {
        gap: 7px;
    }

    .portal-card {
        padding: 15px 5px;
    }

    .portal-card h3 {
        font-size: 13px;
    }

    .computer-programs {
        gap: 7px;
    }

    .computer-card {
        padding: 15px 5px;
    }

    .computer-card h3 {
        font-size: 14px;
    }

    .computer-card p {
        font-size: 11px;
    }
}

/* ===================================
   SAHARA MODEL SCHOOL
   SCHOOL MANAGEMENT SECTION
=================================== */

/* ==========================================
   SAHARA MODEL SCHOOL
   GREEN MANAGEMENT SECTION
========================================== */

.facilities-section {
    padding: 75px 20px;
    background: linear-gradient(
        135deg,
        #073B25 0%,
        #0F5233 50%,
        #176B43 100%
    );
    font-family: "Segoe UI", Arial, sans-serif;
    overflow: hidden;
}

/* SECTION HEADER */

.facilities-header {
    max-width: 900px;
    margin: 0 auto 45px;
    text-align: center;
}

.section-badge {
    display: inline-block;
    padding: 10px 24px;
    margin-bottom: 20px;
    background: #F59E0B;
    color: #073B25;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.18);
}

/* MAIN HEADING */

.facilities-header h2 {
    color: #FFFFFF;
    font-size: clamp(27px, 4vw, 42px);
    font-weight: 900;
    margin: 0 0 15px;
    letter-spacing: 1px;
}

.facilities-header h2::after {
    content: "";
    display: block;
    width: 90px;
    height: 4px;
    margin: 18px auto 0;
    background: #F59E0B;
    border-radius: 10px;
}

/* SUB HEADING */

.facilities-header h3 {
    color: #FFD27A;
    font-size: clamp(17px, 2.5vw, 23px);
    font-weight: 700;
    margin: 0 0 18px;
}

/* DESCRIPTION */

.facilities-header p {
    color: #E5F3E9;
    font-size: 16px;
    line-height: 1.9;
    margin: 0;
}

/* ==========================================
   FOUR CARDS IN ONE ROW
========================================== */

.facilities-grid {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;

    display: grid;

    /* Desktop: 4 cards in one row */
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 22px;
    align-items: stretch;
}

/* ==========================================
   CARD DESIGN
========================================== */

.facility-card {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    min-width: 0;
    min-height: 260px;

    padding: 30px 18px;

    text-align: center;
    text-decoration: none;

    background: #FFFFFF;
    color: #0F5233;

    border: 1px solid #DCECE1;
    border-bottom: 5px solid #F59E0B;
    border-radius: 18px;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);

    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

/* GOLD TOP LINE */

.facility-card::before {
    content: "";
    position: absolute;

    top: 0;
    left: 0;

    width: 0;
    height: 5px;

    background: #F59E0B;

    transition: width 0.35s ease;
}

/* HOVER EFFECT */

.facility-card:hover {
    transform: translateY(-8px);

    border-bottom-color: #0F5233;

    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.24);
}

.facility-card:hover::before {
    width: 100%;
}

/* ICON */

.facility-icon {
    width: 72px;
    height: 72px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    background: #EAF5ED;
    border: 2px solid #D4E8DA;
    border-radius: 50%;

    font-size: 32px;

    transition:
        background 0.3s ease,
        transform 0.3s ease,
        border-color 0.3s ease;
}

.facility-card:hover .facility-icon {
    background: #0F5233;
    border-color: #F59E0B;
    transform: scale(1.08);
}

/* CARD TITLE */

.facility-card h3 {
    color: #0F5233;

    font-size: 17px;
    font-weight: 900;
    line-height: 1.5;

    margin: 0 0 12px;

    overflow-wrap: anywhere;

    transition: color 0.3s ease;
}

.facility-card:hover h3 {
    color: #C17A00;
}

/* CARD TEXT */

.facility-card p {
    color: #5E6D63;

    font-size: 13px;
    line-height: 1.8;

    margin: 0;

    overflow-wrap: anywhere;
}

/* KEYBOARD ACCESSIBILITY */

.facility-card:focus-visible {
    outline: 3px solid #F59E0B;
    outline-offset: 5px;
}

/* ==========================================
   TABLET: 2 CARDS PER ROW
========================================== */

@media (max-width: 1000px) {
    .facilities-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .facility-card {
        min-height: 240px;
        padding: 28px 18px;
    }
}

/* ==========================================
   MOBILE: 1 CARD PER ROW
========================================== */

@media (max-width: 560px) {
    .facilities-section {
        padding: 50px 15px;
    }

    .facilities-header {
        margin-bottom: 30px;
    }

    .facilities-header p {
        font-size: 14px;
    }

    .facilities-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .facility-card {
        min-height: 215px;
        padding: 28px 22px;
        border-radius: 16px;
    }

    .facility-icon {
        width: 68px;
        height: 68px;
        font-size: 30px;
        margin-bottom: 18px;
    }

    .facility-card h3 {
        font-size: 18px;
    }

    .facility-card p {
        font-size: 14px;
    }
}

/* REDUCE MOTION */

@media (prefers-reduced-motion: reduce) {
    .facility-card,
    .facility-icon,
    .facility-card::before {
        transition: none;
    }

    .facility-card:hover {
        transform: none;
    }
}

/* ==========================================
   SAHARA MODEL SCHOOL - PREMIUM FOOTER
========================================== */

.sms-footer {
    width: 100%;
    background: #0F5233 !important;
    color: #FFFFFF;
    padding: 55px 22px 0;
    margin: 0;
    position: relative;
    overflow: hidden;
    font-family: "Segoe UI", Arial, sans-serif;
    box-sizing: border-box;
}

/* GOLDEN TOP BORDER */

.sms-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(
        90deg,
        #F59E0B,
        #FFE5A3,
        #F59E0B
    );
}

/* MAIN CONTAINER */

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* TWO COLUMN LAYOUT */

.footer-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 65px;
    align-items: start;
}

/* SCHOOL BRAND */

.footer-brand {
    display: flex;
    align-items: center;
    gap: 17px;
    margin-bottom: 24px;
}

.footer-logo {
    width: 92px;
    height: 92px;
    min-width: 92px;
    object-fit: contain;
    background: #FFFFFF;
    border: 3px solid #F59E0B;
    border-radius: 50%;
    padding: 4px;
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.22);
}

.footer-brand-text h3 {
    margin: 0 0 9px;
    color: #FFFFFF;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0.4px;
}

.footer-brand-text p {
    margin: 0;
    color: #FFD580;
    font-size: 14px;
    line-height: 1.6;
}

/* ABOUT SCHOOL */

.footer-about {
    margin: 0 0 25px;
    color: #E7F3EB;
    font-size: 15px;
    line-height: 2;
    text-align: left;
}

/* SOCIAL MEDIA */

.footer-social {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 43px;
    height: 43px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #F59E0B;
    border-color: #F59E0B;
    color: #123D27;
    transform: translateY(-4px);
}

/* CONTACT INFORMATION */

.footer-contact {
    padding: 0;
    margin: 0;
}

.footer-contact h4 {
    margin: 5px 0 15px;
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 800;
}

.footer-divider {
    width: 75px;
    height: 4px;
    background: #F59E0B;
    border-radius: 5px;
    margin-bottom: 25px;
}

/* CONTACT ROWS */

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.65);
    border-radius: 10px;
    font-size: 19px;
}

.footer-contact-item p {
    margin: 0;
    padding-top: 5px;
    color: #E7F3EB;
    font-size: 15px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.footer-contact-item a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: #FFD580;
    text-decoration: underline;
}

/* COPYRIGHT SECTION */

.footer-bottom {
    margin-top: 45px;
    padding: 23px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-bottom p {
    margin: 0;
    color: #E7F3EB;
    font-size: 13px;
    line-height: 1.8;
}

.footer-bottom .footer-motto {
    color: #FFD580;
    font-weight: 700;
}

/* TABLET */

@media (max-width: 900px) {

    .sms-footer {
        padding: 45px 25px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

    .footer-logo {
        width: 76px;
        height: 76px;
        min-width: 76px;
    }

    .footer-brand-text h3 {
        font-size: 19px;
    }

    .footer-contact h4 {
        font-size: 22px;
    }
}

/* MOBILE */

@media (max-width: 600px) {

    .sms-footer {
        padding: 40px 20px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .footer-brand {
        gap: 14px;
        align-items: center;
    }

    .footer-logo {
        width: 72px;
        height: 72px;
        min-width: 72px;
    }

    .footer-brand-text h3 {
        font-size: 17px;
        line-height: 1.5;
    }

    .footer-brand-text p {
        font-size: 12px;
    }

    .footer-about {
        font-size: 14px;
        line-height: 1.9;
    }

    .footer-contact h4 {
        font-size: 21px;
    }

    .footer-contact-item {
        gap: 12px;
    }

    .footer-contact-item p {
        font-size: 14px;
    }

    .footer-bottom {
        margin-top: 32px;
        padding: 20px 0;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-bottom p {
        font-size: 12px;
    }

    .footer-social a {
        width: 40px;
        height: 40px;
    }
}

/* SMALL MOBILE */

@media (max-width: 360px) {

    .sms-footer {
        padding-left: 14px;
        padding-right: 14px;
    }

    .footer-brand {
        align-items: flex-start;
    }

    .footer-logo {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }

    .footer-brand-text h3 {
        font-size: 15px;
    }

    .footer-brand-text p {
        font-size: 11px;
    }
}

