﻿:root {
    --nav-bg: #33b6e1;
}
@font-face {
    font-family: 'Quran';
    src: url('/fonts/quranFont.ttf') format('truetype');
}
@font-face {
    font-family: 'Qashib';
    src: url('/fonts/kufi.ttf') format('truetype');
}
@font-face {
    font-family: 'Naskh';
    src: url('/fonts/KATypicalNaskhv2.0.ttf') format('truetype');
}


body {
    background: #ffffff;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    /*background: radial-gradient(ellipse 70% 10% at 50% 0%, rgb(51 182 225) 99%, 
                transparent 100%), radial-gradient(ellipse 60% 40% at 80% 80%, 
                rgba(201, 168, 76, .06) 0%, transparent 50%);*/
    background:none;
    pointer-events: none;
    z-index: 0;
}
.alert .alert-danger{
    margin-top: 2.5rem;
}
.quran-verse {
    min-height: 14vh;
    max-width: 280px;
    margin: auto;
    color: blue;
    font-family: 'Naskh', 'Qashib', 'Quran', serif;
    font-size: 38px;
    direction: rtl;
    text-align: center;
    line-height: 2;
    padding: 10px;
    border-right: 4px solid #c9a227;
    border-left: 4px solid #c9a227;
    /* background: #faf8f2; */
    border-radius: 12px;
    margin-bottom: 1rem;
    background-image: url(/imgs/aya.png);
    height: auto;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-origin: content-box;
}
/*.quran-verse {
    max-width: 280px;
    margin: auto;
    color: blue;
    font-family: 'Naskh', 'Qashib', 'Quran', serif;
    font-size: 38px;
    direction: rtl;
    text-align: center;
    line-height: 2;
    padding: 5px;
    border-right: 4px solid #c9a227;
    border-left: 4px solid #c9a227;*/
/*background: #faf8f2;*/
/*border-radius: 12px;
    margin-bottom: 1rem;
}*/
/* ══ Social Bar ═══════════════════════════════════════════════════ */
.social-bar {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    padding: .35rem 0;
    direction: ltr; /* الأيقونات من اليسار */
}

.social-bar-inner {
    /*max-width: 1200px;*/
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: .2rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 14px;
    color: #fff;
    background: rgba(255,255,255,.05);
    border: 2px solid #fff;
    transition: all .2s;
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-2px);
    color: white;
    border-color: currentColor;
}

.social-icon.telegram:hover {
    /*color: #2AABEE;*/
    color: #fff;
    background: rgba(42,171,238,.15);
    border-color: rgba(42,171,238,.4);
}

.social-icon.whatsapp:hover {
    color: #25D366;
    background: rgba(37,211,102,.15);
    border-color: rgba(37,211,102,.4);
}

.social-icon.twitter:hover {
    color: #ffffff;
    background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.4);
}

.social-icon.youtube:hover {
    color: #FF0000;
    background: rgba(255,0,0,.15);
    border-color: rgba(255,0,0,.4);
}

.social-icon.instagram:hover {
    color: #E1306C;
    background: rgba(225,48,108,.15);
    border-color: rgba(225,48,108,.4);
}

.social-icon.facebook:hover {
    color: #1877F2;
    background: rgba(24,119,242,.15);
    border-color: rgba(24,119,242,.4);
}
/*-------------Heaader ------------*/
.nav-inner{
    max-width:none;
}
.navbar {
    /*background-color: #33b6e1;*/
    background-color: #fff;
    border-bottom: solid 5px var(--nav-bg);
    margin-top: 10px;
}

.navbar .nav-inner{
    justify-content:flex-start;
}

.nav-link {
    color: #162b75;
    font-size: 18px;
    font-weight: 700;
}

.nav-links{
    background: rgb(255 255 255);
}

.hu-headerLogoImg {
    max-width: 215px;
    min-width: 100px;
}

.nav-brand {
    padding-top: 10px;
}

.nav-username {
    color: maroon;
}
.dropdown-menu {
    background: rgb(246 247 248);
}
.dropdown-menu .dropdown-item {
    color: var(--navy-700);
    font-size:16px;
}

@media (max-width: 400px){
    .nav-brand{
        max-width: 68%;
    }
}
@media (max-width: 660px) {
    .nav-brand {
        max-width: 40%;
    }

}
@media (max-width: 770px) {
    .hu-headerLogoImg {
        max-width: 100%;
    }

    .nav-brand{
        max-width:32%;
    }
    .nav-links {
        margin: auto 10rem auto;
    }
}
/*@media (min-width: 768px) {
}*/
@media (max-width: 900px) {
    .nav-links {
        margin: auto 2rem auto;
    }
}
@media (max-width: 950px) {
    .navbar .nav-inner {
        justify-content: space-between;
    }

    .nav-links {
        border: 3px solid rgb(3 163 215);
    }
}
@media (max-width: 1115px) {
    .nav-links {
        margin: auto;
    }
}





