/* style.css */

/* -------------------------------------------------------------------------- */
/*                               CSS Variables                                */
/* -------------------------------------------------------------------------- */
:root {
    --font-primary: 'Raleway', 'Cairo', sans-serif;
    --font-secondary: 'Open Sans', 'Cairo', sans-serif;

    --color-primary-base: #826A5A; /* Earthy Brown - Analogous Primary */
    --color-primary-light: #9E8B7D; /* Lighter Earthy Brown */
    --color-primary-dark: #6A5346;  /* Darker Earthy Brown */

    --color-secondary-base: #A89A8E; /* Muted Taupe - Analogous Secondary */
    --color-secondary-light: #C4B8AF;
    --color-secondary-dark: #8C7F74;

    --color-accent: #C0A080; /* Soft Gold/Beige - Accent */
    --color-accent-dark: #A78B6A; /* Darker accent for hover */

    --text-color-dark: #333333;
    --text-color-light: #FFFFFF;
    --text-color-medium: #5f5f5f;
    --heading-color: #1a1a1a;

    --background-body: #FDFCFB; /* Very light, warm off-white */
    --background-light-section: #F7F5F3; /* Slightly darker warm off-white */
    --background-card: #FFFFFF;
    --background-overlay-dark: rgba(0, 0, 0, 0.5);
    --background-overlay-hero: rgba(20, 20, 20, 0.6); /* Darker for hero, slightly desaturated */

    --border-color-light: #E0E0E0;
    --border-color-medium: #D1C7BF; /* Adjusted to palette */

    --shadow-soft: 0 3px 8px rgba(0, 0, 0, 0.07);
    --shadow-medium: 0 6px 15px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 8px 25px rgba(0, 0, 0, 0.12);

    --header-height: 80px;
    --border-radius-small: 5px;
    --border-radius-medium: 10px;

    --transition-speed: 0.3s;
    --transition-timing: ease-in-out;
}

/* -------------------------------------------------------------------------- */
/*                              Reset & Base Styles                           */
/* -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-secondary);
    line-height: 1.7;
    color: var(--text-color-dark);
    background-color: var(--background-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

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

a {
    color: var(--color-primary-dark);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-timing);
}

a:hover {
    color: var(--color-accent);
}

ul {
    list-style: none;
}

/* -------------------------------------------------------------------------- */
/*                                 Typography                                 */
/* -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--heading-color);
    margin-bottom: 0.75em;
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 2.8rem; } /* 44.8px */
h2 { font-size: 2.2rem; } /* 35.2px */
h3 { font-size: 1.6rem; } /* 25.6px */
h4 { font-size: 1.3rem; } /* 20.8px */

p {
    margin-bottom: 1.25rem;
    color: var(--text-color-medium);
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    font-weight: 700;
    color: var(--heading-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background-color: var(--color-accent);
    margin: 0.75rem auto 0;
    border-radius: var(--border-radius-small);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color-medium);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* -------------------------------------------------------------------------- */
/*                                   Layout                                   */
/* -------------------------------------------------------------------------- */
.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem; /* Asymmetrical balance achieved with content and column widths */
}

.column {
    flex: 1;
    min-width: 280px; /* For smaller columns on wrap */
}

.column.is-two-thirds {
    flex-basis: 66.66%;
}
.column.is-one-third {
    flex-basis: 33.33%;
}

/* General Section Styling */
.section-padding { padding-top: 4rem; padding-bottom: 4rem; }
.section-padding-large { padding-top: 5rem; padding-bottom: 5rem; }
.section-padding-small { padding-top: 2.5rem; padding-bottom: 2.5rem; }

.bg-light {
    background-color: var(--background-light-section);
}

/* -------------------------------------------------------------------------- */
/*                                Utility Classes                             */
/* -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mt-1 { margin-top: 0.5rem; }
/* Add more as needed */

/* -------------------------------------------------------------------------- */
/*                                   Buttons                                  */
/* -------------------------------------------------------------------------- */
.btn, button, input[type="submit"], input[type="button"] {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 700;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    border: 2px solid transparent;
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    border-radius: var(--border-radius-small);
    transition: all var(--transition-speed) var(--transition-timing);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-soft);
}

.btn-primary {
    background-color: var(--color-primary-base);
    color: var(--text-color-light);
    border-color: var(--color-primary-base);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--text-color-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background-color: var(--color-accent);
    color: var(--text-color-light);
    border-color: var(--color-accent);
}

