/* FONTS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

@font-face {
    font-family: 'nexa_slab_regular_freeregular';
    src: url('../fonts/nexa_slab_regular-webfont.woff2') format('woff2'),
         url('../fonts/nexa_slab_regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* VARIABLES */
:root {
    --main-color: #3F1651;
    --primary-color: #A0D1D5;
    --secondary-color: #F89F5B;
    --third-color: #FB8500;
    --fourth-color: #653780;
    --fifth-color: #9C3587;
    --sixth-color: #E53F71;
    --black: #13131a;
    --bg: #FFFFFF;
    --border: 1px solid rgba(0, 0, 0, 0.3);
    --box-shadow: 4px 5px 4px rgba(0, 0, 0, 0.25);
    --border-radius: 50px;
    --transition: all 0.5s ease;
}

/* RESET & HELPERS */
body {
    font-family: 'nexa_slab_regular_freeregular';
    line-height: 1.7;
    background-color: var(--bg);
    overflow-x: hidden;
}

body.rtl {
    direction: rtl;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 500;
    color: var(--black);
}

a {
    text-decoration: none;
    color: var(--bg);
    transition: var(--transition);
}

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

img {
    max-width: 100%;
    height: auto;
}

.section-padding {
    padding-top: 140px;
    padding-bottom: 140px;
}

.theme-shadow {
    box-shadow: var(--box-shadow);
}

/* IMAGE ZOOM */
.image-zoom {
    position: relative;
}

.image-zoom-wrapper {
    overflow: hidden;
    position: relative;
}

.image-zoom-wrapper img {
    transition: var(--transition);
}

.image-zoom:hover .image-zoom-wrapper img {
    transform: scale(1.1);
}

/* NAVBAR */
nav {
    box-shadow: var(--box-shadow);
    background-color: var(--main-color);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--bg);
}

.navbar-nav .nav-link.active {
    color: var(--secondary-color);
}

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

.navbar-toggler {
    color: var(--main-color);
    border: 0;
}

.navbar-toggler span {
    color: var(--bg);
    font-size: 1.5rem;
}

.lang-toggle {
    border-color: rgba(255,255,255,0.35);
    color: var(--bg);
}

.lang-toggle:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--black);
}

/* BTN */
.btn {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    border-radius: 0;
    padding: 10px 24px;
}

.btn-brand {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--black);
    border-radius: 100px;
}

.btn-brand:hover {
    background-color: var(--third-color);
    border-color: var(--third-color);
    color: var(--black);
    box-shadow: var(--box-shadow);
}

/* HERO */
#hero {
    background-image: url('../images/hero-img.png');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    padding-top: 120px;
    padding-bottom: 80px;
}

#hero .heading-container {
    max-width: 560px;
    padding: 1rem 0;
}

#hero .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

#hero .display-1 {
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    line-height: 1.1;
}

#hero .row {
    justify-content: flex-start !important;
}

body.rtl #hero .hero-content {
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    float: left !important;
}

body.rtl #hero .hero-content h1,
body.rtl #hero .hero-content h5,
body.rtl #hero .hero-content a {
    text-align: left !important;
}

body.rtl #hero,
body.rtl #hero .container,
body.rtl #hero .row,
body.rtl #hero .hero-content {
    direction: ltr !important;
}

body.rtl #hero .hero-content {
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    float: left !important;
}

body.rtl #hero .hero-actions {
    justify-content: flex-start !important;
    direction: ltr !important;
    width: fit-content;
    align-self: flex-start !important;
}

body.rtl #hero .hero-actions .btn {
    margin-inline-start: 0;
    margin-inline-end: 0;
}

/* SECTION TITLE */
.section-title {
    margin-bottom: 60px;
}

.section-title p {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ICONBOX */
.iconbox {
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    font-size: 34px;
    flex: none;
}

.icons {
    color: var(--bg);
    font-size: 25px;
    margin-left: 20px;
}

body.rtl .icons {
    margin-left: 0;
    margin-right: 20px;
}

/* TEAM */
.team-member-content {
    background-color: var(--fourth-color);
    position: absolute;
    bottom: -24px;
    left: 50%;
    width: calc(100% - 50px);
    transform: translateX(-50%);
    padding: 24px;
    transition: var(--transition);
    opacity: 0;
}

.team-member:hover .team-member-content {
    opacity: 1;
    bottom: 24px;
}

/* CONTACT */
#exams {
    background: linear-gradient(135deg, rgba(63,22,81,0.95), rgba(128,186,198,0.95)), url('../images/hero-img.png') center/cover no-repeat;
    color: #ffffff;
}

