/*
Theme Name: Custom Block Theme
Theme URI: https://example.com/custom-block-theme
Author: Your Name
Author URI: https://example.com
Description: A modern WordPress block theme with custom design system
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: custom-block-theme
Tags: block-theme, full-site-editing, template-editor, style-variations

Custom Block Theme is a modern WordPress block theme that follows the latest
WordPress full site editing standards with a custom color palette and design system.
*/

/* Base styles with custom color palette */
:root {
    --bg: #ffffff;
    --card: #f8fafc;
    --primary: #008148;
    --primary-glow: rgba(0, 129, 72, 0.1);
    --cyan: #00ccff;
    --gold: #e2e600;
    --text-high: #0f172a;
    --text-low: #64748b;
    --border: #e2e8f0;
    --wp--preset--color--primary: #008148;
    --wp--preset--color--secondary: #00ccff;
    --wp--preset--color--success: #008148;
    --wp--preset--color--danger: #E74C3C;
    --wp--preset--color--warning: #e2e600;
    --wp--preset--color--background: #ffffff;
    --wp--preset--color--card: #f8fafc;
    --wp--preset--color--border: #e2e8f0;
}

body {
    background-color: var(--bg);
    color: var(--text-high);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

/* WordPress Structure */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.site-main {
    min-height: 60vh;
}

/* Front page: no padding — let Elementor sections go edge-to-edge */
.front-page-main {
    padding: 0;
    margin: 0;
}

/* Ensure header and footer are visible on front page */
.front-page-main .site-header,
.front-page .site-header {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 9999 !important;
}

.front-page-main .site-footer,
.front-page .site-footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Prevent Elementor from hiding header/footer */
.elementor-page .site-header,
.elementor-page .site-footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Fix desktop layout issues on front page */
@media (min-width: 769px) {
    /* Ensure proper spacing on desktop */
    body.visitor-view .elementor-section {
        padding: 0 !important;
    }

    body.visitor-view .elementor-section.elementor-section-boxed {
        padding: 0 20px !important;
    }
}

/* Handle admin bar offset for logged-in users */
.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* Header Styles — Sticky Glassmorphism */
.site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 129, 72, 0.12);
    padding: 0.85rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 30px rgba(0, 129, 72, 0.15);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Language Switcher Styles - Enhanced */
.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.5rem 0.9rem;
    border-radius: 10px;
    border: 2px solid var(--border);
    background: var(--card);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-low);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
}

.lang-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 129, 72, 0.15);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 129, 72, 0.25);
}

.lang-btn.active:hover {
    color: white;
    transform: translateY(-2px);
}

/* Logo - Enhanced */
.branding-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-logo {
    height: 65px;
    width: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(0, 129, 72, 0.1));
}

.site-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(0, 129, 72, 0.2));
}

.site-title-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Arabic font support */
body:lang(ar),
[dir="rtl"] body,
.rtl body,
.elementor *:lang(ar) {
    font-family: 'Tajawal', 'Outfit', sans-serif;
}

/* English font support */
body:lang(en),
[dir="ltr"] body,
.ltr body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Arabic Navigation Font */
[dir="rtl"] .main-navigation ul li a,
[dir="rtl"] .lang-btn,
[dir="rtl"] .site-title-text,
.rtl .main-navigation ul li a,
.rtl .lang-btn,
.rtl .site-title-text {
    font-family: 'Tajawal', 'Outfit', sans-serif;
}

/* Arabic Font Weight Adjustments */
[dir="rtl"] .main-navigation ul li a,
.rtl .main-navigation ul li a {
    font-weight: 700;
}

[dir="rtl"] .lang-btn,
.rtl .lang-btn {
    font-weight: 700;
}

/* Arabic Line Height */
[dir="rtl"] .main-navigation ul li a,
.rtl .main-navigation ul li a {
    line-height: 1.6;
}

/* Navigation - Enhanced Modern Design */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-navigation ul li {
    position: relative;
}

.main-navigation ul li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-high);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.main-navigation ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    z-index: -1;
}

.main-navigation ul li a:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 129, 72, 0.25);
}

.main-navigation ul li a:hover::before {
    opacity: 1;
}

.main-navigation ul li a:active {
    transform: translateY(0);
}

/* Dropdown Menu Styles */
.main-navigation ul li.menu-item-has-children {
    position: relative;
}

.main-navigation ul li.menu-item-has-children > a {
    padding-right: 2.5rem;
}

.main-navigation ul li.menu-item-has-children > a::after {
    content: '▼';
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.5rem;
    transition: all 0.3s ease;
    pointer-events: none;
}