.btn-secondary:hover {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: var(--text-color-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* -------------------------------------------------------------------------- */
/*                                   Header                                   */
/* -------------------------------------------------------------------------- */
.site-header {
    background-color: rgba(255, 255, 255, 0.95); /* Semi-transparent white */
    box-shadow: var(--shadow-soft);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    backdrop-filter: blur(5px); /* Glassmorphism effect */
    -webkit-backdrop-filter: blur(5px);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--heading-color);
    font-family: var(--font-primary);
}
.logo a:hover {
    color: var(--color-primary-base);
}

.main-navigation ul {
    display: flex;
    gap: 1.5rem;
}

.main-navigation a {
    font-family: var(--font-primary);
    color: var(--text-color-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-speed) var(--transition-timing);
}

.main-navigation a:hover::after,
.main-navigation a.active::after {
    width: 100%;
}
.main-navigation a:hover {
    color: var(--color-primary-base);
}


/* Hamburger Menu */
.menu-toggle {
    display: none; /* Hidden by default, shown in media query */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001; /* Above nav items */
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--heading-color);
    position: relative;
    transition: transform var(--transition-speed) var(--transition-timing);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--heading-color);
    transition: transform var(--transition-speed) var(--transition-timing), top var(--transition-speed) var(--transition-timing);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Active state for hamburger */
.menu-toggle.active .hamburger {
    background-color: transparent; /* Middle bar disappears */
}
.menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}
.menu-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* -------------------------------------------------------------------------- */
/*                                 Hero Section                               */
/* -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    color: var(--text-color-light);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 90vh; /* Natural height based on content or specific design */
    padding: 6rem 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color-light); /* Explicitly white */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: var(--text-color-light); /* Explicitly white */
    font-weight: 400;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero-content .btn-primary {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

/* -------------------------------------------------------------------------- */
/*                                Card System                                 */
/* -------------------------------------------------------------------------- */
.card {
    background-color: var(--background-card);
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    transition: transform var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
    display: flex;
    flex-direction: column;
    height: 100%; /* Make cards in a row same height */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.card-image { /* This is the container for the image */
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    overflow: hidden;
    display: flex;       /* For centering content */
    align-items: center; /* For centering content */
    justify-content: center; /* For centering content */
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover ensures the image fills the container, might crop */
    transition: transform var(--transition-speed) var(--transition-timing);
}

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

.card-content {
    padding: 1.5rem;
    text-align: center; /* Center content within card */
    flex-grow: 1; /* Allows content to push footer to bottom if card is flex column */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes button down if present */
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--heading-color);
}

.card-content p {
    font-size: 0.95rem;
    color: var(--text-color-medium);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.card-content .btn {
    margin-top: auto; /* Pushes button to the bottom */
}

/* -------------------------------------------------------------------------- */
/*                              About Us Section                              */
/* -------------------------------------------------------------------------- */
.about-us-section .image-container {
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}
.about-us-section .column.is-two-thirds p {
    text-align: justify; /* Or leave as default for RTL */
}

/* -------------------------------------------------------------------------- */
/*                            Methodology Section                             */
/* -------------------------------------------------------------------------- */
.methodology-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.methodology-steps .step.card {
    text-align: center;
}

.methodology-steps .animated-icon {
    display: block;
    font-size: 2.5rem; /* Placeholder size */
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.progress-indicator-container {
    width: 80%;
    height: 8px;
    background-color: var(--border-color-light);
    border-radius: var(--border-radius-small);
    margin: 1rem auto 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0; /* Will be set by JS or data-progress */
    background-color: var(--color-accent);
    border-radius: var(--border-radius-small);
    transition: width 1s ease-in-out;
}
.progress-bar[data-progress="25"] { width: 25%; }
.progress-bar[data-progress="50"] { width: 50%; }
.progress-bar[data-progress="75"] { width: 75%; }
.progress-bar[data-progress="100"] { width: 100%; }

/* -------------------------------------------------------------------------- */
/*                             Statistics Section                             */
/* -------------------------------------------------------------------------- */
.statistics-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-color-light);
    padding: 5rem 0;
}

.statistics-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-overlay-dark);
    z-index: 1;
}

.statistics-section .container {
    position: relative;
    z-index: 2;
}

