@import "../../fonts/Cairo/stylesheet.css";

@import "../../fonts/transfonter/stylesheet.css";



* {
    font-family: Cairo,sans-serif;
}

/* ==========================================
   مركز الثقافة الأسرية - Main Stylesheet
   ========================================== */

/* ==================== CSS VARIABLES ==================== */
:root {
    /* Brand Colors */
    --primary-green: #2E7D32;
    --secondary-green: #43A047;
    --light-green: #66BB6A;
    --family-red: #C62828;

    /* Neutral Colors */
    --neutral-dark: #424242;
    --neutral-gray: #757575;
    --neutral-light: #F5F5F5;
    --white: #FFFFFF;
    --black: #000000;
    --bg-color: #ffffff;
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-blur: blur(12px);
    --glass-border: rgba(255, 255, 255, 0.3);

    /* Typography */
    --font-family: 'Tajawal', sans-serif;

    /* Transitions */
    --transition-fast: 200ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
    --slider-easing: cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-cta: 0 4px 15px rgba(46, 125, 50, 0.3);


    --gold: #F5A623;
    --gold-light: #FFD166;
    --gold-dark: #C8861A;
    --deep: #0B0F1A;
    --surface: #111827;
    --surface2: #1A2235;
    --accent: #E63946;
    --text: #F0F4FF;
    --muted: #8A9BB5;
    --border: rgba(245, 166, 35, 0.2);


}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    direction: rtl;
    text-align: right;
    background-color: var(--bg-color);
    color: var(--neutral-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Islamic Pattern Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../images/tile-48131-tesselated (1).svg');
    background-size: 370px;
    background-repeat: repeat;
    filter: grayscale(100%);
    opacity: 0.12;
    pointer-events: none;
    z-index: -1;
}

a {
    text-decoration: none;
    color: inherit;
}

ul,
li {
    list-style: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

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

/* ==================== HEADER ==================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    /*height: 100px;*/
    z-index: 1000;
    transition: var(--transition-normal);
}

.site-header.scrolled {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ===== Header Top (Logo Bar) ===== */
.header-top {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid #e3e3e35c;
    width: 100%;
    box-shadow: 0 -2px 0 0 #b7b4b4c4;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 10px;
    transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


.logo-left img {
    max-height: 100px;
    width: auto;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-right img{
    max-height: 95px;
    width: auto;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);

}

.center-logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.logo-text-top {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: -2px;
    transition: font-size 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.line-header {
    width: 33%;
    /* margin: 1px auto 0; */
    height: 1.2px;
    background-color: var(--primary-green);
}


.logo-text-bottom {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: font-size 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.center-logo {
    max-height: 80px;
    width: auto;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Header Scrolled State ===== */
.site-header.scrolled .header-container {
    padding: 8px;
}

.site-header.scrolled .center-logo {
    max-height: 60px;
}

.site-header.scrolled .logo-text-top {
    font-size: 12px;
}

.site-header.scrolled .logo-text-bottom {
    font-size: 9px;
}

.site-header.scrolled .logo-right img,
.site-header.scrolled .logo-left img {
    max-height: 72px;
}

.site-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
}

/* ===== Main Navigation ===== */
.main-nav {
    justify-content: center;
}

.nav-container {
    padding: 8px 30px;
    box-shadow: var(--shadow-md);
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(1px);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--neutral-dark);
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary-green);
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform var(--transition-fast);
}

.nav-item:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Underline Animation */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== Dropdown Menu ===== */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 15px;
    padding: 15px 0;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    z-index: 100;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--neutral-dark);
    transition: all var(--transition-fast);
}

.dropdown-menu li a:hover {
    background: rgba(46, 125, 50, 0.1);
    color: var(--primary-green);
    padding-right: 25px;
}

/* ===== CTA Link ===== */
.nav-cta .cta-link {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: var(--shadow-cta);
    transition: all var(--transition-normal);
}

.nav-cta .cta-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.nav-cta .cta-link::after {
    display: none;
}

/* ===== Mobile Menu Toggle ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--neutral-dark);
    border-radius: 3px;
    transition: all var(--transition-normal);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    position: relative;
    background-color: #fdfbf7 !important;
    width: 100%;
    height: calc(100vh - 30px);
    overflow: hidden;
    clip-path: polygon(0 0,
    100% 0,
    100% 85%,
    50% 108%,
    0 85%);
}

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

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 800ms var(--slider-easing), visibility 800ms var(--slider-easing);
    will-change: opacity;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

/* Slide Overlay */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.4) 100%);
}

/* ===== Hero Content Box ===== */
.hero-content-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: 700px;
    width: 40%;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.slide-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 600ms ease forwards;
    animation-delay: 200ms;
}

.slide-description {
    font-size: 20px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 600ms ease forwards;
    animation-delay: 400ms;
}

.cta-button {
    display: inline-block;
    padding: 14px 35px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
    font-size: 16px;
    font-weight: 500;
    border-radius: 30px;
    box-shadow: var(--shadow-cta);
    transition: all var(--transition-normal);
    opacity: 0;
    transform: scale(0.9);
    animation: scaleIn 500ms ease forwards;
    animation-delay: 600ms;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

/* Hide animations on non-active slides */
.hero-slide:not(.active) .slide-title,
.hero-slide:not(.active) .slide-description,
.hero-slide:not(.active) .cta-button {
    animation: none;
    opacity: 0;
}

/* Trigger animations when slide becomes active */
.hero-slide.active .slide-title,
.hero-slide.active .slide-description,
.hero-slide.active .cta-button {
    animation-play-state: running;
}

/* ===== Slider Navigation Arrows ===== */
.slider-nav {
    position: absolute;
    left: calc(50% - 100px);
    bottom: 0;
    transform: translateY(-50%);
    display: flex;
    gap: 100px;
    z-index: 10;
}

.slider-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.slider-arrow:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}



.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.indicator:hover {
    border-color: var(--white);
}

.indicator.active {
    background: var(--white);
    border-color: var(--white);
    transform: scale(1.2);
}

/* ==================== QUOTE SECTION ==================== */
.quote-section {
    padding: 35px 20px;
    text-align: center;
    direction: rtl;
    position: relative;
}