.main-navigation ul li.menu-item-has-children:hover > a::after {
    transform: translateY(-50%) rotate(180deg);
}

.main-navigation ul li.menu-item-has-children:hover > a::before {
    opacity: 1;
}

.main-navigation ul li.menu-item-has-children:hover > a {
    color: white;
}

.main-navigation ul ul {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    padding: 0.3rem 0;
    z-index: 1000;
    list-style: none;
    margin: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.main-navigation ul ul.show {
    display: block;
    animation: fadeInDown 0.4s ease-out;
}

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

.main-navigation ul ul li a {
    width: 100%;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin: 0.1rem 0.3rem;
    font-size: 0.9rem;
    display: block;
    position: relative;
    transition: all 0.3s ease;
}

.main-navigation ul ul li a::before {
    border-radius: 6px;
}

.main-navigation ul ul li a:hover {
    transform: translateX(3px);
    background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
    color: white;
}

.main-navigation ul ul li a:hover::before {
    opacity: 0;
}

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

/* RTL Support for Navigation */
[dir="rtl"] .main-navigation ul,
.rtl .main-navigation ul {
    flex-direction: row;
}

[dir="rtl"] .main-navigation ul li a,
.rtl .main-navigation ul li a {
    letter-spacing: 0;
}

[dir="rtl"] .main-navigation ul li a::before,
.rtl .main-navigation ul li a::before {
    background: linear-gradient(225deg, var(--primary) 0%, var(--cyan) 100%);
}

/* RTL Support for Dropdown Menus */
[dir="rtl"] .main-navigation ul li.menu-item-has-children > a,
.rtl .main-navigation ul li.menu-item-has-children > a {
    padding-right: 1rem;
    padding-left: 2.5rem;
}

[dir="rtl"] .main-navigation ul li.menu-item-has-children > a::after,
.rtl .main-navigation ul li.menu-item-has-children > a::after {
    right: auto;
    left: 0.8rem;
}

[dir="rtl"] .main-navigation ul li.menu-item-has-children:hover > a::after,
.rtl .main-navigation ul li.menu-item-has-children:hover > a::after {
    transform: translateY(-50%) rotate(180deg);
}

[dir="rtl"] .main-navigation ul ul,
.rtl .main-navigation ul ul {
    left: auto;
    right: 0;
}

[dir="rtl"] .main-navigation ul ul li a:hover,
.rtl .main-navigation ul ul li a:hover {
    transform: translateX(-5px);
}

/* RTL Support for Header */
[dir="rtl"] .header-content,
.rtl .header-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .header-right,
.rtl .header-right {
    flex-direction: row-reverse;
}

/* RTL Support for Language Switcher */
[dir="rtl"] .language-switcher,
.rtl .language-switcher {
    flex-direction: row-reverse;
}

/* RTL Support for Logo */
[dir="rtl"] .site-title-text,
.rtl .site-title-text {
    letter-spacing: 0;
}

/* RTL Support for Hamburger Button */
[dir="rtl"] .menu-toggle,
.rtl .menu-toggle {
    order: -1;
}

/* RTL Support for Mobile Menu */
[dir="rtl"] .main-navigation,
.rtl .main-navigation {
    right: 0;
    left: auto;
}

[dir="rtl"] .main-navigation ul,
.rtl .main-navigation ul {
    padding: 0 1rem;
}

[dir="rtl"] .main-navigation ul li a,
.rtl .main-navigation ul li a {
    justify-content: center;
}

/* RTL Support for Menu Toggle Animation */
[dir="rtl"] .menu-open .hamburger-line:nth-child(1),
.rtl .menu-open .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(-45deg);
}

[dir="rtl"] .menu-open .hamburger-line:nth-child(3),
.rtl .menu-open .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(45deg);
}

[dir="rtl"] .menu-open .hamburger-line:nth-child(2),
.rtl .menu-open .hamburger-line:nth-child(2) {
    transform: translateX(10px);
}

/* Hamburger button - Enhanced */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
    border: none;
    padding: 0.6rem 0.8rem;
    border-radius: 12px;
    cursor: pointer;
    width: 48px;
    height: 48px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 129, 72, 0.2);
}

.menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 129, 72, 0.3);
}

.menu-toggle:active {
    transform: scale(0.95);
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2.5px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-open .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}
.menu-open .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Post Styles */
.posts-grid {
    display: grid;
    gap: 2rem;
}

.post-item {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 1.75rem;
    margin-bottom: 0;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
}

