/* =========================================================
   MANSOURA SCHOOL
   MAIN WEBSITE STYLE
   Primary: #123B5D
   Secondary: #F2A900
========================================================= */

:root {
    --primary: #123B5D;
    --primary-dark: #0D2C46;
    --secondary: #F2A900;

    --white: #FFFFFF;
    --light: #F5F7FA;

    --text: #1F2937;
    --text-light: #6B7280;

    --border: #E5E7EB;

    --shadow: 0 15px 40px rgba(18, 59, 93, 0.10);

    --radius: 18px;
    --container: 1200px;
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, "Tahoma", sans-serif;
    background: var(--white);
    color: var(--text);
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}


/* =========================================================
   CONTAINER
========================================================= */

.container {
    width: min(92%, var(--container));
    margin: auto;
}


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

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);

    position: sticky;
    top: 0;

    z-index: 1000;
}

.header-inner {
    min-height: 82px;

    display: flex;
    align-items: center;

    gap: 25px;
}


/* =========================================================
   LOGO
========================================================= */

.logo {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-left: auto;
}

.logo-img {
    width: 100px;
    height: 100px;

    min-width: 100px;
    min-height: 100px;

    max-width: 100px;
    max-height: 100px;

    object-fit: contain;

    border-radius: 12px;

    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;

    line-height: 1.3;
}

.logo-text strong {
    color: var(--primary);

    font-size: 17px;
}

.logo-text small {
    color: var(--text-light);

    font-size: 11px;
}


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

.main-nav {
    display: flex;
    align-items: center;

    gap: 20px;
}

.main-nav a {
    color: var(--text);

    font-size: 14px;
    font-weight: 600;

    position: relative;

    padding: 7px 0;

    white-space: nowrap;

    transition: 0.3s;
}

.main-nav a::after {
    content: "";

    position: absolute;

    right: 0;
    bottom: 0;

    width: 0;
    height: 2px;

    background: var(--secondary);

    transition: 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}


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

.mobile-menu-btn {
    display: none;

    border: none;

    background: var(--primary);
    color: var(--white);

    width: 42px;
    height: 42px;

    border-radius: 10px;

    font-size: 22px;

    cursor: pointer;
}


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

.hero {
    background: var(--primary);

    color: var(--white);

    padding: 90px 0;

    overflow: hidden;
}

.hero-grid {
    display: grid;

    grid-template-columns: 1fr 0.9fr;

    align-items: center;

    gap: 70px;
}


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

.hero-content {
    order: 1;
}

.hero-badge {
    display: inline-block;

    color: var(--secondary);

    background: rgba(242, 169, 0, 0.10);

    border: 1px solid rgba(242, 169, 0, 0.30);

    padding: 6px 14px;

    border-radius: 30px;

    font-size: 13px;

    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(38px, 5vw, 65px);

    line-height: 1.2;

    margin-bottom: 18px;
}

.hero h1 span {
    display: block;

    color: var(--secondary);
}

.hero-subtitle {
    font-size: 25px;

    font-weight: 700;

    margin-bottom: 12px;
}

.hero-description {
    color: rgba(255, 255, 255, 0.78);

    max-width: 620px;

    font-size: 17px;

    margin-bottom: 30px;
}


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

.hero-actions {
    display: flex;

    align-items: center;

    gap: 13px;

    flex-wrap: wrap;
}

.btn {
    display: inline-flex;

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

    min-height: 50px;

    padding: 0 24px;

    border-radius: 11px;

    font-weight: 800;

    transition: 0.3s;
}

.btn-primary {
    background: var(--secondary);

    color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 25px rgba(242, 169, 0, 0.25);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.45);

    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);

    color: var(--primary);
}


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

.hero-visual {
    position: relative;

    width: 100%;
}

.hero-image-placeholder {
    position: relative;

    width: 100%;

    height: 450px;

    border-radius: 30px;

    overflow: hidden;

    background: var(--primary-dark);

    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-image-placeholder img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;

    border-radius: 30px;

    transition: 0.4s;
}

.hero-image-placeholder:hover img {
    transform: scale(1.03);
}


/* =========================================================
   HERO IMAGE OVERLAY
========================================================= */