/*-------- pagination ----------*/
.pagination .page-btn {
    color: var(--info);
}
/*--------Home Page -------------*/
.HomePage .card {
    background: rgb(14 22 40) ;
}

.HomePage .btn-outline {
    border: 1px solid rgb(201 168 76 / 75%);
    color: var(--text-muted);
}
.HomePage .btn-outline:hover {
    border-color: var(--gold-500);
    color: var(--gold-500);
    background:var(--cream);
}
@media (max-width: 550px)
{
    .HomePage #last-update {
        font-size: 2rem !important;
    }

    .HomePage #stats-section {
        grid-template-columns: repeat(1,1fr) !important;
    }
}
/*-------- Search page ----------*/
.search-page .search-input {
    background: rgb(255 255 255 / 90%);
    border: 1px solid rgb(201 168 76);
    color: darkblue;
}
.search-page .filter-group .btn-outline {
    color: var(--text-muted);
}
.search-page .filters {
    background: rgb(251 251 251 / 60%);
    border: 1px solid rgb(201 168 76);
}
.search-page .filter-select {
    /*background: rgb(5 28 96);*/
    background: #0080ad0f;
    border-color: #33b6e1;
    border-width: 2px;
    border-radius: var(--radius-sm);
    color: var(--navy-900);
}
.results-header .btn-outline {
    color: var(--text-muted)
}
.results-grid .book-card {
    /*background: #001f34;*/
    background: #0080ad;
}
.search-page .pagination .page-btn {
    /*background: #0e1628;*/
    background: #0080ad;
}

.search-page .page-btn.active {
    background: var(--gold-500);
    border-color: var(--gold-500);
}

.search-page .page-btn:hover {
    background: var(--gold-300) !important;
    border-color: var(--navy-500);
    color: var(--navy-500);
}
/*-------- details container ----------*/
.detail-page .detail-title {
    color: #19294d !important;
}
.detail-page .card {
    /*background: #323131;*/
    background:#0195B6;
}
.detail-page .card .field {
    border-bottom: 1px solid rgb(246 199 68);
}
.detail-page .table th {
    background:var(--navy-500);
}
.detail-page .table tbody {
    background: aliceblue;
}

.detail-page .action-bar {
    background: #0195B6;
    padding: .75rem;
    border-radius: 10px;
}

.detail-page .btn-outline {
    border: 1px solid rgb(201 168 76 / 75%);
    color: var(--text-primary);
}
.detail-page .btn-outline:hover {
    border-color: var(--gold-500);
    color: var(--gold-400);
    background: var(--input-bg);
}

.detail-page .card .field .field-label{
    font-size: 20px;
}

/*-------- Statstics Page -------------*/
.stats-page .stats-grid .stat-card {
    background: var(--navy-900);
}

.stats-page .card{
    background:var(--navy-900);
}
.stats-page .hero-actions .btn-outline {
    border: 1px solid rgb(201 168 76 / 75%);
    color: var(--text-muted);
}
.stats-page .hero-actions .btn-outline:hover {
    border-color: var(--gold-500);
    color: var(--gold-500);
    background:var(--cream);
}

/*---------- Book/Import -----------------*/
.Import-page .mapping-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: .65rem 0;
    border-bottom: 1px solid var(--border-light);
}


/*---------- import Log page ------------*/
.importLog-page .card {
    background: var(--navy-800);
}

.importLog-page .pagination .page-btn {
    background: #0e1628;
}
.importLog-page .page-btn.active {
    background: var(--gold-500);
    border-color: var(--gold-500);
}
.importLog-page .page-btn:hover {
    background: var(--gold-300) !important;
    border-color: var(--navy-500);
    color: var(--navy-500);
}

/* ══ Site Footer ════════════════════════════════════════════════════ */
.site-footer {
    background: #ffffff;
    direction: rtl;
    margin-top: 2rem;
    box-shadow: 0 -2px 12px rgba(0,0,0,.08);
    border-top: solid 5px var(--nav-bg);
}

/* المنطقة الرئيسية */
.footer-desktop {
    padding: 2.5rem 0 1.5rem;
    text-align: center;
}

/* Desktop */
.footer-desktop {
    display: block;
    padding: 2.5rem 0 1.5rem;
}

.footer-mobile {
    display: none;
}