.statistics-section .section-title {
    color: var(--text-color-light);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.statistics-section .section-title::after {
    background-color: var(--text-color-light);
}


.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color-light);
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-color-light);
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* -------------------------------------------------------------------------- */
/*                         Insights (Services) Section                        */
/* -------------------------------------------------------------------------- */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* -------------------------------------------------------------------------- */
/*                               Gallery Section                              */
/* -------------------------------------------------------------------------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem; /* Slightly smaller gap for gallery */
}

.gallery-item.card .card-image {
    height: 250px; /* Specific height for gallery images */
}
.gallery-item.card .card-content p {
    font-weight: 500;
    color: var(--heading-color);
}

/* -------------------------------------------------------------------------- */
/*                           Events Calendar Section                          */
/* -------------------------------------------------------------------------- */
.events-list .event-item.card {
    margin-bottom: 2rem;
    display: flex; /* For horizontal layout of date and details on wider screens */
    flex-direction: row; /* Default, will change for mobile */
    text-align: right; /* For RTL */
}
.event-item.card .card-content {
    display: flex;
    flex-direction: row;
    width: 100%;
    padding: 1rem;
    align-items: flex-start;
}


.event-date {
    background-color: var(--color-accent);
    color: var(--text-color-light);
    padding: 1rem;
    text-align: center;
    border-radius: var(--border-radius-small);
    margin-left: 1.5rem; /* For RTL, this would be margin-right */
    min-width: 80px;
}

.event-date span {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

.event-details {
    flex-grow: 1;
}

.event-details h3 {
    margin-top: 0;
    font-size: 1.3rem;
    color: var(--color-primary-dark);
}
.event-details p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* -------------------------------------------------------------------------- */
/*                              Community Section                             */
/* -------------------------------------------------------------------------- */
.community-section .image-container {
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

/* -------------------------------------------------------------------------- */
/*                           Sustainability Section                           */
/* -------------------------------------------------------------------------- */
.sustainability-section .image-container {
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

/* -------------------------------------------------------------------------- */
/*                         External Resources Section                         */
/* -------------------------------------------------------------------------- */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.resource-item.card .card-content h3 a {
    color: var(--color-primary-dark);
}
.resource-item.card .card-content h3 a:hover {
    color: var(--color-accent);
}


/* -------------------------------------------------------------------------- */
/*                               Contact Section                              */
/* -------------------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Asymmetrical can be achieved here too if needed */
    gap: 3rem;
}

/* Form Styles */
.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-color-medium);
    border-radius: var(--border-radius-small);
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--text-color-dark);
    background-color: #fff;
    transition: border-color var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary-base);
    box-shadow: 0 0 0 2px rgba(var(--color-primary-base-rgb, 130, 106, 90), 0.2); /* Use RGB version of primary base */
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Contact Details */
.contact-details-container h3,
.contact-form-container h3 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.contact-info-block {
    margin-bottom: 2rem;
}
.contact-info-block h4 {
    font-size: 1.2rem;
    color: var(--color-primary-dark);
    margin-bottom: 0.75rem;
}
.contact-info-block p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}
.contact-info-block .animated-icon { /* For placeholder icons */
    margin-left: 0.5rem; /* RTL: margin-right */
    color: var(--color-accent);
    font-size: 1.2rem;
}

/* -------------------------------------------------------------------------- */
/*                                   Footer                                   */
/* -------------------------------------------------------------------------- */
.site-footer {
    background-color: var(--heading-color); /* Dark footer */
    color: var(--text-color-light);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-column h4 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    color: var(--text-color-light);
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-speed) var(--transition-timing), padding-right var(--transition-speed) var(--transition-timing); /* RTL padding-left */
}

.footer-column ul li a:hover {
    color: var(--text-color-light);
    padding-right: 5px; /* RTL: padding-left */
}

.social-links li a { /* Text-based social links */
    font-weight: 500;
}

.newsletter-form {
    display: flex;
    margin-top: 0.5rem;
}

.newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color-medium);
    border-radius: var(--border-radius-small) 0 0 var(--border-radius-small); /* Adjust for RTL */
    border-left: none; /* RTL: border-right */
    font-family: var(--font-secondary);
    background-color: #fff;
    color: var(--text-color-dark);
}
.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-accent);
}


