/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Updated theme: switch primary from green to light blue */
    --primary-color: #5AB9EA; /* light blue */
    --secondary-color: #3498db; /* medium blue */
    --primary-hover: #49A7DE; /* darker for hover */
    --secondary-hover: #2980b9; /* existing darker blue */
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #333;
    --white: #ffffff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    transition: all 0.3s ease;
    /* Better font rendering in Firefox */
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
}

body.rtl {
    direction: rtl;
    font-family: 'Cairo', 'Tahoma', 'Arial', 'Segoe UI', sans-serif;
}

/* Better Arabic font support */
body.rtl * {
    font-family: 'Cairo', 'Tahoma', 'Arial', 'Segoe UI', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo i {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

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

.language-switcher {
    position: relative;
    margin-left: 20px;
}

body.rtl .language-switcher {
    margin-left: 0;
    margin-right: 20px;
}

.lang-dropdown {
    position: relative;
}

.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 2px solid var(--primary-color);
    background: var(--white);
    color: var(--text-color);
    cursor: pointer;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s;
}

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

.lang-dropdown-btn:hover .flag-icon {
    transform: scale(1.1);
}

.dropdown-arrow {
    font-size: 0.6rem;
    transition: transform 0.3s;
    display: inline-block;
}

.lang-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.flag-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.lang-text {
    font-size: 0.8rem;
    font-weight: 600;
}

.lang-dropdown-content {
    position: absolute;
    top: 110%;
    right: 0;
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    min-width: 100px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
}

.lang-dropdown.active .lang-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 1px solid #eee;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: var(--primary-color);
    color: var(--white);
}

.lang-option img {
    width: 20px;
    height: 20px;
}

.lang-option span {
    font-size: 0.8rem;
    font-weight: 600;
}

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

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 70px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
}

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

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

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

.btn-secondary:hover {
    background: var(--secondary-hover);
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.underline {
    width: 100px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto;
}

/* About Section */
.about {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(90, 185, 234, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.about::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.about .container {
    position: relative;
    z-index: 1;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-top: 0.5rem;
    font-weight: 300;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-main-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    text-align: center;
    margin-bottom: 3rem;
    transition: transform 0.3s;
}

.about-main-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
}

.about-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: pulse 2s infinite;
}

.about-icon i {
    font-size: 2.5rem;
    color: white;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.about-main-card h3 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-background-clip: text;
    -moz-text-fill-color: transparent;
    background-clip: text;
}

.about-description {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #555;
    max-width: 900px;
    margin: 0 auto;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.about-text h3 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.stat-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.stat-icon i {
    font-size: 1.8rem;
    color: white;
}

.stat-item h4 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-background-clip: text;
    -moz-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.stat-item p {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

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

.feature-item i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-background-clip: text;
    -moz-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.feature-item h4 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 0.8rem;
}

.feature-item p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* Mission Section */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.mission-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

.mission-card:hover {
    transform: translateY(-10px);
}

.mission-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.mission-card h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.mission-card p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Programs Section */
.programs {
    background: var(--light-color);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.program-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.program-card:hover {
    transform: translateY(-10px);
}

.program-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.program-content {
    padding: 1.5rem;
}

.program-content h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.program-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Video Section */
.videos {
    background: var(--white);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.video-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    overflow: hidden;
}

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

.video-wrapper video::-webkit-media-controls-panel {
    background: linear-gradient(transparent, rgba(0,0,0,0.5));
}

/* Firefox video controls styling */
.video-wrapper video::-moz-media-controls {
    background: linear-gradient(transparent, rgba(0,0,0,0.5));
}

.video-content {
    padding: 1.5rem;
    background: var(--white);
}

.video-content h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 0.8rem;
}

.video-content p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* Feedback Section */
.feedback {
    background: var(--light-color);
}

.feedback-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feedback-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
    border: 2px solid transparent;
    position: relative;
}

.feedback-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

/* Delete button for user feedback */
.delete-feedback-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s;
    opacity: 0;
    z-index: 10;
}

.user-feedback:hover .delete-feedback-btn {
    opacity: 1;
}

.delete-feedback-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

body.rtl .delete-feedback-btn {
    right: auto;
    left: 10px;
}

.feedback-card .stars {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
    direction: ltr; /* Force LTR for stars in both languages */
}

.feedback-card .stars i,
.feedback-card .stars .star {
    color: #ffc107;
    font-size: 1.5rem;
}

.feedback-card .stars .star {
    font-family: Arial, sans-serif;
    line-height: 1;
}

.feedback-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    font-style: italic;
}

/* Feedback Form */
.feedback-form-container {
    max-width: 600px;
    margin: 3rem auto 0;
}

.feedback-form-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 2px solid var(--primary-color);
}

