/* =========================================================
   دليل الجمعيات الخيرية الطبية
   style.css
   متوافق مع index.html
========================================================= */


/* =========================================================
   الإعدادات العامة
========================================================= */

:root {
    --red: #d90000;
    --red-light: #ff2d2d;
    --red-dark: #720000;

    --black: #070707;
    --black-2: #0d0d0d;
    --card: #151515;

    --white: #ffffff;
    --text: #eeeeee;
    --muted: #aaaaaa;

    --border: rgba(255, 35, 35, 0.28);
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
    width: 100%;
}


body {
    width: 100%;
    min-height: 100vh;

    direction: rtl;

    font-family:
        "Cairo",
        Tahoma,
        Arial,
        sans-serif;

    color: var(--white);

    background:
        radial-gradient(
            circle at 80% 10%,
            rgba(150, 0, 0, 0.20),
            transparent 35%
        ),

        radial-gradient(
            circle at 10% 50%,
            rgba(100, 0, 0, 0.12),
            transparent 35%
        ),

        linear-gradient(
            135deg,
            #050000 0%,
            #180000 50%,
            #030303 100%
        );

    overflow-x: hidden;
}


img {
    max-width: 100%;
}


button,
input {
    font-family: inherit;
}


/* =========================================================
   الخلفية
========================================================= */

.background-effect {
    position: fixed;

    inset: 0;

    z-index: -1;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(255, 0, 0, 0.05),
            transparent 30%
        ),

        radial-gradient(
            circle at 80% 80%,
            rgba(255, 0, 0, 0.04),
            transparent 30%
        );
}


/* =========================================================
   الحاوية الرئيسية
========================================================= */

.site-container {
    width: 100%;
    max-width: 1180px;

    margin: 0 auto;

    padding:
        0 20px
        50px;
}


/* =========================================================
   رأس الموقع
========================================================= */

.site-header {
    width: 100%;

    padding:
        28px
        0
        25px;

    text-align: center;

    border-bottom:
        1px solid
        rgba(255, 0, 0, 0.15);
}


/* =========================================================
   منطقة الشعار
========================================================= */

.logo-area {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    width: 100%;
}


/* =========================================================
   صندوق شعار الموقع
   هذا هو الإصلاح الأساسي
========================================================= */

.logo-icon {
    position: relative;

    width: 110px;
    height: 110px;

    min-width: 110px;
    min-height: 110px;

    max-width: 110px;
    max-height: 110px;

    padding: 4px;

    margin:
        0 auto
        15px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    overflow: hidden;

    background: #111;

    border:
        2px solid
        rgba(255, 50, 50, 0.45);

    box-shadow:
        0 0 0 5px
        rgba(255, 0, 0, 0.04),

        0 0 35px
        rgba(220, 0, 0, 0.22),

        inset 0 0 20px
        rgba(0, 0, 0, 0.5);
}


/* =========================================================
   صورة logo.png
========================================================= */

.logo-icon img {
    display: block;

    width: 100%;
    height: 100%;

    max-width: 100%;
    max-height: 100%;

    min-width: 0;
    min-height: 0;

    object-fit: contain;

    border-radius: 50%;
}


/* =========================================================
   نص الشعار
========================================================= */

.logo-text {
    width: 100%;

    text-align: center;
}


.logo-text h1 {
    color: #fff;

    font-size:
        clamp(28px, 5vw, 46px);

    font-weight: 900;

    line-height: 1.5;

    text-shadow:
        0 3px 20px
        rgba(255, 0, 0, 0.18);
}


.logo-text span {
    display: block;

    margin-top: 2px;

    color: #ddd;

    font-size:
        clamp(14px, 2.5vw, 19px);

    font-weight: 600;
}


/* =========================================================
   شارة الموقع
========================================================= */

.header-badge {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 13px;

    padding:
        7px
        16px;

    border:
        1px solid
        rgba(255, 40, 40, 0.25);

    border-radius: 30px;

    background:
        rgba(100, 0, 0, 0.14);

    color: #ddd;

    font-size: 13px;

    font-weight: 700;
}


.badge-icon {
    font-size: 17px;
}


/* =========================================================
   القسم الرئيسي
========================================================= */

