:root {
    --green: #07544f;
    --green2: #043c39;
    --gold: #c49a5b;
    --cream: #f8f4eb;
    --text: #183c3a;
    --muted: #75817f;
    --white: #fff;
    --border: #e8e1d5;
    --shadow: 0 12px 35px rgba(8,50,47,.08);
    --radius: 16px;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: "Cairo","Tahoma",sans-serif;
    direction: rtl;
    color: var(--text);
    background: #fff;
    line-height: 1.8;
}
a {
    text-decoration: none;
    color: inherit;
}
img {
    display: block;
    width: 100%;
    object-fit: cover;
}
.container {
    width: min(1200px,calc(100% - 40px));
    margin: auto;
}
.topbar {
    background: var(--green2);
    color: #fff;
    font-size: 12px;
}
.topbar .container {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.topbar-links {
    display: flex;
    gap: 20px;
    opacity: .9;
}
.header {
    height: 84px;
    border-bottom: 1px solid var(--border);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
}
.header .container {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 30px;
}
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    display: block;
}
.nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-right: auto;
}
.nav a {
    font-size: 13px;
    font-weight: 700;
    padding: 30px 0;
    position: relative;
}
.nav a:after {
    content: "";
    position: absolute;
    bottom: 20px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: .25s;
}
.nav a:hover:after,.nav a.active:after {
    width: 100%;
}
.nav a.active {
    color: var(--green);
}
.menu {
    display: none;
    border: 0;
    background: none;
    font-size: 21px;
    color: var(--green);
}
.hero {
    min-height: 590px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(90deg,rgba(4,60,57,.97),rgba(4,60,57,.72),rgba(4,60,57,.18)),url("https://images.unsplash.com/photo-1500534623283-312aade485b7?auto=format&fit=crop&w=2000&q=85") center/cover;
}
.hero-content {
    max-width: 720px;
}
.eyebrow {
    color: #e6c88f;
    font-size: 14px;
    font-weight: 800;
}
.hero h1 {
    font-size: clamp(43px,6vw,72px);
    line-height: 1.18;
    margin: 10px 0 18px;
}
.hero p {
    font-size: 17px;
    color: #eef4f1;
    max-width: 650px;
}
.search {
    background: #fff;
    border-radius: 10px;
    padding: 7px;
    display: flex;
    margin: 25px 0 16px;
    max-width: 650px;
}
.search input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 12px;
    font: inherit;
    font-size: 13px;
}
.search button,.btn {
    border: 0;
    background: var(--gold);
    color: #fff;
    border-radius: 7px;
    padding: 11px 22px;
    font-weight: 800;
    cursor: pointer;
}
.hero-buttons {
    display: flex;
    gap: 10px;
}
.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,.55);
}
.section {
    padding: 78px 0;
}
.section.cream {
    background: var(--cream);
}
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 32px;
}
.section-head .eyebrow {
    display: block;
    color: var(--gold);
}
.section-head h2 {
    font-size: 31px;
}
.section-head>a {
    font-size: 13px;
    font-weight: 800;
    color: var(--green);
}
.categories {
    display: grid;
    grid-template-columns: repeat(8,1fr);
    gap: 13px;
}
.category {
    height: 125px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 9px;
    font-size: 12px;
    font-weight: 800;
    transition: .25s;
}
.category i {
    color: var(--gold);
    font-size: 24px;
}
.category:hover,.category.active {
    background: var(--green);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.books {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 22px;
}
.book {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    transition: .25s;
}
.book:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}
.book-cover {
    height: 310px;
    position: relative;
    background: var(--cream);
}
.book-cover img {
    height: 100%;
}
.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gold);
    color: #fff;
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 10px;
    font-weight: 800;
}
.book-info {
    padding: 15px;
}
.book-info small {
    color: var(--gold);
    font-weight: 800;
}
.book-info h3 {
    font-size: 17px;
    margin: 3px 0;
}
.author {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 12px;
}
.book-actions {
    display: flex;
    gap: 6px;
}
.book-actions a {
    flex: 1;
    text-align: center;
    border: 1px solid var(--border);
    padding: 6px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 800;
    color: var(--green);
}
.book-actions a:hover {
    background: var(--green);
    color: #fff;
}
.stats {
    background: linear-gradient(90deg,rgba(4,60,57,.97),rgba(4,60,57,.91)),url("https://images.unsplash.com/photo-1521587760476-6c12a4b040da?auto=format&fit=crop&w=1800&q=80") center/cover;
    color: #fff;
}
.stats-title {
    text-align: center;
    margin-bottom: 40px;
}
.stats-title .eyebrow {
    display: block;
}
.stats-title h2 {
    font-size: 31px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
}
.stat {
    text-align: center;
    border-left: 1px solid rgba(255,255,255,.14);
}
.stat:last-child {
    border: 0;
}
.stat i {
    color: var(--gold);
    font-size: 27px;
}
.stat strong {
    display: block;
    font-size: 34px;
}
.stat span {
    font-size: 12px;
    color: #b9cbc8;
}
.articles {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 22px;
}
.article {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.article-img {
    height: 210px;
}
.article-img img {
    height: 100%;
}
.article-body {
    padding: 19px;
    background-color: #ffffffab;
}
.article-body small {
    color: var(--muted);
}
.article-body h3 {
    font-size: 18px;
    margin: 5px 0;
}
.article-body p {
    font-size: 12px;
    color: var(--muted);
}
.article-body a {
    display: inline-block;
    margin-top: 12px;
    color: var(--green);
    font-weight: 800;
    font-size: 12px;
}
.media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.media-box {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    background-color: #ffffffab;
}
.media-box h2 {
    font-size: 23px;
}
.media-box .eyebrow {
    color: var(--gold);
    font-size: 11px;
}
.media-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 17px;
}
.media-head a {
    font-size: 11px;
    color: var(--green);
    font-weight: 800;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 8px;
}
.gallery a {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
}
.gallery img {
    height: 100%;
    transition: .3s;
}
.gallery a:hover img {
    transform: scale(1.05);
}
.videos {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 8px;
}
.video {
    aspect-ratio: 16/10;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}