.feedback-form-card h3 {
    text-align: center;
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.rating-input {
    margin-bottom: 1.5rem;
    text-align: center;
}

.rating-input label {
    display: block;
    font-size: 1rem;
    color: var(--dark-color);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 0.3rem;
    direction: ltr; /* Force LTR for star display */
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating label {
    font-size: 2.5rem;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0;
    font-family: 'Font Awesome 5 Free', 'Font Awesome 6 Free', sans-serif;
    font-weight: 900;
}

.star-rating label::before {
    content: '\f005'; /* Font Awesome star icon */
    font-family: 'Font Awesome 5 Free', 'Font Awesome 6 Free';
    font-weight: 400; /* Regular star (outline) */
}

.star-rating label:hover::before,
.star-rating label:hover ~ label::before,
.star-rating input[type="radio"]:checked ~ label::before {
    font-weight: 900; /* Solid star */
    color: #ffc107;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input[type="radio"]:checked ~ label {
    color: #ffc107;
    transform: scale(1.1);
}

.feedback-form-card .form-group {
    margin-bottom: 1.5rem;
}

.feedback-form-card textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
}

.feedback-form-card textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.char-count {
    display: block;
    text-align: right;
    color: #999;
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

.feedback-form-card button[type="submit"] {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
}

.feedback-success {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border-radius: 10px;
    animation: fadeIn 0.5s;
}

.feedback-success i {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.feedback-success p {
    font-size: 1.2rem;
    color: #155724;
    font-weight: 600;
    margin: 0;
}

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

/* Donation Section */
.donate {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.donate .section-header h2,
.donate .section-header p {
    color: var(--white);
}

.bank-info-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem; /* tighter gap to make overall footprint smaller */
    margin-bottom: 1.2rem;
}

.bank-card {
    background: white;
    padding: 0.5rem; /* slightly smaller card */
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s;
}

.bank-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.1);
}

.bank-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.3rem;
}

.bank-icon i {
    font-size: 0.9rem;
    color: white;
}

.bank-card h3 {
    font-size: 0.95rem; /* slightly larger title */
    color: var(--dark-color);
    margin-bottom: 0.2rem;
}

.bank-name {
    font-size: 0.85rem; /* more readable bank label */
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
}

.bank-subtitle {
    color: #666;
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
}

.bank-details {
    margin: 0.3rem 0;
}

.bank-detail-item {
    background: #f8f9fa;
    padding: 0.45rem; /* compact but comfortable */
    border-radius: 6px;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: right;
    transition: all 0.3s;
}

.bank-detail-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.detail-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-icon i {
    font-size: 0.75rem;
    color: white;
}

.detail-content {
    flex: 1;
}

.detail-content h4 {
    font-size: 0.75rem; /* larger label */
    color: #666;
    margin-bottom: 0.15rem;
    text-transform: uppercase;
}

.account-name {
    font-size: 0.95rem; /* bigger for readability */
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.1rem;
    line-height: 1.25;
}

.account-name-fr {
    font-size: 0.8rem; /* increase secondary name */
    color: #666;
    font-style: italic;
    line-height: 1.2;
}

.account-number {
    font-size: 1rem; /* bigger IBAN/BIC/account */
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 0.4px;
    margin-bottom: 0.35rem;
    font-family: 'Courier New', monospace;
}

.iban-number {
    font-size: 0.95rem; /* align with account-number but allow wrap */
    letter-spacing: 0.3px;
    word-break: break-word;
}

.bic-number {
    font-size: 1.05rem;
}

.copy-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 4px 10px; /* slightly larger click target */
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.7rem; /* bigger text on button */
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.copy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(90, 185, 234, 0.3);
}

.copy-btn i {
    font-size: 0.6rem;
}

.donation-note {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: right;
}

.donation-note i {
    font-size: 1.5rem;
    color: #ffc107;
    flex-shrink: 0;
}

.donation-note p {
    color: #856404;
    margin: 0;
    font-size: 1rem;
}

.donation-note-bottom {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 6px;
    padding: 0.5rem 0.8rem;
    margin: 0.8rem auto;
    max-width: 1400px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: right;
}

.donation-note-bottom i {
    font-size: 0.9rem;
    color: #ffc107;
    flex-shrink: 0;
}

.donation-note-bottom p {
    color: #856404;
    margin: 0;
    font-size: 0.7rem;
    font-weight: 500;
}

