/* RTL (Right-to-Left) Main Stylesheet */
/* This file contains the primary styling for the Arabic version of the website. */

/* --- CSS Variables (Root Method) --- */
:root {
    /* Main Background & Text Colors */
    --primary-bg-light: #F5F5F5;        /* Light, almost-white background */
    --primary-text-dark: #424242;       /* Dark text and element color */

    /* Action & Accent Colors */
    --action-green-dark: #00B906;       /* Dark green for primary actions (buttons) */
    --accent-green-light: #B9E937;      /* Light green for accents and hover states */

    /* Utility & Supporting Colors */
    --border-light: #CFD8DC;            /* A light gray for borders */
    --bg-loader: #ECEFF1;               /* Background color for the preloader */
    --placeholder-text: #78909C;        /* A soft gray for placeholder text */
    --white: #FFFFFF;
    
    /* RGB values for gradients and shadows */
    --primary-text-dark-rgb: 66, 66, 66;
    --accent-green-light-rgb: 185, 233, 55;
    --action-green-dark-rgb: 0, 185, 6;
}

/* typography */
@import url("https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700|Quicksand:400,500,700");

html, body {
    direction: rtl; /* Essential for RTL */
    text-align: right; /* Default text alignment for the entire document */
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.5;
    color: var(--primary-text-dark);
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    font-family: "Open Sans", sans-serif;
    font-weight: normal;
    font-style: normal;
    font-size: 16px;
    position: relative !important;
}
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    line-height: 1.6;
    font-family: 'Roboto', sans-serif;
    -webkit-font-smoothing: antialiased;
    font-size: 15px;
    color: var(--primary-text-dark);
    background-color: var(--white);
    overflow-x: hidden; /* Prevent horizontal scrollbars */
}

p, .paragraph {
    font-weight: 400;
    font-size: 15px;
    line-height: 1.5;
    font-family: "Open Sans", sans-serif;
    text-align: right; /* Keep default right alignment for general paragraphs */
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-text-dark);
    font-family: "Quicksand", sans-serif;
    font-weight: 700;
    line-height: 1.2;
    text-align: right; /* Ensure headings are right-aligned by default */
}

h1, .h1 { font-size: 80px; }
@media (max-width: 767px) {
    h1, .h1 { font-size: 55px; }
}

h2, .h2 { font-size: 50px; }
@media (max-width: 767px) {
    h2, .h2 { font-size: 45px; }
}

h3, .h3 { font-size: 40px; }
h4, .h4 { font-size: 30px; }
h5, .h5 { font-size: 20px; }
h6, .h6 { font-size: 16px; }

/* Button style */
.btn {
    font-size: 15px;
    font-family: "Open Sans", sans-serif;
    text-transform: capitalize;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 600;
    border: 1px solid;
    position: relative;
    z-index: 1;
    transition: all 0.2s ease;
    color: #00B906;
}
.btn:focus {
    outline: 0;
    box-shadow: none !important;
}
.btn:active {
    box-shadow: none;
}

