
/* =====================================================
   DIN NEXT LT ARABIC
===================================================== */

@font-face {
    font-family: 'DIN Next LT Arabic';
    src: url('assets/fonts/DINNEXTLTARABIC-LIGHT-2-2.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DIN Next LT Arabic';
    src: url('assets/fonts/DINNextLTArabic-Regular-3.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DIN Next LT Arabic';
    src: url('assets/fonts/DINNextLTArabic-Medium-4.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DIN Next LT Arabic';
    src: url('assets/fonts/DINNextLTArabic-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* =====================================================
   VARIABLES
===================================================== */

:root {
    --primary: #12385f;
    --primary-dark: #0a2745;
    --gold: #f28c28;
    --gold-light: #ffb45b;
    --accent: #1677b8;
    --accent-light: #e4f2fb;
    --purple: #7357c9;
    --text: #172033;
    --text-light: #687386;
    --white: #ffffff;
    --bg-light: #f3f8fa;
    --bg-blue: #edf5fb;
    --bg-gold: #fff7ed;
    --border: #dfe9ed;
    --shadow: 0 14px 35px rgba(18, 56, 95, 0.09);
    --radius: 20px;
}


/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'DIN Next LT Arabic', sans-serif;
    font-weight: 400;
    background: var(--white);
    color: var(--text);
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1180px, 92%);
    margin: auto;
}


/* =====================================================
   TYPOGRAPHY
===================================================== */

h1,
h2 {
    font-family: 'DIN Next LT Arabic', sans-serif;
    font-weight: 700;
}

h3 {
    font-family: 'DIN Next LT Arabic', sans-serif;
    font-weight: 500;
}

h5 {
    font-family: 'DIN Next LT Arabic', sans-serif;
    font-weight: 500;
}

p {
    font-family: 'DIN Next LT Arabic', sans-serif;
    font-weight: 400;
}


/* =====================================================
   HEADER
===================================================== */

.header {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(18, 56, 95, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 22px rgba(18, 56, 95, 0.06);
    backdrop-filter: blur(12px);
}

.nav-container {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    min-width: 265px;
}

.logo img {
    width: 180px;
    max-height: 65px;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 30px;
}

.navbar a {
    color: #455468;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    transition: 0.3s;
}

.navbar a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    border-radius: 20px;
    background: linear-gradient(
        90deg,
        var(--accent),
        var(--gold)
    );
    transition: 0.3s;
}

.navbar a:hover {
    color: var(--accent);
}

.navbar a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    color: var(--primary);
    font-size: 25px;
    cursor: pointer;
}


/* =====================================================
   HERO
===================================================== */

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 8% 15%,
            rgba(22, 119, 184, 0.16),
            transparent 25%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(242, 140, 40, 0.15),
            transparent 27%
        ),
        linear-gradient(
            135deg,
            #edf8f8 0%,
            #ffffff 58%,
            #fff7ed 100%
        );
    padding: 65px 0 75px;
    border-bottom: 0;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero::before {
    width: 180px;
    height: 180px;
    left: -80px;
    top: 40px;
    border: 28px solid rgba(22, 119, 184, 0.08);
}

.hero::after {
    width: 240px;
    height: 240px;
    right: -120px;
    bottom: -100px;
    border: 45px solid rgba(242, 140, 40, 0.07);
}

.hero-content {
    min-height: 400px;
    display: grid;
    grid-template-columns: 1.25fr 0.85fr;
    align-items: center;
    gap: 55px;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 720px;
}

.hero-label {
    display: inline-block;
    color: var(--accent);
    background: rgba(22, 119, 184, 0.10);
    border: 1px solid rgba(22, 119, 184, 0.16);
    padding: 5px 14px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 18px;
    margin-bottom: 10px;
}

.hero h1 {
    color: var(--primary);
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.3;
    margin-bottom: 16px;
}

.hero h1::after {
    content: "";
    display: block;
    width: 65px;
    height: 5px;
    margin-top: 10px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        var(--accent),
        var(--gold)
    );
}