.donation-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.donation-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.amount-btn {
    padding: 15px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.amount-btn:hover,
.amount-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

#custom-amount {
    grid-column: 1 / -1;
    padding: 15px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

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

/* Contact Section */
.contact-content-new {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.contact-image {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.contact-card {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-card-header {
    text-align: center;
    margin-bottom: 1rem;
}

.contact-card-header i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-background-clip: text;
    -moz-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.3rem;
}

.contact-card-header h3 {
    font-size: 1.1rem;
    color: var(--dark-color);
}

.contact-details {
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem;
    margin-bottom: 0.6rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s;
}

.contact-item:hover {
    transform: translateX(-3px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1rem;
    color: white;
}

.whatsapp-link {
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.whatsapp-link:hover {
    transform: scale(1.15);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.5);
}

.contact-text {
    flex: 1;
    text-align: right;
}

.contact-text h4 {
    font-size: 0.7rem;
    color: #666;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.contact-text p {
    font-size: 0.9rem;
    color: var(--dark-color);
    font-weight: 500;
    margin: 0;
    line-height: 1.3;
}

.social-links {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    padding-top: 0.8rem;
    border-top: 2px solid #f0f0f0;
}

.social-links a {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    font-size: 1rem;
    transition: all 0.3s;
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 3px 10px rgba(90, 185, 234, 0.4);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

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

.info-item h4 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

.footer .site-credit {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer .credit-link {
    color: var(--secondary-color);
    text-decoration: underline;
}

.footer .credit-link:hover {
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Design */

/* Large Tablets and Small Desktops (1024px and below) */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .nav-menu {
        gap: 1.5rem;
    }

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

    .bank-info-container {
        gap: 1.5rem;
    }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    /* Add space between language switcher and hamburger on mobile */
    .language-switcher {
        margin-right: 12px; /* space to its right (towards hamburger) */
    }
    body.rtl .language-switcher {
        margin-right: 0;
        margin-left: 12px; /* mirror spacing for RTL */
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu li {
        padding: 1rem 0;
        border-bottom: 1px solid #eee;
    }

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

    body.rtl .nav-menu {
        left: auto;
        right: -100%;
    }

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

    .logo span {
        font-size: 1.2rem;
    }

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

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

    .mission-grid,
    .programs-grid,
    .videos-grid,
    .feedback-grid {
        grid-template-columns: 1fr;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

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

    .about-features {
        grid-template-columns: 1fr;
    }

    .bank-info-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .bank-card {
        padding: 0.8rem;
    }

    .contact-content-new {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-image {
        max-height: 300px;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .feedback-form-card {
        padding: 1.5rem;
    }

    .star-rating label {
        font-size: 2rem;
    }
}

/* Mobile Devices (480px and below) */
@media (max-width: 480px) {
    .logo {
        font-size: 1rem;
    }

    .logo img {
        width: 28px !important;
        height: 28px !important;
    }

    .logo span {
        font-size: 1rem;
    }

    .language-switcher {
        margin-left: 10px;
        margin-right: 12px; /* keep extra spacing from hamburger on small phones */
    }

    body.rtl .language-switcher {
        margin-right: 10px;
        margin-left: 12px;
    }

    .lang-dropdown-btn {
        padding: 4px 8px;
        gap: 4px;
    }

    .flag-icon {
        width: 16px !important;
        height: 16px !important;
    }

    .lang-text {
        font-size: 0.7rem;
    }

    .dropdown-arrow {
        font-size: 0.5rem;
    }

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

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

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .stat-card h3 {
        font-size: 2rem;
    }

    .stat-card p {
        font-size: 0.9rem;
    }

    .bank-card h3 {
        font-size: 1rem;
    }

    .bank-name {
        font-size: 0.95rem;
    }

    .bank-detail-item {
        flex-direction: column;
        text-align: center;
        padding: 0.6rem;
    }

    .account-name {
        font-size: 1rem;
    }

    .account-name-fr {
        font-size: 0.9rem;
    }

    .account-number {
        font-size: 1.05rem;
    }

    .iban-number {
        font-size: 1rem;
        word-break: break-all;
    }

    .bic-number {
        font-size: 1.1rem;
    }

    .copy-btn {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    .donation-note-bottom {
        flex-direction: column;
        text-align: center;
        padding: 0.5rem;
    }

    .donation-note-bottom i {
        font-size: 0.8rem;
    }

    .donation-note-bottom p {
        font-size: 0.7rem;
    }

    .contact-card-header h3 {
        font-size: 1.1rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 0.6rem;
    }

    .contact-icon {
        width: 35px;
        height: 35px;
    }

    .contact-icon img {
        width: 30px !important;
        height: 30px !important;
    }

    .contact-text h4 {
        font-size: 0.9rem;
    }

    .contact-text p {
        font-size: 0.85rem;
    }

    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .feedback-form-card {
        padding: 1.2rem;
    }

    .feedback-form-card h3 {
        font-size: 1.2rem;
    }

    .star-rating label {
        font-size: 1.8rem;
    }

    .feedback-form-card textarea {
        font-size: 0.95rem;
    }
}

/* Firefox-specific fixes */
@-moz-document url-prefix() {
    .video-wrapper {
        position: relative;
        width: 100%;
        padding-bottom: 56.25%;
        background: #000;
        overflow: hidden;
        /* Force aspect ratio in Firefox */
    }
    
    .video-wrapper video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Ensure proper grid alignment in Firefox */
    .videos-grid,
    .feedback-grid,
    .programs-grid,
    .mission-grid {
        display: -moz-grid;
        display: grid;
    }
    
    /* Fix flexbox in Firefox */
    .navbar .container,
    .nav-menu,
    .stars {
        display: -moz-box;
        display: flex;
    }
}

/* Extra Small Devices (360px and below) */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    .logo span {
        font-size: 0.85rem;
    }

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

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

    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .mission-card h3,
    .program-card h3 {
        font-size: 1rem;
    }

    .mission-card p,
    .program-card p {
        font-size: 0.85rem;
    }
}