/* Quote Frame */
.quote-frame {
    max-width: 1000px;
    margin: 0 auto;
    background-image: url('../../images/frame.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    padding: 50px 80px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Quote Content */
.quote-content {
    margin: 0 20px;
    padding: 0;
}

.quote-text {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.quote-source {
    display: block;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    color: #2d6a4f;
    font-style: normal;
    letter-spacing: 1px;
}

/* ==================== DEPARTMENTS SECTION ==================== */
.departments-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F9FA 100%);
    overflow: hidden;
}

.departments-section .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Section Header ===== */
.section-header {
    text-align: center;
    margin-bottom: 70px;
}


.section-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: #666666;
    max-width: 600px;
    margin: 0 auto 25px;
    line-height: 1.8;
}

.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-green), transparent);
}

.title-decoration .icon {
    font-size: 20px;
}

/* ===== Cards Grid ===== */
.departments-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* ===== Department Card ===== */
.department-card {
    background: var(--white);
    border-radius: 20px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition:
        opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    z-index: 1;
}

/* Background Pattern on Hover */
.department-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/tile-48131-tesselated (1).svg');
    background-size: 300px;
    background-repeat: repeat;
    filter: grayscale(100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    pointer-events: none;
}

.department-card:hover::before {
    opacity: 0.1;
}

.department-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);

}

/* Reveal Directions - Initial States */
.department-card[data-reveal="right"] {
    transform: translateX(100px);
}

.department-card[data-reveal="left"] {
    transform: translateX(-100px);
}

.department-card[data-reveal="bottom"] {
    transform: translateY(80px);
}

/* Revealed State */
.department-card.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* Card Hover Effect */
.department-card.revealed:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
}

/* ===== Card Icon ===== */
.card-icon {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    background-color: #f0fdf4;
}

.card-icon i {
    font-size: 30px;
    color: var(--primary-green);
    transition: all 0.4s ease;
}

.department-card:hover .card-icon i {
    color: var(--white);
}




.department-card:hover .card-icon {
    transform: scale(1.1);
    background-color: var(--primary-green);
    color: var(--white);
}

/* ===== Card Content ===== */
.department-card .card-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.department-card .card-description {
    font-size: 15px;
    font-weight: 400;
    color: #666666;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* ===== Card Button ===== */
.card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: transparent;
    color: var(--primary-green);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border: 2px solid var(--primary-green);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.card-btn:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateX(-5px);
}

.card-btn i {
    transition: transform 0.3s ease;
}

.card-btn:hover i {
    transform: translateX(-5px);
}

/* ==================== STATS SECTION ==================== */
.stats-section {
    background-image: url('../../images/210026.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

/* Dark Overlay with Gradient */
.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
    rgba(27, 67, 50, 0.85) 0%,
    rgba(45, 106, 79, 0.80) 50%,
    rgba(27, 67, 50, 0.85) 100%);
    pointer-events: none;
}

/* Decorative Light Spots */
.stats-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 35px 30px;
    text-align: center;
    min-width: 220px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    transform: translateY(30px);
}

.glass-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Stat Icon */
.stat-icon {
    margin-bottom: 20px;
}

.stat-icon i {
    font-size: 48px;
    color: #d4af37;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
    transition: transform 0.3s ease;
}

.glass-card:hover .stat-icon i {
    transform: scale(1.1);
}

/* Stat Number */
.stat-number {
    font-family: 'Tajawal', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    display: inline-block;
}

.stat-suffix {
    font-family: 'Tajawal', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #d4af37;
    display: inline-block;
    margin-right: 2px;
}

/* Stat Label */
.stat-label {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 12px;
    line-height: 1.5;
}

/* ==================== PROBLEMS & SOLUTIONS SECTION ==================== */
.problems-solutions-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Pattern Background */
.problems-solutions-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/tile-48131-tesselated (1).svg');
    background-size: 300px;
    background-repeat: repeat;
    filter: grayscale(100%);
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

/* White Gradient Overlay */
.problems-solutions-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.4) 50%,
    #ffffff 100%);
    z-index: 0;
    pointer-events: none;
}

.problems-solutions-section .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Filter Tags */
.filter-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-tag {
    padding: 10px 24px;
    border-radius: 25px;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
}

.filter-tag[data-category="all"] {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.filter-tag[data-category="marriage"] {
    border-color: #92400e;
    color: #92400e;
}

.filter-tag[data-category="childhood"] {
    border-color: #1e40af;
    color: #1e40af;
}

.filter-tag[data-category="teenage"] {
    border-color: #5b21b6;
    color: #5b21b6;
}

.filter-tag[data-category="psychology"] {
    border-color: #065f46;
    color: #065f46;
}

/* Active Filter Tag States */
.filter-tag.active[data-category="all"] {
    background: var(--primary-green);
    color: white;
}

.filter-tag.active[data-category="marriage"] {
    background: #92400e;
    color: white;
}

.filter-tag.active[data-category="childhood"] {
    background: #1e40af;
    color: white;
}

.filter-tag.active[data-category="teenage"] {
    background: #5b21b6;
    color: white;
}

.filter-tag.active[data-category="psychology"] {
    background: #065f46;
    color: white;
}

.filter-tag:hover {
    transform: translateY(-2px);
}

/* Accordion Container */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Accordion Item */
.accordion-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    background: #f0fdf5;
    border-color: var(--primary-green);
    transform: translateX(-4px);
}

.accordion-item.active {
    border-color: var(--primary-green);
    border-right-width: 4px;
}

.accordion-item.active:hover {
    transform: none;
}

/* Accordion Header */
.accordion-header {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    gap: 16px;
}

.toggle-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f3f4f6;
    transition: all 0.3s ease;
}

.toggle-icon i {
    font-size: 12px;
    color: #6b7280;
    transition: all 0.3s ease;
}

.accordion-item.active .toggle-icon {
    background: var(--primary-green);
}

.accordion-item.active .toggle-icon i {
    color: white;
    transform: rotate(45deg);
}

.question {
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.6;
    margin: 0;
}

