﻿/* ============================================================
   GLOBAL FONTS
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

/* ============================================================
   GLOBAL BODY
============================================================ */
html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'frutiger light', 'Cairo', sans-serif !important;
    color: white !important;
    font-size: 38px;
    overflow-x: hidden;
    background-color: #0F143B;
}

/* ============================================================
   TEXT ELEMENTS
============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'frutiger bold', 'Cairo', sans-serif !important;
    font-weight: 700;
}

p {
    font-size: 38px;
    color:white;
}

a {
    text-decoration: none !important;
    color: inherit !important;
}

/* ============================================================
   MAIN TITLE
============================================================ */
h1 {
    font-size: 72px !important;
    background-image: url('../images/headingbg.svg');
    background-size: contain;
    background-repeat: no-repeat;
    margin-bottom: 3rem !important;
}

html[lang="ar"] h1 {
    background-position: right;
    padding-right: 3rem;
    text-align: right;
}

html[lang="en"] h1 {
    background-position: left;
    padding-left: 3rem;
    text-align: left;
}

/* ============================================================
   HERO SECTION
============================================================ */
.saddah-main {
    margin-top: 2rem;
    background-image: linear-gradient(90deg,#20a79c,#1f9f97,#1c6e79,#194761,#172b50,#161a45,#161442), url('../images/main-bg-saddah.svg');
    background-blend-mode: multiply;
    background-size: cover;
    background-position: center;
    padding: 7rem 5rem 5rem;
    border-radius: 12px;
}

.saddah-en .saddah-main {
    background-image: linear-gradient(-90deg,#20a79c,#1f9f97,#1c6e79,#194761,#172b50,#161a45,#161442), url('../images/saddah-en.jpeg');
}

/* ============================================================
   TWO COLUMN LAYOUT
============================================================ */
.welcome-login-container {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.welcome-left,
.welcome-text {
    width: 55%;
}

.login-box {
    width: 40%;
}

html[lang="ar"] .welcome-left,
html[lang="ar"] .welcome-text {
    direction: rtl;
    text-align: right;
}

html[lang="en"] .welcome-left,
html[lang="en"] .welcome-text {
    direction: ltr;
    text-align: left;
}

/* ============================================================
   DESCRIPTION BOX
============================================================ */
.welcome-description-box {
    background: rgba(0,72,96,.55);
    padding: 3rem;
    border-radius: 20px;
    margin-bottom: 3rem;
}

    .welcome-description-box p {
        font-size: 34px;
        line-height: 1.6;
    }

/* ============================================================
   SUPPORT BOX
============================================================ */
.support-box {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(0,72,96,.4);
    padding: 2rem 3rem;
    border-radius: 20px;
}

    .support-box img {
        width: 70px;
    }

    .support-box p {
        font-size: 30px;
        margin: 0;
    }

    .support-box .phone {
        font-size: 42px;
        font-weight: 800;
    }

/* ============================================================
   LOGIN BOX
============================================================ */
.login-box {
    background: #fff;
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: 0 0 40px rgba(0,0,0,.25);
    color: #333;
}

.daem-wrapper {
    width: 100%;
    line-height: 1.5;
}

.login-box label,
.login-box p,
.login-box input {
    color: #333;
}

/* ============================================================
   LOGIN HEADER
============================================================ */
.top {
    text-align: center;
    margin-bottom: 1.5rem;
}

.heading {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .7rem;
}

    .heading svg {
        color: #0E8694;
    }

/* ============================================================
   INPUTS
============================================================ */
.login-box input {
    width: 100%;
    height: 55px;
    background: #f5f7fa;
    border: none;
    border-radius: 10px;
    padding: 0 1rem;
    font-size: 20px;
    margin-bottom: 1rem;
}

/* ============================================================
   BUTTON
============================================================ */
button {
    width: 100%;
    height: 3.5rem;
    border-radius: 10px;
    border: none;
    font-size: 1.4rem;
}

    button.signIn {
        background: #0f8693;
        color: #fff;
    }

        button.signIn:hover {
            background: rgba(14,134,148,.85);
            border: 3px solid #5a9ea9;
        }

/* ============================================================
   FAQ SECTION
============================================================ */
.saddah-faq {
    background: #0F143B;
    padding: 6rem 4rem;
    border-radius: 12px;
    margin-top: 3rem;
}

    /* accordion core */
    .saddah-faq .accordion-item {
        background: transparent;
        border: none;
        margin-bottom: 2rem;
    }

    .saddah-faq .accordion-button {
        background: transparent;
        color: #0CC2D6;
        font-size: 42px;
        font-weight: 700;
        border-bottom: 1px solid rgba(255,255,255,.3);
        padding: 1.5rem 0;
        box-shadow: none;
        display: flex;
    }

        /* arrow */
        .saddah-faq .accordion-button::after {
            background-image: url('../images/arrow-down.svg');
            width: 32px;
            height: 32px;
            background-size: contain;
        }

        /* opened */
        .saddah-faq .accordion-button:not(.collapsed)::after {
            transform: rotate(180deg);
        }

    .saddah-faq .accordion-body {
        padding: 2rem 0;
        font-size: 38px;
    }

/* faq line */
.faq-line {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 36px;
    color: #ffffff !important;
}

    .faq-line img {
        width: 40px;
    }

/* ============================================================
   ✅ FINAL RTL FIX (BOOTSTRAP SAFE)
============================================================ */
html[lang="ar"] .saddah-faq {
    direction: rtl;
}

    html[lang="ar"] .saddah-faq .accordion-button {
        direction: rtl;
        text-align: right;
        justify-content: space-between;
    }

        html[lang="ar"] .saddah-faq .accordion-button::after {
            margin-left: 0;
            margin-right: auto;
            transform: rotate(180deg);
        }

        html[lang="ar"] .saddah-faq .accordion-button:not(.collapsed)::after {
            transform: rotate(0deg);
        }

html[lang="ar"] .faq-line {
    direction: rtl;
    text-align: right;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width:1200px) {
    .welcome-login-container {
        flex-direction: column;
    }

    .welcome-left,
    .login-box {
        width: 80% !important; 
    }
}

@media (max-width:1024px) {
    body, p {
        font-size: 28px;
    }

    .saddah-main {
        padding: 5rem 2rem;
    }
}

@media (max-width:620px) {
    h1 {
        font-size: 50px;
    }
}

@media (max-width:400px) {
    h1 {
        font-size: 40px;
    }

    .saddah-main {
        padding: 4rem 1rem;
    }
}