.btn-primary {
    background: var(--accent-green-light);
    color: var(--white);
    border-color: var(--accent-green-light);
}
.btn-primary:active {
    background: var(--accent-green-light) !important;
}
.btn-primary:hover {
    background:  var(--accent-green-light);
    border-color:  var(--action-green-dark);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn-outline-light:active {
    background: var(--action-green-dark) !important;
    color: var(--white);
    border-color: var(--action-green-dark);
}
.btn-outline-light:hover {
    background: var(--action-green-dark) !important;
    color: var(--white) !important;
    border-color: var(--action-green-dark) !important;
}
.btn-outline-primary:hover {
    background-color: var(--action-green-dark); /* Changes background on hover */
    border-color: var(--action-green-dark);    /* Changes border color */
    color: white !important;      /* Changes text color */
}
.btn-transparent {
    color: var(--action-green-dark);
    border: 0;
}
.btn-transparent:hover {
    color: var(--primary-text-dark);
}

::-moz-selection {
    background: var(--action-green-dark);
    color: var(--white);
}

::selection {
    background: var(--action-green-dark);
    color: var(--white);
}

/* preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-loader);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.preloader .loader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 142px;
    height: 40px;
    margin: -20px 0 0 -71px;
    background: var(--bg-loader);
}
.preloader .loader .dot {
    position: absolute;
    width: 16px;
    height: 16px;
    top: 12px;
    left: 15px;
    background: var(--action-green-dark);
    border-radius: 50%;
    animation: dot 2.8s infinite;
}
.preloader .loader .dots {
    transform: translateX(0);
    margin-top: 12px;
    margin-left: 31px;
    animation: dots 2.8s infinite;
}
.preloader .loader .dots span {
    display: block;
    float: left;
    width: 16px;
    height: 16px;
    margin-left: 16px;
    background: var(--action-green-dark);
    border-radius: 50%;
}
@keyframes dot {
    50% { transform: translateX(96px); }
}
@keyframes dots {
    50% { transform: translateX(-31px); }
}

ol, ul {
    list-style-type: none;
    margin: 0px;
    padding: 0;
    text-align: right;
}

img {
    vertical-align: middle;
    border: 0;
}

a, a:hover, a:focus {
    text-decoration: none;
}

a, button, select {
    cursor: pointer;
    transition: all 0.2s ease;
}
a:focus, button:focus, select:focus {
    outline: 0;
}

a:hover, a.text-dark:hover {
    color: var(--action-green-dark) !important;
}

/* SLICK CSS OVERRIDES/ADJUSTMENTS */
/* These are general slick styles, may need further adjustments for the new slider */
.slick-list {
    overflow: hidden;
    margin: 0;
    padding: 0;
    position: relative;
    display: block;
}

.slick-track {
    display: flex;
    align-items: stretch;
    margin: 0;
    padding: 0;
    left: 0;
    top: 0;
}

.slick-slide {
    outline: 0;
    display: block;
    height: auto;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
    flex: 0 0 auto;
}

/* Custom styles for Slick arrows and dots */
.slick-prev, .slick-next {
    font-size: 0;
    line-height: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: block;
    width: 40px;
    height: 40px;
    padding: 0;
    cursor: pointer;
    color: transparent;
    border: none;
    outline: none;
    background: rgba(var(--primary-text-dark-rgb), 0.5);
    border-radius: 50%;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.slick-prev:hover, .slick-next:hover {
    background: rgba(var(--action-green-dark-rgb), 0.7);
}

.slick-prev:before, .slick-next:before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 20px;
    line-height: 1;
    color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* RTL specific arrow positioning */
html[dir="rtl"] .slick-prev {
    left: 10px;
    right: auto;
}

html[dir="rtl"] .slick-next {
    right: 10px;
    left: auto;
}

/* LTR specific arrow positioning (default) */
html[dir="ltr"] .slick-prev {
    left: 10px;
    right: auto;
}

html[dir="ltr"] .slick-next {
    right: 10px;
    left: auto;
}

/* Icons for arrows */
.slick-prev:before {
    content: "\f053";
}

.slick-next:before {
    content: "\f054";
}

/* RTL specific icons for arrows (flipped) */
html[dir="rtl"] .slick-prev:before {
    content: "\f054";
}

html[dir="rtl"] .slick-next:before {
    content: "\f053";
}

/* Slick Dots */
.slick-dots {
    position: absolute;
    bottom: 20px;
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center;
}

.slick-dots li {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    margin: 0 5px;
    padding: 0;
    cursor: pointer;
}

.slick-dots li button {
    font-size: 0;
    line-height: 0;
    display: block;
    width: 10px;
    height: 10px;
    padding: 5px;
    cursor: pointer;
    color: transparent;
    border: 0;
    outline: none;
    background: var(--white);
    border-radius: 50%;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.slick-dots li.slick-active button {
    opacity: 1;
    background: var(--action-green-dark);
}

/* Section & Background Styles */
.section {
    padding-top: 90px;
    padding-bottom: 90px;
    background-color: var(--bg-loader);
}
.section.mt-huge-section {
    margin-top: 100px;
    padding-top: 0;
}
.section.pt-0.pb-5.mt-huge-section {
    background-color: var(--bg-loader);
    position: relative;
}

.section.pt-0.pb-5.mt-huge-section::before {
    content: "";
    position: absolute;
    top: -100px; /* Match your margin value */
    left: 0;
    right: 0;
    height: 100px; /* Match your margin value */
    background-color: inherit;
    z-index: -1;
}
@media (max-width: 767px) {
    .section.mt-huge-section {
        margin-top: 80px;
    }
}

.section-sm {
    padding-top: 80px;
    padding-bottom: 80px;
}
.section-title {
    margin-bottom: 30px;
    font-size: 45px;
    color: var(--primary-text-dark);
    text-align: center;
}
@media (max-width: 767px) {
    .section-title { font-size: 35px; }
}

.bg-cover {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.bg-fixed {
    background-attachment: fixed;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.border-primary { border-color: var(--action-green-dark) !important; }

/* Overlay */
.overlay { position: relative; }
.overlay::before {
    position: absolute;
    content: "";
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background: var(--primary-text-dark);
    opacity: 0.5;
}

/* Utility Classes */
.outline-0 { outline: 0 !important; }
.d-unset { display: unset !important; }

.bg-primary { background: var(--accent-green-light) !important; }
.bg-secondary { background: var(--bg-loader) !important; }

.text-primary { color: var(--accent-green-light) !important; }
.text-color { color: var(--primary-text-dark); }
.text-dark { color: var(--primary-text-dark) !important; }
.font-secondary { font-family: "Quicksand", sans-serif !important; }

/* Margin Bottom Utilities */
.mb-10 { margin-bottom: 10px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-30 { margin-bottom: 30px !important; }
.mb-40 { margin-bottom: 40px !important; }
.mb-50 { margin-bottom: 50px !important; }
.mb-60 { margin-bottom: 60px !important; }
.mb-70 { margin-bottom: 70px !important; }
.mb-80 { margin-bottom: 80px !important; }
.mb-90 { margin-bottom: 90px !important; }
.mb-100 { margin-bottom: 100px !important; }

.zindex-1 { z-index: 1; }
.overflow-hidden { overflow: hidden; }

/* Form Control & Search Bar Styling */
.form-control {
    border-bottom: 1px solid var(--accent-green-light);
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    text-align: right;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-light);
}
.form-control:focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(var(--action-green-dark-rgb), 0.25);
    border-color: var(--action-green-dark);
}

textarea.form-control {
    height: 150px;
    resize: vertical;
}

/* --- REFINED HEADER SEARCH BAR STYLES --- */
.header-search-form {
    display: flex;
    align-items: center;
    position: relative;
    margin-left: 15px;
    margin-right: auto;
    width: 200px;
    order: -1;
}

.header-search-form .form-control {
    width: 100%;
    padding-right: 15px;
    padding-left: 40px;
    border: 1px solid var(--border-light);
    background-color: var(--white);
    color: var(--primary-text-dark);
    border-radius: 25px;
    height: 40px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    text-align: right;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-search-form .form-control:hover {
    border-color: var(--action-green-dark);
    box-shadow: 0 4px 10px rgba(var(--action-green-dark-rgb), 0.2);
}

.header-search-form .form-control:focus {
    border-color: var(--action-green-dark);
    box-shadow: 0 0 8px rgba(var(--action-green-dark-rgb), 0.4);
}

.header-search-form .search-icon {
    position: absolute;
    left: 10px;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    color: var(--placeholder-text);
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2em;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* --- END REFINED HEADER SEARCH BAR STYLES --- */

/* --- NEW SIDEBAR SEARCH BAR STYLES --- */
.widget.search-widget-new {
    margin-bottom: 30px;
    background-color: transparent;
    border-radius: 12px;
    padding: 0px;
    box-shadow: none;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.widget.search-widget-new::before {
    content: none;
}

.search-form-new {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.input-group-new {
    position: relative;
    width: 100%;
    display: flex;
}

.search-input-new {
    width: 100%;
    padding: 12px 20px 12px 50px;
    border: 1px solid var(--accent-green-light);
    border-radius: 30px;
    font-size: 16px;
    color: var(--primary-text-dark);
    background-color: var(--primary-bg-light);
    height: 50px;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
    font-family: "Open Sans", sans-serif;
    text-align: right;
}

.search-input-new::placeholder {
    color: var(--placeholder-text);
    opacity: 1;
}

.search-input-new:focus {
    background-color: var(--white);
    border-color: var(--action-green-dark);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.search-button-new {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    position: absolute;
    left: 15px;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-text-dark);
    cursor: pointer;
    font-size: 1.5em;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.search-button-new:hover {
    color: var(--action-green-dark);
    transform: translateY(-50%) scale(1.1);
}
.search-button-new i {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}
/* --- END NEW SIDEBAR SEARCH BAR STYLES --- */

/* Navigation Bar Refinement - RTL Compact */
.navigation {
    z-index: 999;
    background-color: var(--bg-loader);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
    position: relative;
    padding: 8px 0;
}

.navbar-brand {
    padding: 0;
    margin-left: 0;
    order: 5;
}

.navbar-toggler {
    border: none !important;
    padding: .25rem .75rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border-radius: .25rem;
    transition: box-shadow .15s ease-in-out;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--action-green-dark-rgb), 0.25);
}

/* Main navbar collapse area */
.navbar-expand-lg .navbar-collapse {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

/* Navigation Links - Compact RTL */
.navbar-nav {
    order: 1;
    margin-right: auto;
    margin: 0;
    flex-grow: 0;
    justify-content: flex-end;
}

.navbar-nav .nav-item {
    margin: 0 0.2rem;
    padding: 0 0.5rem;
    display: flex;
    align-items: center;
    position: relative;
}

    /* Default divider for ALL items (right side) */
    .navbar-nav .nav-item:not(:last-child)::after {
        content: "";
        position: absolute;
        left: -0.2rem;
        top: 50%;
        transform: translateY(-50%);
        height: 60%;
        width: 1px;
        background-color: var(--border-light);
    }

    /* Special case: Add LEFT divider ONLY for the first item (الرئيسية) */
    .navbar-nav .nav-item:first-child::before {
        content: "";
        position: absolute;
        right: -0.2rem;
        top: 50%;
        transform: translateY(-50%);
        height: 60%;
        width: 1px;
        background-color: var(--border-light);
    }

    /* Remove right divider from last item */
    .navbar-nav .nav-item:last-child::after {
        display: none;
    }

.navbar-nav .nav-link {
    font-weight: 500;
    color: #555;
    padding: 0.5rem 0;
    text-decoration: none !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    text-align: center;
    width: 100%;
    margin: 0 auto;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-text-dark);
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: var(--action-green-dark);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
    border-radius: 8px;
}

.navbar-nav .nav-link:hover {
    color: var(--white) !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link:hover::before {
    transform: translateY(0);
}

/* Daily Event Banner */
.daily-event-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--accent-green-light);
    color: var(--primary-text-dark);
    padding: 6px 12px;
    border-radius: 50px;
    font-family: "Quicksand", sans-serif;
    font-weight: 700;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: default;
    margin: 0;
    order: 2;
}

.daily-event-banner:hover {
    background-color: var(--action-green-dark);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(var(--action-green-dark-rgb), 0.3);
    transform: translateY(-2px);
}

/* Language Switcher */
.language-circle {
    order: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-bg-light);
    color: var(--primary-text-dark);
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 0 15px;
    text-decoration: none;
}

.language-circle:hover {
    background-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Dropdown Menu */
.navbar .dropdown-menu {
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: var(--bg-loader);
    min-width: 160px;
    overflow: hidden;
}

.navbar .dropdown-item {
    font-family: "Open Sans", sans-serif;
    color: var(--primary-text-dark);
    padding: 8px 20px;
    transition: all 0.2s ease;
    text-align: right;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:active,
.navbar .dropdown-item.active {
    background-color: var(--action-green-dark);
    color: var(--white) !important;
}

/* Search Form */
.header-search-form {
    position: relative;
    margin-left: 0px;
    margin-right: 20px;
    width: 180px;
    order: 3;
}

.header-search-form .form-control {
    padding-right: 35px;
    border-radius: 50px;
}

.header-search-form .search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-text-dark);
}

/* Mobile Styles */
@media (max-width: 991px) {
    .navbar-expand-lg .navbar-collapse {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 0;
    }

    .navbar-nav {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar-nav .nav-item {
        width: 100%;
        margin: 2px 0;
        padding: 0;
        border-bottom: 1px solid var(--border-light);
    }

    .navbar-nav .nav-item::after {
        display: none !important;
    }

    .daily-event-banner {
        width: 100%;
        margin: 8px 0;
        justify-content: center;
    }

    .header-search-form {
        width: 100%;
        margin: 15px 0 0 0;
        max-width: 220px;
    }

    .language-circle {
        margin: 10px 0;
    }
}

/* Desktop Hover Dropdown */
@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }

    .navbar-expand-lg .navbar-nav .dropdown-toggle::after {
        display: none;
    }
}

/* Card and Post Content Styles */
.card-img-overlay {
    /* This rule is now specific to the new slider's text content overlay */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left, rgba(var(--primary-text-dark-rgb), 0.4) 0%, rgba(var(--primary-text-dark-rgb), 0.2) 50%, rgba(var(--primary-text-dark-rgb), 0) 100%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 5%;
    z-index: 1;
}
/* New container for the text content within the overlay */
.slider-content-overlay {
    max-width: 50%;
    color: var(--white);
    text-align: right;
}

.title-border {
    position: relative;
    margin-bottom: 25px;
    padding-bottom: 30px;
}
.title-border::before {
    position: absolute;
    content: "";
    height: 2px;
    width: 100px;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0px;
    border-color: var(--accent-green-light);
    background: var(--accent-green-light);
}
.title-border-lg { position: relative; }
.title-border-lg::before {
    position: absolute;
    content: "";
    height: 2px;
    width: 300px;
    right: -45px;
    left: auto;
    bottom: -50px;
    background: var(--accent-green-light);
}

/* Pagination Styles */
@media (max-width: 575px) {
    .pagination {
        overflow: auto;
        white-space: nowrap;
    }
    .pagination::-webkit-scrollbar {
        width: 0px;
        background: transparent;
    }
}
.pagination .page-item .page-link {
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    border: 1px solid var(--border-light);
    color: var(--primary-text-dark);
    padding: 8px 12px;
    line-height: normal;
    margin: 0 4px;
    border-radius: 5px;
}
.pagination .page-item .page-link:hover {
    color: var(--white);
    background-color: var(--action-green-dark);
    border-color: var(--action-green-dark);
}
.pagination .page-item.active .page-link {
    color: var(--white);
    background-color: var(--action-green-dark);
    border-color: var(--action-green-dark);
    font-weight: 700;
}
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    font-size: 16px;
    padding: 8px 15px;
}

/*
 * =======================================================
 * Complete Color & Style Guide CSS Implementation
 * =======================================================
 *
 * This stylesheet implements the color palette and usage guidelines
 * described in your provided style guide. It uses CSS custom properties
 * (variables) for all colors to ensure easy maintenance and consistency.
 *
 */

/* --------------------
 * Color Palette Variables
 * -------------------- */
:root {
  /* Primary: #F5F5F5 ⚪ - Main backgrounds */
  --color-primary: #F5F5F5;

  /* Secondary: #00B906 🟩 - Main action color */
  --color-secondary: #00B906;

  /* Tertiary: #B9E937 🟢 - Accent, hover, success messages */
  --color-tertiary: #B9E937;

  /* Quaternary: #424242 ⚫ - Primary text and darker elements */
  --color-quaternary: #424242;
}

/* Category Card Styling */
.section .card {
    border: 1px solid rgba(var(--color-quaternary), 0.2) !important;
    box-shadow: 0 4px 8px rgba(var(--color-quaternary), 0.1);
    border-radius: 15px !important;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(var(--color-quaternary), 0.2);
}

.section .card .card-img-top {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

/* News Article Card Styling */
/* Increased specificity for news article styles */
.section#news-articles-section .col-lg-4 article,
.section#news-articles-section .col-sm-6 article {
    border: 1px solid rgba(128, 128, 128, 0.2); /* Fallback gray */
    box-shadow: 0 4px 8px rgba(128, 128, 128, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}
.text-center.mt-5 .btn-primary {
    background-color: #00B906; /* Blue example */
    border-color: #00B906;
}
.text-center.mt-5 .btn-primary:hover {
    background-color:#B9E937;
    border-color: #B9E937;
}
.section#news-articles-section article p.text-uppercase {
    text-align: center !important;
}
/* Specific rule for centering the description paragraph within news articles */
.section#news-articles-section article p.news-description-text {
    text-align: center !important;
}
/* Specific rule for centering the title within news articles */
.section#news-articles-section article h4 {
    text-align: center !important;
}

.section#news-articles-section .col-lg-4 article:hover,
.section#news-articles-section .col-sm-6 article:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(var(--color-quaternary), 0.2);
}
/* Styles for the carousel indicators (dots) */
#news-photos-slider .carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
background-color: color-mix(in srgb, var(--color-quaternary), transparent 30%); 
border: 1px solid color-mix(in srgb, var(--color-quaternary), transparent 25%);
    transition: all 0.3s ease-in-out;
}