/* Category Tags */
.category-tag {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.category-tag.childhood {
    background: #dbeafe;
    color: #1e40af;
}

.category-tag.marriage {
    background: #fef3c7;
    color: #92400e;
}

.category-tag.teenage {
    background: #ede9fe;
    color: #5b21b6;
}

.category-tag.psychology {
    background: #d1fae5;
    color: #065f46;
}

/* Accordion Content */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 24px;
    border-top: 1px dashed transparent;
}

.accordion-item.active .accordion-content {
    max-height: 600px;
    padding: 20px 24px 28px;
    border-top-color: #e5e7eb;
}

.accordion-item.active .accordion-header {
    background: var(--light-green);
}

/* Solution Label */
.solution-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 12px;
}

.solution-label i {
    color: #f59e0b;
    font-size: 18px;
}

/* Solution Text */
.solution-text {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 16px;
}

/* Solution Points */
.solution-points {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.solution-points li {
    position: relative;
    padding-right: 24px;
    margin-bottom: 10px;
    font-size: 15px;
    color: #4b5563;
    line-height: 1.7;
}

.solution-points li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--primary-green);
    font-weight: bold;
}

/* Expert Info */
.expert-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f3f4f6;
    border-radius: 8px;
    margin-bottom: 16px;
}

.expert-info i {
    color: var(--primary-green);
    font-size: 16px;
}

.expert-info span {
    font-size: 14px;
    color: #6b7280;
}

/* Read More Link */
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-green);
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #0f766e;
    text-decoration: underline;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(-5px);
}

/* Section Footer */
.section-footer {
    text-align: center;
    margin-top: 40px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border: 2px solid var(--primary-green);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-green);
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: var(--primary-green);
    color: white;
}

.view-all-btn i {
    transition: transform 0.3s ease;
}

.view-all-btn:hover i {
    transform: translateX(-5px);
}

/* ==================== FAMILY STORIES SECTION ==================== */
.family-stories-section {
    padding: 100px 0;
    background: linear-gradient(65deg, #FFFFFF 0%, #F8F9FA 100%);
}

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

/* Stories Slider */
.stories-slider {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    transition: var(--transition-normal)
}

.stories-slider:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

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

/* Story Slide */
.story-slide {
    display: none;
    flex-direction: row;
}

.story-slide.active {
    display: flex;
    animation: fadeIn 0.5s ease;

}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Image Side */

.slide-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.slide-image-side {
    width: 50%;
    min-height: 480px;
    position: relative;
    overflow: hidden;
}

.slide-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
}



/* Category Badge */
.story-category-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    font-weight: 600;
}

.story-category-badge.marriage {
    color: #92400e;
}

.story-category-badge.childhood {
    color: #1e40af;
}

.story-category-badge.teenage {
    color: #5b21b6;
}

.story-category-badge.psychology {
    color: #065f46;
}


/* Content Side */
.slide-content-side {
    width: 50%;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-color);
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
    position: relative;
    overflow: hidden;
}

/* Islamic Pattern Background */
.slide-content-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/tile-48131-tesselated (1).svg');
    background-size: 300px;
    background-repeat: repeat;
    filter: grayscale(100%);
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

/* Ensure content stays above pattern */
.slide-content-side>* {
    position: relative;
    z-index: 1;
}

/* Quote Wrapper */
.story-quote-wrapper {
    position: relative;
}

.quote-mark {
    font-size: 48px;
    color: var(--light-green);
    line-height: 1;
}

.quote-mark.open {
    display: block;
    margin-bottom: -10px;
}

.quote-mark.close {
    display: block;
    text-align: left;
    margin-top: -10px;
}

.story-quote {
    font-family: var(--font-family);
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.7;
    margin: 0;
}

/* Story Divider */
.story-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--secondary-green));
    margin: 20px 0;
    border-radius: 3px;
}

/* Story Description */
.story-description {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.9;
    margin-bottom: 24px;
}

/* Read More */
.story-read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-green);
    text-decoration: none;
    transition: all 0.3s ease;
}

.story-read-more:hover {
    color: #0f766e;
}

.story-read-more i {
    transition: transform 0.3s ease;
}

.story-read-more:hover i {
    transform: translateX(-5px);
}

/* Navigation Arrows */
.story-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.story-arrow i {
    font-size: 18px;
    color: #6b7280;
    transition: color 0.3s ease;
}

.story-arrow:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    transform: translateY(-50%) scale(1.05);
}

.story-arrow:hover i {
    color: #ffffff;
}

.story-arrow-prev {
    right: -75px;
}

.story-arrow-next {
    left: -75px;
}

/* Dots Navigation */
.story-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.story-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.story-dot:hover {
    background: var(--secondary-green);
}

.story-dot.active {
    background: var(--primary-green);
    width: 32px;
    border-radius: 6px;
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F9FA 100%);
}

.cta-box {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    background: linear-gradient(135deg, var(--primary-green) 0%, #076b36 100%);
    border-radius: 24px;
    padding: 60px 50px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.25);
}

/* Decorative Elements */
.cta-decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.cta-decoration-1 {
    width: 300px;
    height: 300px;
    background: #ffffff;
    top: -100px;
    right: -100px;
}

.cta-decoration-2 {
    width: 200px;
    height: 200px;
    background: #ffffff;
    bottom: -80px;
    left: -80px;
}

.cta-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 40px;
}