.video img {
    height: 100%;
}
.play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 43px;
    height: 43px;
    border-radius: 50%;
    background: #fff;
    color: var(--green);
    display: grid;
    place-items: center;
}
.newsletter {
    background: var(--cream);
}
.newsletter-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}
.newsletter-form {
    display: flex;
    background: #fff;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 500px;
}
.newsletter-form input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 10px;
}
.newsletter-form button {
    background: var(--green);
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 0 18px;
    font-weight: 800;
}
.footer {
    background: var(--green2);
    color: #fff;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 45px;
    padding-bottom: 45px;
}

/* معلومات المكتبة */
.footer-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-info .logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-info .main-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    display: block;
}

.footer-about {
    margin-top: 18px;
    line-height: 1.9;
}

/* عناوين الفوتر */
.footer h3 {
    color: var(--gold);
    font-size: 15px;
    margin-bottom: 13px;
}

/* النصوص والروابط */
.footer p,
.footer a {
    color: #b7c6c4;
    font-size: 12px;
}

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

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

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.footer-col p {
    margin: 0;
    line-height: 1.8;
}

.contact-icon {
    display: inline-block;
    margin-left: 5px;
}

/* روابط التواصل الاجتماعي */
.social {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.social a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.social a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--green2);
    transform: translateY(-3px);
}

/* أسفل الفوتر - في منتصف الصفحة */
.footer .bottom {
    width: 100%;
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #b7c6c4;
    font-size: 12px;
    line-height: 1.8;
}

.footer .bottom span {
    display: block;
    width: 100%;
    text-align: center;
}

/* الشاشات المتوسطة */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
}