.entry-title {
    color: var(--text-high);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

.entry-title a {
    color: inherit;
    text-decoration: none;
}

.entry-title a:hover {
    color: var(--primary);
}

.entry-meta {
    color: var(--text-low);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.post-thumbnail {
    margin-bottom: 1.5rem;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.entry-content {
    color: var(--text-high);
    line-height: 1.7;
}

.entry-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* Footer Styles */
.site-footer {
    background: linear-gradient(135deg, #005c33 0%, #008148 60%, #00a35a 100%);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 0;
    position: relative;
    z-index: 10;
}

/* Hide duplicate Elementor nav & copyright that conflict with the theme header/footer */
/* Old Elementor nav menu inside page content */
/* Commented out - may be causing layout issues on desktop
.front-page-main .elementor-element-fc426ed,
.front-page-main .eael-simple-menu-container,
.front-page-main [data-id="fc426ed"],
.front-page-main [data-id="67afbcf"],
.front-page-main [data-id="88af6b8"] {
    display: none !important;
}
*/

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

.footer-section h3,
.footer-section h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-section p {
    opacity: 0.9;
    line-height: 1.6;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-menu a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-menu a:hover {
    opacity: 1;
}

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

.footer-bottom a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
    opacity: 1;
}

.footer-bottom a:hover {
    text-decoration: none;
    opacity: 0.9;
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-links a {
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
}

/* Responsive typography */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .header-content {
        flex-direction: row;
        gap: 1rem;
    }

    .menu-toggle {
        display: flex;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        z-index: 9998;
    }

    .main-navigation.active {
        display: block;
        animation: slideDown 0.3s ease-out;
    }

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

    .main-navigation ul li a {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* RTL Mobile Support */
    [dir="rtl"] .header-content,
    .rtl .header-content {
        flex-direction: row-reverse;
    }

    [dir="rtl"] .main-navigation,
    .rtl .main-navigation {
        right: 0;
        left: auto;
    }

    [dir="rtl"] .main-navigation ul,
    .rtl .main-navigation ul {
        padding: 0 1rem;
    }

    [dir="rtl"] .main-navigation ul li a,
    .rtl .main-navigation ul li a {
        justify-content: center;
    }

    /* Mobile Dropdown Support */
    .main-navigation ul ul {
        position: static;
        box-shadow: none;
        border: none;
        background: rgba(0, 129, 72, 0.05);
        border-radius: 8px;
        margin: 0.5rem 0;
        padding: 0.5rem 0;
        display: none;
    }

    .main-navigation ul ul.active {
        display: block;
    }

    .main-navigation ul li.menu-item-has-children > a {
        padding-right: 1rem;
        padding-left: 2rem;
    }

    .main-navigation ul li.menu-item-has-children > a::after {
        right: auto;
        left: 0.8rem;
    }

    .main-navigation ul ul li a {
        padding: 0.6rem 1.5rem;
        margin: 0;
        border-radius: 0;
    }

    .main-navigation ul ul li a:hover {
        transform: none;
    }

    /* RTL Mobile Dropdown Support */
    [dir="rtl"] .main-navigation ul li.menu-item-has-children > a,
    .rtl .main-navigation ul li.menu-item-has-children > a {
        padding-right: 2rem;
        padding-left: 1rem;
    }

    [dir="rtl"] .main-navigation ul li.menu-item-has-children > a::after,
    .rtl .main-navigation ul li.menu-item-has-children > a::after {
        right: 0.8rem;
        left: auto;
    }
}

@media (min-width: 769px) {
    body {
        font-size: 18px;
    }
}

/* Card styles */
.wp-block-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
}

/* Button styles */
.wp-block-button__link {
    background-color: var(--primary);
    color: white;
    border: 2px solid var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 800;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px var(--primary-glow);
}

.wp-block-button__link:hover {
    background-color: transparent;
    color: var(--primary);
}

.wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent;
    color: var(--primary);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: var(--primary);
    color: white;
}

/* Alert styles */
.alert-success {
    background-color: var(--primary);
    color: white;
    padding: 1rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.alert-danger {
    background-color: var(--wp--preset--color--danger);
    color: white;
    padding: 1rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.alert-warning {
    background-color: var(--gold);
    color: var(--text-high);
    padding: 1rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 2rem;
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    font-family: 'Outfit', sans-serif;
    animation: slideUp 0.8s ease-out;
}

.slide-subtitle {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0.95;
    font-family: 'Outfit', sans-serif;
    animation: slideUp 0.8s ease-out 0.2s backwards;
}

.slide-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: slideUp 0.8s ease-out 0.4s backwards;
}

.slide-button {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.8s ease-out 0.6s backwards;
}

.slide-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: var(--primary);
    color: white;
}

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

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: white;
    color: var(--primary);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 0.5rem;
}

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

.slider-dot.active {
    background: white;
    transform: scale(1.3);
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Responsive Slider */
@media (max-width: 768px) {
    .hero-slider {
        height: 500px;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-subtitle {
        font-size: 1.5rem;
    }
    
    .slide-description {
        font-size: 1rem;
    }
    
    .slider-controls {
        bottom: 20px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
    }
}

/* Read More Button */
.read-more-btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.read-more-btn:hover {
    background: var(--cyan);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 204, 255, 0.3);
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 3rem;
    background: var(--card);
    border-radius: 28px;
    border: 1px solid var(--border);
}

.no-posts p {
    color: var(--text-low);
    font-size: 1.1rem;
}

/* Advanced Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Elementor Integration — prevent conflicts with theme */
.front-page-main .elementor {
    width: 100%;
    max-width: 100%;
}

/* Ensure Elementor full-width sections truly go full width */
.front-page-main .elementor-section.elementor-section-full_width,
.front-page-main .e-con-full {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Fix Elementor container boxed sections */
.front-page-main .e-con-boxed > .e-con-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* Ensure images and media in Elementor are responsive */
.front-page-main img {
    max-width: 100%;
    height: auto;
}

/* Navigation active state - Enhanced */
.main-navigation .current-menu-item > a,
.main-navigation .current-page-ancestor > a {
    color: white;
    background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
    box-shadow: 0 4px 15px rgba(0, 129, 72, 0.25);
    font-weight: 700;
}

.main-navigation .current-menu-item > a::before,
.main-navigation .current-page-ancestor > a::before {
    opacity: 1;
}

/* Premium footer enhancements */
.footer-section h3 {
    font-size: 1.2rem;
    color: white;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    padding-bottom: 0.5rem;
    margin-bottom: 1.2rem;
}

.footer-section h4 {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 0.4rem;
    margin-bottom: 1rem;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.8;
}

/* Social Media Icons - Enhanced */
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.social-btn svg {
    width: 24px;
    height: 24px;
    fill: white;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: white;
    border-color: white;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.social-btn:hover svg {
    fill: var(--primary);
}

.social-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Footer Contact List - Enhanced */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.contact-icon {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.footer-contact-list a {
    color: white;
    text-decoration: none;
    opacity: 0.95;
    transition: all 0.3s ease;
    word-break: break-word;
}

.footer-contact-list a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-contact-list small {
    display: block;
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

/* Logo hover effect */
.site-logo {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Mobile improvements */
@media (max-width: 768px) {
    .front-page-main .elementor-section,
    .front-page-main .e-con {
        max-width: 100% !important;
    }
}

/* RTL Support */
[dir="rtl"] .slide-button:hover,
.rtl .slide-button:hover {
    transform: translateY(-3px);
}

[dir="rtl"] .read-more-btn:hover,
.rtl .read-more-btn:hover {
    transform: translateY(-2px);
}

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

[dir="ltr"] .slide-content,
.ltr .slide-content {
    text-align: left;
}

[dir="rtl"] .slider-controls,
.rtl .slider-controls {
    right: 50%;
    left: auto;
    transform: translateX(50%);
}

[dir="ltr"] .slider-controls,
.ltr .slider-controls {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

/* RTL Support for Navigation Active State */
[dir="rtl"] .main-navigation .current-menu-item > a,
[dir="rtl"] .main-navigation .current-page-ancestor > a,
.rtl .main-navigation .current-menu-item > a,
.rtl .main-navigation .current-page-ancestor > a {
    background: linear-gradient(225deg, var(--primary) 0%, var(--cyan) 100%);
}

/* RTL Support for Language Switcher Buttons */
[dir="rtl"] .lang-btn,
.rtl .lang-btn {
    letter-spacing: 0;
}

/* RTL Support for Header Scroll Effect */
[dir="rtl"] .site-header,
.rtl .site-header {
    border-bottom: 1px solid rgba(0, 129, 72, 0.12);
}

/* RTL Support for Container */
[dir="rtl"] .container,
.rtl .container {
    text-align: right;
}

/* RTL Support for Footer */
[dir="rtl"] .footer-content,
.rtl .footer-content {
    text-align: right;
}

[dir="rtl"] .footer-bottom,
.rtl .footer-bottom {
    text-align: center;
}

@media (max-width: 768px) {
    [dir="rtl"] .footer-content,
    .rtl .footer-content {
        text-align: center;
    }
}

/* Improved Grid Layout */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Hover Effects */
.post-item {
    transition: all 0.3s ease;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

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

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Mobile menu animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Gallery Page Styles - Enforced Visual Identity
   ======================================== */

.gallery-page {
    padding: 2rem 0;
    min-height: 70vh;
}

.gallery-wrapper {
    background: white;
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
}

.gallery-item {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
    box-shadow: none;
}

.gallery-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
    text-align: center;
    margin-bottom: 0;
    padding: 3rem 2rem;
    border-bottom: none;
}

.gallery-title {
    font-family: 'Outfit', 'Tajawal', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.gallery-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.gallery-content {
    color: var(--text-high);
    line-height: 1.6;
    padding: 2rem;
}

/* WordPress Gallery Styles - Clean & Simple */
.gallery-page .gallery,
.gallery-page .wp-block-gallery,
.gallery-page .gallery-item .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-page .gallery-item,
.gallery-page .blocks-gallery-item {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: none;
}

.gallery-page .gallery-item img,
.gallery-page .blocks-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    transition: none;
}

.gallery-page .gallery-caption,
.gallery-page .blocks-gallery-item figcaption {
    background: var(--card);
    color: var(--text-high);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    margin: 0;
    border-radius: 0 0 8px 8px;
    border-top: 1px solid var(--border);
}

/* Elementor Gallery Styles - Card Style */
.gallery-page .elementor-gallery-item,
.elementor-gallery .elementor-gallery-item {
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    transition: box-shadow 0.2s ease !important;
    border: 1px solid var(--border) !important;
    background: white !important;
}

.gallery-page .elementor-gallery-item:hover,
.elementor-gallery .elementor-gallery-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
}

.gallery-page .elementor-gallery-item__overlay,
.elementor-gallery .elementor-gallery-item__overlay {
    display: none !important;
}

.gallery-page .elementor-gallery-item__title,
.elementor-gallery .elementor-gallery-item__title {
    font-family: 'Outfit', 'Tajawal', sans-serif !important;
    font-weight: 600 !important;
    color: var(--text-high) !important;
    background: var(--card) !important;
    padding: 0.75rem 1rem !important;
    border-top: 1px solid var(--border) !important;
}

/* Image Styles - Simple */
.gallery-page img {
    border-radius: 0;
    transition: none;
}

.gallery-page img:hover {
    transform: none;
    box-shadow: none;
}

/* Button Styles - Clean */
.gallery-page .wp-block-button__link,
.gallery-page a.button,
.gallery-page .elementor-button {
    background: var(--primary) !important;
    color: white !important;
    border: none !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-family: 'Outfit', 'Tajawal', sans-serif !important;
    box-shadow: none !important;
    transition: background 0.2s ease !important;
}

.gallery-page .wp-block-button__link:hover,
.gallery-page a.button:hover,
.gallery-page .elementor-button:hover {
    background: var(--cyan) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Heading Styles */
.gallery-page h1,
.gallery-page h2,
.gallery-page h3,
.gallery-page h4,
.gallery-page h5,
.gallery-page h6 {
    font-family: 'Outfit', 'Tajawal', sans-serif !important;
    color: var(--text-high) !important;
    font-weight: 600 !important;
}

.gallery-page h1,
.gallery-page h2 {
    color: var(--primary) !important;
}

/* Link Styles */
.gallery-page a {
    color: var(--primary) !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.gallery-page a:hover {
    color: var(--cyan) !important;
}

/* Gallery Footer */
.gallery-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.gallery-footer .edit-link {
    font-size: 0.875rem;
    color: var(--text-low);
}

.gallery-footer .edit-link a {
    color: var(--primary);
    font-weight: 500;
}

/* RTL Support for Gallery */
[dir="rtl"] .gallery-title,
.rtl .gallery-title {
    letter-spacing: 0;
}

[dir="rtl"] .gallery-description,
.rtl .gallery-description {
    direction: rtl;
}

[dir="rtl"] .gallery-caption,
.rtl .gallery-caption {
    direction: rtl;
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-page {
        padding: 1rem 0;
    }

    .gallery-wrapper {
        padding: 0;
    }

    .gallery-title {
        font-size: 1.5rem;
    }

    .gallery-description {
        font-size: 0.95rem;
    }

    .gallery-page .gallery,
    .gallery-page .wp-block-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
}
