/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #ffffff url("images/backgrounde.png") no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    color: #2d3a4a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* ===== Header ===== */
header {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 36px;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 2px 12px rgba(20, 21, 39, 0.08);
    margin: 24px;
    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 44px;
    border-radius: 8px;
}

.logo span {
    font-weight: 700;
    font-size: 1.4rem;
    color: #1a4b7a;
    letter-spacing: 1px;
}

nav {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: #1a4b7a;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 8px 18px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

nav a:hover {
    background: #ffffff;
    color: #0d2a4d;
}

/* ===== Dropdown ===== */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: #f4f8fc;
    min-width: 150px;
    right: 0;
    top: 110%;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(44, 62, 80, 0.10);
    padding: 10px 0;
    z-index: 100;
}

.dropdown-content a {
    display: block;
    padding: 10px 20px;
    color: #1a4b7a;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.dropdown-content a:hover {
    background: #ffffff;
    color: #0d2a4d;
}

.dropdown:hover .dropdown-content,
.dropdown.open .dropdown-content {
    display: block;
}

/* ===== Mobile Nav Toggle ===== */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: #1a4b7a;
    cursor: pointer;
    margin-right: 12px;
}

html[dir="rtl"] .nav-toggle {
    margin-left: 12px;
    margin-right: 0;
}

/* ===== Search Bar ===== */
.search-bar-container {
    display: flex;
    justify-content: center;
    margin: 24px 0 16px 0;
    width: 100%;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    border: 1.5px solid #7bb1e0;
    border-radius: 20px;
    padding: 10px 20px;
    background: #f4f8fc;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.04);
}

.search-box input {
    border: none;
    outline: none;
    padding: 8px;
    background: transparent;
    width: 100%;
    font-size: 1.1rem;
    color: #2d3a4a;
}

#search-results {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    background: #f4f8fc;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.10);
    max-height: 220px;
    overflow-y: auto;
    margin-top: 6px;
    z-index: 1000;
    text-align: left;
    padding: 12px 18px;
    font-size: 1rem;
    color: #1a4b7a;
    font-weight: 600;
}

#search-results a {
    display: block;
    margin: 8px 0;
    color: #1a4b7a;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}

#search-results a:hover {
    background: #c9daf8;
    color: #0d2a4d;
}

/* ===== Main Title ===== */
.main-title {
    text-align: center;
    font-size: 2.5rem;
    margin: 40px 0 30px;
    font-weight: 800;
    color: #1a4b7a;
    background: #ffffff;
    display: inline-block;
    padding: 18px 40px;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(44, 62, 80, 0.07);
    letter-spacing: 1px;
}

/* ===== Buttons ===== */
.buttons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 13px;
    margin-top: 30px;
}

.row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 36px;
    margin-bottom: 30px;
}

.button,
.button2 {
    background: linear-gradient(90deg, #ffffff 0%, #79dee6 100%);
    border-radius: 18px;
    padding: 10px 20px;
    box-shadow: 0 2px 12px rgba(44, 62, 80, 0.10);
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a4b7a;
    cursor: pointer;
    min-width: 100px;
    text-align: center;
    border: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.button:hover,
.button2:hover {
    background: linear-gradient(90deg, #f4f8fc 0%, #c9daf8 100%);
    color: #0d2a4d;
    box-shadow: 0 4px 20px rgba(44, 62, 80, 0.18);
}

.button2 {
    font-size: 1.05rem;
    padding: 10px 18px;
    border-radius: 10px;
    background: #f4f8fc;
    color: #1a4b7a;
    border: 1px solid #7bb1e0;
}

/* ===== Overlay ===== */
.overlay {
    background: rgba(255, 255, 255, 0.4);
    flex: 1;
    padding: 32px;
    border-radius: 18px;
    margin: 18px;
    margin-top: 0;
    box-shadow: 0 2px 16px rgba(44, 62, 80, 0.10);
}

/* ===== Footer ===== */
.footer {
    width: 100%;
    text-align: center;
    padding: 16px 0 10px 0;
    background: #fafafa;
    box-shadow: 0 -2px 12px rgba(20, 21, 39, 0.08);
    border-top: 1.5px solid #7bb1e0;
    margin-top: auto;
    border-radius: 18px 18px 0 0;
    font-size: 1rem;
    color: #1a4b7a;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 8px;
}

.footer-links a {
    color: #1a4b7a;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #0d2a4d;
    text-decoration: underline;
}

.footer p {
    margin: 6px 0;
    font-size: 0.95rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    

    .logo {
        flex: 1;
    }

    .nav-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0 0 10px 0;
        display: none;
        z-index: 100;
        border-radius: 0 0 18px 18px;
        box-shadow: 0 2px 12px rgba(44, 62, 80, 0.08);
    }

    nav.open {
        display: flex;
    }

    nav>a,
    nav>.dropdown {
        width: 100%;
        padding: 12px 24px;
        border-radius: 0;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        background: #f4f8fc;
        border-radius: 0;
        min-width: 100%;
        padding: 0;
    }

    .dropdown-content a {
        padding: 12px 32px;
        border-radius: 0;
    }

    .main-title {
        font-size: 1.7rem;
        padding: 12px 10px;
    }

    .overlay,
    .hero {
        margin: 18px;
        margin-top: 0;
    }

    .search-bar-container {
        margin: 18px 0 12px 0;
    }

    .search-box {
        max-width: 100%;
        width: 100%;
    }
}
/* Mobile background fix */
@media (max-width: 768px) {
    body {
        background: #ffffff url("images/backgroundef.jpg") no-repeat center center;
        background-size: cover;
        background-attachment: fixed;
    }
}

/* ===== Mobile Phones ===== */
/* @media (max-width: 600px) {
    .main-title {
        font-size: 1.1rem;
        padding: 8px 4px;
    }

    .buttons-container {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .row {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 8px;
        width: 90%;
    }

    .button,
    .button2 {
        width: 50%;
        max-width: 350px;
        margin: 3% auto;
        min-width: unset;
        font-size: 1rem;
        padding: 14px 10px;
    }

    .overlay {
        margin: 0 2px 8px 2px;
        border-radius: 8px;
        padding: 8px;
    }

    header {
        padding: 8px 2px;
        border-radius: 0 0 8px 8px;
    }

    .footer {
        border-radius: 8px 8px 0 0;
        font-size: 0.9rem;
    }
} */