#news-photos-slider .carousel-indicators .active {
    background-color: var(--color-quaternary); /* Darker gray for active dot */
    border: 1px solid var(--color-quaternary);
    transform: scale(1.2);
}

#news-photos-slider .carousel-indicators li:hover {
    background-color: rgba(var(--color-quaternary), 0.6);
    cursor: pointer;
}

/* NEW: Styles for the circular container that holds the SVG arrow */
.carousel-control-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(var(--color-quaternary), 0.1);
    border: 1px solid rgba(var(--color-quaternary), 0.25);
    transition: all 0.3s ease-in-out;
}

/* NEW: Styles for the carousel controls (the anchor tags) */
#news-photos-slider .carousel-control-prev,
#news-photos-slider .carousel-control-next {
    /* Position the entire control group */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    
    /* Resetting default Bootstrap styles that might interfere */
    opacity: 1; /* Ensure visibility */
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    line-height: normal; /* Important for flexbox to work */
}

#news-photos-slider .carousel-control-prev {
    left: 10px; /* Align to the left side */
}

#news-photos-slider .carousel-control-next {
    right: 10px; /* Align to the right side */
}

/* NEW: Ensure the SVG is perfectly centered within its container by using flexbox on the parent */
.carousel-control-icon-container svg {
    /* Flexbox on parent already handles centering */
    /* Removed previous styles that might interfere */
    margin: 0;
}
/* --- NEW: Styles for the Latest Posts section --- */
.widget .media {
    /* Ensure vertical alignment of the image and text */
    display: flex;
    align-items: flex-start;
}

.widget .post-thumb-sm {
    /* Add rounded corners and a subtle shadow to the thumbnail container */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(var(--color-quaternary), 0.1);
    overflow: hidden; /* Important to clip the image within the rounded container */
    transition: transform 0.2s ease-in-out;
}

.widget .post-thumb-sm:hover {
    transform: translateY(-2px); /* Lift on hover for a modern effect */
}

.widget .post-thumb-sm img {
    /* Apply rounded corners to the image itself */
    border-radius: 8px;
}

.widget .media-body {
    padding-left: 0; /* Remove left padding */
    padding-right: 1rem; /* Add right padding for spacing in RTL */
}

.widget .media-body h6 a {
    font-weight: 600; /* Make post titles a bit bolder for better hierarchy */
    font-size: 1rem;
    line-height: 1.2;
}

.widget .media-body ul {
    margin-bottom: 0.5rem; /* Reduce bottom margin on the list */
    font-size: 0.85rem;
}

#news-photos-slider .carousel-control-prev:hover .carousel-control-icon-container,
#news-photos-slider .carousel-control-next:hover .carousel-control-icon-container {
    background-color: rgba(var(--color-quaternary), 0.4); /* Darker gray background on hover */
}