/* الجوال */
@media (max-width: 576px) {
    .footer {
        padding-top: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-info {
        align-items: center;
    }

    .footer-info .main-logo {
        width: 60px;
        height: 60px;
    }

    .social {
        justify-content: center;
    }

    .footer-col {
        align-items: center;
    }

    .footer .bottom {
        font-size: 11px;
        padding: 18px 10px;
    }
}.social {
    display: flex;
    gap: 7px;
    margin-top: 16px;
}
.social a {
    width: 33px;
    height: 33px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 7px;
    display: grid;
    place-items: center;
}
.bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    color: #8ea6a3;
    font-size: 10px;
}
/* Inner pages */
.page-hero {
    background: linear-gradient(90deg,rgba(4,60,57,.96),rgba(4,60,57,.78)),url("https://images.unsplash.com/photo-1495446815901-a7297e633e8d?auto=format&fit=crop&w=1800&q=80") center/cover;
    color: #fff;
    padding: 70px 0;
}
.page-hero h1 {
    font-size: 42px;
}
.breadcrumb {
    font-size: 11px;
    color: #d6e1df;
    margin-top: 7px;
}
.content-title {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 40px;
}
.content-title h2 {
    font-size: 31px;
}
.content-title p {
    color: var(--muted);
    font-size: 13px;
}
.about-grid,.contact-grid,.how-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-image {
    border-radius: 18px;
    overflow: hidden;
    height: 430px;
}
.about-image img {
    height: 100%;
}
.feature-list {
    display: grid;
    gap: 14px;
    margin-top: 25px;
}
.feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.feature i {
    color: var(--gold);
    font-size: 21px;
    margin-top: 5px;
}
.feature h3 {
    font-size: 16px;
}
.feature p {
    font-size: 12px;
    color: var(--muted);
}
.steps {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
}
.step {
    border: 1px solid var(--border);
    padding: 25px;
    border-radius: var(--radius);
    text-align: center;
    background: #ffffffab;
}
.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--green);
    color: #fff;
    margin: 0 auto 13px;
    font-weight: 800;
}
.step h3 {
    font-size: 16px;
}
.step p {
    font-size: 12px;
    color: var(--muted);
}
.filter {
    background: var(--cream);
    padding: 18px;
    border-radius: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.filter input,.filter select {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 7px;
    padding: 10px 12px;
    outline: 0;
    min-width: 300px;
}
.books-page {
    grid-template-columns: repeat(4,1fr);
}
.author-box {
    display: flex;
    align-items: center;
    gap: 25px;
    background: var(--cream);
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 35px;
}
.avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    flex: none;
}
.avatar img {
    height: 100%;
}
.author-box h2 {
    font-size: 24px;
}
.author-box p {
    font-size: 12px;
    color: var(--muted);
}
.article-page {
    max-width: 900px;
    margin: auto;
}
.article-page .cover {
    height: 430px;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 28px;
}
.article-page .cover img {
    height: 100%;
}
.article-meta {
    font-size: 12px;
    color: var(--muted);
}
.article-page h1 {
    font-size: 38px;
    line-height: 1.45;
    margin: 8px 0 15px;
}
.article-text {
    font-family: "Cairo","Tahoma",sans-serif;
    font-size: 20px;
    line-height: 2.2;
    color: #304a48;
}
.article-text p {
    margin-bottom: 20px;
}
.article-gallery {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
    margin: 25px 0;
}
.article-gallery img {
    height: 180px;
    border-radius: 9px;
}
.share {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 25px 0;
}
.share a {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--green);
}
.gallery-filter {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.gallery-filter a {
    border: 1px solid var(--border);
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 11px;
}
.gallery-filter a.active {
    background: var(--green);
    color: #fff;
}
.gallery-page {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 15px;
}
.gallery-page .item {
    height: 260px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}
.gallery-page .item img {
    height: 100%;
}
.gallery-page .caption {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(transparent,rgba(0,0,0,.75));
    color: #fff;
    padding: 25px 13px 10px;
    font-size: 11px;
}
.video-page {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}
.video-card-page {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
.video-thumb {
    height: 200px;
    position: relative;
}
.video-thumb img {
    height: 100%;
}
.video-card-page h3 {
    font-size: 15px;
    padding: 13px;
}
.video-card-page p {
    font-size: 11px;
    color: var(--muted);
    padding: 0 13px 13px;
}
.contact-info {
    display: grid;
    gap: 14px;
}
.contact-item {
    display: flex;
    gap: 14px;
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 11px;
}
.contact-item i {
    color: var(--gold);
    font-size: 20px;
    width: 25px;
}
.contact-item h3 {
    font-size: 14px;
}
.contact-item p {
    font-size: 12px;
    color: var(--muted);
}
.contact-form {
    background: var(--cream);
    padding: 25px;
    border-radius: 16px;
}
.contact-form h2 {
    font-size: 23px;
    margin-bottom: 18px;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.field.full {
    grid-column: 1/-1;
}
.field label {
    font-size: 11px;
    font-weight: 800;
}
.field input,.field textarea {
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 10px;
    background: #fff;
    outline: 0;
}
.field textarea {
    min-height: 140px;
    resize: vertical;
}
.map {
    height: 330px;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 30px;
}
.map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
/* responsive */
@media(max-width:1050px) {
    .nav {
        gap: 12px;
    }
    .nav a {
        font-size: 11px;
    }
    .categories {
        grid-template-columns: repeat(4,1fr);
    }
    .books,.books-page {
        grid-template-columns: repeat(3,1fr);
    }
}
@media(max-width:800px) {
    .topbar {
        display: none;
    }
    .header {
        height: 70px;
    }
    .nav {
        display: none;
        position: absolute;
        top: 70px;
        right: 0;
        left: 0;
        background: #fff;
        padding: 10px 20px;
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
    }
    .nav.open {
        display: flex;
    }
    .nav a {
        padding: 9px;
    }
    .nav a:after {
        bottom: 4px;
    }
    .menu {
        display: block;
        margin-right: auto;
    }
    .hero {
        min-height: 550px;
    }
    .hero h1 {
        font-size: 43px;
    }
    .stats-grid {
        grid-template-columns: repeat(2,1fr);
        gap: 25px;
    }
    .stat {
        border: 0;
    }
    .articles,.media-grid,.about-grid,.contact-grid,.how-grid {
        grid-template-columns: 1fr;
    }
    .steps {
        grid-template-columns: repeat(2,1fr);
    }
    .newsletter-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .newsletter-form {
        width: 100%;
    }
    .footer-grid {
        grid-template-columns: repeat(2,1fr);
    }
    .gallery-page {
        grid-template-columns: repeat(2,1fr);
    }
    .video-page {
        grid-template-columns: 1fr 1fr;
    }
    .article-page h1 {
        font-size: 29px;
    }
}
@media(max-width:520px) {
    .container {
        width: calc(100% - 24px);
    }
    .section {
        padding: 55px 0;
    }
    .section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
    .categories {
        grid-template-columns: repeat(2,1fr);
    }
    .books,.books-page {
        grid-template-columns: repeat(2,1fr);
        gap: 10px;
    }
    .book-cover {
        height: 245px;
    }
    .book-info h3 {
        font-size: 14px;
    }
    .book-actions {
        flex-direction: column;
    }
    .steps,.video-page,.gallery-page {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .bottom {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    .hero-buttons {
        flex-wrap: wrap;
    }
    .hero p {
        font-size: 14px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .field.full {
        grid-column: auto;
    }
    .article-gallery {
        grid-template-columns: 1fr 1fr;
    }
    .article-page .cover {
        height: 270px;
    }
}
/* Slider */
.hero-slider {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    background: #043c39;
}
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s ease;
    background-position: center;
    background-size: cover;
}

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

.slide:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(4, 60, 57, .35),
        rgba(4, 60, 57, .15),
        rgba(4, 60, 57, .03)
    );
}

.slide-overlay {
    display: none !important;
}

.slide-content {
    position: relative;
    z-index: 2;
    min-height: 590px;
    display: flex;
    align-items: center;
}
.slider-controls {
    position: absolute;
    z-index: 5;
    left: 28px;
    bottom: 28px;
    display: flex;
    gap: 8px;
}
.slider-arrow {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.4);
    background: rgba(255,255,255,.08);
    color: #fff;
    cursor: pointer;
    font-size: 18px;
}
.slider-dots {
    position: absolute;
    z-index: 5;
    right: 50%;
    bottom: 32px;
    transform: translateX(50%);
    display: flex;
    gap: 7px;
}
.slider-dot {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    cursor: pointer;
    padding: 0;
}
.slider-dot.active {
    width: 24px;
    border-radius: 8px;
    background: var(--gold);
}
.slide-tag {
    display: inline-block;
    border: 1px solid rgba(230,200,143,.6);
    color: #e6c88f;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 11px;
    margin-bottom: 9px;
}
.slider-link {
    display: inline-block;
}
.dropdown {
    position: relative;
}
.dropdown-menu {
    position: absolute;
    top: 65px;
    right: -12px;
    min-width: 185px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: 10px;
    padding: 7px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: .2s;
    z-index: 80;
}
.dropdown:hover .dropdown-menu,.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu a {
    display: block!important;
    padding: 9px 11px!important;
    border-radius: 7px;
    font-size: 11px!important;
}
.dropdown-menu a:after {
    display: none;
}
.dropdown-menu a:hover {
    background: var(--cream);
    color: var(--green);
}
.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}
@media(max-width:800px) {
    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: 0;
        padding: 0 10px;
    }
    .dropdown.open .dropdown-menu {
        display: block;
    }
    .dropdown:hover .dropdown-menu {
        display: none;
    }
    .dropdown.open:hover .dropdown-menu {
        display: block;
    }
    .slider-controls {
        left: 15px;
        bottom: 20px;
    }
    .slider-dots {
        bottom: 27px;
    }
    .slide-content {
        min-height: 550px;
    }
}
/* === Main Hero Image Slider - final version === */
.hero-slider {
    position: relative;
    height: 600px;
    min-height: 600px;
    overflow: hidden;
    background: #063f3b;
}
.hero-slider .slides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.hero-slider .slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.025);
    transition: opacity .8s ease,transform 6.2s ease;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.hero-slider .slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}
