:root{
    --ink:#34241f;
    --brown:#4e271e;
    --brown-2:#6f493d;
    --taupe:#9f8b81;
    --sand:#e9dfd7;
    --cream:#f7f3ef;
    --paper:#fffdfb;
    --line:#e4dad4;
    --muted:#786b66;
    --shadow:0 18px 50px rgba(64,39,31,.08);
    --radius:22px;
}

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    font-family:"Cairo",Tahoma,Arial,sans-serif;
    background:var(--paper);
    color:var(--ink);
}

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

a{
    color:inherit;
}

.container{
    width:min(1180px,calc(100% - 36px));
    margin-inline:auto;
}


/* =========================================================
   NAVBAR
========================================================= */

.site-header{
    position:sticky;
    top:0;
    z-index:1000;
    border-bottom:1px solid rgba(78,39,30,.08);
    background:rgba(255,253,251,.94);
    backdrop-filter:blur(14px);
}

.nav-shell{
    min-height:78px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
}

.brand{
    display:flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
}

.brand-mark{
    width:56px;
    height:56px;
    flex:0 0 56px;

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

    overflow:hidden;

    border-radius:50%;
    background:#fff;
    border:1px solid var(--line);
}

.brand-mark img{
    width:100%;
    height:100%;
    object-fit:contain;
    padding:4px;
}

.brand strong{
    display:block;
    font-size:15px;
}

.brand small{
    display:block;
    margin-top:1px;
    color:var(--muted);
    font-size:15px;
}

.main-nav{
    display:flex;
    align-items:center;
    gap:6px;
}

.main-nav a{
    padding:10px 13px;
    border-radius:999px;
    text-decoration:none;
    font-size:13px;
    font-weight:700;
    transition:.2s ease;
}

.main-nav a:hover,
.main-nav a.active{
    background:var(--brown);
    color:#fff;
}

.nav-toggle{
    display:none;
    border:0;
    background:transparent;
    color:var(--brown);
    font-size:25px;
    cursor:pointer;
}


/* =========================================================
   HERO
========================================================= */

.hero-section{
    padding:52px 0 76px;

    background:
        radial-gradient(
            circle at 10% 10%,
            #f2e8e1 0,
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #fffdfb 0,
            #f8f3ef 100%
        );
}

.hero-grid{
    min-height:580px;

    display:grid;

    /* الصورة أكبر قليلاً من النص */
       grid-template-columns:1fr .85fr;

    gap:55px;
    align-items:center;
}

.hero-media{
    height:460px;
}

.hero-grid{
    grid-template-columns:1fr .9fr;
    gap:55px;
    align-items:center;
}