.section#news-articles-section .col-lg-4 article img.img-fluid,
.section#news-articles-section .col-sm-6 article img.img-fluid {
    border-top-left-radius: 0; /* Reset LTR top-left */
    border-top-right-radius: 15px; /* Apply rounded to top-right for RTL */
    border-bottom-left-radius: 0; /* Ensure no bottom-left radius */
    border-bottom-right-radius: 0; /* Ensure no bottom-right radius */
}
.img-fluid.rounded-image {
    border-radius: 15px; /* Adjust this value for more/less rounding */
    overflow: hidden;
}
.carousel-inner {
    border-radius: 15px;
    overflow: hidden;
}

.carousel-item img {
    border-radius: 15px;
}
.categories-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.categories-grid-item {
    display: block;
    padding: 10px 15px;
    background: var(--color-tertiary);
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s ease;
    color: var(--color-quaternary);
    text-decoration: none;
    font-weight: 500;
}

.categories-grid-item:hover {
    background: var(--color-tertiary);
    color: var(--color-primary);
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(var(--color-quaternary), 0.1);
}

/* Optional: Add animation to the widget title */
.categories-title {
    position: relative;
    padding-bottom: 8px;
}

.categories-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background: var(--color-secondary);
}
/* Pagination Section Styling */
.pagination-section {
    margin-top: 30px; /* Add some space above pagination */
}

.pagination-section .page-item .page-link {
    border-radius: 8px; /* Rounded corners for buttons */
    margin: 0 5px; /* Space between buttons */
    padding: 10px 15px;
    border: 1px solid rgba(var(--color-quaternary), 0.2);
    color: var(--color-quaternary);
    background-color: var(--color-primary);
    transition: all 0.3s ease;
}

.pagination-section .page-item.disabled .page-link {
    color: rgba(var(--color-quaternary), 0.4); /* Lighter color for disabled */
    background-color: var(--color-primary);
    cursor: not-allowed;
}

.pagination-section .page-item .page-link:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

.pagination-section .page-item.active .page-link {
    border: 1px solid var(--color-secondary); /* Primary blue border */
    color: var(--color-primary); /* Primary blue text */
    background-color: var(--color-secondary);
}

/* Instagram Post (if applicable) */
.instagram-post { position: relative; }
.instagram-post::before {
    position: absolute;
    content: "";
    right: 0; /* Adjusted for RTL */
    left: auto;
    top: 0;
    height: 100%;
    width: 100%;
    background: rgba(var(--color-quaternary), 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}
.instagram-post ul {
    position: absolute;
    right: 0; /* Adjusted for RTL */
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}
.instagram-post ul a {
    transition: all 0.2s ease;
    font-size: 20px;
}
.instagram-post ul a:hover {
    color: var(--color-secondary) !important;
}
.instagram-post:hover::before {
    visibility: visible;
    opacity: 1;
}
.instagram-post:hover ul {
    visibility: visible;
    opacity: 1;
}

/* Hero and Section with Dark Backgrounds */
.hero-section {
    padding: 0;
    background-color: var(--color-quaternary); /* Keep dark background as per original */
    color: var(--color-primary);
    position: relative;
    overflow: hidden;
    height: calc(100vh - 70px); /* Adjusted height to fit visible screen below navbar */
    display: flex; /* Make hero-section a flex container to center the slider if needed */
    align-items: center; /* Vertically center the slider */
    justify-content: center; /* Horizontally center the slider */
}

/* Animated background overlay for hero section */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0; /* Adjusted for RTL */
    left: auto;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--color-secondary), 0.1) 0%, rgba(var(--color-tertiary), 0.1) 50%, rgba(var(--color-secondary), 0.1) 100%); /* Adjusted angle for RTL visual flow */
    background-size: 200% 200%;
    animation: subtleGradientMove 20s ease infinite alternate;
    z-index: 0;
}

@keyframes subtleGradientMove {
    0% { background-position: 100% 0%; } /* Adjusted for RTL */
    100% { background-position: 0% 100%; } /* Adjusted for RTL */
}

.hero-section .section-title, .hero-section h1, .hero-section h2, .hero-section h3, .hero-section h4, .hero-section h5, .hero-section h6,
.hero-section p, .hero-section .text-dark, .hero-section a {
    color: var(--color-primary) !important;
}
.hero-section .btn-transparent {
    color: var(--color-tertiary);
    border-color: var(--color-tertiary);
}
.hero-section .btn-transparent:hover {
    background-color: var(--color-tertiary);
    border-color: var(--color-tertiary);
    color: var(--color-quaternary);
}

/* === NEW SLIDER STYLES (Pure CSS Radio Button Slider) === */

/* The form is the main container for the slider logic */
.hero-section .new-slider-form {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Hide parts of slider-track that are off-screen */
}

/* Input radio buttons (hidden) */
.hero-section .new-slider-form input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    z-index: -1; /* Send to back */
}

/* The track that holds all the slides and moves horizontally */
.hero-section .new-slider-form .slider-track {
    display: flex; /* Arrange slides horizontally */
    height: 100%;
    width: auto; /* This will be dynamically wide based on content */
    transition: transform 400ms ease-out; /* Smooth sliding transition */
    white-space: nowrap; /* Prevent slides from wrapping */
    direction: ltr !important; /* Keep LTR direction for translateX animation */
}

/* Each individual slide */
.hero-section .new-slider-form .slider-slide {
    flex-shrink: 0; /* Prevent slides from shrinking */
    width: 100vw; /* Each slide takes full viewport width */
    height: 100%; /* Each slide takes full height of its parent (.slider-track) */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--color-primary);
    position: relative; /* For content and arrows within slide */
    display: flex; /* To center content inside */
    align-items: center;
    justify-content: flex-end; /* Align content to the right for RTL */
    font-size: 3rem;
    text-align: center;
    line-height: 1;
    cursor: default;
    direction: rtl !important; /* Set direction for content within the slide */
}

/* Dynamic transforms for the slider-track based on checked input */
/* These rules target the .slider-track based on the checked radio button's position */
.hero-section .new-slider-form input#slide-0:checked ~ .slider-track { transform: translateX(0vw); }
.hero-section .new-slider-form input#slide-1:checked ~ .slider-track { transform: translateX(-100vw); }
.hero-section .new-slider-form input#slide-2:checked ~ .slider-track { transform: translateX(-200vw); }
.hero-section .new-slider-form input#slide-3:checked ~ .slider-track { transform: translateX(-300vw); }
/* Add more rules here if you have more than 4 sliders */