.hero-image-placeholder::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(18, 59, 93, 0.05),
            rgba(13, 44, 70, 0.20)
        );

    pointer-events: none;
}


/* =========================================================
   HERO FLOATING CARD
========================================================= */

.hero-floating-card {
    position: absolute;

    right: -25px;
    bottom: 30px;

    z-index: 5;

    background: var(--white);

    color: var(--text);

    padding: 15px 20px;

    border-radius: 14px;

    box-shadow: var(--shadow);

    display: flex;

    flex-direction: column;
}

.hero-floating-card strong {
    color: var(--primary);
}

.hero-floating-card span {
    font-size: 13px;

    color: var(--text-light);
}


/* =========================================================
   SECTIONS
========================================================= */

.section {
    padding: 90px 0;
}

.training-section {
    background: var(--white);
}

.why-section {
    background: var(--light);
}


/* =========================================================
   SECTION HEADING
========================================================= */

.section-heading {
    max-width: 700px;

    margin: 0 auto 45px;

    text-align: center;
}

.section-label {
    color: var(--secondary);

    font-weight: 800;

    font-size: 14px;
}

.section-heading h2 {
    color: var(--primary);

    font-size: clamp(30px, 4vw, 42px);

    margin: 5px 0 10px;
}

.section-heading p {
    color: var(--text-light);
}


/* =========================================================
   TRAINING CARDS
========================================================= */

.training-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;
}

.training-card {
    background: var(--white);

    border: 1px solid var(--border);

    padding: 35px;

    border-radius: var(--radius);

    box-shadow:
        0 5px 25px rgba(0, 0, 0, 0.03);

    transition: 0.3s;
}

.training-card:hover {
    transform: translateY(-7px);

    box-shadow: var(--shadow);
}

.card-icon {
    width: 62px;
    height: 62px;

    display: flex;

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

    background: rgba(242, 169, 0, 0.12);

    border-radius: 15px;

    font-size: 30px;

    margin-bottom: 20px;
}

.training-card h3 {
    color: var(--primary);

    font-size: 23px;

    margin-bottom: 10px;
}

.training-card p {
    color: var(--text-light);

    margin-bottom: 20px;
}

.training-card a {
    color: var(--primary);

    font-weight: 800;
}

.training-card a span {
    color: var(--secondary);

    margin-right: 5px;
}


/* =========================================================
   FEATURES
========================================================= */

.features-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}

.feature-card {
    background: var(--white);

    padding: 28px 22px;

    border-radius: var(--radius);

    border: 1px solid var(--border);

    text-align: center;

    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);

    box-shadow: var(--shadow);
}

.feature-icon {
    width: 60px;
    height: 60px;

    margin: 0 auto 18px;

    display: flex;

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

    border-radius: 50%;

    background: var(--primary);

    color: var(--secondary);

    font-size: 26px;
}

.feature-card h3 {
    color: var(--primary);

    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-light);

    font-size: 14px;
}


/* =========================================================
   SPECIALTIES
   دليل التخصصات
========================================================= */

.specialties-section {
    background: var(--white);
}

.specialties-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 22px;
}

.specialty-card {
    background: var(--white);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 30px 25px;

    box-shadow:
        0 5px 25px rgba(0, 0, 0, 0.03);

    transition: 0.3s;

    display: flex;

    flex-direction: column;

    min-height: 330px;
}

.specialty-card:hover {
    transform: translateY(-7px);

    box-shadow: var(--shadow);

    border-color: rgba(242, 169, 0, 0.35);
}

.specialty-icon {
    width: 64px;
    height: 64px;

    display: flex;

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

    background: rgba(242, 169, 0, 0.12);

    color: var(--primary);

    border-radius: 16px;

    font-size: 30px;

    margin-bottom: 20px;
}

.specialty-card h3 {
    color: var(--primary);

    font-size: 21px;

    margin-bottom: 10px;
}

.specialty-card p {
    color: var(--text-light);

    font-size: 14px;

    line-height: 1.9;

    margin-bottom: 20px;

    flex: 1;
}

