/* ================== Global Styles ================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    direction: rtl; /* RTL layout */
    line-height: 1.6;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#accessibilityOptions button {
    width: 100%;
    padding: 8px 10px;
    margin: 5px 0;
    background: #f4f4f4;
    border: 1px solid #888;
    cursor: pointer;
    border-radius: 4px;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 8px;
}

#accessibilityOptions button .acc-icon {
    width: 20px;
    height: 20px;
}

.acc-icon {
    width: 18px;
    height: 18px;
    margin-left: 8px;
    vertical-align: middle;
}

/* Focus Outline */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 3px solid #ffcc00;
    outline-offset: 2px;
}

/* ================== Header ================== */
header {
    background-color: #fff;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    width: 100%;
}

header .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

header .logo img {
    max-height: 300px;
    width: auto;
}

/* ================== About Section ================== */
#about {
    background-color: #fff;
    padding: 50px 20px;
    text-align: center;
}

#about h2 {
    font-size: 40px;
    margin-bottom: 30px;
    font-weight: 600;
}

#about p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* ================== Services Section ================== */
.services, .videos {
    padding: 50px 20px;
}

.services h2, .videos h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 30px;
}

.service-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-items: center;
}

.service-box {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    width: 100%;
    max-width: 300px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.service-box img {
    border-radius: 50%;
    width: 200px;
    height: 200px;
    object-fit: cover;
    margin-bottom: 10px;
}

/* ================== Buttons ================== */
.cta-btn, button[type="submit"],
.btn-with-arrows {
    background-color: #00aaff;
    color: #fff;
    padding: 15px 25px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

button[type="submit"]:hover {
    background-color: #0088cc;
    transform: scale(1.05);
}

/* ================== Videos Section ================== */
.videos {
    background-color: #f4f4f4;
    text-align: center;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.video iframe {
    width: 100%;
    max-width: 400px;
    height: 250px;
    border: none;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.video iframe:hover {
    transform: scale(1.02);
}

/* ================== Contact Section ================== */
#contact {
    background-color: #fff;
    padding: 50px 20px;
    text-align: center;
}

#contact h2 {
    font-size: 32px;
    margin-bottom: 30px;
    font-weight: 600;
}

#contact form {
    max-width: 600px;
    margin: 0 auto;
    text-align: right; /* ✔ FIX: RTL alignment */
}

/* Input fields */
#contact input, #contact textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

#contact input:focus, #contact textarea:focus {
    border: 2px solid #00aaff;
}

/* ================== CHECKBOX FIX ================== */
.privacy-agreement,
.checkbox-container {
    display: flex;
    flex-direction: row-reverse;  /* ✔ checkbox on the right */
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.privacy-agreement input[type="checkbox"],
.checkbox-container input[type="checkbox"] {
    width: auto;
    transform: scale(1.2);
}

.privacy-agreement label,
.checkbox-container label {
    font-size: 16px;
    white-space: nowrap; /* ✔ single line */
    cursor: pointer;
}

.privacy-agreement a {
    color: #0088cc;
    text-decoration: underline;
}

/* ================== Footer ================== */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 30px;
    margin-top: 50px;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.socials {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.social-icon {
    font-size: 35px;
    color: white;
    transition: 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.2);
}

.social-icon.facebook:hover { color: #1877F2; }
.social-icon.instagram:hover { color: #C13584; }
.social-icon.tiktok:hover { color: #69C9D0; }

/* ================== Responsive ================== */
@media (max-width: 1024px) {
    .service-boxes, .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .service-boxes, .video-grid {
        grid-template-columns: 1fr;
    }

    .video iframe {
        max-width: 350px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    #about h2, .services h2, .videos h2 {
        font-size: 28px;
    }

    .service-box img {
        width: 150px;
        height: 150px;
    }
}