/* Navigation Arrows (explicit labels) */
.hero-section .new-slider-form .slider-arrow {
    color: var(--color-primary);
    background: rgba(var(--color-quaternary), 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 60px;
    height: 60px;
    font-size: 2.5rem;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(var(--color-quaternary), 0.3);
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
}

.hero-section .new-slider-form .slider-arrow-prev {
    right: 10px; /* Position closer to the right edge for RTL */
    left: auto;
}

.hero-section .new-slider-form .slider-arrow-next {
    left: 10px; /* Position closer to the left edge for RTL */
    right: auto;
}

/* Hover effects for arrows */
.hero-section .new-slider-form .slider-arrow:hover {
    background: rgba(var(--color-secondary), 0.7);
    box-shadow: 0 6px 20px rgba(var(--color-secondary), 0.5);
    transform: translateY(-50%) scale(1.1);
}


/* Keyboard navigation hint */
.hero-section .keys {
    position: absolute;
    z-index: 10;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    color: var(--color-primary);
    text-align: center;
    transition: all 300ms linear;
    opacity: 0;
}

.hero-section .new-slider-form input:focus ~ .keys {
    opacity: 0.8;
}

/* Responsive adjustments for the new slider */
@media (max-width: 991px) {
    .hero-section {
        height: calc(100vh - 60px);
    }
    .hero-section .new-slider-form .slider-slide {
        height: 100%;
        background-position: center;
        background-size: cover;
    }
    .hero-section .hero-caption {
        max-width: 75%;
        padding: 0;
        margin: 0 auto;
    }
    
    /* RTL specific adjustments */
    html[dir="rtl"] .hero-section .hero-caption {
        text-align: right;
    }
    
    .hero-section .new-slider-form .slider-arrow {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    /* Arrow positioning - works for both LTR and RTL */
    .hero-section .new-slider-form .slider-arrow-prev {
        inset-inline-start: 5px;
        inset-inline-end: auto;
    }
    .hero-section .new-slider-form .slider-arrow-next {
        inset-inline-start: auto;
        inset-inline-end: 5px;
    }
}

@media (max-width: 767px) {
    .hero-section {
        height: calc(100vh - 50px);
    }
    .hero-section .new-slider-form .slider-slide {
        height: 100%;
    }
    .hero-section .new-slider-form .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    /* Mobile-specific RTL fixes */
    html[dir="rtl"] .hero-section {
        direction: rtl;
    }
    html[dir="rtl"] .hero-section .container {
        padding-right: 15px;
        padding-left: 15px;
    }
    html[dir="rtl"] .hero-section .row {
        margin-right: -15px;
        margin-left: -15px;
    }
    html[dir="rtl"] .hero-section [class*="col-"] {
        padding-right: 15px;
        padding-left: 15px;
    }
}

@media (max-width: 767px) {
    .hero-section {
        height: calc(100vh - 50px);
    }
    .hero-section .new-slider-form .slider-slide {
        height: 100%;
    }
    .hero-section .new-slider-form .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}
/* === END NEW SLIDER STYLES === */


/* Section-dark styling for Message Form */
.section-dark {
    padding: 100px 0;
    background: linear-gradient(225deg, var(--quaternary-color) 0%, var(--light-quaternary) 100%);
    box-shadow: inset 0 0 20px rgba(var(--color-quaternary), 0.3);
}

.section-dark .section-title {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 3px 3px 6px rgba(var(--color-quaternary), 0.4);
    margin-bottom: 30px !important;
    color: var(--color-primary) !important;
}

.section-dark p.text-light {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px !important;
}

.section-dark form {
    background-color: rgba(3, 2, 2, 0.1);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(var(--color-primary), 0.2);
}

.section-dark .form-control {
    background-color: linear-gradient(225deg, var(--quaternary-color) 0%, var(--light-quaternary) 100%);
    color: var(--color-primary);
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 1rem;
    text-align: right; /* Ensure form inputs are right-aligned */
}

.section-dark .form-control::placeholder {
    color: rgba(var(--color-primary), 0.7) !important;
    text-align: right; /* Ensure placeholder text is right-aligned */
}


.section-dark textarea.form-control {
    resize: vertical;
}

.section-dark .btn-primary {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-quaternary);
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(var(--color-secondary), 0.4);
    transition: all 0.3s ease;
}

.section-dark .btn-primary:hover {
    background-color: var(--color-tertiary);
    border-color: var(--color-tertiary);
    color: var(--color-quaternary);
    box-shadow: 0 8px 20px rgba(var(--color-tertiary), 0.6);
    transform: translateY(-2px);
}

/* Layout Dividers */
.dividers {
    display: flex;
    align-items: center;
    width: 1200px;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(50%); /* Adjusted for RTL centering */
}
.dividers .divider {
    border-left: 1px solid var(--color-secondary); /* Flipped border for RTL */
    border-right: none; /* Removed LTR border */
    flex-basis: 50%;
    height: 100vh;
    opacity: 0.6;
}
.dividers .divider:first-child {
    border-right: 1px solid var(--color-secondary); /* Flipped border for RTL */
    border-left: none; /* Removed LTR border */
}

/* Article and Image Sizing */
.article-full-width {
    display: flex;
    flex-wrap: nowrap;
}
@media (max-width: 767px) {
    .article-full-width { flex-direction: column; }
}

.article-full-width .post-image {
    margin-left: 20px; /* Adjusted for RTL */
    margin-right: 0;
}
@media (max-width: 767px) {
    .article-full-width .post-image { margin: 0 0 20px 0; }
}
.article-full-width .post-image img {
    height: 400px;
    width: auto;
}
@media (max-width: 767px) {
    .article-full-width .post-image img {
        height: auto;
        width: 100%;
    }
}
.article-full-width .post-content { width: 50%; }
@media (max-width: 767px) {
    .article-full-width .post-content { width: 100%; }
}
.article-full-width .post-content .btn {
    padding-right: 0; /* Original RTL */
    padding-left: 20px; /* Reset LTR padding */
}
.article-full-width .post-meta { width: 250px; }
@media (max-width: 991px) {
    .article-full-width .post-summary { display: none; }
}
@media (max-width: 767px) {
    .article-full-width .post-summary { display: block; }
}
.article-full-width.article-right {
    justify-content: flex-start; /* Flipped for RTL */
}
@media (max-width: 767px) {
    .article-full-width.article-right { flex-direction: column-reverse; }
}
.article-full-width.article-right .post-image {
    order: 2;
    margin: 0 20px 0 0; /* Adjusted for RTL */
}
@media (max-width: 767px) {
    .article-full-width.article-right .post-image { margin: 0 0 20px 0; }
}
.article-full-width.article-right .post-content { order: 1; }
.article-full-width.article-right .post-meta {
    margin-left: auto; /* Adjusted for RTL */
    margin-right: 0;
}
@media (max-width: 767px) {
    .article-full-width.article-right .post-meta { margin-left: 0; }
}
.article-full-width.article-right .author {
    text-align: right; /* Flipped for RTL */
}
@media (max-width: 767px) {
    .article-full-width.article-right .author { text-align: left; }
}

.post-thumb { height: 400px; }

/* News Article Images - Consistent Sizing */
.masonry-container article img.img-fluid {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    margin-bottom: 20px !important;
}

/* Category Images - Consistent Sizing */

/* This wrapper is the positioning context for the arrows */
.category-carousel-wrapper {
    position: relative;
    overflow: visible; /* Important to allow the arrows to be displayed outside the container's bounds */
}

/* Hide the default owl-nav container's positioning to avoid conflicts */
.owl-theme .owl-nav {
    position: static;
    margin-top: 0;
    display: block; /* Ensure it's not hidden */
}

/* Explicitly position the individual prev/next buttons relative to the wrapper */
.owl-theme .owl-nav .owl-prev,
.owl-theme .owl-nav .owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10; /* Make sure they are above the carousel cards */
    background: rgba(var(--color-primary), 0.8) !important;
    border: 1px solid rgba(var(--color-quaternary), 0.25);
    color: var(--color-quaternary) !important;
    font-size: 24px;
    padding: 5px 10px;
    transition: all 0.3s ease;
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
    line-height: 28px;
    text-align: center;
}

/* Position the previous button far to the left */
.owl-theme .owl-nav .owl-prev {
    left: -60px;
}
/* Position the next button far to the right */
.owl-theme .owl-nav .owl-next {
    right: -60px;
}

.owl-theme .owl-nav [class*='owl-']:hover {
    background: var(--color-secondary) !important;
    color: var(--color-primary) !important;
    border-color: var(--color-secondary);
}
.owl-theme .owl-nav .disabled {
    opacity: 0.5;
    cursor: default;
}

/* RTL specific adjustments for button positioning */
[dir="rtl"] .owl-theme .owl-nav .owl-prev {
    left: auto;
    right: -60px; /* Prev button goes to the right */
}
[dir="rtl"] .owl-theme .owl-nav .owl-next {
    right: auto;
    left: -60px; /* Next button goes to the left */
}

/* CSS for uniform card size and content alignment */
.card-fixed-height {
    height: 450px; /* Adjust this value to your desired height */
    display: flex;
    flex-direction: column;
}
.card-fixed-height .card-img-top {
    height: 200px; /* Fixed height for all images */
    object-fit: cover; /* This will crop the image to fit the container without distortion */
}
.card-fixed-height .card-body {
    flex-grow: 1; /* Allows the body to fill the remaining space */
    display: flex;
    flex-direction: column;
}
.card-fixed-height .card-text {
    flex-grow: 1; /* Ensures the description fills the space and pushes the button down */
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Show up to 3 lines of text */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-fixed-height .card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit title to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* NEW: RTL specific alignment for hero caption */
[dir="rtl"] .hero-caption p {
    text-align: right !important;
}

.card .card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
}

