/* Google Fonts - Arabic Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&family=Tajawal:wght@400;500;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand: #0e1434 (dark) + #b6b5ab (muted) */
    --brand-dark: #0e1434;
    --brand-muted: #b6b5ab;

    --blue-500: #b6b5ab;
    --blue-600: #9a9890;
    --blue-700: #0e1434;
    --blue-soft: rgba(182, 181, 171, 0.2);
    --blue-border: rgba(182, 181, 171, 0.45);
    --blue-gradient: linear-gradient(135deg, #0e1434, #b6b5ab);

    --primary-color: var(--brand-dark);
    --secondary-color: var(--brand-muted);
    --accent-color: #1a2248;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;

    /* Legacy “gold” tokens → brand (used across decorative + cards) */
    --gold-500: #b6b5ab;
    --gold-600: #9a9890;
    --gold-700: #7a7970;
    --gold-soft: rgba(182, 181, 171, 0.22);
    --gold-border: rgba(14, 20, 52, 0.14);
    --gold-gradient: linear-gradient(135deg, #0e1434, #b6b5ab);
}

body {
    font-family: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    direction: rtl;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Cairo", Arial, Helvetica, sans-serif;
}

.text-primary-site {
    color: var(--primary-color);
}



.rules-container {
    max-width: 1100px;
}

body[dir="ltr"] {
    direction: ltr;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.rules-container {
    max-width: 1100px;
    margin: auto;
    padding: 0 16px;
}

/* أيقونات خطوط مخصصة (لا تحتاج مكتبات - فقط ملفات الخط + @font-face) */
/* ضع ملفات الخطوط في public/website/fonts/ وحدّث المسارات أدناه */
@font-face {
    font-family: Medical;
    src: url('/website/fonts/Medical.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}
@font-face {
    font-family: HelpAndSupport;
    src: url('/website/fonts/HelpAndSupport.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}
@font-face {
    font-family: Dentist1;
    src: url('/website/fonts/Dentist1.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}
@font-face {
    font-family: DentalCare;
    src: url('/website/fonts/DentalCare.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}
*[data-ico-dentalcare]::before {
    font-family: DentalCare, sans-serif;
    content: attr(data-ico-dentalcare);
    display: inline-block;
    font-size: 2.125rem;
}
.icon-dentalcare,
.icon-dentalcare::before {
    color: inherit;
}
*[data-ico-dentist1]::before {
    font-family: Dentist1, sans-serif;
    content: attr(data-ico-dentist1);
    display: inline-block;
}
.icon-dentist1 {
    color: inherit;
}
.icon-dentist1::before {
    color: inherit;
}

.quick-service-item-text {
    font-size: 1.4em;
    line-height: 1.1;
}
.quick-service-item {
    line-height: 1.1;
}
.quick-service-item .icon-dentist1,
.quick-service-item .icon-dentist1::before {
    color: var(--brand-muted) !important;
    font-size: 1.6em;
}
.quick-service-item-text {
    font-size: 1.4rem;
}

.custom-gap-10 {
    gap: 4.5rem; /* تقريباً مثل gap-10 في Tailwind (40px) */
}

/* بطاقات الأطباء — خلفية بلون الموقع + تدرج عند الـ hover */
#doctors .doctor-card {
    background: rgba(182, 181, 171, 0.12);
    border: 1px solid rgba(182, 181, 171, 0.3);
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
#doctors .doctor-card:hover {
    background: linear-gradient(145deg, rgba(182, 181, 171, 0.22) 0%, rgba(182, 181, 171, 0.1) 50%, rgba(182, 181, 171, 0.14) 100%);
    border-color: rgba(182, 181, 171, 0.45);
    box-shadow: 0 8px 24px rgba(182, 181, 171, 0.25);
}

/* قسم الإحصائيات — خلفية شفافة بلون الموقع (مثل بطاقات الأطباء) */
.stats-section-bg {
    background: rgba(182, 181, 171, 0.12);
}

/* خلفية أقسام بتدرج لون الموقع الأساسي */
.section-bg-brand-tint {
    background: rgba(182, 181, 171, 0.16);
}

/* بطاقات صفحة من نحن — تأثير شبيه بالأطباء */
.about-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.4); /* slate-400-ish */
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.about-card-blue:hover {
    background: linear-gradient(135deg, rgba(182, 181, 171, 0.3), rgba(182, 181, 171, 0.08));
    border-color: rgba(182, 181, 171, 0.5);
    box-shadow: 0 10px 28px rgba(182, 181, 171, 0.3);
    transform: translateY(-3px);
}

/* بطاقات صفحة اتصل بنا — حركة hover وخلفية منسجمة مع لون الموقع */
.contact-card {
    transition: transform 0.3s ease;
}

/* دوائر الإحصائيات — امتلاء من الصفر إلى النسبة المحددة (تعمل فقط عند إضافة كلاس stats-animate) */
#stats.stats-animate .stats-circle-99 {
    animation: stats-fill-99 1.2s ease-out 0.2s forwards;
}
#stats.stats-animate .stats-circle-97 {
    animation: stats-fill-97 1.2s ease-out 0.4s forwards;
}
#stats.stats-animate .stats-circle-100 {
    animation: stats-fill-100 1.2s ease-out 0.6s forwards;
}
#stats.stats-animate .stats-circle-95 {
    animation: stats-fill-95 1.2s ease-out 0.8s forwards;
}
@keyframes stats-fill-99 {
    from { stroke-dashoffset: 289; }
    to { stroke-dashoffset: 2.89; }
}
@keyframes stats-fill-97 {
    from { stroke-dashoffset: 289; }
    to { stroke-dashoffset: 8.67; }
}
@keyframes stats-fill-100 {
    from { stroke-dashoffset: 289; }
    to { stroke-dashoffset: 0; }
}
@keyframes stats-fill-95 {
    from { stroke-dashoffset: 289; }
    to { stroke-dashoffset: 14.45; }
}

*[data-ico-medical]::before {
    font-family: Medical, sans-serif;
    content: attr(data-ico-medical);
    display: inline-block;
    color: inherit;
}
.contact-card [data-ico-medical]::before,
.contact-card [data-ico-dentalcare]::before {
    font-size: 1.25rem;
}
.contact-card-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-left: auto;
    margin-right: auto;
}
.contact-card-icon-wrap .contact-card-icon::before {
    font-size: 4rem;
}
.contact-card-item:hover {
    transform: translateY(-2px);
}

/* Hero Slider — الصفحة الرئيسية (تغطية كامل الشاشة) */
#home {
    min-height: 100vh;
}
.hero-swiper,
.hero-swiper .swiper-wrapper,
.hero-swiper .swiper-slide {
    height: 100% !important;
    width: 100% !important;
    position: relative;
}
.hero-swiper {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
.hero-slide-img,
.hero-slide-video {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.hero-slide-video {
    pointer-events: none;
}
.hero-swiper-pagination .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.6);
    opacity: 1;
}
.hero-swiper-pagination .swiper-pagination-bullet-active {
    background: #fff;
    transform: scale(1.2);
}

/* Blog grid — أطوال مختلفة للصور (شبكة كثيفة) */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 220px;
    grid-auto-flow: dense;
    gap: 1rem;
}
@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.blog-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}
.blog-card .article-image-wrap {
    flex-shrink: 0;
    height: 140px;
    overflow: hidden;
    background: #f1f5f9;
}
.blog-card .article-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.blog-card:hover .article-image-wrap img {
    transform: scale(1.05);
}
.blog-card .article-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem;
}
/* بطاقة عريضة/طويلة — تمتد صفّين */
.blog-card--tall {
    grid-row: span 2;
}
.blog-card--tall .article-image-wrap {
    height: 300px;
}
/* بطاقة بدون صورة — نص فقط (ارتفاع أقل) */
.blog-card--text-only .article-image-wrap {
    height: 0;
    min-height: 0;
    overflow: hidden;
    padding: 0;
}
.blog-card--text-only .article-image-wrap img {
    display: none;
}

