/* 
* Main Stylesheet for Yemen Union in Turkey - Kayseri Branch Website
* Author: Cascade
* Date: May 2025
*/

/* ===== VARIABLES ===== */
:root {
    /* Yemen Flag Colors */
    --red: #ce1126;
    --white: #ffffff;
    --black: #000000;
    
    /* Modern Variations */
    --red-light: #e74c3c;
    --red-dark: #c0392b;
    --gray-light: #f5f5f5;
    --gray-medium: #e0e0e0;
    --gray-dark: #333333;
    
    /* Turkish Flag Accent */
    --turkish-red: #e30a17;
    
    /* Functional Colors */
    --primary: var(--red);
    --secondary: var(--gray-dark);
    --accent: var(--turkish-red);
    --text: #333333;
    --text-light: #666666;
    --background: #f9f9f9;
    --border: #dddddd;
    
    /* Activity Tags */
    --cultural: #e74c3c;
    --sports: #3498db;
    --educational: #2ecc71;
    --entertainment: #f39c12;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--red-dark);
}

ul {
    list-style: none;
}

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

button {
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
}

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ===== HEADER ===== */
header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1200;
    padding: var(--spacing-md) 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    height: 80px;
    direction: rtl; /* Ensures right-to-left layout */
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    order: 1; /* Places logo on the right in RTL */
}

.logo a {
    display: block;
}

.logo img {
    margin-top: 40px;
    width: 180px;
    height: 140px;
    transition: transform var(--transition-normal);
}

.logo a:hover img {
    transform: scale(1.05);
}

/* Language Selector (Original) */
.language-selector {
    display: flex;
    gap: var(--spacing-xs);
}

.language-selector button {
    background: none;
    border: 1px solid var(--border);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    transition: all var(--transition-fast);
}

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

.language-selector button:not(.active):hover {
    background-color: var(--gray-light);
}

/* Language Dropdown (Modern) */
.language-dropdown {
    position: relative;
    margin-left: var(--spacing-md);
    z-index: 1300;
    order: 3; /* Places language dropdown on the left in RTL */
}

.selected-language {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    background-color: var(--white);
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.selected-language:hover {
    background-color: var(--primary);
    color: var(--white);
}

.language-dropdown.active .selected-language {
    background-color: var(--primary);
    color: var(--white);
}

.selected-language i {
    font-size: 0.8rem;
    transition: transform var(--transition-fast);
}

.language-dropdown.active .selected-language i {
    transform: rotate(180deg);
}

.language-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1300;
    border: 2px solid var(--primary);
}

.language-dropdown.active .language-options {
    display: flex;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.language-options button {
    background: none;
    border: none;
    border-bottom: 1px solid var(--border);
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: center;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    cursor: pointer;
    font-weight: 500;
}

.language-options button:last-child {
    border-bottom: none;
}

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

.language-options button:not(.active):hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Navigation */
.center-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    order: 2; /* Places navigation in the center */
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.nav-menu a {
    color: var(--text);
    font-weight: 600;
    padding: var(--spacing-xs) var(--spacing-sm);
    position: relative;
    white-space: nowrap;
    display: block;
}

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

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

.nav-menu a.active {
    color: var(--primary);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
}

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

.primary-btn:hover {
    background-color: var(--red-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.secondary-btn {
    background-color: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.secondary-btn:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(206, 17, 38, 0.3);
    border-color: var(--primary);
}

.small-btn {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.9rem;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--white) 100%);
    overflow: hidden;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xl);
    width: auto;
    height: auto;
}