.footer-inner {
    /*max-width: 1200px;*/
    margin: 0 auto;
    padding: 0 2rem;
    display: inline-grid;
    grid-template-columns: 1fr .8fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* العنوان الأزرق */
.footer-title {
    color: #1a7abf;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid #e8f4fc;
    font-family: var(--font-serif);
}

/* قائمة الاتصال */
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.footer-list li {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    padding-bottom: .85rem;
    border-bottom: 1px solid #eef5fb;
}

.footer-list li:last-child {
    border-bottom: none;
}

.footer-list li i {
    color: #1a7abf;
    font-size: 14px;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-list a {
    color: #444;
    text-decoration: none;
    transition: color .2s;
}

.footer-list a:hover {
    color: #1a7abf;
}

/* أيقونات السوشيال */
.footer-social {
    display: flex;
    gap: .5rem;
    margin-top: 1.1rem;
    flex-wrap: wrap;
}

.fs-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #1a7abf;
    color: #1a7abf;
    font-size: 15px;
    text-decoration: none;
    transition: all .2s;
    background: transparent;
}

.fs-icon:hover {
    background: #1a7abf;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26,122,191,.3);
}

/* الشعار الوسطي */
.footer-logo-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
}

.footer-logo-img {
    max-width: 350px;
    height: auto;
    object-fit: contain;
    margin-bottom: -75px;
    z-index: 1;
}

/* روابط مهمة */
.footer-col{
    width:100%;
}

.footer-col-links .footer-title {
    text-align: center;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-links-list li {
    padding: .75rem 0;
    border-bottom: 1px solid #eef5fb;
    text-align: right;
}

.footer-links-list li:last-child {
    border-bottom: none;
}

.footer-links-list a {
    color: #444;
    text-decoration: none;
    font-size: 14px;
    transition: color .2s;
    display:block;
    text-align:center;
}

.footer-links-list a:hover {
    color: #1a7abf;
}

.footer-links-list li:hover{
    border-bottom: 1px solid #33b6e1;
}

/* الشريط الزخرفي الأزرق */
.footer-pattern {
    height: 80px;
    background-color: #1a7abf;
    background-image: url('/imgs/bgfooter.jpg');
    /*background-image: repeating-linear-gradient( 45deg, rgba(255,255,255,.05) 0px, rgba(255,255,255,.05) 10px, transparent 10px, transparent 20px ), repeating-linear-gradient( -45deg, rgba(255,255,255,.05) 0px, rgba(255,255,255,.05) 10px, transparent 10px, transparent 20px );*/
    position: relative;
    align-content: end;
}

.footer-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0d5a8e, #1a7abf, #2596d4, #1a7abf, #0d5a8e);
}

/* الشريط الأسفل */
.footer-bottom {
    background: transparent;
    /*background: #0d5a8e;*/
    color: rgba(255,255,255,.8);
    text-align: center;
    padding: .65rem 1rem;
    font-size: 12px;
    font-family: var(--font-sans);
}

/* ── Responsive ─────────────────────────────────────────────────── */

/* ── Mobile Carousel (≤ 990px) ───────────────────────────────────── */
@media (max-width: 990px) {
    .footer-desktop {
        display: none;
    }

    .footer-mobile {
        display: block;
    }
}

.fcarousel {
    position: relative;
    overflow: hidden;
    background-image: url('/imgs/logo_footer_l.gif');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 35% auto;
    min-height: 340px;
}

.fcarousel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.88);
    z-index: 0;
}

.fcarousel-track {
    display: flex;
    transition: transform .4s ease;
    position: relative;
    z-index: 1;
}

.fslide {
    min-width: 100%;
    flex-shrink: 0;
}

.fslide-content {
    padding: 2rem 1.5rem 3.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 300px;
}

.fslide-title {
    color: #1a7abf;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid #c8e4f5;
    width: 100%;
    font-family: var(--font-serif);
}

.fslide-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 420px;
}

.fslide-list li {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: .65rem;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    padding: .65rem 0;
    border-bottom: 1px solid #d6ecf8;
}

.fslide-list li:last-child {
    border-bottom: none;
}

.fslide-list li i {
    color: #1a7abf;
    margin-top: 3px;
    flex-shrink: 0;
}

.fslide-list a {
    color: #444;
    text-decoration: none;
}

.fslide-social {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.25rem;
}

.fslide-links {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 380px;
}

.fslide-links li {
    padding: .8rem 0;
    border-bottom: 1px solid #d6ecf8;
    text-align: center;
}

.fslide-links li:last-child {
    border-bottom: none;
}

.fslide-links a {
    color: #444;
    text-decoration: none;
    font-size: 15px;
}

.fslide-links a:hover {
    color: #1a7abf;
}

/* Dots */
.fcarousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: .45rem;
    z-index: 2;
}

.fdot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1a7abf;
    opacity: .3;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: opacity .2s, transform .2s;
}

.fdot.active {
    opacity: 1;
    transform: scale(1.2);
}

/* Touch swipe */
.fcarousel {
    touch-action: pan-y;
}



@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-logo-col {
        order: -1;
    }
    /* الشعار في الأعلى */
    .footer-logo-img {
        max-width: 160px;
    }

    .footer-col-links .footer-title,
    .footer-links-list li {
        text-align: center;
    }

    .footer-links-list {
        align-items: center;
    }

    .footer-social {
        justify-content: flex-start;
    }

    .footer-pattern {
        height: 40px;
    }
}