/* CTA Icon */
.cta-icon {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-icon i {
    font-size: 42px;
    color: #ffffff;
}

/* CTA Text */
.cta-text {
    flex: 1;
}

.cta-title {
    font-family: var(--font-family);
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.cta-description {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 600px;
}

/* Feature Badges */
.cta-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.feature-badge i {
    font-size: 14px;
    color: #fcd34d;
}

/* CTA Action Buttons */
.cta-action {
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex-shrink: 0;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    background: #ffffff;
    color: var(--primary-green);
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-cta:hover {
    background: #fef9c3;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.btn-cta i {
    font-size: 18px;
}

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: transparent;
    color: #ffffff;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 500;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.btn-cta-secondary i {
    font-size: 16px;
}

/* ==================== ACTIVITIES SECTION ==================== */
.activities-section {
    padding: 80px 20px;
    background-color: #eeeeeecf;
    overflow: hidden;
}

.activities-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Slider Container */
.activities-slider {
    position: relative;
    padding: 0 60px;
}

.activitiesSwiper {
    overflow: hidden;
    padding: 20px 0 50px;
}

/* Activity Card - Full Image Style */
.activity-card {
    position: relative;
    height: 430px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Card Image */
.card-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

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

/* Gradient Overlay */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65%;
    background: linear-gradient(to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    transparent 100%);
    transition: height 0.4s ease;
    z-index: 1;
}

.activity-card:hover .card-overlay {
    height: 75%;
}

/* Category Badge */
.category-badge {
    position: absolute;
    top: 10px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    z-index: 3;
    transition: all 0.3s ease;
    color: white;
}

.activity-card:hover .category-badge {
    transform: scale(1.03);
}


.category-badge i {
    font-size: 12px;
}

/* Card Content */
.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    z-index: 2;
    transform: translateY(10px);
    opacity: 0.9;
    transition: all 0.4s ease;
}

.activity-card:hover .card-content {
    transform: translateY(0);
    opacity: 1;
}

/* Card Title */
.card-title {
    font-family: 'Tajawal', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Description */
.card-description {
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta Row */
.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.views-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.views-count i {
    font-size: 14px;
}

/* Read More Link */
.read-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--light-green);
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--secondary-green);
}

.read-more .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.activity-card:hover .read-more .arrow {
    transform: translateX(-5px);
}

/* Navigation Buttons */
.swiper-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.swiper-nav-btn i {
    font-size: 18px;
    color: #6b7280;
    transition: color 0.3s ease;
}

.swiper-nav-btn:hover {
    background: var(--primary-green);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.3);
}

.swiper-nav-btn:hover i {
    color: #ffffff;
}

.swiper-nav-btn.prev-btn {
    right: 0;
}

.swiper-nav-btn.next-btn {
    left: 0;
}

/* Pagination */
.activities-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.activities-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #d1d5db;
    opacity: 1;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.activities-pagination .swiper-pagination-bullet:hover {
    background: var(--secondary-green);
}

.activities-pagination .swiper-pagination-bullet-active {
    width: 28px;
    border-radius: 5px;
    background: var(--primary-green);
}

/* Section Footer */
.activities-section .section-footer {
    text-align: center;
    margin-top: 48px;
}

/* Note: .view-all-btn styles defined in Problems & Solutions section */

.view-all-btn .btn-icon {
    transition: transform 0.3s ease;
}

.view-all-btn:hover .btn-icon {
    transform: translateX(-5px);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==================== PUBLICATIONS SECTION ==================== */
.publications-section {
    background: linear-gradient(168deg, #adbbb3b3 0%, #a9bfa961 50%, #b4c7ba 100%);
    padding: 80px 0;
    overflow: hidden;
}

/* Container - Split Layout */
.publications-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 60px;
    direction: rtl;
}

/* Content Area (Right Side - 40%) */
.publications-content {
    flex: 0 0 40%;
    max-width: 40%;
}



.pub-section-title {
    font-family: 'Tajawal', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
    margin-bottom: 20px;
}

.pub-title-highlight {
    display: block;
    color: var(--primary-green);
}

.pub-section-description {
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 400px;
}

.pub-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--primary-green);
    color: #ffffff;
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pub-cta-button:hover {
    background: var(--secondary-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.3);
}

.pub-cta-button i {
    transition: transform 0.3s ease;
}

.pub-cta-button:hover i {
    transform: translateX(-4px);
}

/* Books Slider (Left Side - 60%) */
.books-slider-wrapper {
    flex: 0 0 60%;
    max-width: 60%;
    position: relative;
    overflow: hidden;
}

.booksSwiper {
    overflow: visible;
    padding: 20px 0;
}

.booksSwiper .swiper-slide {
    width: 42%;
    max-width: 240px;
}

/* Book Card */
.book-card {
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* Book Cover */
.book-cover {
    width: 100%;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #f5f5f5;
}

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

.book-card:hover .book-cover img {
    transform: scale(1.03);
}

/* Book Title */
.book-title {
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    text-align: center;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Books Pagination */
.books-pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 8px;
    position: relative;
    bottom: -50px;
}

.books-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #d1d5db;
    border-radius: 50%;
    opacity: 1;
    cursor: pointer;
    transition: all 0.3s ease;

}

.books-pagination .swiper-pagination-bullet:hover {
    background: var(--secondary-green);
}

.books-pagination .swiper-pagination-bullet-active {
    background: var(--primary-green);
    width: 24px;
    border-radius: 5px;
}

/* ==================== PHOTO GALLERY SECTION ==================== */
.gallery-section {
    position: relative;
    width: 100%;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    direction: rtl;
}

/* Background Image */
.gallery-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../images/photo.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    transform: scale(1.05);
    z-index: 0;

}

/* Dark Overlay */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.7) 50%,
    rgba(0, 0, 0, 0.85) 100%);
    z-index: 1;
}

/* Content */
.gallery-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    padding: 40px 20px;
    text-align: center;
}

/* Title */
.gallery-title {
    font-family: 'Tajawal', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 50px;
}

.gallery-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-green);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* Slider Wrapper */
.gallery-slider-wrapper {
    position: relative;
    padding: 0 150px;
}

/* Swiper */
.gallerySwiper {
    padding: 40px 0;
    overflow: hidden;
}

.gallerySwiper .swiper-slide {
    width: 420px;
    transition: all 0.5s ease;
}

/* Gallery Card */
.gallery-card {
    border-radius: 16px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(1);
}