.hero-section {
    width: 100%;

    padding:
        42px
        20px
        35px;

    text-align: center;
}


.hero-content {
    width: 100%;
    max-width: 850px;

    margin: 0 auto;
}


.hero-icon {
    margin-bottom: 8px;

    font-size: 32px;
}


.hero-content h2 {
    color: #fff;

    font-size:
        clamp(27px, 5vw, 44px);

    font-weight: 900;

    line-height: 1.6;

    text-shadow:
        0 3px 20px
        rgba(255, 0, 0, 0.15);
}


.hero-content p {
    max-width: 760px;

    margin:
        10px auto
        0;

    color: #d3d3d3;

    font-size:
        clamp(14px, 2.5vw, 19px);

    font-weight: 500;

    line-height: 2;
}


/* =========================================================
   البحث
========================================================= */

.search-section {
    width: 100%;
    max-width: 850px;

    margin:
        0 auto
        45px;
}


.search-box {
    position: relative;

    width: 100%;
    height: 64px;

    display: flex;

    align-items: center;

    border:
        1px solid
        rgba(255, 30, 30, 0.55);

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            #171717,
            #0b0b0b
        );

    box-shadow:
        0 15px 45px
        rgba(0, 0, 0, 0.55);

    overflow: hidden;

    transition: 0.25s ease;
}


.search-box:focus-within {
    border-color: #ff3030;

    box-shadow:
        0 15px 45px
        rgba(0, 0, 0, 0.65),

        0 0 25px
        rgba(220, 0, 0, 0.15);
}


/* =========================================================
   أيقونة البحث
========================================================= */

.search-icon {
    position: absolute;

    right: 18px;
    top: 50%;

    transform: translateY(-50%);

    z-index: 2;

    width: 32px;
    height: 32px;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 24px;

    pointer-events: none;
}


/* =========================================================
   حقل البحث
========================================================= */

.search-box input {
    width: 100%;
    height: 100%;

    padding:
        0 58px
        55px
        0;

    border: 0;
    outline: 0;

    background: transparent;

    color: #fff;

    font-size: 15px;
    font-weight: 600;

    text-align: right;
}


.search-box input::placeholder {
    color: #777;
}


/* =========================================================
   زر مسح البحث
========================================================= */

.clear-search {
    position: absolute;

    left: 13px;
    top: 50%;

    transform: translateY(-50%);

    width: 38px;
    height: 38px;

    border: 0;

    border-radius: 50%;

    background:
        rgba(255, 0, 0, 0.12);

    color: #ff6666;

    font-size: 24px;

    cursor: pointer;
}


/* =========================================================
   التصنيفات
========================================================= */

.categories-section {
    width: 100%;

    margin-bottom: 55px;
}


/* =========================================================
   عنوان التصنيفات
========================================================= */

.section-title {
    width: 100%;

    margin-bottom: 20px;
}


.section-title > div {
    display: flex;

    align-items: center;

    gap: 10px;
}


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


.section-title h2 {
    color: #fff;

    font-size:
        clamp(24px, 4vw, 34px);

    font-weight: 900;
}


/* =========================================================
   حاوية التصنيفات
========================================================= */

.categories-container {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 12px;
}


/* =========================================================
   أزرار التصنيفات
========================================================= */

.category-button {
    min-height: 68px;

    border:
        1px solid
        rgba(255, 255, 255, 0.10);

    border-radius: 17px;

    background:
        linear-gradient(
            145deg,
            #151515,
            #0c0c0c
        );

    color: #ddd;

    font-size: 15px;

    font-weight: 800;

    cursor: pointer;

    transition: 0.25s ease;
}


.category-button:hover {
    transform: translateY(-3px);

    border-color:
        rgba(255, 40, 40, 0.60);
}


.category-button.active {
    color: #fff;

    border-color:
        #ff3030;

    background:
        linear-gradient(
            145deg,
            #db0000,
            #790000
        );

    box-shadow:
        0 0 25px
        rgba(255, 0, 0, 0.18);
}


/* =========================================================
   قسم الجمعيات
========================================================= */

.associations-section {
    width: 100%;
}


/* =========================================================
   عنوان الجمعيات
========================================================= */

.section-heading {
    width: 100%;

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;
}


