/*
 * XploreNations Bible Academy - Main Stylesheet
 * Design inspired by xplorenations.com
 * Color Scheme: Red (hsla(3.39622642, 57.60869565%, 36.07843137%, 1)) and White (#FFFFFF)
 */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Open+Sans:wght@300;400;600;700&family=Cairo:wght@300;400;600;700&family=Tajawal:wght@300;400;500;700&display=swap');

/* ========================================
   CSS RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: hsla(3.39622642, 57.60869565%, 36.07843137%, 1);
    --dark-red: hsla(3.39622642, 57.60869565%, 28%, 1);
    --light-red: hsla(3.39622642, 57.60869565%, 45%, 1);
    --footer-bg: hsla(3.39622642, 57.60869565%, 36.07843137%, 1);
    --white: #FFFFFF;
    --black: #000000;
    --dark-bg: #1a1a1a;
    --light-gray: #f5f5f5;
    --gray: #666666;
    --medium-gray: #999999;
    --border-gray: #dddddd;
}

body {
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--white);
    overflow-x: hidden;
    animation: pageLoad 0.5s ease-in;
}

@keyframes pageLoad {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    letter-spacing: 2px;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--dark-bg);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-red);
    margin: 20px auto;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(200, 16, 46, 0.3);
}

a.btn-outline,
.btn-outline {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    text-shadow: none !important;
}

a.btn-outline:hover,
.btn-outline:hover {
    background-color: #ffffff !important;
    color: #8b2332 !important;
    border: 2px solid #ffffff !important;
    text-shadow: none !important;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.header {
    background-color: #000000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

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

.logo-image {
    width: 80px;
    height: 80px;
    padding: 10px;
}

.logo-text h1 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: white !important;
    margin: 0;
    letter-spacing: 1px;
}

.logo-text p {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8rem;
    color: #cccccc;
    margin: 0;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu li {
    display: flex;
}

.nav-menu a {
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: 0.3s;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #4a1a1a 50%, #8b3a3a 100%);
    background-image: url('../images/new.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   MENATE ANNOUNCEMENT SECTION
   ======================================== */
