/* ------------------------------
           GLOBAL RESET & VARIABLES
        -------------------------------- */

@font-face {
    font-family: "Bahij Titr";
    src: url("/fonts/Bahij Greta Arabic-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

/* Body Styles */
body {
    font-family: "Bahij Titr", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9fafb;
    color: #1f2937;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
    /* direction: ltr; */
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
div,
button,
input,
.navbar,
.nav-link,
.card,
.btn,
li,
.news-card,
.sidebar-card {
    font-family: "Bahij Titr", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #1e3a8a;
    --primary-dark: #0f2b6d;
    --primary-light: #3b82f6;
    --accent: #dc2626;
    --accent-hover: #b91c1c;
    --gray-bg: #f3f4f6;
    --card-bg: #ffffff;
    --text-dark: #111827;
    --text-muted: #4b5563;
    --border-light: #e5e7eb;
}
/* ------------------------------
           CUSTOM HAMBURGER MENU BUTTON (Three lines)
        -------------------------------- */
.custom-toggler {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 10px 8px;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 40px;
    height: 40px;
    transition: all 0.25s ease;
}

.custom-toggler:hover {
    border-color: var(--accent);
    background-color: rgba(250, 204, 21, 0.1);
}

.custom-toggler .line {
    width: 26px;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 0px;
}

/* when toggler is open (collapsed = false) -> transform into X */
.custom-toggler.open .line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.custom-toggler.open .line:nth-child(2) {
    opacity: 0;
}

.custom-toggler.open .line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* navbar brand and spacing */
.navbar {
    background-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 0.6rem 0;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: white !important;
}

.nav-link {
    color: #f1f5f9 !important;
    font-size: 1.05rem;
    margin: 0 0.25rem;
    transition: 0.2s;
}

.nav-link:hover {
    color: var(--accent) !important;
    text-decoration: underline;
    text-underline-offset: 6px;
}

.nav-link.active {
    color: var(--accent) !important;
    border-bottom: 2px solid var(--accent);
}

/* Language Switcher Styles */
.language-switcher {
    margin-left: 1rem;
}

.language-dropdown-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 15px;
    border-radius: 0px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.language-dropdown-btn:hover {
    border-color: var(--accent);
    background-color: rgba(220, 38, 38, 0.1);
}

.language-dropdown-btn i {
    font-size: 0.9rem;
}

.language-dropdown-btn .fa-chevron-down {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.language-dropdown-btn[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    background-color: white;
    border: 1px solid var(--border-light);
    border-radius: 0px;
    padding: 0.5rem 0;
    margin-top: 8px;
    min-width: 140px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    padding: 8px 20px;
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-item i {
    width: 20px;
    color: var(--primary);
}

.dropdown-item:hover {
    background-color: #f8fafc;
    color: var(--accent);
}

.dropdown-item.active {
    background-color: var(--primary);
    color: white;
}

.dropdown-item.active i {
    color: white;
}

/* Hide default bootstrap toggler */
.navbar-toggler {
    display: none !important;
}

/* make sure collapse works with custom button */
.navbar-collapse {
    transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .navbar-collapse {
        background-color: var(--primary);
        padding: 1rem;
        margin-top: 0.5rem;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .language-switcher {
        margin-left: 0;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .language-dropdown-btn {
        width: 100%;
        justify-content: center;
    }

    .dropdown-menu {
        width: 100%;
        position: relative !important;
        transform: none !important;
        margin-top: 0.5rem;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.4rem;
    }

    .custom-toggler {
        width: 36px;
        height: 36px;
        padding: 8px 6px;
    }

    .custom-toggler .line {
        width: 22px;
    }
}

.form-control,
.btn {
    border-radius: 0px !important;
}

.btn-outline-light {
    border: 1px solid #ffffffcc;
    color: white;
}

.btn-outline-light:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #1e3a8a;
}
footer {
    background-color: var(--primary);
    color: #e2e8f0;
    padding: 1.5rem 0 1rem;
    margin-top: 3rem;
}

footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Social Media Icons Styles */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #e2e8f0;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background-color: var(--accent);
    color: var(--primary);
    transform: translateY(-3px);
    text-decoration: none;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links li {
    display: inline-block;
}

.footer-links li a {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Horizontal rule */
.footer-hr {
    margin: 1rem auto;
    opacity: 0.3;
    background-color: #cbd5e1;
    height: 1px;
    border: none;
    width: 80%;
}

/* Copyright */
.copyright {
    opacity: 0.8;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    footer {
        padding: 1rem 0 0.8rem;
    }

    .social-icons {
        gap: 0.8rem;
    }

    .social-icons a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .footer-links {
        gap: 1.5rem;
    }

    .footer-links li a {
        font-size: 0.8rem;
    }
}