.heading-right {
    display: flex;

    align-items: center;

    gap: 12px;

    min-width: 0;
}


.heading-icon {
    flex: 0 0 auto;

    font-size: 29px;
}


.heading-right h2 {
    color: #fff;

    font-size:
        clamp(24px, 4vw, 35px);

    font-weight: 900;

    line-height: 1.6;
}


.heading-right p {
    margin-top: 3px;

    color: #aaa;

    font-size: 14px;

    font-weight: 500;
}


.association-count {
    flex: 0 0 auto;

    color: #ff8585;

    font-size: 14px;

    font-weight: 800;
}


/* =========================================================
   شبكة الجمعيات
========================================================= */

.associations-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
}


/* =========================================================
   بطاقة الجمعية
========================================================= */

.association-card {
    position: relative;

    width: 100%;
    min-width: 0;

    min-height: 230px;

    display: flex;

    flex-direction: column;

    padding: 19px;

    border:
        1px solid
        rgba(255, 255, 255, 0.10);

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            #171717,
            #0c0c0c
        );

    box-shadow:
        0 18px 50px
        rgba(0, 0, 0, 0.55);

    overflow: hidden;

    transition: 0.25s ease;
}


.association-card::before {
    content: "";

    position: absolute;

    top: 0;
    right: 0;
    left: 0;

    height: 3px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #e00000,
            #ff3b3b,
            #e00000,
            transparent
        );
}


.association-card:hover {
    transform: translateY(-5px);

    border-color:
        rgba(255, 40, 40, 0.40);
}


/* =========================================================
   رأس بطاقة الجمعية
========================================================= */

.card-header {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 15px;
}


.card-top {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 15px;
}


/* =========================================================
   شعار الجمعية
========================================================= */

.association-logo {
    flex:
        0 0 88px;

    width: 88px;
    height: 88px;

    padding: 3px;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #ff4b4b,
            #970000,
            #400000
        );

    overflow: hidden;
}


.association-logo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 17px;

    background: #111;
}


.default-logo {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 17px;

    background: #111;

    font-size: 38px;
}


/* =========================================================
   معلومات البطاقة
========================================================= */

.card-info {
    min-width: 0;

    flex: 1;
}


.card-title {
    min-width: 0;
}


.card-title h3,
.association-card h3 {
    color: #fff;

    font-size: 19px;

    font-weight: 900;

    line-height: 1.8;

    word-break: break-word;
}


.card-category {
    display: inline-block;

    margin-top: 5px;

    padding:
        3px
        11px;

    border:
        1px solid
        rgba(255, 40, 40, 0.40);

    border-radius: 9px;

    background:
        rgba(130, 0, 0, 0.14);

    color: #ff9898;

    font-size: 11px;

    font-weight: 800;
}


/* =========================================================
   وصف الجمعية
========================================================= */

.card-description {
    margin:
        8px
        0
        14px;

    color: #cfcfcf;

    font-size: 13px;

    font-weight: 500;

    line-height: 1.9;
}


/* =========================================================
   معلومات مختصرة داخل البطاقة
========================================================= */

.card-details {
    display: flex;

    flex-direction: column;

    gap: 7px;

    margin-bottom: 15px;
}


.card-detail {
    display: flex;

    align-items: center;

    gap: 8px;

    color: #ddd;

    font-size: 13px;

    font-weight: 600;
}


/* =========================================================
   زر عرض التفاصيل
========================================================= */

.card-button,
.details-button,
.view-details {
    width: 100%;

    min-height: 49px;

    margin-top: auto;

    padding:
        9px
        15px;

    border:
        1px solid
        rgba(255, 40, 40, 0.65);

    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            #df0000,
            #790000
        );

    color: #fff;

    font-size: 13px;

    font-weight: 900;

    cursor: pointer;

    transition: 0.25s ease;
}


.card-button:hover,
.details-button:hover,
.view-details:hover {
    transform: translateY(-2px);

    background:
        linear-gradient(
            145deg,
            #f00000,
            #950000
        );

    box-shadow:
        0 8px 25px
        rgba(255, 0, 0, 0.18);
}


/* =========================================================
   رسالة لا توجد نتائج
========================================================= */