*[data-ico-helpandsupport]::before {
    font-family: HelpAndSupport, sans-serif;
    content: attr(data-ico-helpandsupport);
    display: inline-block;
}

/* Header Styles */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Header: إخفاء الشريط العلوي + تمييز الشريط السفلي عند السكرول */
.header-topbar {
    max-height: 120px;
    opacity: 1;
    transition: max-height 0.35s ease-out, opacity 0.3s ease;
}
.header-topbar.header-topbar-hidden {
    max-height: 0;
    opacity: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.header-main-nav {
    background: #fff;
    box-shadow: none;
}
.header-main-nav.scrolled {
    background: rgba(182, 181, 171, 0.2);
    border-bottom: 1px solid rgba(182, 181, 171, 0.35);
    box-shadow: 0 4px 20px rgba(182, 181, 171, 0.2);
}
#site-header.header-scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* Page Loader */
.page-loader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-loader img {
    width: 120px;
    height: auto;
}

.page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

/* Navigation */
.navbar {
    position: relative;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    padding-bottom: 10px;
    
    justify-content: center;
    align-items: center;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 15px 14px;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    font-weight: bold;
    font-size: 16px;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.nav-menu .home-icon {
    font-size: 20px;
}

/* Logo in nav menu */
.nav-menu .logo-item {
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.nav-menu .logo-item .logo {
    display: flex;
    align-items: center;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    list-style: none;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Hero logo removed */

/* Hero slider nav handled in Tailwind */

/* Hero content handled in Tailwind */

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Features and About layouts handled in Tailwind */

/* Events section layout handled in Tailwind */

.text-center {
    text-align: center;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-section p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    padding-right: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #ccc;
}

/* Card animations */
.feature-card,
.news-card,
.news-description,
.contact-info,
.contact-form-card,
.value-card,
.updates-item,
.updates-media,
.history-card,
.content-section,
.event-card,
.stat-card,
.testimonial-card,
.gallery-item {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover,
.news-card:hover,
.contact-info:hover,
.contact-form-card:hover,
.news-description:hover,
.value-card:hover,
.updates-item:hover,
.updates-media:hover,
.history-card:hover,
.content-section:hover,
.event-card:hover,
.stat-card:hover,
.testimonial-card:hover,
.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(14, 20, 52, 0.45), 0 0 16px rgba(14, 20, 52, 0.25);
    border-color: rgba(14, 20, 52, 0.45);
}

/* Floating Social Media */
.social-float {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

[dir="ltr"] .social-float {
    right: 20px;
    left: auto;
}

.social-float a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--gold-500);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--gold-border);
    transition: var(--transition);
}

.social-float a:hover {
    transform: translateY(-2px);
    background: var(--gold-500);
    color: #ffffff;
}

@media (max-width: 768px) {
    .social-float {
        left: 10px;
    }

    .social-float a {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 1000px;
    }

    .nav-menu > li {
        width: 100%;
    }

    .nav-menu > li > a {
        border-bottom: 1px solid #eee;
        border-right: none;
    }

    .nav-menu .logo-item {
        width: 100%;
        justify-content: center;
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--bg-light);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown.active .dropdown-menu {
        max-height: 500px;
    }

}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #0e1434 0%, #151b3d 45%, #0e1434 100%);
    color: #ffffff;
    border-bottom: 1px solid var(--gold-border);
}

.page-header h1 {
    color: var(--brand-muted);
    text-shadow: none;
}

.page-header p {
    color: #e5e7eb;
}

/* Membership + Contact + Events layout moved to Tailwind */


/* Content Page Styles (minimal, Tailwind handles layout) */
.content-page {
    background: #f8fafc;
}

/* Shared page decorations (Home + Contact) */
.page-decorated {
    position: relative;
    background: #f8fafc;
    overflow: hidden;
}

.page-decorated::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 15%, rgba(14, 20, 52, 0.12), transparent 45%),
                radial-gradient(circle at 80% 85%, rgba(182, 181, 171, 0.2), transparent 50%),
                linear-gradient(135deg, rgba(14, 20, 52, 0.05), transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.page-decorated .container {
    position: relative;
    z-index: 2;
}

.page-decorated .decor-shape {
    position: absolute;
    display: block;
    pointer-events: none;
    z-index: 1;
    opacity: 0.9;
    border-radius: 56px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
}

.page-decorated .decor-shape-1 {
    top: -140px;
    right: -120px;
    width: 420px;
    height: 420px;
    background: var(--gold-500);
    transform: rotate(35deg);
}

.page-decorated .decor-shape-2 {
    bottom: -160px;
    left: -140px;
    width: 380px;
    height: 380px;
    background: var(--gold-700);
    transform: rotate(-35deg);
}

.page-decorated .decor-shape-3 {
    top: 140px;
    right: 120px;
    width: 120px;
    height: 120px;
    background: #c8c6c0;
    border-radius: 26px;
    transform: rotate(35deg);
    opacity: 0.8;
}

.page-decorated .decor-shape-4 {
    top: 45%;
    left: -90px;
    width: 220px;
    height: 220px;
    background: var(--gold-600);
    border-radius: 40px;
    transform: rotate(35deg);
    opacity: 0.7;
}

.page-decorated .decor-shape-5 {
    bottom: 60px;
    right: -60px;
    width: 180px;
    height: 180px;
    background: var(--gold-700);
    border-radius: 36px;
    transform: rotate(-35deg);
    opacity: 0.7;
}

/* Sustainable Tourism Award Page Decorations */
.award-page-decoration {
    position: relative;
    background: #f8fafc;
    overflow: hidden;
}

.award-page-decoration::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 15%, rgba(14, 20, 52, 0.12), transparent 45%),
                radial-gradient(circle at 80% 85%, rgba(182, 181, 171, 0.2), transparent 50%),
                linear-gradient(135deg, rgba(14, 20, 52, 0.05), transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.award-page-decoration .content-wrapper {
    position: relative;
    z-index: 2;
}

.award-page-decoration .award-shape {
    position: absolute;
    display: block;
    pointer-events: none;
    z-index: 1;
    opacity: 0.95;
}

.award-page-decoration .award-shape-primary {
    top: -140px;
    right: -120px;
    width: 420px;
    height: 420px;
    background: var(--gold-500);
    border-radius: 56px;
    transform: rotate(35deg);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.15);
}