.hero p {
    max-width: 680px;
    color: #5f6e7e;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.9;
}


/* =====================================================
   HERO STUDENTS IMAGE
===================================================== */

.hero-photo-card {
    width: min(100%, 500px);
    aspect-ratio: 1 / 1;
    justify-self: end;
    position: relative;
    display: grid;
    place-items: center;
    overflow: visible;
    background:
        radial-gradient(
            circle at 50% 48%,
            rgba(22, 119, 184, 0.16),
            transparent 42%
        ),
        radial-gradient(
            circle at 70% 70%,
            rgba(242, 140, 40, 0.14),
            transparent 32%
        );
}

.hero-photo-stage {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
    background: transparent;
    z-index: 1;
}

.hero-photo-stage::before {
    content: "";
    position: absolute;
    inset: 12% 8%;
    border-radius: 45% 55% 50% 50%;
    background:
        linear-gradient(
            145deg,
            rgba(22, 119, 184, 0.12),
            rgba(242, 140, 40, 0.12)
        );
    z-index: -1;
}

.hero-students-image {
    display: block;
    width: 125%;
    height: 125%;
    margin: -50% 0 0 -100%;
    object-fit: contain;
    object-position: center bottom;
    filter: none;
    transition: none;
    transform: none;
}

.hero-students-image:hover {
    transform: none;
}


/* =====================================================
   GENERAL SECTIONS
===================================================== */

section {
    padding: 65px 0;
}

.section-heading {
    margin-bottom: 32px;
}

.section-heading span {
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 3px;
}

.section-heading h2 {
    color: var(--primary);
    font-size: clamp(27px, 4vw, 38px);
    line-height: 1.35;
    margin-bottom: 7px;
    font-weight: 700;
}

.section-heading h2::after {
    content: "";
    display: block;
    width: 50px;
    height: 4px;
    margin-top: 8px;
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            var(--accent),
            var(--gold)
        );
}

.section-heading p {
    color: var(--text-light);
    max-width: 650px;
    font-size: 14px;
    font-weight: 300;
}

.section-heading.center {
    text-align: center;
}

.section-heading.center p {
    margin: 0 auto;
}

.section-heading.center h2::after {
    margin-right: auto;
    margin-left: auto;
}


/* =====================================================
   MESSAGE SECTION
===================================================== */

.message-section {
    background: var(--white);
}

.message-card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            #f2f8fa 0%,
            #ffffff 100%
        );
    border: 1px solid #dce9ed;
    border-radius: 20px;
    padding: 30px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: center;
    box-shadow: var(--shadow);
}

.message-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background:
        linear-gradient(
            180deg,
            var(--accent),
            var(--gold)
        );
}

.pres-image {
    width: 260px;
    height: 380px;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: #f4f7f9;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.message-label {
    color: var(--accent);
    font-size: 14px;
    font-weight: 500;
}

.message-content h3 {
    color: var(--primary);
    font-size: 25px;
    margin: 7px 0 16px;
    font-weight: 700;
}

.message-content p {
    color: #626d7d;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.9;
    font-weight: 400;
}

.signature {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #d8e5e9;
    display: flex;
    flex-direction: column;
}

.signature strong {
    color: var(--primary);
    font-weight: 700;
}

.signature span {
    color: #8a94a3;
    font-size: 12px;
    font-weight: 300;
}


/* =====================================================
   SERVICES SECTION
===================================================== */

.services-section {
    position: relative;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(22, 119, 184, 0.06),
            transparent 28%
        ),
        #ffffff;
    padding: 70px 0 80px;
}

.services-section .section-heading {
    margin-bottom: 35px;
}


/* =====================================================
   SERVICES GRID
===================================================== */

.services-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
}


/* =====================================================
   SERVICE CARD BASE
===================================================== */