.no-results {
    width: 100%;

    padding:
        45px
        20px;

    margin-top: 20px;

    text-align: center;

    border:
        1px solid
        rgba(255, 30, 30, 0.20);

    border-radius: 22px;

    background:
        rgba(18, 18, 18, 0.90);
}


.no-results[hidden] {
    display: none;
}


.no-results-icon {
    margin-bottom: 8px;

    font-size: 42px;
}


.no-results h3 {
    color: #fff;

    font-size: 20px;

    font-weight: 800;
}


.no-results p {
    margin-top: 5px;

    color: #999;

    font-size: 13px;
}


/* =========================================================
   قسم الهدف
========================================================= */

.about-section {
    width: 100%;

    margin-top: 55px;
}


.about-card {
    display: flex;

    align-items: flex-start;

    gap: 18px;

    padding: 25px;

    border:
        1px solid
        rgba(255, 30, 30, 0.20);

    border-radius: 23px;

    background:
        linear-gradient(
            145deg,
            #151515,
            #0b0b0b
        );
}


.about-icon {
    flex: 0 0 auto;

    font-size: 32px;
}


.about-content h2 {
    margin-bottom: 7px;

    color: #fff;

    font-size: 23px;

    font-weight: 900;
}


.about-content p {
    color: #ccc;

    font-size: 14px;

    font-weight: 500;

    line-height: 2;
}


/* =========================================================
   التذييل
========================================================= */

.site-footer {
    width: 100%;

    margin-top: 55px;

    padding:
        28px
        10px;

    text-align: center;

    border-top:
        1px solid
        rgba(255, 30, 30, 0.15);
}


.footer-logo {
    font-size: 27px;

    margin-bottom: 5px;
}


.site-footer h3 {
    color: #ddd;

    font-size: 17px;

    font-weight: 800;
}


.site-footer p {
    margin-top: 3px;

    color: #999;

    font-size: 13px;
}


.footer-line {
    width: 70px;
    height: 2px;

    margin:
        15px auto;

    border-radius: 20px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #e00000,
            transparent
        );
}


.copyright {
    color: #666;

    font-size: 11px;
}


/* =========================================================
   النافذة المنبثقة
========================================================= */

.modal {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: none;

    align-items: center;
    justify-content: center;
}


.modal.show,
.modal.active {
    display: flex;
}


.modal[aria-hidden="false"] {
    display: flex;
}


.modal-overlay {
    position: absolute;

    inset: 0;

    background:
        rgba(0, 0, 0, 0.82);

    backdrop-filter:
        blur(7px);
}


.modal-content {
    position: relative;

    z-index: 2;

    width:
        min(
            760px,
            calc(100% - 25px)
        );

    max-height:
        calc(100vh - 30px);

    overflow-y: auto;

    padding: 25px;

    border:
        1px solid
        rgba(255, 40, 40, 0.35);

    border-radius: 25px;

    background:
        linear-gradient(
            145deg,
            #181818,
            #090909
        );

    box-shadow:
        0 30px 90px
        rgba(0, 0, 0, 0.85);

    animation:
        modalShow 0.25s ease;
}