.specialty-card a {
    color: var(--primary);

    font-size: 14px;

    font-weight: 800;

    display: inline-flex;

    align-items: center;

    gap: 5px;

    transition: 0.3s;
}

.specialty-card a span {
    color: var(--secondary);

    transition: 0.3s;
}

.specialty-card a:hover {
    color: var(--secondary);
}

.specialty-card a:hover span {
    transform: translateX(-4px);
}


/* =========================================================
   SECTION MORE BUTTON
========================================================= */

.section-more {
    display: flex;

    justify-content: center;

    margin-top: 40px;
}


/* =========================================================
   TRAINERS
   الأساتذة والمدربون
========================================================= */

.trainers-section {
    background: var(--light);
}

.trainers-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.trainer-card {
    background: var(--white);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    overflow: hidden;

    box-shadow:
        0 5px 25px rgba(0, 0, 0, 0.03);

    transition: 0.3s;
}

.trainer-card:hover {
    transform: translateY(-7px);

    box-shadow: var(--shadow);
}


/* =========================================================
   TRAINER IMAGE
========================================================= */

.trainer-image {
    width: 100%;

    height: 280px;

    background: var(--light);

    overflow: hidden;

    display: flex;

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

    position: relative;
}

.trainer-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;

    display: block;

    transition: 0.4s;

    position: relative;

    z-index: 2;
}

.trainer-card:hover .trainer-image img {
    transform: scale(1.04);
}


/* =========================================================
   TRAINER PLACEHOLDER
========================================================= */

.trainer-home-placeholder {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    display: flex;

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

    background: var(--primary);

    color: var(--secondary);

    font-size: 70px;

    z-index: 1;
}


/* =========================================================
   TRAINER IMAGE ERROR
========================================================= */

.trainer-image-fallback img {
    display: none;
}


/* =========================================================
   TRAINER CONTENT
========================================================= */

.trainer-content {
    padding: 25px;

    text-align: center;
}

.trainer-content h3 {
    color: var(--primary);

    font-size: 21px;

    margin-bottom: 3px;
}

.trainer-content > span {
    color: var(--secondary);

    font-size: 14px;

    font-weight: 800;

    display: block;

    margin-bottom: 10px;
}

.trainer-content p {
    color: var(--text-light);

    font-size: 14px;

    line-height: 1.8;
}


/* =========================================================
   GALLERY
   معرض الصور
========================================================= */

.gallery-section {
    background: var(--white);
}

.gallery-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.gallery-item {
    position: relative;

    height: 270px;

    border-radius: var(--radius);

    overflow: hidden;

    background: var(--light);

    display: block;
}

.gallery-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: 0.4s;
}

.gallery-item:hover img {
    transform: scale(1.07);
}

.gallery-overlay {
    position: absolute;

    right: 0;
    left: 0;
    bottom: 0;

    padding: 35px 18px 18px;

    background:
        linear-gradient(
            to top,
            rgba(13, 44, 70, 0.90),
            rgba(13, 44, 70, 0)
        );

    color: var(--white);

    display: flex;

    align-items: flex-end;

    min-height: 110px;
}

.gallery-overlay span {
    color: var(--white);

    font-size: 14px;

    font-weight: 800;
}


/* =========================================================
   CTA
========================================================= */

.cta-section {
    background: var(--primary);

    color: var(--white);

    padding: 80px 0;

    text-align: center;
}

.cta-content {
    max-width: 750px;

    margin: auto;
}

.cta-content > span {
    color: var(--secondary);

    font-weight: 800;
}

.cta-content h2 {
    font-size: clamp(30px, 4vw, 45px);

    margin: 8px 0;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.75);

    margin-bottom: 25px;
}

.btn-cta {
    background: var(--secondary);

    color: var(--primary);
}

.btn-cta:hover {
    transform: translateY(-3px);
}


/* =========================================================
   FOOTER
   4 EQUAL COLUMNS - FULL WIDTH
========================================================= */

.site-footer {
    width: 100%;

    background: #0D2C46;

    color: #FFFFFF;
}

.site-footer .footer-grid {
    width: 100%;

    max-width: none;

    padding: 65px 5%;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 0;

    align-items: start;
}