blockquote {
    font-style: italic;
    color: var(--color-quaternary);
    background: rgba(var(--color-quaternary), 0.1);
    padding: 20px;
    font-weight: 600;
    border-right: 5px solid var(--color-secondary); /* Flipped border for RTL */
    border-left: none; /* Removed LTR border */
}

.content * { margin-bottom: 20px; }

/* Widget & Sidebar Styles */
.widget { padding: 15px 0; }
.widget:not(:last-child) {
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(var(--color-quaternary), 0.2);
}

.post-thumb-sm {
    max-width: 75px;
    max-height: 75px;
    overflow: hidden;
}

.tag-list li a {
    display: block;
    background: var(--color-secondary);
    padding: 5px 10px;
    color: var(--color-quaternary);
    border-radius: 5px;
}
.tag-list li a:hover {
    color: var(--color-primary);
    background: var(--color-tertiary);
}

/* Footer Styling */
.footer-section {
    background-color: var(--color-quaternary);
    padding: 80px 0 20px;
    color: var(--color-primary);
    font-family: "Open Sans", sans-serif;
}

/* Ensure all footer columns align right on desktop */
.footer-section .col-lg-4,
.footer-section .col-lg-2,
.footer-section .col-lg-3 {
    text-align: right !important; /* Force right alignment for all columns on desktop */
    padding-right: 15px !important;
    padding-left: 15px !important;
}

/* Add overflow: hidden to the block to contain the floated social icons */
.footer-section .block {
    overflow: hidden;
}

.footer-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
    margin-right: 0;
    margin-left: auto;
}

.footer-section h6 {
    color: var(--color-tertiary);
    margin-bottom: 25px;
    font-family: "Quicksand", sans-serif;
    font-weight: 700;
    font-size: 1.1em;
    text-align: right; /* Ensure footer headings are right-aligned */
}

/* Ensure footer paragraphs are right-aligned, but the copyright text will be handled separately below */
.footer-section p {
    font-size: 0.95em;
    line-height: 1.6;
    color: rgba(var(--color-quaternary), 0.7) !important;
    text-align: right;
}

.footer-links li, .footer-contact-info li {
    margin-bottom: 10px;
    text-align: right; /* Ensure list items are right-aligned */
}
/* Specific targeting */
.col-12 .btn-primary {
    background-color: #00B906;
    border-color: #00B906;
}

.col-12 .btn-primary:hover {
    background-color: #B9E937;
    border-color: #B9E937;
}
.footer-links a {
    color: rgba(var(--color-quaternary), 0.7);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

.footer-contact-info .footer-icon {
    color: var(--color-secondary);
    margin-left: 8px;
    margin-right: 0;
}

/* --- REVISED SOCIAL ICONS CSS --- */
    .social-icons-wrapper {
    direction: rtl; /* Force RTL direction */
    text-align: right; /* Align content to the right */
}
.social-icons-list {
    display: flex;
    justify-content: flex-end; /* Align icons to the right */
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 -5px; /* Negative margin to compensate for item padding */
}
.social-icons-list li {
    padding: 0 5px;
    margin: 0;
}
.social-icons-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-secondary);
    color: var(--color-primary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}
.social-icons-list a:hover {
    background-color: var(--color-tertiary);
    border-color: var(--color-tertiary);
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(var(--color-quaternary), 0.2);
}
/* Responsive adjustments */
@media (max-width: 767px) {
    .social-icons-wrapper {
        text-align: center;
        direction: ltr;
    }
    
    .social-icons-list {
        justify-content: center;
    }
}
.social-icons-container {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.social-icons {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
}

.social-icons li {
    margin: 0;
}

.social-icons a {
    color: var(--color-primary);
    font-size: 1.2em;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-secondary);
    transition: all 0.3s ease;
    background-color: transparent;
}

.social-icons a:hover {
    background-color: var(--color-tertiary);
    border-color: var(--color-tertiary);
    color: var(--color-quaternary);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(var(--color-quaternary), 0.2);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .social-icons-container {
        justify-content: center;
    }
    
    .social-icons {
        gap: 8px;
    }
    
    .social-icons a {
        width: 32px;
        height: 32px;
        font-size: 1em;
    }
}
/* --- END OF REVISED SOCIAL ICONS CSS --- */
/*
  Updated CSS Code
  This stylesheet incorporates the new color palette using CSS variables for easy maintenance.
  All original styles and media queries have been preserved, with only color values changed.
*/

/* --- New Color Variables --- */
:root {
  --primary-color: #F5F5F5;      /* Light, neutral background */
  --secondary-color: #00B906;    /* Vibrant action color for buttons */
  --tertiary-color: #B9E937;     /* Energetic accent/hover color */
  --quaternary-color: #424242;   /* Primary text and dark elements */
  --white: #FFFFFF;              /* Explicit white for contrast on dark backgrounds */
  --light-quaternary: #666666;   /* A lighter shade of the quaternary color for shadows/gradients */
  --light-tertiary: rgba(185, 233, 55, 0.2); /* A light, transparent version of the tertiary color */
  --border-color: #E0E0E0;       /* A light gray for borders */
}

/* --- Original User Code with New Colors Applied --- */
.text-light-body { color: var(--quaternary-color) !important; }
.text-accent-light { color: var(--tertiary-color) !important; }
.text-accent-link { color: var(--secondary-color) !important; }
.text-accent-link:hover {
    color: var(--tertiary-color) !important;
    text-decoration: underline;
}

/* This is the definitive change to center the copyright text.
   It targets the paragraph with a highly specific selector. */
.footer-section .copyright p {
    text-align: center !important;
}
.copyright.text-center.pt-5.pb-3 .text-light-body {
    color:var(--secondary-color) !important;
}
.text-accent-link {
    color: #9fc92c !important;
}
/* Using flexbox on the parent container is a good practice for centering */
.copyright {
    display: flex;
    justify-content: center;
}

/* Responsive adjustments for footer */
@media (max-width: 767px) {
    .footer-section .col-lg-4,
    .footer-section .col-lg-2,
    .footer-section .col-lg-3 {
        text-align: center !important;
    }
    .footer-section .block {
        margin-bottom: 30px;
        /* Reset float on mobile */
        overflow: visible;
    }
    .social-icons {
        /* Reset float on mobile and center the content */
        float: none;
        display: flex;
        justify-content: center;
    }
    .footer-logo {
        margin: 0 auto 20px auto;
    }
}

/* Slider Headline, Description, and Button Styles (moved from index-page-code) */
.hero-caption {
    max-width: 700px;
    text-align: right; /* Adjusted for RTL */
    padding-right: 30px; /* Adjusted for RTL */
    padding-left: 0;
    box-sizing: border-box;
}

.hero-caption h1 {
    font-size: 4.5rem;
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 1.5px;
    font-weight: 700;
    transform: translateY(0);
    transition: all 0.3s ease-in-out;
}

.hero-caption h1:hover {
    transform: translateY(-5px);
    text-shadow: 2px 5px 12px rgba(0, 0, 0, 0.7);
}

.hero-caption p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    background-color: rgba(0, 0, 0, 0.4);
    padding: 12px 20px;
    border-radius: 8px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 100%;
    text-align: right; /* Keep right alignment for slider description */
    white-space: normal;
}

.hero-caption .btn.hero-btn {
    background-image: linear-gradient(135deg, var(--secondary-color) 0%, var(--tertiary-color) 100%);
    background-size: 200% auto;
    border: none;
    color: var(--white);
    font-weight: 700;
    padding: 15px 40px;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: all 0.4s ease-in-out;
    text-transform: uppercase;
    cursor: pointer;
}

.hero-caption .btn.hero-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.3);
    background-position: left center; /* Adjusted for RTL */
}