.eyebrow{
    display:inline-block;
    margin-bottom:12px;

    color:var(--brown-2);

    font-size:14px;
    font-weight:800;
    letter-spacing:.08em;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1{
    margin:0;

    color:var(--brown);

    font-size:clamp(33px,4.4vw,62px);
    line-height:1.25;
    font-weight:800;
}

.hero-copy p{
    max-width:600px;
    margin:20px 0 0;

    color:var(--muted);

    font-size:14px;
    line-height:2.05;
}

.hero-actions{
    display:flex;
    gap:10px;
    margin-top:28px;
}

.btn{
    min-height:46px;

    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:0 20px;

    border-radius:999px;

    text-decoration:none;

    font-size:13px;
    font-weight:700;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

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

.btn-primary{
    background:var(--brown);
    color:#fff;
}

.btn-light{
    border:1px solid var(--line);
    background:#fff;
    color:var(--brown);
}


/* =========================================================
   HERO STATS
========================================================= */

.hero-stats{
    display:flex;
    gap:28px;
    margin-top:34px;
}

.hero-stats div{
    border-right:2px solid var(--sand);
    padding-right:14px;
}

.hero-stats strong{
    display:block;
    color:var(--brown);
    font-size:18px;
}

.hero-stats span{
    display:block;
    color:var(--muted);
    font-size:11px;
}


/* =========================================================
   HERO IMAGE
========================================================= */

.hero-media{
    position:relative;
    width:90%;
    height:150px;
    overflow:visible;
}
/*
    أهم جزء لعرض الصورة الجديدة.
    الصورة تملأ المساحة بدون أن تصبح صغيرة.
*/
.hero-media img{
    width:50%;
    height:50%;

    display:block;

    object-fit:cover;
    object-position:center center;

    border-radius:28px;

    box-shadow:
        0 25px 60px rgba(78,39,30,.15);
}


/* الإطار خلف الصورة */

.hero-media::before{
    content:"";

    position:absolute;

    top:28px;
    right:-18px;
    bottom:-28px;
    left:18px;

    z-index:-1;

    border:1px solid #cdbdb4;
    border-radius:28px;
}


/* البطاقة فوق الصورة */

.hero-badge{
    position:absolute;

    bottom:22px;
    right:22px;

    min-width:220px;

    padding:14px 18px;

    border-radius:14px;

    background:rgba(255,255,255,.94);

    backdrop-filter:blur(8px);

    box-shadow:
        0 12px 30px rgba(55,35,28,.14);
}

.hero-badge span,
.hero-badge strong{
    display:block;
}

.hero-badge span{
    color:var(--muted);
    font-size:11px;
}

.hero-badge strong{
    margin-top:3px;
    color:var(--brown);
    font-size:14px;
}


/* =========================================================
   PLACEHOLDER
========================================================= */

.image-placeholder,
.detail-placeholder{
    width:100%;
    height:100%;

    display:grid;
    place-items:center;
    align-content:center;

    gap:9px;

    border-radius:28px;

    background:
        linear-gradient(
            145deg,
            #e8ddd5,
            #f6f0ec
        );

    color:var(--brown);
}

.image-placeholder span,
.detail-placeholder span{
    font-size:100px;
}

.image-placeholder p,
.detail-placeholder p{
    font-size:14px;
    color:var(--muted);
}


/* =========================================================
   ABOUT
========================================================= */

/* =========================
   ABOUT US
========================= */

.about-section{
    padding:70px 0;
}

.about-grid{
    display:grid;
    grid-template-columns:0.9fr 1.1fr;
    gap:60px;
    align-items:center;
}

.about-media{
    width:100%;
    height:430px;
    align-self:center;
}

.about-media img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    border-radius:24px;
}


.about-copy{
    align-self:center;
}

.about-copy h2{
    margin:0 0 18px;
    font-size:25px;
    line-height:1.6;
}

.about-copy p{
    margin:0 0 10px;
    font-size:15px;
    line-height:1.9;
    color:var(--muted);
}


/* =========================================================
   CONTACT
========================================================= */

.contact-section{
    padding:34px 0 90px;
}

.contact-card{
    display:grid;

    grid-template-columns:1fr 1fr;

    gap:56px;

    padding:48px;

    border-radius:26px;

    background:var(--brown);

    color:#fff;
}

.light-eyebrow{
    color:#d7c4b9;
}

.contact-copy h2{
    color:#fff;
}

.contact-copy p{
    margin:0;

    color:#decfc7;

    font-size:13px;
    line-height:1.9;
}

.contact-items{
    display:grid;

    grid-template-columns:1fr 1fr;

    gap:10px;
}

.contact-item{
    padding:15px;

    border:1px solid rgba(255,255,255,.14);

    border-radius:12px;

    background:rgba(255,255,255,.05);
}

.contact-item span{
    display:block;

    color:#d9c9c0;

    font-size:10px;
}

.contact-item strong{
    display:block;

    margin-top:5px;

    font-size:14px;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer{
    padding:45px 0 18px;

    background:#2f211d;

    color:#fff;
}

.footer-grid{
    display:flex;

    justify-content:space-between;

    gap:30px;
}

.footer-brand{
    font-size:14px;
    font-weight:800;
}

.footer-grid p{
    max-width:480px;

    color:#bcaea8;

    font-size:11px;
    line-height:1.8;
}

.footer-links{
    display:flex;

    gap:15px;

    align-items:start;
}

.footer-links a{
    color:#d6cbc6;

    text-decoration:none;

    font-size:11px;
}

.copyright{
    width:min(1180px,calc(100% - 36px));

    margin:28px auto 0;

    padding-top:16px;

    border-top:1px solid rgba(255,255,255,.08);

    color:#9d908b;

    font-size:10px;
}


/* =========================================================
   PAGE HERO
========================================================= */

.page-hero.compact{
    padding:55px 0 48px;

    border-bottom:1px solid var(--line);

    background:#f8f3ef;
}

.page-hero.compact h1{
    font-size:38px;
}

.page-hero.compact p{
    margin:8px 0 0;

    color:var(--muted);

    font-size:13px;
}


/* =========================================================
   HORSES LIST
========================================================= */

.horses-section{
    padding:55px 0 85px;
}

.horse-grid{
    display:grid;

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

    gap:24px 18px;
}

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

.horse-image-link{
    position:relative;

    height:350px;

    display:block;

    overflow:hidden;

    border-radius:16px;

    background:#eee7e2;
}

.horse-image-link img{
    width:100%;
    height:100%;

    object-fit:cover;

    transition:transform .35s ease;
}

.horse-card:hover
.horse-image-link img{
    transform:scale(1.025);
}

.card-placeholder{
    height:100%;

    display:grid;
    place-items:center;
    align-content:center;

    gap:8px;

    color:#a8978e;
}

.card-placeholder span{
    font-size:50px;
}

.card-placeholder small{
    font-size:11px;
}

.horse-gender{
    position:absolute;

    top:12px;
    right:12px;

    padding:5px 9px;

    border-radius:999px;

    background:rgba(255,255,255,.9);

    color:var(--brown);

    font-size:10px;
    font-weight:800;
}

.horse-card-body{
    padding:13px 2px 0;
}

.horse-card-body h2{
    margin:0;

    color:var(--brown);

    font-size:15px;
}

.english-name{
    margin:2px 0 10px;

    color:var(--muted);

    font-size:14px;

    direction:ltr;

    text-align:right;
}

.tattoo-line{
    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:8px 0;

    border-top:1px solid var(--line);

    font-size:11px;
}

.tattoo-line span{
    color:var(--muted);
}

.tattoo-line strong{
    font-size:14px;
}

.more-link{
    margin-top:4px;

    display:inline-flex;

    align-items:center;

    gap:6px;

    color:var(--brown);

    text-decoration:none;

    font-size:14px;

    font-weight:800;
}


/* =========================================================
   EMPTY
========================================================= */

.empty-state{
    min-height:320px;

    display:grid;

    place-items:center;

    align-content:center;

    text-align:center;

    color:var(--muted);
}

.empty-state span{
    font-size:50px;

    color:#b7a49b;
}

.empty-state h2{
    margin:6px 0;

    color:var(--brown);

    font-size:18px;
}

.empty-state p{
    font-size:14px;
}


/* =========================================================
   HORSE DETAIL
========================================================= */

.horse-detail-section{
    padding:38px 0 90px;
}

.back-link{
    display:inline-block;

    margin-bottom:22px;

    color:var(--muted);

    text-decoration:none;

    font-size:14px;
}

.detail-grid{
    display:grid;

    grid-template-columns:1.04fr .96fr;

    gap:50px;

    align-items:start;
}


/* =========================================================
   GALLERY
========================================================= */

.gallery-stage{
    position:relative;

    height:610px;

    overflow:hidden;

    border-radius:20px;

    background:#f0ebe7;
}

.gallery-image{
    position:absolute;

    inset:0;

    width:100%;
    height:100%;

    object-fit:cover;

    opacity:0;

    transition:opacity .24s ease;
}

.gallery-image.active{
    opacity:1;
}

.gallery-arrow{
    position:absolute;

    top:50%;

    transform:translateY(-50%);

    z-index:3;

    width:44px;
    height:44px;

    border:0;

    border-radius:50%;

    background:rgba(255,255,255,.92);

    color:var(--brown);

    font-size:25px;

    cursor:pointer;
}

.gallery-arrow.prev{
    right:-14px;
}

.gallery-arrow.next{
    left:-14px;
}

.gallery-counter{
    position:absolute;

    bottom:14px;
    left:50%;

    z-index:3;

    transform:translateX(-50%);

    padding:5px 10px;

    border-radius:999px;

    background:rgba(48,32,28,.72);

    color:#fff;

    font-size:11px;
}

.detail-placeholder{
    border-radius:20px;
}


/* =========================================================
   HORSE INFO
========================================================= */

.detail-info{
    padding-top:15px;
}

.detail-info h1{
    font-size:40px;
}

.detail-en{
    margin-top:4px;

    color:var(--muted);

    font-size:14px;

    direction:ltr;

    text-align:right;
}

.detail-highlight{
    margin:24px 0;

    padding:15px 18px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    border:1px solid #d8c8bf;

    border-radius:13px;

    background:#faf5f2;
}

.detail-highlight span{
    color:var(--muted);

    font-size:11px;
}

.detail-highlight strong{
    font-size:22px;

    color:var(--brown);
}

.info-grid{
    display:grid;

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

    border-top:1px solid var(--line);

    border-right:1px solid var(--line);
}

.info-grid div{
    min-height:72px;

    padding:12px;

    border-left:1px solid var(--line);

    border-bottom:1px solid var(--line);
}

.info-grid span{
    display:block;

    color:var(--muted);

    font-size:10px;
}

.info-grid strong{
    display:block;

    margin-top:4px;

    color:var(--ink);

    font-size:14px;
}


/* =========================================================
   PEDIGREE
========================================================= */

.pedigree-public{
    margin-top:95px;

    padding-top:55px;

    border-top:1px solid var(--line);
}

.section-heading.center{
    text-align:center;

    margin-bottom:42px;
}

.section-heading h2{
    margin-bottom:6px;
}

.section-heading p{
    margin:0;

    color:var(--muted);

    font-size:14px;
}

.public-tree{
    width:100%;

    overflow-x:auto;

    padding:10px 10px 35px;
}

.tree-row{
    position:relative;

    display:grid;

    gap:20px;

    justify-content:center;

    margin-inline:auto;
}

.tree-root{
    grid-template-columns:270px;
}

.tree-parents{
    grid-template-columns:
        repeat(2,250px);

    margin-top:28px;
}

.tree-grandparents{
    grid-template-columns:
        repeat(4,220px);

    margin-top:28px;

    min-width:950px;
}

.pedigree-card{
    position:relative;

    min-height:120px;

    padding:14px;

    border:1px solid #ded4cf;

    border-radius:14px;

    background:#fff;

    box-shadow:
        0 8px 24px rgba(71,43,34,.05);
}

.pedigree-card.empty{
    border-style:dashed;

    background:#faf8f7;
}

.relation-label{
    display:inline-block;

    margin-bottom:8px;

    padding:3px 8px;

    border-radius:999px;

    background:#f1eae6;

    color:var(--brown-2);

    font-size:10px;

    font-weight:800;
}

.pedigree-card strong{
    display:block;

    color:var(--brown);

    font-size:14px;
}

.pedigree-card small{
    display:block;

    margin-top:2px;

    color:var(--muted);

    font-size:10px;

    direction:ltr;

    text-align:right;
}

.pedigree-meta{
    display:flex;

    gap:5px;

    margin-top:10px;
}

.pedigree-meta span{
    padding:3px 6px;

    border-radius:5px;

    background:#f5f1ef;

    color:var(--muted);

    font-size:9px;
}

.tree-connector.vertical{
    width:1px;

    height:28px;

    margin:0 auto;

    background:#bbaaa1;
}

.tree-parents::before,
.tree-grandparents::before{
    content:"";

    position:absolute;

    top:-15px;

    left:10%;
    right:10%;

    height:1px;

    background:#bbaaa1;
}

.tree-parents
.pedigree-card::before,

.tree-grandparents
.pedigree-card::before{
    content:"";

    position:absolute;

    top:-15px;

    left:50%;

    height:15px;

    width:1px;

    background:#bbaaa1;
}


/* =========================================================
   EVENTS
========================================================= */

.events-section{
    padding:55px 0 90px;
}

.event-list{
    display:flex;

    flex-direction:column;

    gap:22px;
}

.event-card{
    overflow:hidden;

    border:1px solid var(--line);

    border-radius:20px;

    background:#fff;

    box-shadow:
        0 12px 38px rgba(71,43,34,.045);
}

.event-main{
    display:grid;

    grid-template-columns:130px 1fr;

    gap:24px;

    padding:25px;
}

.event-date-box{
    min-height:125px;

    display:grid;

    place-items:center;

    align-content:center;

    border-radius:14px;

    background:var(--brown);

    color:#fff;
}

.event-date-box span{
    font-size:34px;

    font-weight:800;
}

.event-date-box strong{
    font-size:11px;
}

.event-type{
    color:var(--brown-2);

    font-size:10px;

    font-weight:800;
}

.event-copy h2{
    margin:5px 0 0;

    color:var(--brown);

    font-size:22px;
}

.event-en{
    margin:2px 0;

    color:var(--muted);

    font-size:14px;

    direction:ltr;

    text-align:right;
}

.event-meta{
    display:flex;

    gap:16px;

    flex-wrap:wrap;

    margin-top:13px;

    color:var(--muted);

    font-size:11px;
}

.event-meta strong{
    color:var(--ink);
}

.event-notes{
    margin:12px 0 0;

    color:var(--muted);

    font-size:11px;

    line-height:1.8;
}

.event-horses{
    padding:20px 25px 25px;

    border-top:1px solid var(--line);

    background:#fcfaf8;
}

.event-horses h3{
    margin:0 0 12px;

    color:var(--brown);

    font-size:13px;
}

.event-horse-grid{
    display:grid;

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

    gap:10px;
}

.event-horse{
    display:flex;

    align-items:center;

    gap:10px;

    min-width:0;

    padding:8px;

    border:1px solid var(--line);

    border-radius:10px;

    background:#fff;

    text-decoration:none;
}

.event-horse img,
.event-horse-placeholder{
    width:54px;
    height:54px;

    flex:0 0 54px;

    object-fit:cover;

    border-radius:8px;
}

.event-horse-placeholder{
    display:grid;

    place-items:center;

    background:#eee7e2;

    color:#9a887f;

    font-size:22px;
}

.event-horse span{
    min-width:0;
}

.event-horse strong{
    display:block;

    overflow:hidden;

    text-overflow:ellipsis;

    white-space:nowrap;

    font-size:11px;
}

.event-horse small{
    display:block;

    margin-top:2px;

    color:var(--muted);

    font-size:9px;
}


/* =========================================================
   TABLET
========================================================= */

@media(max-width:1000px){

    .hero-grid,
    .about-grid,
    .detail-grid,
    .contact-card{
        grid-template-columns:1fr;
    }

    .hero-grid{
        gap:38px;
    }

    .hero-media{
        height:520px;
    }

    .about-media{
        height:470px;
    }

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

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


/* =========================================================
   MOBILE
========================================================= */

@media(max-width:760px){

    .nav-toggle{
        display:block;
    }

    .main-nav{
        position:absolute;

        top:78px;

        right:18px;
        left:18px;

        display:none;

        flex-direction:column;

        align-items:stretch;

        padding:10px;

        border:1px solid var(--line);

        border-radius:14px;

        background:#fff;

        box-shadow:var(--shadow);
    }

    .main-nav.open{
        display:flex;
    }

    .main-nav a{
        text-align:center;
    }

    .hero-section{
        padding-top:30px;
    }

    .hero-grid{
        min-height:auto;
    }

    .hero-media{
        height:430px;
    }

    .hero-media::before{
        display:none;
    }

    .hero-badge{
        right:12px;
        bottom:12px;
    }

    .hero-stats{
        gap:14px;
    }

    .about-section{
        padding:65px 0;
    }

    .contact-items{
        grid-template-columns:1fr;
    }

    .contact-card{
        padding:30px;
    }

    .detail-grid{
        gap:28px;
    }

    .gallery-stage{
        height:480px;
    }

    .event-main{
        grid-template-columns:1fr;
    }

    .event-date-box{
        min-height:90px;
    }

    .event-date-box span{
        font-size:28px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media(max-width:520px){

    .container{
        width:min(100% - 22px,1180px);
    }

    .horse-grid{
        grid-template-columns:1fr;
    }

    .horse-image-link{
        height:430px;
    }

    .hero-copy h1{
        font-size:34px;
    }

    .hero-actions{
        flex-direction:column;
    }

    .btn{
        width:100%;
    }

    .hero-stats{
        display:grid;

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

    .hero-stats div{
        padding-right:7px;
    }

    .hero-media{
        height:380px;
    }

    .hero-media img{
        border-radius:20px;
    }

    .about-media{
        height:380px;
    }

    .info-grid{
        grid-template-columns:1fr;
    }

    .event-horse-grid{
        grid-template-columns:1fr;
    }

    .footer-grid{
        flex-direction:column;
    }

    .footer-links{
        flex-wrap:wrap;
    }
}

/* =========================================================
   TYPOGRAPHY - توحيد أحجام الخطوط
========================================================= */

/* العناوين الرئيسية */
.hero-copy h1,
.page-hero h1,
.detail-info h1,
.about-copy h2,
.section-heading h2,
.contact-copy h2{
    font-size:25px;
    line-height:1.6;
    font-weight:800;
}

/* العناوين الفرعية */
.horse-card-body h2,
.event-copy h2,
.empty-state h2{
    font-size:16px;
    line-height:1.7;
    font-weight:700;
}

/* النصوص الأساسية */
.hero-copy p,
.about-copy p,
.contact-copy p,
.page-hero.compact p,
.section-heading p,
.event-notes{
    font-size:15px;
    line-height:2;
}

/* النص الصغير فوق العناوين */
.eyebrow{
    font-size:13px;
    font-weight:700;
}

/* Navbar */
.main-nav a{
    font-size:14px;
}

/* اسم المديرية في Navbar */
.brand strong{
    font-size:16px;
}

.brand small{
    font-size:13px;
}

/* الأزرار */
.btn{
    font-size:14px;
}

.more-link{
    font-size:14px;
}

/* إحصائيات Hero */
.hero-stats strong{
    font-size:16px;
}

.hero-stats span{
    font-size:13px;
}

/* البطاقة الموجودة على صورة Hero */
.hero-badge span{
    font-size:13px;
}

.hero-badge strong{
    font-size:14px;
}

/* أسماء الخيول */
.horse-card-body h2{
    font-size:16px;
}

.english-name{
    font-size:13px;
}

/* رقم الوشم */
.tattoo-line{
    font-size:13px;
}

.tattoo-line strong{
    font-size:15px;
}

/* معلومات صفحة تفاصيل الخيل */
.detail-en{
    font-size:14px;
}

.detail-highlight span{
    font-size:13px;
}

.detail-highlight strong{
    font-size:16px;
}

.info-grid span{
    font-size:13px;
}

.info-grid strong{
    font-size:14px;
}

/* شجرة الأنساب */
.relation-label{
    font-size:13px;
}

.pedigree-card strong{
    font-size:15px;
}

.pedigree-card small{
    font-size:13px;
}

.pedigree-meta span{
    font-size:13px;
}

/* الفعاليات */
.event-type{
    font-size:13px;
}

.event-en{
    font-size:13px;
}

.event-meta{
    font-size:13px;
}

.event-horses h3{
    font-size:16px;
}

.event-horse strong{
    font-size:14px;
}

.event-horse small{
    font-size:13px;
}

/* التواصل */
.contact-item span{
    font-size:13px;
}

.contact-item strong{
    font-size:14px;
}

/* Footer */
.footer-brand{
    font-size:16px;
}

.footer-grid p,
.footer-links a,
.copyright{
    font-size:13px;
}

/* =========================================================
   FINAL HOME IMAGE FIXES
========================================================= */

.hero-grid{
    min-height:540px;
    grid-template-columns:1fr .9fr;
    gap:55px;
    align-items:center;
}

.hero-media{
    position:relative;
    width:100%;
    height:440px;
}

.hero-media > img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    object-position:center;
    border-radius:24px;
    box-shadow:0 20px 50px rgba(78,39,30,.12);
}

.hero-media::before{
    content:"";
    position:absolute;
    top:18px;
    right:-14px;
    bottom:-18px;
    left:14px;
    z-index:-1;
    border:1px solid #d7c8c0;
    border-radius:24px;
}

.hero-badge{
    position:absolute;
    right:18px;
    bottom:18px;
    min-width:210px;
    padding:13px 16px;
    border-radius:14px;
    background:rgba(255,255,255,.94);
    backdrop-filter:blur(8px);
    box-shadow:0 12px 30px rgba(55,35,28,.14);
}

.about-grid{
    grid-template-columns:.9fr 1.1fr;
    gap:55px;
    align-items:center;
}

.about-media{
    width:100%;
    height:360px;
    align-self:center;
    overflow:hidden;
    border-radius:22px;
}

.about-media img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    object-position:center;
    border-radius:22px;
}

@media(max-width:1000px){
    .hero-grid,
    .about-grid{
        grid-template-columns:1fr;
    }

    .hero-media{
        height:400px;
    }

    .about-media{
        height:340px;
    }
}

@media(max-width:760px){
    .hero-media{
        height:350px;
    }

    .hero-media::before{
        display:none;
    }

    .about-media{
        height:320px;
    }
}

@media(max-width:520px){
    .hero-media{
        height:300px;
    }

    .hero-media > img{
        border-radius:18px;
    }

    .about-media{
        height:280px;
    }
}
/* =========================================
   ABOUT IMAGE - FINAL
========================================= */

.about-grid{
    grid-template-columns:.85fr 1.15fr;
    gap:60px;
    align-items:center;
}

.about-media{
    position:relative;

    width:100%;
    height:520px;

    overflow:hidden;

    border-radius:30px;

    border:1px solid #ded0c8;

    background:#eee7e2;

    box-shadow:
        0 22px 55px rgba(78,39,30,.12);
}

.about-media img{
    width:100%;
    height:100%;

    display:block;

    object-fit:cover;
    object-position:center;

    border-radius:30px;

    transition:transform .4s ease;
}

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

/* إطار داخلي خفيف */
.about-media::after{
    content:"";

    position:absolute;
    inset:10px;

    border:1px solid rgba(255,255,255,.55);
    border-radius:23px;

    pointer-events:none;
}


/* TABLET */

@media(max-width:1000px){

    .about-grid{
        grid-template-columns:1fr;
    }

    .about-media{
        height:480px;
    }
}


/* MOBILE */

@media(max-width:760px){

    .about-media{
        height:420px;
        border-radius:24px;
    }

    .about-media img{
        border-radius:24px;
    }

    .about-media::after{
        border-radius:18px;
    }
}


/* SMALL MOBILE */

@media(max-width:520px){

    .about-media{
        height:360px;
        border-radius:20px;
    }

    .about-media img{
        border-radius:20px;
    }
}

/* =========================================================
   PEDIGREE - COLORS BY GENERATION
========================================================= */

/* الجيل الأساسي - الخيل الحالي */
.tree-root .pedigree-card{
    background:#f3e7df;
    border:1px solid #d7bfb2;

    box-shadow:
        0 8px 24px rgba(91,58,47,.06);
}

.tree-root .relation-label{
    color:#7b4f40;
}

.tree-root .pedigree-card strong{
    color:#59372d;
}


/* =========================================================
   الجيل الأول - الأب والأم
========================================================= */

.tree-parents .pedigree-card{
    background:#f2eee5;
    border:1px solid #d8cfb9;

    box-shadow:
        0 8px 24px rgba(84,74,48,.05);
}

.tree-parents .relation-label{
    color:#776743;
}

.tree-parents .pedigree-card strong{
    color:#5f5337;
}


/* =========================================================
   الجيل الثاني - الأجداد
========================================================= */

.tree-grandparents .pedigree-card{
    background:#edf2ed;
    border:1px solid #c9d6c9;

    box-shadow:
        0 8px 24px rgba(54,78,57,.05);
}

.tree-grandparents .relation-label{
    color:#607662;
}

.tree-grandparents .pedigree-card strong{
    color:#465d49;
}


/* =========================================================
   البطاقات غير المسجلة
========================================================= */

.public-tree .pedigree-card.empty{
    opacity:.65;
}


/* =========================================================
   لمسة بسيطة عند المرور
========================================================= */

.public-tree .pedigree-card{
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.public-tree .pedigree-card:hover{
    transform:translateY(-3px);

    box-shadow:
        0 12px 28px rgba(70,45,37,.09);
}