@keyframes modalShow {

    from {
        opacity: 0;

        transform:
            translateY(20px)
            scale(.97);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


/* =========================================================
   زر إغلاق النافذة
========================================================= */

.modal-close {
    position: absolute;

    top: 12px;
    left: 12px;

    z-index: 5;

    width: 40px;
    height: 40px;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    border-radius: 50%;

    background:
        rgba(0, 0, 0, 0.55);

    color: #fff;

    font-size: 25px;

    line-height: 1;

    cursor: pointer;
}


.modal-close:hover {
    background: #a00000;
}


/* =========================================================
   محتوى النافذة
========================================================= */

.modal-body {
    width: 100%;
}


/* =========================================================
   عناصر محتملة ينشئها script.js
========================================================= */

.modal-body h2,
.modal-body h3 {
    color: #fff;

    font-weight: 900;
}


.modal-body p {
    color: #ddd;

    line-height: 2;
}


.modal-body ul {
    padding-right: 20px;

    color: #ddd;
}


.modal-body li {
    margin-bottom: 7px;
}


/* =========================================================
   أزرار التواصل
========================================================= */

.modal-body a {
    text-decoration: none;
}


/* =========================================================
   زر العودة للأعلى
========================================================= */

.back-to-top {
    position: fixed;

    right: 18px;
    bottom: 18px;

    z-index: 3000;

    width: 45px;
    height: 45px;

    display: none;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(255, 50, 50, 0.50);

    border-radius: 50%;

    background:
        #980000;

    color: #fff;

    font-size: 21px;

    cursor: pointer;

    box-shadow:
        0 10px 30px
        rgba(0, 0, 0, 0.5);
}


.back-to-top.show {
    display: flex;
}


/* =========================================================
   شريط التمرير
========================================================= */

::-webkit-scrollbar {
    width: 7px;
}


::-webkit-scrollbar-track {
    background: #050505;
}


::-webkit-scrollbar-thumb {
    background: #720000;

    border-radius: 10px;
}


::-webkit-scrollbar-thumb:hover {
    background: #b00000;
}


/* =========================================================
   الأجهزة اللوحية
========================================================= */

@media (max-width: 900px) {

    .site-container {
        padding:
            0 15px
            45px;
    }


    .categories-container {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }


    .associations-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   الهاتف
========================================================= */

@media (max-width: 650px) {

    html,
    body {
        width: 100%;

        max-width: 100%;

        overflow-x: hidden;
    }


    .site-container {
        width: 100%;

        max-width: 100%;

        margin: 0;

        padding:
            0 10px
            35px;
    }


    /* -----------------------------------------------------
       الشعار
    ----------------------------------------------------- */

    .logo-icon {
        width: 82px;
        height: 82px;

        min-width: 82px;
        min-height: 82px;

        max-width: 82px;
        max-height: 82px;

        padding: 3px;

        margin:
            16px auto
            10px;
    }


    .logo-icon img {
        width: 100%;
        height: 100%;

        max-width: 100%;
        max-height: 100%;

        object-fit: contain;
    }


    .logo-text h1 {
        font-size: 27px;
    }


    .logo-text span {
        font-size: 13px;
    }


    .header-badge {
        font-size: 12px;

        padding:
            6px
            13px;
    }


    /* -----------------------------------------------------
       المقدمة
    ----------------------------------------------------- */

    .hero-section {
        padding:
            25px
            8px
            28px;
    }


    .hero-icon {
        font-size: 27px;
    }


    .hero-content h2 {
        font-size: 26px;

        line-height: 1.7;
    }


    .hero-content p {
        font-size: 13px;

        line-height: 2;
    }


    /* -----------------------------------------------------
       البحث
    ----------------------------------------------------- */

    .search-section {
        width: 100%;

        margin-bottom: 35px;
    }


    .search-box {
        height: 57px;

        border-radius: 17px;
    }


    .search-box input {
        height: 57px;

        padding:
            0 53px
            45px
            0;

        font-size: 13px;
    }


    .search-icon {
        right: 15px;

        font-size: 21px;
    }


    /* -----------------------------------------------------
       التصنيفات
    ----------------------------------------------------- */

    .section-title h2 {
        font-size: 24px;
    }


    .title-icon {
        font-size: 23px;
    }


    .categories-container {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px;

        width: 100%;
    }


    .category-button {
        width: 100%;

        min-height: 61px;

        padding:
            8px
            5px;

        border-radius: 14px;

        font-size: 13px;
    }


    /* -----------------------------------------------------
       عنوان الجمعيات
    ----------------------------------------------------- */

    .section-heading {
        align-items: flex-start;

        margin-bottom: 18px;
    }


    .heading-right {
        gap: 8px;
    }


    .heading-icon {
        font-size: 23px;
    }


    .heading-right h2 {
        font-size: 23px;

        line-height: 1.65;
    }


    .heading-right p {
        font-size: 12px;
    }


    .association-count {
        font-size: 12px;

        white-space: nowrap;
    }


    /* -----------------------------------------------------
       البطاقات
    ----------------------------------------------------- */

    .associations-grid {
        width: 100%;

        grid-template-columns: 1fr;

        gap: 15px;
    }


    .association-card {
        width: 100%;

        min-width: 0;

        min-height: 210px;

        padding: 16px;

        border-radius: 20px;
    }


    .card-header,
    .card-top {
        gap: 11px;

        margin-bottom: 12px;
    }


    .association-logo {
        flex:
            0 0 75px;

        width: 75px;
        height: 75px;

        border-radius: 17px;
    }


    .association-logo img,
    .default-logo {
        border-radius: 14px;
    }


    .card-title h3,
    .association-card h3 {
        font-size: 16px;

        line-height: 1.7;
    }


    .card-category {
        font-size: 10px;

        padding:
            3px
            8px;
    }


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


    .card-detail {
        font-size: 12px;
    }


    .card-button,
    .details-button,
    .view-details {
        min-height: 47px;

        font-size: 12px;

        border-radius: 13px;
    }


    /* -----------------------------------------------------
       الهدف
    ----------------------------------------------------- */

    .about-section {
        margin-top: 40px;
    }


    .about-card {
        gap: 12px;

        padding: 18px;

        border-radius: 19px;
    }


    .about-icon {
        font-size: 25px;
    }


    .about-content h2 {
        font-size: 19px;
    }


    .about-content p {
        font-size: 12px;

        line-height: 2;
    }


    /* -----------------------------------------------------
       التذييل
    ----------------------------------------------------- */

    .site-footer {
        margin-top: 40px;
    }


    /* -----------------------------------------------------
       النافذة
    ----------------------------------------------------- */

    .modal-content {
        width:
            calc(100% - 16px);

        max-width: 100%;

        max-height:
            calc(100vh - 20px);

        padding: 18px;

        border-radius: 20px;
    }


    .modal-close {
        width: 37px;
        height: 37px;

        font-size: 23px;
    }
}


/* =========================================================
   الهواتف الصغيرة جدًا
========================================================= */

@media (max-width: 390px) {

    .site-container {
        padding:
            0 8px
            30px;
    }


    .logo-icon {
        width: 70px;
        height: 70px;

        min-width: 70px;
        min-height: 70px;

        max-width: 70px;
        max-height: 70px;
    }


    .logo-text h1 {
        font-size: 24px;
    }


    .hero-content h2 {
        font-size: 23px;
    }


    .categories-container {
        gap: 6px;
    }


    .category-button {
        min-height: 57px;

        font-size: 12px;
    }


    .heading-right h2 {
        font-size: 20px;
    }


    .association-count {
        font-size: 11px;
    }


    .association-card {
        padding: 14px;
    }


    .association-logo {
        flex-basis: 68px;

        width: 68px;
        height: 68px;
    }


    .card-title h3,
    .association-card h3 {
        font-size: 15px;
    }
}


/* =========================================================
   منع أي عنصر من تجاوز عرض الشاشة
========================================================= */

.site-container,
.site-header,
.logo-area,
.hero-section,
.search-section,
.categories-section,
.categories-container,
.associations-section,
.associations-grid,
.association-card,
.about-section,
.about-card,
.site-footer {
    max-width: 100%;
}
/* أرقام الهاتف باللون الأصفر */
a[href^="tel:"] {
    color: #ffd700 !important;
}
/* =========================================================
   زر الرئيسية الثابت أسفل الشاشة
========================================================= */

.fixed-home-button {
    position: fixed;
    bottom: 18px;
    right: 18px;

    width: 62px;
    height: 62px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 3px;

    background: linear-gradient(
        145deg,
        #d4af37,
        #f5d76e,
        #b8860b
    );

    color: #071426;

    border-radius: 50%;

    text-decoration: none;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.35),
        0 0 18px rgba(212, 175, 55, 0.35);

    z-index: 9999;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.fixed-home-button i {
    font-size: 21px;
}

.fixed-home-button span {
    font-family: "Cairo", sans-serif;
    font-size: 9px;
    font-weight: 800;
}

.fixed-home-button:hover {
    transform: translateY(-4px) scale(1.05);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(212, 175, 55, 0.55);
}

.fixed-home-button:active {
    transform: scale(0.94);
}


/* الهاتف */

@media (max-width: 600px) {

    .fixed-home-button {
        width: 56px;
        height: 56px;

        bottom: 15px;
        right: 15px;
    }

    .fixed-home-button i {
        font-size: 19px;
    }

    .fixed-home-button span {
        font-size: 8px;
    }

}