.award-page-decoration .award-shape-secondary {
    bottom: -150px;
    left: -140px;
    width: 380px;
    height: 380px;
    background: var(--gold-700);
    border-radius: 56px;
    transform: rotate(-35deg);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.15);
}

.award-page-decoration .award-shape-accent {
    top: 140px;
    right: 120px;
    width: 120px;
    height: 120px;
    background: #c8c6c0;
    border-radius: 26px;
    transform: rotate(35deg);
    opacity: 0.8;
}

.award-page-decoration .award-shape-tertiary {
    top: 45%;
    left: -90px;
    width: 220px;
    height: 220px;
    background: var(--gold-600);
    border-radius: 40px;
    transform: rotate(35deg);
    opacity: 0.7;
}

.award-page-decoration .award-shape-quaternary {
    bottom: 60px;
    right: -60px;
    width: 180px;
    height: 180px;
    background: var(--gold-700);
    border-radius: 36px;
    transform: rotate(-35deg);
    opacity: 0.7;
}

.award-page-decoration .award-shape-quinary {
    top: 220px;
    left: 120px;
    width: 140px;
    height: 140px;
    background: #b6b5ab;
    border-radius: 28px;
    transform: rotate(20deg);
    opacity: 0.75;
}

.award-page-decoration .award-shape-senary {
    bottom: 220px;
    right: 160px;
    width: 110px;
    height: 110px;
    background: var(--gold-600);
    border-radius: 22px;
    transform: rotate(-18deg);
    opacity: 0.7;
}