.newsletter-form button {
    padding: 0.75rem 1rem;
    border-radius: 0 var(--border-radius-small) var(--border-radius-small) 0; /* Adjust for RTL */
    background-color: var(--color-accent);
    color: var(--text-color-light);
    border: none;
    font-size: 0.9rem;
}
.newsletter-form button:hover {
    background-color: var(--color-accent-dark);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* -------------------------------------------------------------------------- */
/*                            Specific Page Styles                            */
/* -------------------------------------------------------------------------- */

/* Success Page */
.success-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
    background-color: var(--background-light-section);
}
.success-page-container h1 {
    color: var(--color-primary-dark);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.success-page-container p {
    font-size: 1.2rem;
    color: var(--text-color-medium);
    margin-bottom: 2rem;
}
.success-page-container .icon-success { /* Placeholder for a success icon */
    font-size: 4rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}


/* Privacy Policy & Terms Pages */
.privacy-policy-page,
.terms-page {
    padding-top: calc(var(--header-height) + 3rem); /* Ensure content is below fixed header */
    padding-bottom: 4rem;
}

.privacy-policy-page .container h1,
.terms-page .container h1 {
    margin-bottom: 2rem;
    text-align: center;
}

.privacy-policy-page .container h2,
.terms-page .container h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: var(--color-primary-dark);
}
.privacy-policy-page .container p,
.terms-page .container p,
.privacy-policy-page .container ul li,
.terms-page .container ul li {
    text-align: justify;
}
.privacy-policy-page .container ul,
.terms-page .container ul {
    list-style: disc;
    padding-right: 20px; /* RTL: padding-left */
    margin-bottom: 1rem;
}


/* -------------------------------------------------------------------------- */
/*                        Animations & Scroll Effects                         */
/* -------------------------------------------------------------------------- */
/* For GSAP - elements to be animated */
.fade-in, .slide-up, .slide-from-right, .slide-from-left {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-up { transform: translateY(50px); }
.slide-from-right { transform: translateX(-50px); } /* For RTL, this will appear from left */
.slide-from-left { transform: translateX(50px); }  /* For RTL, this will appear from right */

.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* Parallax background - JS will likely add a class or directly manipulate */
.parallax-bg {
    background-attachment: fixed; /* Simple parallax, JS can do better */
}


/* -------------------------------------------------------------------------- */
/*                                Media Queries                               */
/* -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.2rem; }

    .columns {
        gap: 1.5rem;
    }
    .column.is-two-thirds, .column.is-one-third {
        flex-basis: 100%;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-navigation {
        position: fixed;
        top: var(--header-height);
        right: 0; /* For RTL, this becomes left: 0 */
        width: 70%;
        max-width: 300px;
        height: calc(100vh - var(--header-height));
        background-color: #fff;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1); /* For RTL, this would be 5px 0 ... */
        transform: translateX(100%); /* For RTL, translateX(-100%) */
        transition: transform var(--transition-speed) var(--transition-timing);
        overflow-y: auto;
        padding-top: 2rem;
    }

    .main-navigation.active {
        transform: translateX(0);
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        padding: 0 1.5rem;
    }

    .main-navigation ul li {
        width: 100%;
    }

    .main-navigation a {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color-light);
        font-size: 1rem;
    }
    .main-navigation ul li:last-child a {
        border-bottom: none;
    }
    .main-navigation a::after {
        display: none; /* Remove underline effect for mobile nav items */
    }
    .main-navigation a:hover {
        background-color: var(--background-light-section);
        color: var(--color-primary-base);
    }

    .menu-toggle {
        display: block;
    }

    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.1rem; }

    .event-item.card .card-content {
        flex-direction: column;
        align-items: flex-start; /* Adjust for RTL if needed */
    }
    .event-date {
        margin-left: 0; /* RTL: margin-right */
        margin-bottom: 1rem;
        min-width: auto;
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr; /* Stack footer columns */
        text-align: center;
    }
    .footer-column h4 {
        margin-top: 1rem;
    }
    .newsletter-form {
        justify-content: center;
    }

}

@media (max-width: 480px) {
    :root {
        --header-height: 70px;
    }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1rem; }

    .section-padding { padding-top: 3rem; padding-bottom: 3rem; }
    .section-padding-large { padding-top: 4rem; padding-bottom: 4rem; }

    .btn, button, input[type="submit"] {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    .hero-content .btn-primary {
        font-size: 1rem;
        padding: 0.8rem 2rem;
    }
}