.gallery-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-card .card-title {
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.gallery-card .card-title h3 {
    color: #ffffff;
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

/* Active Slide */
.gallerySwiper .swiper-slide-active .gallery-card {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    filter: grayscale(0);

}

.gallerySwiper .swiper-slide-active .gallery-card img {
    transform: scale(1);
}

/* Inactive Slides */
.gallerySwiper .swiper-slide:not(.swiper-slide-active) .gallery-card {
    opacity: 0.6;
}

.gallerySwiper .swiper-slide:not(.swiper-slide-active) .gallery-card img {
    filter: brightness(0.7);
}

/* Navigation Arrows */
.gallery-slider-wrapper .swiper-button-prev,
.gallery-slider-wrapper .swiper-button-next {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-slider-wrapper .swiper-button-prev {
    left: 10px;
    right: auto;
}

.gallery-slider-wrapper .swiper-button-next {

    right: 10px;
    left: auto;
}

.gallery-slider-wrapper .swiper-button-prev::after,
.gallery-slider-wrapper .swiper-button-next::after {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.gallery-slider-wrapper .swiper-button-prev:hover,
.gallery-slider-wrapper .swiper-button-next:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.gallery-slider-wrapper .swiper-button-prev:hover::after,
.gallery-slider-wrapper .swiper-button-next:hover::after {
    color: #ffffff;
}

/* CTA Button */
.gallery-cta-wrapper {
    margin-top: 50px;
}

.gallery-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--primary-green);
    color: #ffffff;
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.gallery-cta:hover {
    background: var(--secondary-green);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(46, 125, 50, 0.4);
}

.gallery-cta i {
    transition: transform 0.3s ease;
}

.gallery-cta:hover i {
    transform: translateX(-5px);
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Desktop Large */
@media (max-width: 1400px) {
    .nav-menu {
        gap: 15px;
    }


}

/* Desktop */
@media (max-width: 1300px) {
    .site-title {
        font-size: 24px;
    }

    .nav-container {
        padding: 8px 15px;
        justify-content: end;
    }

    .nav-menu {
        gap: 12px;
    }

    .slide-title {
        font-size: 40px;
    }

    /* Departments Section */
    .departments-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .section-title {
        font-size: 36px;
    }
}

/* Tablet Landscape - Hamburger Menu */
@media (max-width: 1300px) {
    .mobile-menu-toggle {
        display: flex;
        justify-content: end;
    }

    .nav-menu {
        position: fixed;
        top: 0px;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 20px 30px;
        gap: 0;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
        transition: right var(--transition-normal);
        overflow-y: auto;
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
        top: 0px;
    }

    .nav-item {
        border-bottom: 1px solid var(--neutral-light);
    }

    .nav-link {
        padding: 15px 0;
        font-size: 16px;
    }

    .nav-link::after {
        display: none;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--neutral-light);
        border-radius: 10px;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: max-height var(--transition-normal), padding var(--transition-normal);
    }

    .nav-item.dropdown-open .dropdown-menu {
        max-height: 300px;
        padding: 10px 0;
    }



    .slider-arrow {
        width: 50px;
        height: 50px;
    }

    /* Departments Section */
    .departments-section {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 50px;
    }

    .section-title {
        font-size: 32px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .department-card {
        padding: 35px 25px;
    }

    .card-icon {
        width: 80px;
        height: 80px;
    }

    .card-icon i {
        font-size: 32px;
    }

    /* Quote Section */
    .quote-text {
        font-size: 24px;
    }

    .quote-line {
        width: 75%;
    }

    /* Stats Section */
    .stats-section {
        padding: 60px 20px;
    }

    .stats-container {
        gap: 24px;
    }

    .glass-card {
        min-width: 200px;
        padding: 30px 25px;
    }

    .stat-number {
        font-size: 36px;
    }

    .stat-icon i {
        font-size: 40px;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .hero-section {
        clip-path: polygon(0 0,
        100% 0,
        100% 90%,
        50% 112%,
        0 90%);
    }

    .hero-content-box {
        padding: 25px 20px;
    }

    .slide-title {
        font-size: 32px;
    }

    .slide-description {
        font-size: 16px;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 15px;
    }

    .logo-right img,
    .logo-left img {
        max-height: 60px !important;
    }

    .site-title {
        font-size: 20px;
    }

    /* Quote Section */
    .quote-section {
        padding: 40px 15px;
    }

    .quote-text {
        font-size: 20px;
        line-height: 1.8;
    }

    .quote-source {
        font-size: 14px;
    }

    .quote-line {
        width: 90%;
    }

    .quote-line.top {
        margin-bottom: 20px;
    }

    .quote-line.bottom {
        margin-top: 20px;
    }

    /* Stats Section */
    .stats-section {
        padding: 50px 15px;
    }

    .stats-container {
        gap: 16px;
    }

    .glass-card {
        min-width: calc(50% - 12px);
        flex: 1 1 calc(50% - 12px);
        padding: 25px 15px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-suffix {
        font-size: 22px;
    }

    .stat-icon i {
        font-size: 36px;
    }

    .stat-label {
        font-size: 13px;
    }

    /* Departments Section */
    .departments-section {
        padding: 60px 0;
    }

    .departments-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
        margin: 0 auto;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 15px;
    }

    .department-card {
        padding: 30px 20px;
    }

    .card-title {
        font-size: 20px;
    }

    .card-description {
        font-size: 14px;
    }

    /* كل البطاقات تظهر من الأسفل على الموبايل */
    .department-card[data-reveal="right"],
    .department-card[data-reveal="left"],
    .department-card[data-reveal="bottom"] {
        transform: translateY(50px);
    }


    /* Problems & Solutions Section */
    .problems-solutions-section {
        padding: 60px 0;
    }

    .filter-tags {
        gap: 8px;
        margin-bottom: 30px;
    }

    .filter-tag {
        padding: 8px 16px;
        font-size: 13px;
    }

    .accordion-header {
        padding: 16px 18px;
        gap: 12px;
    }

    .question {
        font-size: 15px;
    }

    .category-tag {
        padding: 4px 10px;
        font-size: 11px;
    }

    .accordion-item.active .accordion-content {
        padding: 16px 18px 24px;
    }

    .solution-text,
    .solution-points li {
        font-size: 14px;
    }

    .view-all-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    /* Family Stories Section */
    .family-stories-section {
        padding: 60px 0;
    }

    .story-slide.active {
        flex-direction: column;
    }

    .slide-image-side,
    .slide-content-side {
        width: 100%;
    }

    .slide-image-side {
        min-height: 250px;
    }

    .slide-content-side {
        padding: 30px 24px;
    }

    .story-quote {
        font-size: 20px;
    }

    .quote-mark {
        font-size: 36px;
    }

    .story-description {
        font-size: 14px;
    }

    .story-arrow {
        width: 40px;
        height: 40px;
    }

    .story-arrow-prev {
        right: 10px;
    }

    .story-arrow-next {
        left: 10px;
    }

    .story-dots {
        margin-top: 20px;
    }

    /* CTA Section */
    .cta-section {
        padding: 60px 0;
    }

    .cta-box {
        margin: 0 20px;
        padding: 40px 30px;
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-icon {
        width: 80px;
        height: 80px;
    }

    .cta-icon i {
        font-size: 32px;
    }

    .cta-title {
        font-size: 26px;
    }

    .cta-description {
        font-size: 15px;
    }

    .cta-features {
        justify-content: center;
    }

    .cta-action {
        flex-direction: column;
        justify-content: center;
    }
}

/* Mobile */
@media (max-width: 576px) {

    .site-title {
        font-size: 18px;
    }

    .center-logo {
        max-height: 75px;
        width: 170px;
    }

    .logo-text-top {
        font-size: 11px;
    }

    .logo-text-bottom {
        font-size: 10px;
    }

    .hero-content-box {
        padding: 20px 15px;
        width: 95%;
    }

    .slide-title {
        font-size: 26px;
        margin-bottom: 15px;
    }

    .slide-description {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .cta-button {
        width: 100%;
        padding: 14px 20px;
    }

    .slider-arrow {
        width: 50px;
        height: 50px;
        font-size: 14px;
    }

    .nav-container {
        padding: 5px 25px;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }


}

/* Very Small Mobile */
@media (max-width: 380px) {
    .site-title {
        font-size: 16px;
    }

    .slide-title {
        font-size: 22px;
    }

    .slide-description {
        font-size: 14px;
    }



}

/* ==================== ACTIVITIES SECTION RESPONSIVE ==================== */

/* Desktop Large */
@media (max-width: 1400px) {
    .activities-slider {
        padding: 0 50px;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .activities-section {
        padding: 70px 20px;
    }

    .activities-slider {
        padding: 0 40px;
    }

    .swiper-nav-btn {
        width: 44px;
        height: 44px;
    }

    .swiper-nav-btn i {
        font-size: 16px;
    }
}

/* Tablet Landscape */
@media (max-width: 992px) {
    .activities-section {
        padding: 60px 20px;
    }

    .activities-slider {
        padding: 0 50px;
    }

    .activity-card {
        height: 400px;
    }

    .card-content {
        padding: 20px;
    }

    .card-title {
        font-size: 17px;
    }

    .card-description {
        font-size: 13px;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .activities-section {
        padding: 50px 16px;
    }

    .activities-slider {
        padding: 0 16px;
    }

    .activitiesSwiper {
        padding: 15px 0 40px;
    }

    .activity-card {
        height: 380px;
    }

    .card-content {
        padding: 18px;
    }

    .card-title {
        font-size: 16px;
    }

    .card-description {
        font-size: 13px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .category-badge {
        padding: 6px 12px;
        font-size: 12px;
    }

    .category-badge i {
        font-size: 11px;
    }

    .views-count {
        font-size: 12px;
    }

    .read-more {
        font-size: 13px;
    }

    /* Hide navigation buttons on mobile */
    .swiper-nav-btn {
        display: none;
    }

    .activities-pagination {
        margin-top: 20px;
    }

    .activities-pagination .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }

    .activities-pagination .swiper-pagination-bullet-active {
        width: 24px;
    }

    .view-all-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .activities-section .section-footer {
        margin-top: 32px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .activities-section {
        padding: 40px 12px;
    }

    .activities-slider {
        padding: 0 8px;
    }

    .activity-card {
        height: 360px;
        border-radius: 12px;
    }

    .card-content {
        padding: 16px;
    }

    .card-title {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .card-description {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .category-badge {
        top: 12px;
        right: 12px;
        padding: 5px 10px;
        font-size: 11px;
    }

    .activities-section .section-footer {
        margin-top: 24px;
    }

    .view-all-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Very Small Mobile */
@media (max-width: 380px) {
    .activity-card {
        height: 340px;
    }

    .card-content {
        padding: 14px;
    }

    .card-title {
        font-size: 14px;
    }

    .card-description {
        font-size: 11px;
    }
}

/* ==================== PUBLICATIONS SECTION RESPONSIVE ==================== */

/* Desktop Large */
@media (max-width: 1400px) {
    .publications-container {
        padding: 0 30px;
        gap: 50px;
    }

    .book-card {
        width: 240px;
    }

    .book-cover {
        height: 300px;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .publications-section {
        padding: 70px 0;
    }

    .publications-container {
        gap: 40px;
    }

    .pub-section-title {
        font-size: 36px;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .publications-container {
        flex-direction: column;
        text-align: center;
    }

    .publications-content,
    .books-slider-wrapper {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .publications-content {
        order: 1;
        margin-bottom: 40px;
    }

    .books-slider-wrapper {
        order: 2;
    }

    .pub-section-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .pub-cta-button {
        justify-content: center;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .publications-section {
        padding: 50px 0;
    }

    .publications-container {
        padding: 0 20px;
    }

    .pub-section-title {
        font-size: 32px;
    }

    .pub-section-description {
        font-size: 15px;
    }

    .book-card {
        width: 220px;
    }

    .book-cover {
        height: 280px;
    }

    .books-pagination {
        margin-top: 24px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .publications-section {
        padding: 40px 0;
    }

    .publications-container {
        padding: 0 16px;
    }

    .pub-section-title {
        font-size: 28px;
    }



    .pub-section-description {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .pub-cta-button {
        padding: 12px 24px;
        font-size: 14px;
        width: 100%;
    }

    .booksSwiper .swiper-slide {
        width: 75%;
        max-width: 220px;
    }

    .book-card {
        padding: 10px;
    }

    .book-cover {
        height: 230px;
        border-radius: 10px;
    }

    .book-title {
        font-size: 13px;
    }

    .books-pagination .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }

    .books-pagination .swiper-pagination-bullet-active {
        width: 20px;
    }
}

/* Very Small Mobile */
@media (max-width: 380px) {
    .pub-section-title {
        font-size: 24px;
    }

    .booksSwiper .swiper-slide {
        width: 80%;
        max-width: 200px;
    }

    .book-cover {
        height: 200px;
    }

    .book-title {
        font-size: 12px;
    }
}

/* ==================== PHOTO GALLERY SECTION RESPONSIVE ==================== */

/* Desktop */
@media (max-width: 1200px) {
    .gallery-slider-wrapper {
        padding: 0 60px;
    }

    .gallerySwiper .swiper-slide {
        width: 380px;
    }

    .gallery-card img {
        height: 280px;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .gallery-section {
        min-height: 580px;
    }

    .gallery-slider-wrapper {
        padding: 0 50px;
    }

    .gallerySwiper .swiper-slide {
        width: 350px;
    }

    .gallery-card img {
        height: 260px;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .gallery-section {
        min-height: 520px;
    }

    .gallery-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .gallery-slider-wrapper {
        padding: 0 20px;
    }

    .gallerySwiper .swiper-slide {
        width: 300px;
    }

    .gallery-card img {
        height: 220px;
    }

    .gallery-card .card-title {
        padding: 16px;
    }

    .gallery-card .card-title h3 {
        font-size: 14px;
    }

    .gallery-slider-wrapper .swiper-button-prev,
    .gallery-slider-wrapper .swiper-button-next {
        width: 44px;
        height: 44px;
    }

    .gallery-slider-wrapper .swiper-button-prev::after,
    .gallery-slider-wrapper .swiper-button-next::after {
        font-size: 18px;
    }

    .gallery-cta-wrapper {
        margin-top: 40px;
    }

    .gallery-cta {
        padding: 12px 28px;
        font-size: 14px;
    }

    .gallery-background {
        background-attachment: scroll;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .gallery-section {
        min-height: 480px;
    }

    .gallery-content {
        padding: 50px 16px;
    }

    .gallery-title {
        font-size: 24px;
        margin-bottom: 32px;
    }

    .gallery-title::after {
        width: 50px;
        margin: 12px auto 0;
    }

    .gallery-slider-wrapper {
        padding: 0 10px;
    }

    .gallerySwiper .swiper-slide {
        width: 260px;
    }

    .gallery-card img {
        height: 180px;
    }

    .gallery-card .card-title {
        padding: 14px;
    }

    .gallery-card .card-title h3 {
        font-size: 13px;
    }

    .gallery-slider-wrapper .swiper-button-prev,
    .gallery-slider-wrapper .swiper-button-next {
        display: none;
    }

    .gallery-cta-wrapper {
        margin-top: 32px;
    }

    .gallery-cta {
        width: 100%;
        justify-content: center;
    }
}

/* Very Small Mobile */
@media (max-width: 380px) {
    .gallery-title {
        font-size: 22px;
    }

    .gallerySwiper .swiper-slide {
        width: 230px;
    }

    .gallery-card img {
        height: 160px;
    }
}

/* ==================== QUOTE FRAME RESPONSIVE ==================== */

/* Tablet */
@media (max-width: 768px) {
    .quote-frame {
        max-width: 90%;
        padding: 40px 60px;
        min-height: 160px;
    }

    .quote-text {
        font-size: 20px;
        line-height: 1.8;
    }

    .quote-source {
        font-size: 13px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .quote-section {
        padding: 30px 16px;
    }

    .quote-frame {
        max-width: 100%;
        padding: 35px 40px;
        min-height: 140px;
    }

    .quote-text {
        font-size: 18px;
        line-height: 1.7;
    }

    .quote-source {
        font-size: 12px;
    }
}

/* Very Small Mobile */
@media (max-width: 380px) {
    .quote-frame {
        padding: 30px 30px;
        min-height: 120px;
    }

    .quote-text {
        font-size: 16px;
    }
}

/* ==================== FOOTER ==================== */
.site-footer {
    background-color: #0d1b12;
    color: #ffffff;
    padding-top: 80px;
    font-size: 15px;
    direction: rtl;
    text-align: right;
    position: relative;
    z-index: 10;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* Footer Column Styling */
.footer-heading {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-green);
    border-radius: 2px;
}

/* About Column */
.footer-logo {
    display: inline-block;
}

.footer-logo img {
    height: 100px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-text {
    color: #a0aec0;
    line-height: 1.8;
    margin-bottom: 25px;
    max-width: 300px;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
    font-size: 16px;
}

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

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #a0aec0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a i {
    font-size: 10px;
    color: var(--primary-green);
    transition: transform 0.3s ease;
    margin-top: 4px;
    /* Align chevron with text */
}

.footer-links a:hover {
    color: #ffffff;
    padding-right: 5px;
}

/* Contact Info */
.contact-info {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: #a0aec0;
}

.contact-info li i {
    color: var(--primary-green);
    font-size: 18px;
    margin-top: 5px;
}

.contact-info a {
    color: #a0aec0;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #ffffff;
}

/* Map */
.footer-map {
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    height: 150px;
}

/* Bottom Bar */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 25px 0;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright,
.developer {
    font-size: 14px;
    margin: 0;
}

.developer a {
    color: #a0aec0;
    font-weight: 500;
}

.developer a:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .site-footer {
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: right;
        /* Use text-align right to match RTL flow */
    }

    .footer-heading::after {
        right: 0;
        /* left: 50%;
        transform: translateX(-50%); */
        /* Keep it right aligned based on RTL */
    }

    .footer-logo {
        display: block;
        margin-bottom: 20px;
        text-align: right;
    }

    .footer-logo img {
        margin: 0 auto;
    }

    .footer-text {
        margin-bottom: 25px;
        max-width: 100%;
    }

    .social-icons {
        justify-content: flex-start;
    }

    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }
}

/* ==================== SCROLL ANIMATIONS CSS ==================== */

/* Base State - Hidden */
.scroll-hidden {
    opacity: 0;
    transform: translateY(30px);
    /* Slide down initially */
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

/* Animate State - Visible */
.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
}

/* Specific Stagger Delays/Types can be added here if needed */
.problems-solutions-section .container.scroll-hidden {
    transform: translateY(50px);
}

.gallery-content.scroll-hidden {
    transform: scale(0.95);
    opacity: 0;
}

.gallery-content.animate-on-scroll {
    transform: scale(1);
    opacity: 1;
}

/* Keyframes if precise animation control is needed */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}


/*-----------edit---------*/
#headerSpacer {
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
}

.shape {
    position: absolute;
    opacity: 0;
    animation: floatShape linear infinite;
}

/* دوائر */
.s1, .s4, .s7 {
    border-radius: 50%;
}

/* معينات */
.s2, .s6 {
    transform: rotate(45deg);
}

/* مثلثات */
.s3 {
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid rgba(100, 160, 80, 0.57);
}

.s8 {
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-bottom: 24px solid rgba(150, 150, 150, 0.57);
}

/* مربعات */
.s5 { border-radius: 4px; }

/* أحجام وألوان وأماكن */
.s1 { width:50px; height:50px; background:rgba(100,160,80,0.57); left:5%;  top:-60px; animation-duration:12s; animation-delay:0s; }
.s2 { width:35px; height:35px; background:rgba(150,150,150,0.57); left:18%; top:-50px; animation-duration:15s; animation-delay:2s; }
.s3 {                                                               left:30%; top:-60px; animation-duration:10s; animation-delay:1s; }
.s4 { width:60px; height:60px; background:rgba(80,130,60,0.57);   left:45%; top:-70px; animation-duration:18s; animation-delay:3s; }
.s5 { width:30px; height:30px; background:rgba(180,180,180,0.57); left:60%; top:-50px; animation-duration:13s; animation-delay:0.5s; }
.s6 { width:40px; height:40px; background:rgba(100,160,80,0.57);  left:72%; top:-55px; animation-duration:16s; animation-delay:4s; }
.s7 { width:25px; height:25px; background:rgba(150,150,150,0.57); left:83%; top:-40px; animation-duration:11s; animation-delay:1.5s; }
.s8 {                                                               left:92%; top:-50px; animation-duration:14s; animation-delay:2.5s; }

@keyframes floatShape {
    0%   { transform: translateY(0)   rotate(0deg);   opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(200px) rotate(360deg); opacity: 0; }
}

/* المعينات تحتاج override للـ transform */
.s2 { animation-name: floatShapeDiamond; }
.s6 { animation-name: floatShapeDiamond; }

@keyframes floatShapeDiamond {
    0%   { transform: translateY(0)   rotate(45deg);   opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(200px) rotate(405deg); opacity: 0; }
}


/* ===== BREADCRUMB ===== */
.breadcrumbSite {
    background: linear-gradient(135deg, #0B0F1A 0%, #141B2D 100%);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    position: relative;
    overflow: hidden;
}

.breadcrumbSite::before {
    content: '';
    position: absolute;
    top: 1px;
    left: -50%;
    width: 200%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    animation: shimmer 3s infinite;
}


.breadcrumbSite::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -111px;
    width: 220px;
    height: 220px;
    background: rgb(224 31 32 / 8%);
    border-radius: 50%;
}




@keyframes shimmer {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(50%); }
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.breadcrumb-item a:hover { color: var(--gold); }

.breadcrumb-item.active a,
.breadcrumb-item[aria-current] {
    color: var(--gold);

}

.breadcrumb-item + .breadcrumb-item::before {
    content: '›';
    color: var(--gold-dark);
    margin: 0 4px;
}


/* ===== Main Card ===== */
.details-wrapper {
    padding: 40px 0 60px;
    background: #fff;
}

.details-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* ===== Media Section ===== */
.details-media {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 0;
    overflow: hidden;
    /*max-height: 500px;*/
}

.details-media img {
    width: 100%;
    /*max-height: 500px;*/
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.details-media img:hover {
    transform: scale(1.02);
}

.details-media video {
    width: 100%;
    max-height: 500px;
    display: block;
    background: #000;
}

.media-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(26,57,74,0.7), transparent);
    pointer-events: none;
}

/* ===== Content Section ===== */
.details-content {
    padding: 35px 40px 40px;
}

.details-content-title {
    font-size: 22px;
    font-weight: bold;
    color: #1a394a;
    padding-bottom: 15px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e8f0f5;
    position: relative;
}

.details-content-title::before {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 70px;
    height: 2px;
    background: #e8b600;
}

.details-details {
    line-height: 2.2;
    color: #555;
    font-size: 15px;
    text-align: justify;
}

.details-details img {
    max-width: 100% !important;
    border-radius: 8px;
    margin: 10px 0;
}

.details-details video,
.details-details iframe {
    width: 100% !important;
    height: auto !important;
    border-radius: 8px;
}

/* ===== Back Button ===== */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1a394a;
    color: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-top: 30px;
}

.btn-back:hover {
    background: #e8b600;
    color: #1a394a;
    transform: translateY(-2px);
    text-decoration: none;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .breadcrumbSite .hero-title {
        font-size: 20px;
    }

    .details-content {
        padding: 25px 20px 30px;
    }

    .details-media img,
    .details-media video {
        max-height: 280px;
    }
}


.index-page {
    background-color: rgba(255, 255, 255, 0.71);
    padding: 30px;
    border-radius: 10px;
}

.sb-section {

    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    padding: 15px;
    height: 100%;
}

.sb-title {
    font-weight: 500;
    color: #111111;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 25px;
}
.sb-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #eee;
}

.sb-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
}
.sb-item:last-child { border-bottom: none; }

.sb-thumb {
    width: 72px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    background-color: #f5f5f5;
}

.sb-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sb-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sb-item:hover .sb-name { color: #1c2a85; }

.sb-date {
    font-size: 11px;
    color: #999;
    margin-top: 6px;
}
.otherMedia   .images-details
{
    display: block;
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
}


.otherMedia video
{
    display: block;
    width: 100%;
    height: 200px;
    background-color: #000;
    border-radius: 10px;


}



.card_image.gray {
    height: 200px;
    margin-bottom: 12px;
    border-radius: 15px;
    background-position: center;
    background-size: cover;
}
.accordion-item:not(:first-of-type) {
    border-top: 1px solid #e5e7eb;
}