.site-footer .footer-column {
    width: 100%;

    min-width: 0;

    padding: 0 30px;

    display: flex;

    flex-direction: column;

    gap: 8px;
}


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

.site-footer .footer-logo {
    display: inline-block;

    color: #F2A900;

    font-size: 24px;

    font-weight: 900;

    margin-bottom: 5px;
}


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

.site-footer .footer-column h3 {
    color: #F2A900;

    font-size: 17px;

    font-weight: 800;

    margin: 0 0 10px;

    white-space: nowrap;
}


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

.site-footer .footer-column p {
    max-width: 100%;

    margin: 0;

    color: rgba(255, 255, 255, 0.65);

    font-size: 14px;

    line-height: 1.9;
}


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

.site-footer .footer-column a,
.site-footer .footer-column span {
    color: rgba(255, 255, 255, 0.72);

    font-size: 14px;

    line-height: 1.8;

    transition: 0.2s;
}

.site-footer .footer-column a:hover {
    color: #F2A900;
}


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

.site-footer .footer-column + .footer-column {
    border-right:
        1px solid rgba(255, 255, 255, 0.10);
}


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

.site-footer .footer-bottom {
    width: 100%;

    border-top:
        1px solid rgba(255, 255, 255, 0.10);

    padding: 20px;

    text-align: center;

    color: rgba(255, 255, 255, 0.5);

    font-size: 13px;
}

.site-footer .footer-bottom p {
    margin: 0;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .main-nav {
        gap: 13px;
    }

    .main-nav a {
        font-size: 13px;
    }

    .hero-grid {
        gap: 40px;
    }

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

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

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

}


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

@media (max-width: 850px) {

    .header-inner {
        justify-content: space-between;
    }

    .logo {
        margin-left: 0;
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }


    /* HERO */

    .hero {
        padding: 65px 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;

        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 2;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image-placeholder {
        height: 330px;

        border-radius: 25px;
    }

    .hero-image-placeholder img {
        border-radius: 25px;
    }

    .hero-floating-card {
        right: 15px;
        bottom: 15px;
    }


    /* TRAINING */

    .training-grid {
        grid-template-columns: 1fr;
    }


    /* TRAINERS */

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


    /* FOOTER */

    .site-footer .footer-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        padding: 50px 4%;
    }

    .site-footer .footer-column {
        padding: 25px 20px;
    }

}


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

@media (max-width: 550px) {

    .section {
        padding: 65px 0;
    }


    /* LOGO */

    .logo-img {
        width: 80px;
        height: 80px;

        min-width: 80px;
        min-height: 80px;

        max-width: 80px;
        max-height: 80px;
    }

    .logo-text strong {
        font-size: 15px;
    }

    .logo-text small {
        font-size: 10px;
    }


    /* HERO */

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

    .hero-subtitle {
        font-size: 21px;
    }

    .hero-description {
        font-size: 15px;
    }

    .btn {
        width: 100%;
    }

    .hero-image-placeholder {
        height: 270px;

        border-radius: 22px;
    }

    .hero-image-placeholder img {
        border-radius: 22px;
    }

    .hero-floating-card {
        right: 10px;
        bottom: 10px;

        padding: 12px 15px;
    }


    /* FEATURES */

    .features-grid {
        grid-template-columns: 1fr;
    }


    /* SPECIALTIES */

    .specialties-grid {
        grid-template-columns: 1fr;
    }

    .specialty-card {
        min-height: auto;

        padding: 28px 22px;
    }


    /* TRAINERS */

    .trainers-grid {
        grid-template-columns: 1fr;
    }

    .trainer-image {
        height: 300px;
    }


    /* GALLERY */

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 260px;
    }


    /* SECTION BUTTON */

    .section-more .btn {
        width: auto;

        min-width: 200px;
    }


    /* FOOTER */

    .site-footer .footer-grid {
        grid-template-columns: 1fr;

        padding: 40px 6%;
    }

    .site-footer .footer-column {
        padding: 25px 10px;

        border-right: none !important;

        border-bottom:
            1px solid rgba(255, 255, 255, 0.10);
    }

    .site-footer .footer-column:last-child {
        border-bottom: none;
    }

}