#exams .section-title p {
    color: rgba(255,255,255,0.85);
    max-width: 680px;
    margin: 0 auto;
}

#exams .exam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

#exams .exam-card {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 28px;
    padding: 32px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}

#exams .exam-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.35);
}

#exams .exam-card h3 {
    color: #ffffff;
    margin-bottom: 18px;
    font-size: 1.8rem;
    line-height: 1.1;
}

#exams .exam-card p {
    color: rgba(255,255,255,0.82);
    flex-grow: 1;
    margin-bottom: 28px;
}

#exams .exam-card .btn {
    border-color: rgba(255,255,255,0.9);
    color: #ffffff;
    background-color: transparent;
    padding: 0.85rem 1.3rem;
    font-weight: 600;
}

#exams .exam-card .btn:hover {
    background-color: rgba(255,255,255,0.22);
    border-color: #ffffff;
    color: #ffffff;
}

@media (max-width: 767px) {
    #exams .exam-card {
        min-height: auto;
    }
}

#contact {
    background-image: url('../images/contact-bg.png');
    background-size: cover;
}

#contact .form-control {
    border-radius: 0;
}

#contact .form-control:focus {
    box-shadow: var(--box-shadow);
}

#contact .email {
    border-radius: 100px;
    height: 60px;
    padding-left: 20px;
    font-family: 'Inter', sans-serif;
}

#contact .message {
    border-radius: 25px;
    padding-top: 20px;
    padding-left: 20px;
    font-family: 'Inter', sans-serif;
}

#contact .contact-btn {
    width: 300px;
    max-width: 100%;
    height: 60px;
}

form {
    background-color: var(--main-color);
}

/* FOOTER */
footer {
    padding-top: 120px;
}

.footer-top {
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom {
    padding-top: 40px;
    padding-bottom: 40px;
    font-family: 'Inter', sans-serif;
}

.footer-top .logo-img {
    width: 100px;
    height: 100px;
}

.footer-top .logo-title {
    color: var(--bg);
}

.footer-top .contact-info {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
}

.footer-bottom .go-to {
    text-decoration: none;
    color: var(--third-color);
}

footer li,
footer p,
footer a {
    color: rgba(255,255,255,0.7);
}

footer ul {
    list-style: none;
    padding: 0;
}

footer .line {
    width: 40px;
    height: 4px;
    background-color: var(--bg);
    margin-top: 12px;
    margin-bottom: 24px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.1);
    border-radius: 100px;
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    color: white;
}

.footer-top .newsletter {
    width: 100%;
    height: 50px;
    border-radius: 2.5rem;
    padding: 1.8rem;
    color: #212529;
    background-color: var(--secondary-color);
    margin-top: 10px;
    padding-right: 30px;
    box-shadow: none;
    border: none;
}

.newsletter::placeholder {
    color: #212529;
}

.input-wrapper {
    position: relative;
}

.btn-send {
    position: absolute;
    right: 10px;
    top: 20%;
    bottom: 0;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1.8rem;
    color: #212529;
}

body.rtl .btn-send {
    right: auto;
    left: 10px;
}

body.rtl .ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

body.rtl .text-center {
    text-align: center;
}

body.rtl .text-left {
    text-align: right;
}

@media (max-width: 991px) {
    .section-padding {
        padding-top: 90px;
        padding-bottom: 90px;
    }

    #hero {
        background-attachment: scroll;
        min-height: auto;
    }

    .navbar-collapse {
        padding-bottom: 1rem;
    }

    .navbar-nav {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 767px) {
    .section-padding {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .navbar .logo-img {
        width: 70px;
        height: 70px;
    }

    #hero .display-1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .team-member-content {
        position: static;
        transform: none;
        width: 100%;
        opacity: 1;
        bottom: auto;
        margin-top: -12px;
    }

    .about-content {
        margin-top: 2rem;
    }

    footer {
        padding-top: 80px;
    }

    .footer-top .contact-info {
        font-size: 16px;
    }
}

@media (max-width: 575px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .btn {
        padding: 10px 18px;
    }

    .social-icons a {
        margin-bottom: 0.35rem;
    }
}