.service-card {
    position: relative;
    overflow: hidden;
    padding: 26px;
    min-height: 280px;
    border: 1px solid #f0dfcb;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    background:
        linear-gradient(
            135deg,
            #fffaf4 0%,
            #ffffff 100%
        );
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 0;
    background:
        linear-gradient(
            180deg,
            var(--accent),
            var(--gold)
        );
    transition: height 0.35s ease;
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(22, 119, 184, 0.22);
    box-shadow:
        0 15px 32px
        rgba(18, 56, 95, 0.10);
}


/* =====================================================
   CARD 1
   HORIZONTAL / FULL WIDTH
===================================================== */

.services-grid .service-card:first-child {
    grid-column: 1 / -1;
    min-height: 285px;
    padding: 38px 45px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 26px;
    border-radius: 22px;
    background:
        radial-gradient(
            circle at 88% 50%,
            rgba(22, 119, 184, 0.13),
            transparent 38%
        ),
        radial-gradient(
            circle at 8% 90%,
            rgba(242, 140, 40, 0.11),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #f7fbfd 0%,
            #ffffff 62%,
            #fff9f2 100%
        );
    border: 1px solid rgba(22, 119, 184, 0.17);
    box-shadow:
        0 12px 32px
        rgba(18, 56, 95, 0.08);
}


/* =====================================================
   CARD 1 ICON
===================================================== */

.services-grid
.service-card:first-child
.service-icon {
    width: 82px;
    height: 82px;
    min-width: 82px;
    border-radius: 22px;
    font-size: 32px;
    background:
        linear-gradient(
            135deg,
            #e3f6fb,
            #fff0dc
        );
    color: var(--accent);
    box-shadow:
        0 12px 25px
        rgba(22, 119, 184, 0.10);
    transition:
        transform 0.35s ease,
        background 0.35s ease,
        color 0.35s ease;
}

.services-grid
.service-card:first-child:hover
.service-icon {
    transform:
        rotate(-4deg)
        scale(1.06);
    background:
        linear-gradient(
            135deg,
            var(--accent),
            var(--primary)
        );
    color: white;
}


/* =====================================================
   CARD 1 CONTENT
===================================================== */

.services-grid
.service-card:first-child
.service-content {
    flex: 1;
    max-width: 900px;
}

.services-grid
.service-card:first-child
h3 {
    color: var(--primary);
    font-size: 27px;
    font-weight: 700;
    margin-bottom: 9px;
}

.services-grid
.service-card:first-child
p {
    color: #627183;
    font-size: 15px;
    line-height: 1.9;
    max-width: 760px;
    margin-bottom: 17px;
}


/* =====================================================
   CARD 1 LINKS
===================================================== */

.services-grid
.service-card:first-child
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: 8px;
    margin-top: 5px;
    padding: 8px 14px;
    border-radius: 10px;
    background:
        rgba(22, 119, 184, 0.07);
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.services-grid
.service-card:first-child
.service-link:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}


/* =====================================================
   CARDS 2 / 3 / 4
===================================================== */

.services-grid
.service-card:not(:first-child) {
    grid-column: auto;
    min-height: 280px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 15px;
    border-radius: 20px;
}


/* =====================================================
   NORMAL SERVICE ICON
===================================================== */

.service-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(
            135deg,
            #e3f8f6,
            #fff0dc
        );
    color: var(--accent);
    border-radius: 17px;
    font-size: 25px;
    transition:
        transform 0.3s ease,
        background 0.3s ease,
        color 0.3s ease;
}

.service-card:hover
.service-icon {
    transform:
        rotate(-4deg)
        scale(1.05);
    background:
        linear-gradient(
            135deg,
            var(--accent),
            var(--primary)
        );
    color: white;
}


/* =====================================================
   NORMAL SERVICE CONTENT
===================================================== */

.service-card:not(:first-child)
.service-content {
    width: 100%;
    flex: 1;
}

.service-card h3 {
    color: var(--primary);
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 700;
}

.service-card p {
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.9;
    margin-bottom: 10px;
}


/* =====================================================
   NORMAL SERVICE LINKS
===================================================== */