/* Responsive adjustments for the new text/button styles */
@media (max-width: 767px) {
    .hero-caption {
        padding-right: 15px; /* Reduce padding on mobile */
        padding-left: 15px;
        max-width: 100%;
    }
    .hero-caption h1 {
        font-size: 3rem;
        letter-spacing: 1px;
    }
    .hero-caption p {
        font-size: 1rem;
        margin-bottom: 20px;
        padding: 10px 15px;
        max-width: 100%;
    }
    .hero-caption .btn.hero-btn {
        padding: 10px 25px;
    }
}
/* All News */
    .page-title {
        font-size: 3.5rem; /* Larger font for a modern feel */
        font-weight: 700; /* Bold text */
        color: var(--white); /* White text for contrast */
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Subtle text shadow for depth */
        margin: 0;
    }
            /* This is the CSS for the new hero section. You can copy this into your main stylesheet. */
    .page-title-hero-section {
        position: relative;
        background-size: cover;
        background-position: center;
        padding: 100px 0; /* Add some padding for height */
        min-height: 300px; /* Ensure a minimum height for the hero section */
        display: flex;
        align-items: center;
        justify-content: center;
        background-image: url('https://africa-charity-project.org/WP/wp-content/uploads/2017/04/africa-charity-project-header.jpg');
    }
    .image-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent black overlay */
    }
    .page-title-hero-section .container {
        position: relative; /* Ensure the content is above the overlay */
        z-index: 10;
    }
/* NEW: Media query for phone screens (max-width: 768px) */
    @media (max-width: 768px) {
        .page-title-hero-section {
            padding: 60px 0; /* Reduced padding for smaller screens */
            min-height: 250px; /* Adjusted minimum height */
        }
        .page-title {
            font-size: 2.5rem; /* Smaller font size for mobile legibility */
        }
        .hero-caption {
            padding: 0.5rem 1rem; /* Smaller padding on mobile */
        }
    }
        /* --- Custom Sidebar Styling for a Modern Look --- */
        .sidebar-card {
            /* Changed background to transparent */
            background-color: transparent;
            /* Removed padding */
            padding: 0;
            /* Removed border radius and box shadow */
            border-radius: 0;
            box-shadow: none;
            /* Ensure there is no border */
            border: none;
        }
        .sidebar-card h5 {
            font-weight: 700;
            margin-bottom: 1rem;
            color: var(--quaternary-color); /* Darker heading for contrast */
        }
        .sidebar-card .list-group {
            list-style: none; /* Remove default list bullets */
            padding-left: 0;
            margin-bottom: 0;
            /* Added transparent background to the list group */
            background-color: transparent;
            /* Ensure no border is applied to the list group */
            border: none;
        }
        .sidebar-card .list-group-item {
            padding: 10px 10px; /* Adjusted padding to match the Arabic version */
            /* Removed border completely */
            border: none;
            /* Changed transition to only affect background color */
            transition: background-color 0.2s ease;
            /* Added transparent background to the list items */
            background-color: transparent;
        }
        .sidebar-card .list-group-item a {
            display: block;
            /* Changed color to a dark gray to exactly match your image */
            color: var(--quaternary-color);
            text-decoration: none;
            font-weight: 500;
            transition: color 0.2s ease;
        }
        .sidebar-card .list-group-item:last-child {
            border-bottom: none; /* No border on the last item */
        }
        
        .sidebar-card .list-group-item:hover {
            /* Removed transform and light blue background on hover */
            background-color: transparent;
        }
        .sidebar-card .list-group-item a:hover {
            /* The hover color will now be the same as the default text color */
            color: var(--quaternary-color);
        }
        
        /* New class to shorten the horizontal rule and align it to the right */
        .short-hr {
            width: 50%;
            float: right; /* Explicitly align to the right in an RTL layout */
        }
        
        /* Clear the float to prevent layout issues on the next element */
        .clear-fix::after {
            content: "";
            display: table;
            clear: both;
        }
            /* Added styling for the icons */
        .list-group-item a {
            display: flex;
            align-items: center;
        }

        /* Styling for the black dot for categories */
        .category-icon {
            width: 8px;
            height: 8px;
            background-color: var(--quaternary-color);
            border-radius: 50%;
            display: inline-block;
            margin-right: 10px; /* Adjust spacing as needed */
            margin-left: 10px; /* For RTL support */
        }
        [dir="rtl"] .category-icon {
            margin-left: 10px;
            margin-right: 0;
        }

        /* Styling for the Font Awesome icons */
        .static-link-icon {
            width: 16px;
            text-align: center;
            margin-right: 10px; /* Adjust spacing as needed */
        }
        [dir="rtl"] .static-link-icon {
            margin-left: 10px;
            margin-right: 0;
        }
        /* Adjust the blog post layout to accommodate the sidebar */
        /* This media query ensures the sidebar stacks on top of the content on small screens */
        @media (max-width: 991.98px) {
            .sidebar-card {
                margin-top: 2rem;
            }
        }
        .category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.category-name {
    flex: 1;
    min-width: 0; /* Allows text to truncate if needed */
    padding-right: 15px; /* Space between name and badge */
}

.category-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: auto; /* Pushes badge to the right */
}

/* Alternating colors */
.list-group-item:nth-child(odd) .category-badge {
    background-color: var(--tertiary-color); /* Yellow */
    color: var(--quaternary-color);
}

.list-group-item:nth-child(even) .category-badge {
    background-color: var(--secondary-color); /* Red */
    color: var(--white);
}

/* RTL support */
[dir="rtl"] .category-name {
    padding-right: 0;
    padding-left: 15px;
}
/* News All Pagination Styles */
.news-all-pagination-container {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    width: 100%;
}

.news-all-pagination {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    list-style: none;
    justify-content: center;
    margin: 0;
}

.news-all-page-item {
    margin: 0 4px;
}

.news-all-page-link {
    position: relative;
    display: block;
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    color: var(--quaternary-color);
    text-decoration: none;
    background-color: var(--primary-color);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    line-height: normal;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.news-all-page-item:first-child .news-all-page-link,
.news-all-page-item:last-child .news-all-page-link {
    padding: 8px 15px;
}

.news-all-page-link:hover {
    color: var(--white);
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.news-all-page-item.active .news-all-page-link {
    color: var(--white);
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    font-weight: 700;
}

.news-all-page-item.disabled .news-all-page-link {
    color: var(--quaternary-color);
    pointer-events: none;
    background-color: var(--primary-color);
    border-color: var(--border-color);
}

/* Mobile Responsiveness */
@media (max-width: 575px) {
    .news-all-pagination {
        overflow-x: auto;
        white-space: nowrap;
        display: block;
        padding-bottom: 10px;
        text-align: center;
    }
    
    .news-all-page-item {
        display: inline-block;
    }
    
    .news-all-pagination::-webkit-scrollbar {
        width: 0;
        background: transparent;
    }
}
/* Unique Category Hero Section Styles */
.category-hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 140px 0;
    color: var(--white);
    background-color: var(--quaternary-color); /* Fallback color */
}

.category-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.category-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.category-hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
}

/* Unique Breadcrumb Styling */
.category-breadcrumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 0.75rem 1.5rem;
    display: inline-flex;
    margin-bottom: 2rem;
    list-style: none;
}

.category-breadcrumb-item {
    color: rgba(255, 255, 255, 0.8);
}

.category-breadcrumb-item a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-breadcrumb-item a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.category-breadcrumb-item.active {
    color: var(--tertiary-color);
}

.category-breadcrumb-item + .category-breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
    content: "›";
    padding: 0 8px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .category-hero-section {
        padding: 80px 0;
    }
    
    .category-hero-title {
        font-size: 2.2rem;
    }
    
    .category-hero-subtitle {
        font-size: 1rem;
    }
    
    .category-breadcrumb {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .category-hero-title {
        font-size: 1.8rem;
    }
    
    .category-breadcrumb {
        flex-wrap: wrap;
        justify-content: center;
    }
}
    /* Add rounded corners to the about us image */
    .about-us-image {
        border-radius: 20px; /* Adjust this value for more/less rounding */
        overflow: hidden;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Optional: adds subtle shadow */
    }

    /* For the placeholder image too */
    .about-us-image img {
        border-radius: 20px;
        width: 100%;
        height: auto;
        display: block;
    }

    /* Larger font size for content */
    .about-us-content {
        font-size: 1.4rem; /* 17.6px (default is usually 16px) */
        line-height: 1.9; /* Better readability */
    }

    /* Make headings slightly larger too */
    .about-us-content h2,
    .about-us-content h3,
    .about-us-content h4 {
        margin-bottom: 1.5rem;
    }
    /* Responsive rounded corners */