.hero-content {
    width: 100%;
    text-align: center;
    padding-top: var(--spacing-xl);
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    color: var(--text-light);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

.hero-image {
    width: 100%;
    height: 100%;
    position: relative;
    text-align: center; /* Center the inline-block slider */
}

.image-slider {
    position: relative;
    height: 800px; /* Fixed height */
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    width: 100%; /* Back to percentage width */
    max-width: 1000px;
    min-width: 600px;
    margin: 0 auto; /* Center the slider container */
    background-color: var(--gray-light);
}

/* Custom height classes for slider */
.image-slider.height-500 {
    height: 500px;
}

.image-slider.height-600 {
    height: 600px;
}

.image-slider.height-700 {
    height: 700px;
}

.image-slider.height-800 {
    height: 800px;
}

.image-slider img {
    position: absolute;
    top: 0;
    left: 0;
    height: 800px;
    width: 1000px;
    object-fit: cover;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.image-slider img.active {
    opacity: 1;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--gray-medium);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.dot.active {
    background-color: var(--primary);
}

/* ===== SECTION STYLES ===== */
section {
    padding: var(--spacing-xxl) 0;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--text);
    position: relative;
    padding-bottom: var(--spacing-md);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary);
}

/* Brief About Section */
.brief-about {
    background-color: var(--white);
}

.about-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 600;
    transition: gap var(--transition-fast);
}

.read-more:hover {
    gap: var(--spacing-sm);
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    width: 100%;
    height: 300px; /* Set specific height */
    object-fit: cover; /* Ensure image covers the area */
}

/* Activities Grid Layout */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Activity Card Styles */
.activity-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    height: auto; /* Changed from fixed height to auto for better content adaptation */
    min-height: 400px; /* Minimum height to maintain consistent appearance */
    display: flex;
    flex-direction: column;
    border: 2px solid var(--primary); /* Added red border to match future activities */
}

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

.card-image {
    height: 200px; /* Slightly reduced height for better proportions */
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.activity-card:hover .card-image img {
    transform: scale(1.05);
}

/* Activity Category Tags */
.category-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 2;
}

.category-tag.cultural {
    background-color: var(--cultural);
}

.category-tag.sports {
    background-color: var(--sports);
}

.category-tag.educational {
    background-color: var(--educational);
}

.category-tag.entertainment {
    background-color: var(--entertainment);
}

/* Card Content Styles */
.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between; /* Better spacing of content */
}

.card-content h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: #333;
}

.activity-date, .activity-location {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.activity-date i, .activity-location i {
    margin-left: 5px;
    color: var(--primary);
}

.activity-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.activity-gallery-preview {
    margin-top: 15px;
}

/* View All Button Styles */
.view-all {
    text-align: center;
    margin-top: 40px;
    padding-bottom: 20px;
}

/* News Cards Styles */
.news-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.news-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--primary); /* Added red border */
}

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

.news-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 2;
}

.news-tag.cultural {
    background-color: var(--cultural);
}

.news-tag.sports {
    background-color: var(--sports);
}

.news-tag.educational {
    background-color: var(--educational);
}

.news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.news-content h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: #333;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.news-date i {
    margin-left: 5px;
    color: var(--primary);
}

.news-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.read-more-container {
    margin-top: auto;
}

.view-all .btn.primary-btn {
    background-color: var(--primary);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(206, 17, 38, 0.3);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.view-all .btn.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(206, 17, 38, 0.4);
}