.service-card:not(:first-child)
.service-link {
    display: block;
    width: fit-content;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    margin-top: 6px;
    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.service-card:not(:first-child)
.service-link i {
    margin-right: 5px;
    font-size: 10px;
}

.service-card:not(:first-child)
.service-link:hover {
    color: var(--gold);
    transform: translateX(-4px);
}


/* =====================================================
   QUICK LINKS
===================================================== */

.links-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(22, 119, 184, 0.10),
            transparent 28%
        ),
        radial-gradient(
            circle at 0 100%,
            rgba(242, 140, 40, 0.10),
            transparent 28%
        ),
        #fff8ef;
    padding: 65px 0;
}

.quick-links {
    display: grid;
    grid-template-columns:
        repeat(3, 1fr);
    gap: 14px;
}

.quick-links a {
    min-height: 75px;
    background: white;
    padding: 15px 18px;
    border-radius: 12px;
    border: 1px solid #f0dfcb;
    box-shadow:
        0 4px 14px
        rgba(18, 56, 95, 0.035);
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
    transition: 0.3s;
}

.quick-links a > i:first-child {
    color: var(--accent);
    font-size: 19px;
    flex-shrink: 0;
}

.quick-links a span {
    flex: 1;
}

.quick-links a > i:last-child {
    font-size: 10px;
    color: #98a2ae;
}

.quick-links a:hover {
    background:
        linear-gradient(
            135deg,
            var(--primary),
            #185276
        );
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow:
        0 12px 25px
        rgba(18, 56, 95, 0.15);
}

.quick-links a:hover > i:first-child {
    color: var(--gold-light);
}


/* =====================================================
   FOOTER
===================================================== */

.footer {
    background:
        radial-gradient(
            circle at 50% -100%,
            rgba(22, 119, 184, 0.18),
            transparent 45%
        ),
        var(--primary);
    color: white;
    padding: 0;
    margin: 0;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    padding: 18px;
    color: #d9e0e8;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.8;
}