@media (max-width: 768px) {
    .about-us-image {
        border-radius: 15px;
    }
}

/* Smooth hover effect */
.about-us-image img {
    transition: transform 0.3s ease;
}

.about-us-image:hover img {
    transform: scale(1.02); /* Slight zoom on hover */
}

/* Better paragraph spacing */
.about-us-content p {
    margin-bottom: 1.5rem;
}
    /* Make the contact photo rounded */
    .contact-photo {
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        margin-bottom: 2rem !important;
    }
    
    /* Increase font sizes */
    .contact-content {
        font-size: 1.1rem;
        line-height: 1.7;
    }
    
    .contact-content p {
        font-size: 1.15rem;
        margin-bottom: 2rem;
    }
    
    .message-container {
        margin-top: 0 !important;
    }
    .section-title-link {
    color: inherit;
    transition: all 0.3s ease;
    display: inline-block; /* For smooth hover effects */
    }
    .section-title-link:hover {
        color: var(--secondary-color) !important; /* Your theme color */
        transform: translateY(-2px);
    }

    /* QR Code Section */
.qr-code-container {
    background: var(--white);
    border-radius: 12px;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 0 auto;
}

.qr-code-image {
    width: 400px;
    height: 400px;
    object-fit: contain;
    display: block;
}

.qr-header-text {
    margin-top: 25px;
    text-align: center;
    font-size: 1.25rem;
    width: 100%;
}

.qr-header-text .lead {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    text-align: center !important;
}

/* Bank Accounts Section */
.bank-accounts-container {
    max-width: 800px;
    margin: 0 auto;
}

.bank-account-card {
    display: flex;
    align-items: center;
    padding: 20px;
    margin-bottom: 20px;
    background: whitesmoke;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.bank-account-card:hover {
    transform: translateY(-5px);
}

.bank-logo-container {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 30px;
}

[dir="rtl"] .bank-logo-container {
    margin-right: 0;
    margin-left: 30px;
}

.bank-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.bank-details {
    flex: 1;
}

.account-number {
    font-size: 18px;
    margin-top: 10px;
}

/* CTA Section */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    opacity: 0.1;
}

.cta-heading {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background: var(--white);
    color: var(--secondary-color);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cta-button svg {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    color: var(--tertiary-color);
}

.cta-button:hover svg {
    transform: translateX(4px);
}
/* Copy Button Styles */
.copy-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1;
    color: var(--secondary-color);
    background-color: var(--light-tertiary);
    border: 1px solid rgba(185, 233, 55, 0.5);
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 0.75rem;
    overflow: hidden;
}

.copy-btn:hover {
    background-color: rgba(185, 233, 55, 0.5);
    color: var(--secondary-color);
    transform: translateY(-1px);
}

.copy-btn:active {
    transform: translateY(0);
}

.copy-btn .copy-icon,
.copy-btn .check-icon {
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.copy-btn .check-icon {
    color: var(--secondary-color);
}

/* Copied state */
.copy-btn.copied {
    background-color: rgba(185, 233, 55, 0.1);
    border-color: rgba(185, 233, 55, 0.3);
    color: var(--secondary-color);
}

.copy-btn.copied .copy-text {
    display: none;
}

.copy-btn.copied .copied-text {
    display: inline;
}

.copy-btn.copied .copy-icon {
    display: none;
}

.copy-btn.copied .check-icon {
    display: block;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .copy-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}
/* Responsive Styles */
@media (max-width: 768px) {
    .qr-code-image {
        width: 280px;
        height: 280px;
    }
    
    .bank-account-card {
        flex-direction: column;
        text-align: center;
    }
        .bank-details {
        width: 100%; /* Ensures full width for left alignment */
        text-align: center; /* Center account name */
    }
        .bank-details h3 {
        text-align: center; /* Explicitly center account name */
    }
        .account-number {
        display: flex;
        justify-content: flex-start; /* Force left alignment */
        padding-left: 20px; /* Add left padding for better alignment */
        margin-top: 10px;
        width: 100%; /* Ensures full width */
    }
    .bank-logo-container {
        margin-right: 0;
        margin-bottom: 15px;
    }
    [dir="rtl"] .bank-logo-container {
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .qr-code-image {
        width: 250px;
        height: 250px;
    }
    
    .qr-code-container {
        padding: 15px;
    }
}
@media (max-width: 575.98px) {
    .owl-carousel .owl-nav {
        display: none !important;
    }
}
/* Vibrant Donation Section */
.donation-cta {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(225deg, var(--quaternary-color) 0%, var(--light-quaternary) 100%); /* Adjusted angle for RTL visual flow */
    overflow: hidden;
    color: var(--white);
}

.donation-cta__bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.6;
    animation: bg-pan 100s linear infinite;
}

.donation-cta__heading {
    color: rgba(255,255,255,0.9);
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.donation-cta__heading-text {
    position: relative;
    display: inline-block;
}

.donation-cta__heading-text::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--tertiary-color);
    transform: scaleX(0);
    transform-origin: right;
    animation: heading-underline 1.5s ease-in-out forwards;
}

.donation-cta__subheading {
    font-size: 1.2rem;
    text-align: center !important;
    color: rgba(255,255,255,0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Animated Donation Card */
.donation-card-animated {
    background-color: rgba(3, 2, 2, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 3rem 2rem;
    border: 1px solid rgba(255,255,255,0.15);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.donation-card-animated:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.donation-card-animated__sparkles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    background: var(--white);
    border-radius: 50%;
    opacity: 0;
}

.sparkle--1 {
    width: 6px;
    height: 6px;
    top: 20%;
    left: 15%;
    animation: sparkle-fade 3s ease-in-out infinite;
}

.sparkle--2 {
    width: 4px;
    height: 4px;
    top: 60%;
    left: 80%;
    animation: sparkle-fade 4s ease-in-out 0.5s infinite;
}

.sparkle--3 {
    width: 5px;
    height: 5px;
    top: 80%;
    left: 30%;
    animation: sparkle-fade 3.5s ease-in-out 1s infinite;
}

.donation-card-animated__icon {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    display: inline-block;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

.donation-card-animated__title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.donation-card-animated__text {
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.btn--pulse {
    position: relative;
    padding: 1rem 2.5rem;
    font-weight: 600;
    background: linear-gradient(225deg, var(--quaternary-color) 0%, var(--light-quaternary) 100%); /* Adjusted angle for RTL visual flow */
    color: var(--primary-color);
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn--pulse:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    color: var(--primary-color);
}

.btn--pulse::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn--pulse:hover::after {
    transform: translateX(100%);
}

.donation-card-animated__button-arrow {
    display: inline-block;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.btn--pulse:hover .donation-card-animated__button-arrow {
    transform: translateX(5px);
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes sparkle-fade {
    0% { opacity: 0; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-10px); }
    100% { opacity: 0; transform: translateY(-20px); }
}

@keyframes heading-underline {
    0% { transform: scaleX(0); transform-origin: right; }
    50% { transform: scaleX(1); transform-origin: right; }
    51% { transform-origin: left; }
    100% { transform: scaleX(1); transform-origin: left; }
}

@keyframes bg-pan {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}
#comment-submit-btn {
    background-color:#00B906;
    border-color: #00B906;
}

#comment-submit-btn:hover {
    background-color:#B9E937;
    border-color: #B9E937;
    transform: translateY(-1px);
}
section.section.bg-secondary {
    padding-top: 70px;
    padding-bottom: 0;
    background-color: var(--bg-loader);
}

section.section.bg-secondary h4 {
    font-size: 4.5rem;
    font-weight: 600;
}