.award-page-decoration .award-shape-septenary {
    top: 60%;
    right: 10%;
    width: 90px;
    height: 90px;
    background: #d4d3ce;
    border-radius: 18px;
    transform: rotate(28deg);
    opacity: 0.65;
}

/* Content blocks handled in Tailwind */

/* Old timeline styles removed */

/* Story values removed */

/* History Timeline Page (Story) */
.history-page {
    background: #f5f5f4;
}

.history-page::before,
.history-page::after {
    display: none;
    content: none;
}

.history-frame {
    position: relative;
    background: #f0f0ee;
    border: 2px solid #b6b5ab;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.history-frame::before {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 12px;
    border: 2px dashed rgba(182, 181, 171, 0.75);
    pointer-events: none;
}

.history-frame::after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 14px;
    background:
        repeating-linear-gradient(90deg, rgba(14, 20, 52, 0.2) 0 18px, transparent 18px 28px) top left/100% 6px no-repeat,
        repeating-linear-gradient(90deg, rgba(14, 20, 52, 0.2) 0 18px, transparent 18px 28px) bottom left/100% 6px no-repeat,
        repeating-linear-gradient(0deg, rgba(14, 20, 52, 0.2) 0 18px, transparent 18px 28px) left top/6px 100% no-repeat,
        repeating-linear-gradient(0deg, rgba(14, 20, 52, 0.2) 0 18px, transparent 18px 28px) right top/6px 100% no-repeat;
    pointer-events: none;
}