/* Activity Details Container */
.activity-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.view-gallery {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.view-gallery:hover {
    color: var(--red-dark);
}

.view-gallery i {
    margin-right: 5px;
}

/* Future Activities Styles */
.future-activities, .future-activities-preview {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.future-card {
    border: 2px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.future-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* No Activities Message */
.no-activities {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 0;
    color: #666;
    font-size: 1.2rem;
}

/* About Preview Section */
.about-preview {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.about-preview-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
}

.about-preview-slider {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.about-image-slider {
    position: relative;
    height: 500px;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--primary);
}

.about-image-slider .slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.about-image-slider .slider-item.active {
    opacity: 1;
}

.about-image-slider .slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-preview-slider .slider-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

.about-preview-slider .prev-slide, 
.about-preview-slider .next-slide {
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.about-preview-slider .prev-slide:hover, 
.about-preview-slider .next-slide:hover {
    background-color: #fff;
    transform: scale(1.1);
}

.about-preview-slider .slider-dots {
    display: flex;
    gap: 8px;
}

.about-preview-slider .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.about-preview-slider .dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

.about-preview-text {
    flex: 1;
    min-width: 300px;
}

.about-preview-text h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.about-preview-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 3px;
    background-color: var(--primary);
}

.about-preview-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.about-preview-button {
    margin-top: 30px;
}

/* Responsive styles for About Preview */
@media (max-width: 992px) {
    .about-preview-content {
        flex-direction: column;
    }
    
    .about-image-slider {
        height: 400px;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .about-image-slider {
        height: 300px;
    }
    
    .about-preview-text h3 {
        font-size: 1.5rem;
    }
    
    .about-preview-text p {
        font-size: 1rem;
    }
}

/* Statistics Preview Section */
.statistics-preview {
    background-color: var(--white);
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.stat-counter {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: var(--spacing-xs);
}

.stat-item p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Contact Preview */
.contact-preview {
    background-color: var(--gray-light);
}

.contact-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-xl);
}

.contact-info {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.social-media {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--gray-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: all var(--transition-fast);
}

.social-icon:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.contact-form-preview {
    flex: 1;
    text-align: center;
    background-color: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-form-preview p {
    margin-bottom: var(--spacing-lg);
    font-size: 1.1rem;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--gray-dark);
    color: var(--white);
    padding-top: var(--spacing-xxl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    width: 80px;
    margin-bottom: var(--spacing-md);
}

.footer-logo h3 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
}

.footer-links h4,
.footer-newsletter h4 {
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.footer-links h4::after,
.footer-newsletter h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-links a {
    color: var(--gray-medium);
    transition: color var(--transition-fast), transform var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-newsletter p {
    margin-bottom: var(--spacing-md);
    color: var(--gray-medium);
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-sm);
}

.members-category {
    font-size: 1.5rem;
    color: var(--primary);
    margin: var(--spacing-lg) 0 var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.designer-credit {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 6px 12px;
    border-radius: 20px;
    color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.designer-credit:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.designer-name {
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    padding: 0 2px;
}

.designer-name::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.designer-credit:hover .designer-name::after {
    transform: scaleX(1);
    transform-origin: left;
}

.back-to-top {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all var(--transition-fast);
}

.back-to-top:hover {
    background-color: var(--red-dark);
    transform: translateY(-5px);
}

/* ===== PAGE BANNER ===== */
.page-banner {
    /* Yemen flag colors with modern design */
    background-color: var(--white);
    position: relative;
    color: var(--black);
    text-align: center;
    padding: var(--spacing-xxl) 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border-top: 5px solid var(--red);
    border-bottom: 5px solid var(--red);
}

/* Add modern geometric pattern with Yemen flag colors */
.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, var(--red) 25%, transparent 25%, transparent 75%, var(--red) 75%),
        linear-gradient(45deg, var(--red) 25%, transparent 25%, transparent 75%, var(--red) 75%);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
    opacity: 0.03;
    z-index: 1;
}

/* Content container to ensure text is above the pattern */
.page-banner .container {
    position: relative;
    z-index: 2;
}

.page-banner h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--black);
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    letter-spacing: 0.5px;
}

.page-banner h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--red);
    border-radius: 3px;
}

.page-banner p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-text {
    animation: fadeIn 1s ease forwards;
}

.animate-text:nth-child(2) {
    animation-delay: 0.3s;
}

/* ===== MEMBERSHIP BUTTON ===== */
.membership-button {
    display: flex;
    align-items: center;
    margin-right: auto; /* Push to the left in RTL mode */
    order: 3; /* Place it on the left in RTL layout */
}

.membership-button .btn.primary-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background-color: var(--primary, #ce1126);
    color: white;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(206, 17, 38, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.membership-button .btn.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(206, 17, 38, 0.4);
    background-color: #b50f21;
}

.membership-button .btn.primary-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.membership-button .btn.primary-btn:hover i {
    transform: scale(1.1);
}

/* RTL support */
html[dir="rtl"] .membership-button {
    margin-left: 15px;
    margin-right: auto;
}

/* ===== MOBILE MENU ===== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.menu-toggle:hover {
    color: var(--red-dark);
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9000; /* High z-index but below the menu */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.menu-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 44px; /* Standard touch target size */
    height: 44px; /* Standard touch target size */
    background-color: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000; /* Ensure close button is above everything */
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.menu-close i {
    font-size: 20px;
    color: white;
}

/* ===== RESPONSIVE STYLES ===== */
/* Medium screens (tablets) */
@media (max-width: 992px) and (min-width: 769px) {
    header .container {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        height: 80px;
        padding: 5px 15px;
    }
    
    .logo {
        order: 1;
        margin: 0;
    }
    
    .center-nav {
        order: 2;
        flex: 1;
        display: flex;
        justify-content: center;
    }
    
    .membership-button {
        order: 3;
        margin-left: 15px;
        margin-right: 0;
    }
    
    /* RTL adjustments */
    html[dir="rtl"] header .container {
        flex-direction: row-reverse;
    }
    
    html[dir="rtl"] .membership-button {
        margin-right: 15px;
        margin-left: 0;
    }
    
    .membership-button .btn.primary-btn {
        font-size: 13px;
        padding: 7px 14px;
    }
}

/* Mobile screens */
@media (max-width: 768px) {
    header .container {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        height: 70px;
        padding: 5px 10px;
    }
    
    .logo {
        order: 1;
        margin: 0;
        flex: 0 0 auto;
    }
    
    .logo img {
        width: 80px;
        height: 60px;
        margin-top: 0;
    }
    
    .center-nav {
        order: 2;
        margin: 0;
        position: static;
    }
    
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background-color: transparent;
        border: 1px solid var(--border);
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .menu-toggle:hover {
        background-color: var(--gray-light);
    }
    
    .menu-toggle i {
        font-size: 18px;
        color: var(--primary);
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background-color: var(--white);
        padding: 60px 20px 20px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 2000;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid var(--gray-medium);
    }
    
    .nav-menu a {
        display: block;
        padding: 12px 0;
        color: var(--text);
        font-size: 16px;
        transition: color 0.3s ease;
    }
    
    .nav-menu a:hover {
        color: var(--primary);
    }
    
    .membership-button {
        order: 3;
        margin: 0 0 0 10px;
    }
    
    .membership-button .btn.primary-btn {
        font-size: 13px;
        padding: 6px 12px;
        white-space: nowrap;
    }
}

/* Small mobile screens */
@media (max-width: 576px) {
    header .container {
        height: 60px;
        padding: 5px;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        flex-direction: row-reverse; /* Reverse the order for RTL layout */
    }
    
    .logo {
        order: 3; /* Change order to keep on right */
        flex: 0 0 auto;
    }
    
    .logo img {
        width: 60px;
        height: 45px;
        margin: 0;
    }
    
    .center-nav {
        order: 2; /* Center position */
        margin: 0;
        width: auto;
        display: flex;
        justify-content: center;
    }
    
    .menu-toggle {
        width: 35px;
        height: 35px;
        padding: 0;
        margin: 0;
    }
    
    .menu-toggle i {
        font-size: 16px;
    }
    
    .membership-button {
        order: 1; /* Keep on left */
        margin: 0 5px;
        width: auto;
        flex-shrink: 1;
    }
    
    .membership-button .btn.primary-btn {
        width: auto;
        min-width: 0;
        justify-content: center;
        font-size: 11px;
        padding: 4px 8px;
        border-radius: 15px;
    }
    
    .membership-button .btn.primary-btn i {
        display: none; /* Hide icon on very small screens */
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    header .container {
        height: 50px;
        padding: 3px 5px;
    }
    
    .logo img {
        width: 50px;
        height: 40px;
    }
    
    .membership-button .btn.primary-btn {
        font-size: 10px;
        padding: 3px 6px;
        border-radius: 12px;
    }
    
    .menu-toggle {
        width: 30px;
        height: 30px;
    }
    
    .menu-toggle i {
        font-size: 14px;
    }
    
    html[dir="rtl"] .membership-button {
        margin-left: 5px;
        margin-right: 5px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    header .container {
        height: 45px;
    }
    
    .logo img {
        width: 45px;
        height: 35px;
    }
    
    .membership-button .btn.primary-btn {
        font-size: 9px;
        padding: 3px 5px;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }
.mt-5 { margin-top: var(--spacing-xxl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }
.mb-5 { margin-bottom: var(--spacing-xxl); }
