/* Color Variables */
:root {
    --primary-color: #281040;
    --secondary-color: #591e4a;
    --light-color: #F2F2F2;
}

/* Logo Sizes */
:root {
    --header-logo-height: 60px;
    --footer-logo-height: 150px;
    --mobile-header-logo-height: 35px;
    --mobile-footer-logo-height: 35px;
}

/* General Styles */
body {
    font-family: var(--body-font-family);
    background-color: var(--light-color);
}

/* Language-specific font families */
:root[lang="ar"] {
    --body-font-family: 'Cairo', 'Arial', sans-serif;
}

:root[lang="en"] {
    --body-font-family: 'Cairo', 'Arial', sans-serif;
}

/* Override bold for Arabic text */
[lang="ar"] strong,
[lang="ar"] b,
[lang="ar"] h1,
[lang="ar"] h2,
[lang="ar"] h3,
[lang="ar"] h4,
[lang="ar"] h5,
[lang="ar"] h6,
[lang="ar"] .fw-bold {
    font-weight: 500 !important;
}

/* Logo Styles */
.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
}

.navbar-brand img {
    height: var(--header-logo-height);
    width: auto;
    object-fit: contain;
}

.footer-logo {
    height: var(--footer-logo-height);
    width: auto;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .navbar-brand img {
        height: var(--mobile-header-logo-height);
    }

    .footer-logo {
        height: var(--mobile-footer-logo-height);
    }
}

/* Top Bar */
.top-bar {
    font-size: 0.9rem;
    background-color: var(--primary-color);
    position: relative;
    z-index: 1030;
}

.top-bar .contact-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.top-bar .contact-info a {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    color: white !important;
    white-space: nowrap;
}

.top-bar .contact-info i {
    color: white !important;
    margin-left: 1rem;
    flex-shrink: 0;
}

.top-bar .social-links a {
    transition: all 0.3s ease;
    color: white !important;
}

.top-bar .contact-info a:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.top-bar .hover-underline:hover {
    text-decoration: underline !important;
}

.social-links a {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* YouTube specific styling */
.social-links a[title="YouTube"]:hover {
    background: #FF0000;
}

.social-link[title="YouTube"]:hover {
    background: #FF0000 !important;
}

.language-switcher .btn-outline-light {
    border-radius: 20px;
    font-size: 0.85rem;
    padding: 0.25rem 1rem;
    border-width: 1px;
    transition: all 0.3s ease;
}

.language-switcher .btn-outline-light:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Navigation */
.navbar {
    box-shadow: 0 1px 6px rgba(0,0,0,0.1);
    background-color: white;
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.navbar.sticky-top {
    top: -1px;
}

.main-logo {
    height: 50px;
    transition: all 0.3s ease;
}

.navbar-nav {
    gap: 1rem;
}

.nav-link {
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    color: var(--primary-color) !important;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover:after,
.nav-item.active .nav-link:after {
    width: 100%;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

.dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(89, 30, 74, 0.1);
    color: var(--secondary-color);
}

.dropdown-menu {
    border-radius: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-top: 3px solid var(--secondary-color);
}

/* Footer */
.footer {
    background-color: var(--primary-color) !important;
}

.footer h5:after {
    background-color: var(--secondary-color) !important;
}

.footer .social-links a:hover {
    background-color: var(--secondary-color) !important;
}

.footer h5 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.footer h5:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--bs-primary);
}

.footer ul li {
    margin-bottom: 10px;
}

.footer .social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.footer .social-links a:hover {
    background-color: var(--bs-primary);
    transform: translateY(-3px);
}

/* Buttons */
.btn {
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
}

/* Footer Styles */
.footer {
    background-color: var(--primary-color) !important;
}

.footer h5:after {
    background-color: var(--secondary-color) !important;
}

.footer .social-links a:hover {
    background-color: var(--secondary-color) !important;
}

/* Sections Background */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.bg-light {
    background-color: var(--light-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .top-bar {
        text-align: center;
    }

    .top-bar .contact-info {
        justify-content: center;
        margin-bottom: 0.5rem;
    }

    .top-bar .contact-info a {
        font-size: 0.85rem;
    }

    .top-bar .social-links {
        margin-top: 10px;
    }

    .footer h5 {
        margin-top: 20px;
    }
}

/* FAQ Accordion Styles */
.accordion-button {
    border-radius: 0.5rem !important;
    border: none !important;
    background-color: var(--light-color) !important;
    color: var(--primary-color) !important;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color) !important;
    color: white !important;
    box-shadow: none !important;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(40, 16, 64, 0.25) !important;
    border-color: var(--primary-color) !important;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23281040'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.accordion-item {
    border: none !important;
    margin-bottom: 1rem;
    border-radius: 0.5rem !important;
    overflow: hidden;
}

.accordion-body {
    padding: 1.5rem;
    background-color: #f8f9fa;
    line-height: 1.7;
}

.section-header h2 {
    position: relative;
    padding-bottom: 0.5rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Contact CTA Section Background */
.contact-cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

.contact-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="60" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="30" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 20s infinite linear;
    pointer-events: none;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-50px, -50px) rotate(360deg); }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-btn:hover {
    background: #128C7E;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    text-decoration: none;
}

.whatsapp-btn i {
    font-size: 28px;
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Responsive Design for WhatsApp Button */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-btn {
        width: 50px;
        height: 50px;
    }

    .whatsapp-btn i {
        font-size: 24px;
    }
}