.history-title {
    text-align: center;
    margin-bottom: 30px;
}

.history-title h2 {
    font-size: 28px;
    color: #222;
    margin-bottom: 8px;
}

.history-title p {
    font-size: 18px;
    letter-spacing: 0.5px;
    color: #444;
    font-weight: 600;
}

.history-timeline {
    position: relative;
    margin-top: 20px;
}

.history-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 6px;
    background: #0e1434;
    border-radius: 3px;
    transform: translateX(-50%);
}

.history-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.history-card {
    background: #fff;
    padding: 18px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(182, 181, 171, 0.65);
    align-self: center;
    grid-row: 1;
}

.history-card .history {
    margin: 0;
}

.history-item.is-right .history-card,
.history-item.is_right .history-card {
    grid-column: 3;
}

.history-item:not(.is-right) .history-card {
    grid-column: 1;
}

.history-node {
    grid-column: 2;
    align-self: center;
    justify-self: center;
    grid-row: 1;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #b6b5ab;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.history-media {
    grid-row: 1;
    align-self: center;
    justify-self: center;
    display: flex;
    justify-content: center;
}

.history-item.is-right .history-media,
.history-item.is_right .history-media {
    grid-column: 1;
}

.history-item:not(.is-right) .history-media {
    grid-column: 3;
}

.history-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    border: 4px solid var(--gold-500);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(14, 20, 52, 0.25);
}

.history-year {
    font-weight: 700;
    color: #333;
    font-size: 14px;
}

.history-en {
    direction: ltr;
    text-align: left;
    color: #333;
    line-height: 1.7;
    font-size: 14px;
    margin-bottom: 12px;
}

.history-ar {
    direction: rtl;
    text-align: right;
    color: #333;
    line-height: 1.7;
    font-size: 14px;
    margin: 0;
}

@media (max-width: 992px) {
    .history-timeline::before {
        left: 24px;
    }

    .history-item {
        grid-template-columns: auto 1fr;
        gap: 16px;
    }

    .history-node {
        grid-column: 1;
    }

    .history-card {
        grid-column: 2;
    }

    .history-media {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
        margin-top: 8px;
    }

    .history-item.is-right .history-card,
    .history-item.is_right .history-card,
    .history-item:not(.is-right) .history-card {
        grid-column: 2;
    }
}

/* Values + partnerships layout handled in Tailwind */

/* Partners Swiper (Coverflow) */
.partners-swiper {
    position: relative;
    padding: 20px 50px 60px;
}

.partners-swiper .swiper-slide {
    width: 260px;
    background: #fff;
    border: 2px solid var(--gold-500);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.partners-swiper .partner-logo {
    max-width: 100%;
    height: 120px;
    object-fit: contain;
}

.partners-swiper .swiper-slide-shadow-left,
.partners-swiper .swiper-slide-shadow-right {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0));
}

.partners-swiper .partners-nav {
    color: var(--gold-500);
}