.hero-slider .slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,rgba(2,45,42,.96) 0%,rgba(2,55,51,.82) 34%,rgba(2,55,51,.35) 70%,rgba(2,55,51,.10) 100%);
}
.hero-slider .slide-content {
    position: relative;
    z-index: 3;
    height: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
}
.slide-copy {
    max-width: 650px;
    color: #fff;
    padding-bottom: 25px;
}
.slide-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e2bd77;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}
.slide-kicker:before {
    content: "";
    width: 30px;
    height: 2px;
    background: #c99d55;
    display: inline-block;
}
.slide-copy h1 {
    font-size: 58px;
    line-height: 1.15;
    margin: 0 0 16px;
    font-weight: 500;
    letter-spacing: -1px;
}
.slide-copy h1 strong {
    font-weight: 800;
    color: #fff;
}
.slide-copy p {
    font-size: 16px;
    line-height: 2;
    color: rgba(255,255,255,.9);
    max-width: 590px;
    margin: 0 0 25px;
}
.slide-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.slide-actions .btn {
    min-width: 155px;
    text-align: center;
}
.btn-light-outline {
    background: rgba(255,255,255,.06)!important;
    border: 1px solid rgba(255,255,255,.55)!important;
    color: #fff!important;
}
.btn-light-outline:hover {
    background: #fff!important;
    color: var(--green)!important;
}
.hero-slider .slider-arrow {
    position: absolute;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.65);
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(5px);
    color: #fff;
    cursor: pointer;
    font-size: 27px;
    display: grid;
    place-items: center;
    transition: .2s;
}
.hero-slider .slider-arrow:hover {
    background: #fff;
    color: var(--green);
    transform: translateY(-50%) scale(1.05);
}
.hero-slider .slider-prev {
    right: 24px;
}
.hero-slider .slider-next {
    left: 24px;
}
.hero-slider .slider-dots {
    position: absolute;
    z-index: 10;
    bottom: 31px;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    gap: 8px;
}
.hero-slider .slider-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.55);
    cursor: pointer;
    transition: .25s;
}
.hero-slider .slider-dot.active {
    width: 28px;
    border-radius: 8px;
    background: #d0a45e;
}
.slider-progress {
    position: absolute;
    z-index: 10;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,.12);
}
.slider-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: #d0a45e;
}
@media(max-width:800px) {
    .hero-slider,.hero-slider .slide-content {
        height: 560px;
        min-height: 560px;
    }
    .hero-slider .slide-overlay {
        background: linear-gradient(90deg,rgba(2,45,42,.96),rgba(2,55,51,.72));
    }
    .slide-copy {
        max-width: 100%;
        padding: 0 20px 25px;
    }
    .slide-copy h1 {
        font-size: 41px;
    }
    .slide-copy p {
        font-size: 13px;
        line-height: 1.9;
    }
    .hero-slider .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 23px;
        top: auto;
        bottom: 24px;
        transform: none;
    }
    .hero-slider .slider-arrow:hover {
        transform: scale(1.05);
    }
    .hero-slider .slider-prev {
        right: 18px;
    }
    .hero-slider .slider-next {
        left: 18px;
    }
    .hero-slider .slider-dots {
        bottom: 39px;
    }
}
@media(max-width:480px) {
    .slide-copy h1 {
        font-size: 34px;
    }
    .slide-copy p {
        font-size: 12px;
    }
    .slide-actions .btn {
        min-width: 135px;
        padding: 11px 13px;
    }
    .hero-slider,.hero-slider .slide-content {
        height: 530px;
        min-height: 530px;
    }
}
/* ========================================================= المضيبي الأهلية العاملة - Islamic visual identity Original CSS pattern: lightweight, seamless, no external asset. ========================================================= */
:root {
    --library-green: #064c47;
    --library-green-dark: #033c38;
    --library-gold: #bd8b38;
    --library-cream: #f8f4ea;
    --library-ink: #173b38;
}
/* Subtle Islamic geometric background */
body {
    background-color: var(--library-cream);
    background-image: radial-gradient(circle at center, transparent 0 24%, rgba(189,139,56,.08) 25% 26%, transparent 27%), linear-gradient(30deg, rgba(6,76,71,.045) 12%, transparent 12.5%, transparent 87%, rgba(6,76,71,.045) 87.5%, rgba(6,76,71,.045)), linear-gradient(150deg, rgba(6,76,71,.045) 12%, transparent 12.5%, transparent 87%, rgba(6,76,71,.045) 87.5%, rgba(6,76,71,.045)), linear-gradient(30deg, rgba(189,139,56,.035) 12%, transparent 12.5%, transparent 87%, rgba(189,139,56,.035) 87.5%, rgba(189,139,56,.035)), linear-gradient(150deg, rgba(189,139,56,.035) 12%, transparent 12.5%, transparent 87%, rgba(189,139,56,.035) 87.5%, rgba(189,139,56,.035));
    background-size: 72px 72px,72px 72px,72px 72px,72px 72px,72px 72px;
    background-position: 0 0,0 0,0 0,36px 36px,36px 36px;
}
/* Sections get a clean surface while keeping the pattern visible at edges */
.section, .page-section, .content-section {
    position: relative;
}
.section::before, .page-section::before, .content-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .22;
    background-image: radial-gradient(circle, rgba(189,139,56,.13) 1px, transparent 1.5px);
    background-size: 18px 18px;
    mask-image: linear-gradient(to bottom,transparent,black 12%,black 88%,transparent);
}
/* Header polish */
.header {
    box-shadow: 0 5px 22px rgba(3,60,56,.07);
    position: relative;
    z-index: 100;
}
.logo-mark {
    transition: transform .35s ease, box-shadow .35s ease;
}
.logo:hover .logo-mark {
    transform: rotate(-5deg) scale(1.05);
    box-shadow: 0 8px 20px rgba(189,139,56,.22);
}
/* Interactive cards */
.card, .book-card, .article-card, .gallery-card, .video-card {
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.card:hover, .book-card:hover, .article-card:hover, .gallery-card:hover, .video-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 35px rgba(3,60,56,.12);
}
/* Buttons */
.btn {
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 22px rgba(3,60,56,.16);
}
/* Gentle image zoom */
.book-card img, .article-card img, .gallery-card img, .video-card img {
    transition: transform .55s ease;
}
.book-card:hover img, .article-card:hover img, .gallery-card:hover img, .video-card:hover img {
    transform: scale(1.045);
}
/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}
/* Gold ornamental separators */
.ornament-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 28px auto;
    max-width: 420px;
    color: var(--library-gold);
}
.ornament-divider::before, .ornament-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg,transparent,var(--library-gold));
}
.ornament-divider::after {
    background: linear-gradient(90deg,var(--library-gold),transparent);
}
.ornament-divider span {
    width: 12px;
    height: 12px;
    border: 1px solid var(--library-gold);
    transform: rotate(45deg);
}
/* Floating decorative stars */
.islamic-float {
    position: absolute;
    width: 90px;
    height: 90px;
    border: 1px solid rgba(189,139,56,.18);
    transform: rotate(45deg);
    pointer-events: none;
    animation: floatOrnament 7s ease-in-out infinite;
}
.islamic-float::after {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(189,139,56,.14);
}
@keyframes floatOrnament {
    0%,100% {
        transform: rotate(45deg) translateY(0);
    }
    50% {
        transform: rotate(45deg) translateY(-12px);
    }
}
/* Hero overlay pattern */
.hero-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .12;
    mix-blend-mode: screen;
}
/* Scroll-to-top button */
#scrollTop {
    position: fixed;
    left: 22px;
    bottom: 22px;
    z-index: 120;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(189,139,56,.45);
    border-radius: 50%;
    background: var(--library-green);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: .3s;
}
#scrollTop.show {
    opacity: 1;
    visibility: visible;
    transform: none;
}
/* ========================================================= 01. الهوية والخلفية ========================================================= */
body {
    position: relative;
    background-color: var(--cream);
    background-image: linear-gradient(rgba(248,244,235,.925),rgba(248,244,235,.925)), url("../images/islamic-pattern.png");
    background-repeat: repeat;
    background-size: auto, 430px 430px;
    background-position: center;
    background-attachment: fixed;
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    box-shadow: inset 0 0 0 1px rgba(196,154,91,.035);
}
/* ========================================================= 02. مشاركة المحتوى ========================================================= */
.share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 24px 0;
}
.share-label {
    font-size: 12px;
    font-weight: 800;
    margin-left: 4px;
}
.share-btn {
    width: auto !important;
    min-width: 42px;
    height: 38px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: var(--green) !important;
    background: #fff;
    font-size: 11px;
    font-weight: 800;
    transition: transform .2s ease,background .2s ease,color .2s ease,box-shadow .2s ease;
}
.share-btn:hover {
    transform: translateY(-2px);
    background: var(--green);
    color: #fff !important;
    box-shadow: 0 7px 18px rgba(7,84,79,.12);
}
.share-whatsapp {
    border-color: #b8d9c5;
}
.share-whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
}
/* ========================================================= 03. تأثيرات الحركة ========================================================= */
@keyframes softPulse {
    0%,100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}