.menate-announcement {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0;
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.announcement-image {
    flex: 0 0 300px;
}

.announcement-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.announcement-text {
    flex: 1;
}

.announcement-text h2 {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 15px;
    font-weight: 700;
}

.announcement-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

/* Reversed layout for MENATE section (text left, image right) */
.announcement-content.reverse {
    flex-direction: row-reverse;
}

/* RTL Support for MENATE section */
[dir="rtl"] .announcement-content {
    flex-direction: row-reverse;
}

/* RTL + Reverse: When in RTL mode, reverse should go back to normal direction */
[dir="rtl"] .announcement-content.reverse {
    flex-direction: row;
}

/* Responsive Design for MENATE section */
@media (max-width: 768px) {
    .announcement-content {
        flex-direction: column;
        text-align: center;
    }

    .announcement-image {
        flex: 0 0 auto;
        max-width: 250px;
    }

    .announcement-text h2 {
        font-size: 1.5rem;
    }

    .announcement-text p {
        font-size: 1rem;
    }
}

/* ========================================
   STATISTICS SECTION
   ======================================== */
.statistics {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-item i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white);
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features {
    background-color: var(--light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-item {
    background-color: var(--white);
    padding: 40px 30px;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.feature-item i {
    font-size: 3.5rem;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.feature-item h3 {
    color: var(--dark-bg);
    margin-bottom: 15px;
}

.feature-item p {
    color: var(--gray);
    line-height: 1.8;
}

/* ========================================
   PROGRAMS SECTION
   ======================================== */
.programs {
    background-color: var(--white);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.program-card {
    background-color: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.program-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.program-icon {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--white);
    padding: 40px;
    text-align: center;
}

.program-icon i {
    font-size: 4rem;
}

.program-content {
    padding: 30px;
}

.program-content h3 {
    color: var(--dark-bg);
    margin-bottom: 10px;
}

.program-duration {
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.program-content p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials {
    background-color: var(--dark-bg);
    color: var(--white);
}

.testimonials .section-title {
    color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background-color: rgba(255,255,255,0.05);
    padding: 40px 30px;
    border-radius: 5px;
    border-left: 4px solid var(--primary-red);
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    font-style: italic;
    opacity: 0.95;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.author-info h4 {
    margin: 0;
    font-size: 1.1rem;
}

.author-info p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ========================================
   GALLERY SECTION
   ======================================== */
.gallery {
    background-color: var(--light-gray);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(200,16,46,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--white);
    font-size: 2rem;
}

/* ========================================
   VIDEO SECTION
   ======================================== */
.videos {
    background-color: var(--white);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.video-item {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    padding: 20px;
    background-color: var(--white);
}

.video-info h3 {
    margin-bottom: 10px;
    color: var(--dark-bg);
}

.video-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    background-color: hsla(3.39622642, 57.60869565%, 28%, 1);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    background-color: var(--light-gray);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    color: var(--dark-bg);
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item i {
    color: var(--primary-red);
    font-size: 1.5rem;
    margin-top: 5px;
}

.contact-item-content h4 {
    color: var(--dark-bg);
    margin-bottom: 5px;
}

.contact-item-content p {
    color: var(--gray);
    margin: 0;
}

.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-bg);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-gray);
    border-radius: 3px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* ========================================
   FOOTER - Updated 2026-06-15
   ======================================== */
.footer {
    background-color: hsla(3.39622642, 57.60869565%, 28%, 1) !important;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-family: 'Cinzel', serif;
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--white);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-red);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-red);
    transform: translateY(-3px);
}

.social-links i {
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.8;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .stats-grid,
    .features-grid,
    .programs-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 90px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background-color: #000000;
        flex-direction: column;
        padding: 40px;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0,0,0,0.3);
    }

    .nav-menu.active {
        right: 0;
    }

    .stats-grid,
    .features-grid,
    .programs-grid,
    .testimonials-grid,
    .gallery-grid,
    .video-grid,
    .contact-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 500px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section {
        padding: 50px 0;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

/* ========================================
   LOADING ANIMATION
   ======================================== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   ALERT MESSAGES
   ======================================== */
.alert {
    padding: 15px 20px;
    border-radius: 3px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ========================================
   MODERN ANIMATIONS
   ======================================== */

/* Ripple Effect for Buttons */
.btn, .btn-primary, .btn-outline {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Smooth Slide Up Animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide In from Left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In from Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale In Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Pulse Animation for Icons */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Enhanced Feature Items */
.feature-item:hover i {
    animation: pulse 0.6s ease;
    color: var(--primary-red);
}

/* Enhanced Program Cards */
.program-card:hover .program-icon i {
    animation: float 1s ease infinite;
}

/* Smooth Transitions */
.section-title,
.feature-item,
.program-card,
.testimonial-card,
.stat-item,
.gallery-item {
    will-change: opacity, transform;
}

/* Gallery Lightbox Enhancement */
.gallery-item {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.gallery-overlay {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-overlay {
    backdrop-filter: blur(2px);
}

/* Statistics Counter Animation */
.stat-value {
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--white);
    transition: color 0.3s ease;
}

.stat-item:hover .stat-value {
    color: #f0f0f0;
}

/* Button Hover Enhancement */
.btn {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Testimonial Card Enhancement */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateX(10px);
    box-shadow: -5px 5px 20px rgba(0, 0, 0, 0.1);
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Add subtle animation to section titles */
.section-title {
    position: relative;
}

.section-title.animated::after {
    animation: slideInLeft 0.6s ease 0.3s backwards;
}

/* Form Input Focus Animation */
input:focus,
textarea:focus,
select:focus {
    transform: scale(1.01);
    transition: all 0.3s ease;
}

/* Icon Rotation on Hover */
.feature-item:hover i,
.stat-item:hover i {
    transform: rotate(5deg) scale(1.1);
    transition: transform 0.3s ease;
}

/* ========================================
   LANGUAGE SWITCHER
   ======================================== */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-switcher button {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    font-family: 'Open Sans', sans-serif;
}

.language-switcher button:hover {
    background-color: var(--white);
    color: var(--primary-red);
    transform: translateY(-2px);
}

.language-switcher button.active {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--white);
}

/* ========================================
   RTL SUPPORT FOR ARABIC
   ======================================== */
[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .navbar {
    flex-direction: row-reverse !important;
}

[dir="rtl"] .logo {
    flex-direction: row-reverse;
    order: 3;
}

/* Only apply horizontal layout on desktop for RTL */
@media (min-width: 769px) {
    [dir="rtl"] .nav-menu {
        flex-direction: row-reverse;
        order: 2;
    }

    /* Force menu items to reverse order in RTL on desktop */
    [dir="rtl"] .nav-menu li:nth-child(1) { order: 5; }
    [dir="rtl"] .nav-menu li:nth-child(2) { order: 4; }
    [dir="rtl"] .nav-menu li:nth-child(3) { order: 3; }
    [dir="rtl"] .nav-menu li:nth-child(4) { order: 2; }
    [dir="rtl"] .nav-menu li:nth-child(5) { order: 1; }
}

[dir="rtl"] .language-switcher {
    order: 1;
}

/* Only change hamburger order on desktop */
@media (min-width: 769px) {
    [dir="rtl"] .hamburger {
        order: 4;
    }
}

[dir="rtl"] .hero-content {
    text-align: right;
}

[dir="rtl"] .section-title::after {
    margin: 20px 0 20px auto;
}

[dir="rtl"] .testimonial-card {
    text-align: right;
}

[dir="rtl"] .testimonial-author {
    flex-direction: row-reverse;
}

[dir="rtl"] .author-info {
    text-align: right;
}

[dir="rtl"] .footer-content {
    text-align: right;
}

[dir="rtl"] .social-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .language-switcher {
    flex-direction: row-reverse;
}

/* RTL Animation Adjustments */
[dir="rtl"] .testimonial-card:hover {
    transform: translateX(-10px);
}

[dir="rtl"] .nav-menu a::after {
    left: auto;
    right: 0;
}

/* RTL Font for Arabic */
[dir="rtl"] body,
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6 {
    font-family: 'Cairo', 'Tajawal', 'Open Sans', sans-serif;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS FOR LANGUAGE SWITCHER
   ======================================== */
@media (max-width: 768px) {
    .language-switcher {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1000;
        background: rgba(0, 0, 0, 0.8);
        padding: 10px;
        border-radius: 5px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    [dir="rtl"] .language-switcher {
        right: auto;
        left: 20px;
    }

    .language-switcher button {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    /* RTL Mobile Menu - Slide from left */
    [dir="rtl"] .nav-menu {
        right: auto;
        left: -100%;
    }

    [dir="rtl"] .nav-menu.active {
        right: auto;
        left: 0;
    }

    /* Align menu items properly in RTL mobile */
    [dir="rtl"] .nav-menu a {
        text-align: right;
    }
}

/* ========================================
   WHATSAPP FLOATING BUTTON
   ======================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #FFFFFF;
    color: #25D366;
    border-radius: 50px;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: pulse 2s infinite;
    border: 2px solid #25D366;
}

.whatsapp-float:hover {
    background-color: #25D366;
    color: #FFFFFF;
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    margin: 0;
    line-height: 60px;
}

/* RTL Support */
[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 30px;
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 26px;
    }

    .whatsapp-float i {
        line-height: 50px;
    }

    [dir="rtl"] .whatsapp-float {
        right: auto;
        left: 20px;
    }
}

/* ========================================
   STAFF SECTION
   ======================================== */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.staff-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.staff-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.staff-photo {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f5f5f5;
}

.staff-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.staff-card:hover .staff-photo img {
    transform: scale(1.1);
}

.staff-info {
    padding: 20px;
}

.staff-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.staff-title {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

/* Responsive Design for Staff Grid */
@media (max-width: 768px) {
    .staff-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .staff-photo {
        height: 220px;
    }

    .staff-name {
        font-size: 1.1rem;
    }

    .staff-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .staff-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .staff-photo {
        height: 300px;
    }
}