.partners-swiper .swiper-button-prev,
.partners-swiper .swiper-button-next {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gold-500);
    color: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.partners-swiper .swiper-button-prev::after,
.partners-swiper .swiper-button-next::after {
    font-size: 18px;
    font-weight: bold;
}

/* Updates Section (Events + News) */
.updates-section {
    padding: 60px 0;
}

.updates-panel {
    background: #fff;
    border: 1px solid rgba(14, 20, 52, 0.25);
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    padding: 10px;
}

.updates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.updates-column {
    padding: 30px;
}

.updates-column + .updates-column {
    border-inline-start: 1px solid var(--gold-border);
}

.updates-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.updates-header h2 {
    color: var(--primary-color);
    font-size: 22px;
    margin: 0;
}

.updates-action {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.updates-action:hover {
    border-bottom-color: var(--primary-color);
}

.updates-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.updates-item {
    display: flex;
    gap: 5px;
    padding: 16px;
    border-radius: 10px;
    background: var(--gold-soft);
    border: 1px solid var(--gold-border);
}

.updates-item--featured {
    flex-direction: column;
}

.updates-item--featured .updates-media {
    width: 100%;
    height: 160px;
}

.updates-news-top {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.updates-news-bottom {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.updates-news-bottom .updates-item {
    flex-direction: column;
}

.updates-news-bottom .updates-media {
    width: 100%;
    height: 120px;
}

.updates-media {
    width: 150px;
    height: 130px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--gold-border);
    background: #fff;
}

.updates-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.updates-date {
    min-width: 64px;
    text-align: center;
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--gold-border);
    padding: 10px 8px;
    line-height: 1.1;
}

.updates-date .day {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.updates-date .month {
    display: block;
    font-size: 12px;
    color: var(--text-light);
}

.updates-date-text {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 6px;
}

.updates-content h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: var(--text-dark);
}

.updates-content p {
    margin: 0 0 10px;
    color: var(--text-light);
    line-height: 1.6;
}

.updates-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.updates-link:hover {
    text-decoration: underline;
}

.updates-title-link {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.updates-title-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

@media (max-width: 992px) {
    .updates-grid {
        grid-template-columns: 1fr;
    }

    .updates-column + .updates-column {
        border-inline-start: none;
        border-top: 1px solid rgba(14, 20, 52, 0.2);
    }

    .updates-news-top,
    .updates-news-bottom {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .partners-swiper {
        padding: 20px 30px 50px;
    }

    .partners-swiper .swiper-slide {
        width: 200px;
        padding: 16px;
    }

    .partners-swiper .swiper-button-prev,
    .partners-swiper .swiper-button-next {
        width: 36px;
        height: 36px;
    }
}

.partner-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.partner-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 32px;
}

.partner-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.partner-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.partnership-benefits {
    margin: 50px 0;
}

.partnership-benefits h2 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 25px;
}

.become-partner {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    margin-top: 50px;
}

.become-partner h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.become-partner p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.8;
}

/* About Qatar layout handled in Tailwind */

/* Attractions list handled in Tailwind */

/* Page layouts moved to Tailwind */

/* Activities Page */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.activity-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.activity-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 32px;
}

.activity-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 22px;
}

.activity-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Travel & Share layout handled in Tailwind */

/* News layout handled in Tailwind */

/* Testimonials layout handled in Tailwind */

/* Media Gallery layout handled in Tailwind */

/* Statistics layout handled in Tailwind */

/* Event detail layout handled in Tailwind */

/* Event detail content handled in Tailwind */

/* Social share styles removed */

/* Partners layout handled in Tailwind */

/* Hostel & Accommodation + Events (behavior only) */
.room-category-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.events-tab.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.room-gallery {
    display: none !important;
}

.room-gallery.active {
    display: grid !important;
}

/* Room details layout handled in Tailwind */

.booking-section {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    margin-top: 50px;
}

.booking-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.booking-section p {
    color: var(--text-light);
    margin-bottom: 25px;
}

/* Camps & Activities Page */
.camps-activities-page {
    padding: 60px 0;
}