.copyright p {
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.1px;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {

    /* HERO */

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 35px;
    }

    .hero-text {
        margin: auto;
    }

    .hero p {
        margin: auto;
    }

    .hero-photo-card {
        width: min(100%, 450px);
        margin: 0 auto;
        justify-self: center;
    }

    .hero-students-image {
        width: 120%;
        height: 120%;
        margin: -8% 0 0 -10%;
    }


    /* MESSAGE */

    .message-card {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 28px;
    }

    .pres-image {
        margin: auto;
        width: 260px;
        height: 300px;
    }


    /* SERVICES */

    .services-section {
        padding: 65px 0 75px;
    }

    .services-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
        gap: 15px;
    }


    /* CARD 1 */

    .services-grid
    .service-card:first-child {
        min-height: 270px;
        padding: 35px;
    }

    .services-grid
    .service-card:first-child
    .service-icon {
        width: 78px;
        height: 78px;
        min-width: 78px;
        font-size: 29px;
    }


    /* CARDS 2/3/4 */

    .services-grid
    .service-card:not(:first-child) {
        min-height: 260px;
        padding: 22px;
        gap: 13px;
    }

    .services-grid
    .service-card:not(:first-child)
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 23px;
    }

    .service-card h3 {
        font-size: 18px;
    }

    .service-card p {
        font-size: 12px;
    }


    /* QUICK LINKS */

    .quick-links {
        grid-template-columns:
            repeat(2, 1fr);
    }
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 650px) {

    section {
        padding: 50px 0;
    }


    /* HEADER */

    .nav-container {
        min-height: 68px;
    }

    .menu-toggle {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 68px;
        right: 0;
        width: 100%;
        background: white;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border-top:
            1px solid
            rgba(22, 119, 184, 0.15);
        box-shadow:
            0 10px 20px
            rgba(0, 0, 0, 0.05);
    }

    .navbar.active {
        display: flex;
    }

    .navbar a {
        padding: 13px 5%;
        border-bottom:
            1px solid
            #f0f0f0;
    }

    .navbar a::after {
        display: none;
    }

    .navbar a:hover {
        background: #f0f7fc;
    }


    /* HERO */

    .hero {
        padding: 45px 0 50px;
    }

    .hero-content {
        gap: 30px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero-label {
        font-size: 16px;
    }

    .hero p {
        font-size: 13px;
        line-height: 1.9;
    }

    .hero-photo-card {
        width: min(100%, 360px);
    }

    .hero-students-image {
        width: 120%;
        height: 120%;
        margin: -8% 0 0 -10%;
    }


    /* =================================================
       MESSAGE - MOBILE
    ================================================= */

    .message-card {
        padding: 20px;
        border-radius: 17px;
    }

    .pres-image {
        width: 220px;
        height: 290px;
        margin: 0 auto;
    }

    .image-placeholder {
        width: 100%;
        height: 100%;
    }

    .image-placeholder img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

    .message-content h3 {
        font-size: 21px;
    }

    .message-content p {
        font-size: 13px;
    }


    /* SERVICES */

    .services-section {
        padding: 55px 0 65px;
    }

    .services-section
    .section-heading {
        margin-bottom: 28px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }


    /* CARD 1 */

    .services-grid
    .service-card:first-child {
        grid-column: auto;
        min-height: 0;
        padding: 27px 22px;
        flex-direction: column;
        align-items: flex-start;
        gap: 17px;
        border-radius: 19px;
    }

    .services-grid
    .service-card:first-child
    .service-icon {
        width: 70px;
        height: 70px;
        min-width: 70px;
        border-radius: 18px;
        font-size: 27px;
    }

    .services-grid
    .service-card:first-child
    h3 {
        font-size: 22px;
    }

    .services-grid
    .service-card:first-child
    p {
        font-size: 13px;
        line-height: 1.9;
        margin-bottom: 14px;
    }

    .services-grid
    .service-card:first-child
    .service-link {
        display: flex;
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
        margin-top: 6px;
        padding: 10px 13px;
    }


    /* CARDS 2 / 3 / 4 */

    .services-grid
    .service-card:not(:first-child) {
        grid-column: auto;
        min-height: 220px;
        padding: 24px 21px;
        gap: 15px;
        border-radius: 18px;
    }

    .services-grid
    .service-card:not(:first-child)
    .service-icon {
        width: 62px;
        height: 62px;
        min-width: 62px;
        font-size: 24px;
    }

    .services-grid
    .service-card:not(:first-child)
    h3 {
        font-size: 19px;
    }

    .services-grid
    .service-card:not(:first-child)
    p {
        font-size: 13px;
        line-height: 1.9;
    }


    /* QUICK LINKS */

    .links-section {
        padding: 55px 0;
    }

    .quick-links {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .quick-links a {
        min-height: 70px;
        padding: 14px 16px;
        font-size: 13px;
    }


    /* FOOTER */

    .footer {
        text-align: center;
    }
}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 400px) {

    .logo {
        min-width: 0;
        gap: 8px;
    }

    .logo img {
        width: 145px;
        max-height: 55px;
    }


    /* HERO */

    .hero h1 {
        font-size: 30px;
    }

    .hero-photo-card {
        width: min(100%, 340px);
        justify-self: center;
    }

    .hero-students-image {
        width: 120%;
        height: 120%;
        margin: -8% 0 0 -10%;
    }


    /* MESSAGE - SMALL MOBILE */

    .pres-image {
        width: 205px;
        height: 275px;
        margin: 0 auto;
    }


    /* SERVICES */

    .services-section {
        padding: 50px 0 60px;
    }

    .services-grid
    .service-card:first-child {
        padding: 24px 19px;
    }

    .services-grid
    .service-card:first-child
    h3 {
        font-size: 21px;
    }

    .services-grid
    .service-card:not(:first-child) {
        min-height: 215px;
        padding: 22px 19px;
    }


    /* GENERAL CARD */

    .service-card {
        padding: 20px;
    }
}