.logo-mark {
    animation: softPulse 4s ease-in-out infinite;
}
.reveal {
    will-change: transform,opacity;
}
/* احترام إعداد تقليل الحركة في أنظمة التشغيل */
@media(prefers-reduced-motion:reduce) {
    *,*::before,*::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
@keyframes sliderProgress {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}
/* ========================================================= Light content/category cards over the Islamic pattern ========================================================= */
.category-panel, .filter-panel {
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(255,255,255,.95);
    box-shadow: 0 10px 30px rgba(6,76,71,.07);
    border-radius: 18px;
    padding: 20px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.category-panel {
    margin-bottom: 30px;
}
.category-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}
.category-panel-title h3 {
    font-size: 17px;
    color: var(--green);
    margin: 0;
}
.category-panel-title p {
    font-size: 11px;
    color: var(--muted);
    margin: 0;
}
.article-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}
.article-categories a {
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(6,76,71,.10);
    color: var(--green);
    padding: 8px 15px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 800;
    transition: .25s ease;
}
.article-categories a:hover, .article-categories a.active {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
    transform: translateY(-2px);
}
.filter-panel {
    margin-bottom: 30px;
}
.filter-panel .filter {
    margin-bottom: 0;
    background: transparent;
    padding: 0;
}
.gallery-filter-panel {
    margin-bottom: 28px;
}
.gallery-filter-panel .gallery-filter {
    margin-bottom: 0;
}
.related-articles {
    margin-top: 55px;
}
.related-articles .section-head {
    margin-bottom: 22px;
}
.related-articles .article {
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(255,255,255,.95);
    box-shadow: 0 10px 28px rgba(6,76,71,.06);
    backdrop-filter: blur(2px);
}
.article-content-layout {
    display: grid;
    grid-template-columns: minmax(0,900px) 260px;
    gap: 25px;
    align-items: start;
    justify-content: center;
}
.article-sidebar {
    position: sticky;
    top: 105px;
}
.article-sidebar .category-panel {
    margin-bottom: 0;
}
.article-sidebar .article-categories {
    display: grid;
    grid-template-columns: 1fr;
}
.article-sidebar .article-categories a {
    text-align: right;
}
@media(max-width:900px) {
    .article-content-layout {
        grid-template-columns: 1fr;
    }
    .article-sidebar {
        position: static;
        order: -1;
    }
    .article-sidebar .article-categories {
        grid-template-columns: repeat(2,1fr);
    }
}
@media(max-width:520px) {
    .category-panel,.filter-panel {
        padding: 14px;
        border-radius: 14px;
    }
    .article-sidebar .article-categories {
        grid-template-columns: 1fr 1fr;
    }
}