.camps-intro {
    text-align: center;
    margin-bottom: 50px;
}

.camps-main-title {
    font-size: 48px;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

.camps-description {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.activity-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.activity-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.activity-card:hover .activity-image img {
    transform: scale(1.1);
}

.activity-content {
    padding: 25px;
}

.activity-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.activity-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.activity-social {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.activity-social span {
    color: var(--text-light);
    font-size: 14px;
    padding: 5px 10px;
    background: var(--bg-light);
    border-radius: 3px;
}

/* Responsive additions */
@media (max-width: 768px) {
    .accommodation-title {
        font-size: 32px;
    }
}

/* Workshops layout handled in Tailwind */

.lecture-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 30px 0;
}

.lecture-item {
    display: flex;
    gap: 20px;
    background: var(--white);
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    align-items: flex-start;
}

.lecture-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.lecture-icon {
    font-size: 40px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.lecture-content {
    flex: 1;
}

.lecture-content h4 {
    color: var(--secondary-color);
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 600;
}

.lecture-content p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 15px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.benefit-item {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: var(--transition);
}

.benefit-item:hover {
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.benefit-item i {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.benefit-item h4 {
    color: var(--secondary-color);
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.benefit-item p {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 14px;
}

.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    color: var(--white);
    margin: 50px 0;
}

.cta-section h3 {
    color: var(--white);
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 700;
}

.cta-section p {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.95;
    line-height: 1.8;
}

.cta-section .btn {
    background: var(--white);
    color: var(--primary-color);
    border: none;
}

.cta-section .btn:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .lecture-item {
        flex-direction: column;
        text-align: center;
    }

    .lecture-icon {
        margin: 0 auto;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* Competition layout handled in Tailwind */

.sponsor-info p {
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
}

/* Competition responsive handled in Tailwind */

/* Programs Page */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.program-card {
    background: var(--white);
    border-radius: 10px;
    padding: 35px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.program-icon {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.program-card h3 {
    color: var(--secondary-color);
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.program-card p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 25px;
    flex-grow: 1;
}

.program-card .btn {
    margin-top: auto;
}

@media (max-width: 768px) {
    .programs-grid {
        grid-template-columns: 1fr;
    }
}


.rules-header {
    background: linear-gradient(to right, #f9fafb, #ffffff, #f9fafb);
    padding: 40px 0;
    text-align: center;
}

.rules-header__title {
    font-size: 32px;
    font-weight: 800;
}

.rules-header__code {
    color: #6b7280;
    font-size: 13px;
    margin-top: 6px;
}

.rules-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.rules-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rules-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px;
}

.rules-card__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.rules-card__title-lg {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.rules-text {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.7;
}

.rules-list {
    display: grid;
    gap: 10px;
}

.rules-list__item {
    font-size: 14px;
    color: #374151;
}

.rules-table {
    width: 100%;
    border-collapse: collapse;
}

.rules-table th,
.rules-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.rules-badge {
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
}

.rules-badge--danger {
    background: #fee2e2;
    color: #dc2626;
}

.rules-sidebar__box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.rules-signature {
    text-align: center;
    margin-top: 20px;
}

.rules-signature__line {
    width: 250px;
    height: 1px;
    background: #ccc;
    margin: 20px auto 0;
}

/* ===== Rules Page Cards ===== */
.rules-card {
    background: #ffffff;
    border: 1px solid var(--gold-border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

/* Top gold accent line */
.rules-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--gold-gradient);
    opacity: 0.9;
}

/* Hover effect */
.rules-card:hover {
    transform: translateY(-4px);
    border-color: rgba(14, 20, 52, 0.45);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(14, 20, 52, 0.45),
        0 0 18px rgba(14, 20, 52, 0.25);
}

/* Section titles */
.rules-title {
    color: var(--primary-color);
    font-weight: 700;
}

/* Gold bullet for lists */
.rules-list li {
    position: relative;
    padding-inline-start: 18px;
}

.rules-list li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--gold-500);
    border-radius: 50%;
}

/* ========== زر عائم لوسائل التواصل ========== */
.floating-social {
    position: fixed;
    bottom: 1.5rem;
    inset-inline-end: 1.5rem;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

.floating-social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8) translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    pointer-events: none;
}

.floating-social.open .floating-social-links {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.floating-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.2s;
    transform: scale(0);
    opacity: 0;
}

.floating-social.open .floating-social-link {
    transform: scale(1);
    opacity: 1;
    transition-delay: calc(0.05s * (var(--i, 0) + 1));
}

.floating-social-link:nth-child(1) { background: linear-gradient(135deg, #1877f2, #0d65d9); }
.floating-social-link:nth-child(2) { background: linear-gradient(135deg, #e4405f, #c13584); }
.floating-social-link:nth-child(3) { background: linear-gradient(135deg, #2d2d2d, #4a4a4a); color: #fff; }

.floating-social-link:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.floating-social-link i {
    font-size: 1.1rem;
}

.floating-social-toggle {
    width: 3.5rem;
    height: 3.5rem;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #0e1434, #1a2248);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(14, 20, 52, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.floating-social-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(14, 20, 52, 0.45);
    background: linear-gradient(135deg, #1a2248, #b6b5ab);
    color: #0e1434;
}

.floating-social-toggle i {
    font-size: 1.25rem;
    transition: transform 0.35s ease;
}

.floating-social.open .floating-social-toggle i {
    transform: rotate(-180deg);
}

@media (max-width: 480px) {
    .floating-social {
        bottom: 1rem;
        inset-inline-end: 1rem;
    }
    .floating-social-toggle {
        width: 3rem;
        height: 3rem;
    }
    .floating-social-toggle i {
        font-size: 1.1rem;
    }
    .floating-social-link {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* ——— زر «أضف للسلة» فوق صورة المنتج (لا يعتمد فقط على Tailwind المُجمّع) ——— */
.product-card-media {
    position: relative;
    isolation: isolate;
}

.product-quick-add-form {
    position: absolute !important;
    top: 0.5rem !important;
    left: 0.5rem !important;
    z-index: 50 !important;
    margin: 0 !important;
    pointer-events: auto;
}

.product-card-media > a {
    position: relative;
    z-index: 0;
}

/* ===== Section animations (Products / Services / Home products) ===== */
@keyframes section-fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes section-fade-right {
    from {
        opacity: 0;
        transform: translateX(-18px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes section-fade-left {
    from {
        opacity: 0;
        transform: translateX(18px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.anim-reveal-up,
.anim-reveal-left,
.anim-reveal-right {
    opacity: 0;
    animation-duration: 0.6s;
    animation-timing-function: ease;
    animation-fill-mode: forwards;
    will-change: transform, opacity;
    animation-delay: var(--anim-delay, 0ms);
}

.anim-reveal-up {
    animation-name: section-fade-up;
}

.anim-reveal-right {
    animation-name: section-fade-right;
}

.anim-reveal-left {
    animation-name: section-fade-left;
}

.anim-card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.anim-card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(14, 20, 52, 0.14);
}

@media (prefers-reduced-motion: reduce) {
    .anim-reveal-up,
    .anim-reveal-left,
    .anim-reveal-right {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .anim-card-hover,
    .anim-card-hover:hover {
        transition: none !important;
        transform: none !important;
    }
}

/* Product details gallery (main image + thumbnails) */
.product-gallery-main {
    border-radius: 1rem;
    overflow: hidden;
}

.product-gallery-main .swiper-slide {
    border-radius: 1rem;
    overflow: hidden;
    background: transparent;
    aspect-ratio: 16 / 10;
    max-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-gallery-thumbs .swiper-slide {
    border-radius: 0.75rem;
    overflow: hidden;
    background: transparent;
    aspect-ratio: 1 / 1;
    opacity: 0.65;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #0f172a;
}

.product-gallery-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 1024px) {
    .product-gallery-main .swiper-slide {
        max-height: 300px;
    }
}

@media (max-width: 640px) {
    .product-gallery-main .swiper-slide {
        aspect-ratio: 4 / 3;
        max-height: 260px;
    }
}