@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@500;700;800&display=swap");

:root {
    --bs-primary: #6d1b2a;
    --bs-secondary: #c9a227;
    --bs-dark: #3d0d16;
    --bs-light: #fffaf2;
    --bs-primary-rgb: 109, 27, 42;
    --bs-secondary-rgb: 201, 162, 39;
    --bs-dark-rgb: 61, 13, 22;
    --bs-light-rgb: 255, 250, 242;
}

body {
    font-family: Cairo, Tahoma, Arial, sans-serif;
    background: #f6efe4;
    color: #3d141c;
}

.topbar {
    background: linear-gradient(90deg, #3d0d16, #6d1b2a) !important;
    border-bottom: 3px solid #c9a227;
}
.topbar a,
.topbar .text-muted,
.topbar .text-dark { color: #fffaf2 !important; }
.topbar .text-primary,
.topbar i.text-primary { color: #c9a227 !important; }
.topbar .border-primary { border-color: rgba(201, 162, 39, .45) !important; }
.topbar .dropdown { display: none !important; }

.nav-bar {
    background: #fffaf2;
    border-bottom: 1px solid rgba(201, 162, 39, .45);
    box-shadow: 0 10px 28px rgba(61, 13, 22, .08);
}
.navbar-light .navbar-nav .nav-link {
    color: #4a1d22;
    font-weight: 800;
    border-radius: 999px;
    white-space: nowrap;
}
.navbar .navbar-nav .nav-item { padding: 10px 8px; }
.navbar-light .navbar-nav .nav-item:hover .nav-link,
.navbar-light .navbar-nav .nav-item.active .nav-link,
.navbar .navbar-nav .nav-item.active .nav-link {
    color: #6d1b2a !important;
    background: rgba(201, 162, 39, .18);
}
.nav-bar .d-xl-flex span,
.nav-bar .text-dark { color: #3d141c !important; font-weight: 700; }
.nav-bar .btn-light {
    background: #6d1b2a !important;
    color: #fffaf2 !important;
}
.nav-bar .btn-light i { color: #fffaf2 !important; }

.btn.btn-primary {
    background: linear-gradient(135deg, #6d1b2a, #3d0d16) !important;
    color: #fff !important;
    border: 0 !important;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(109, 27, 42, .22);
}
.btn.btn-primary:hover {
    background: linear-gradient(135deg, #c9a227, #8a6d12) !important;
    color: #3d0d16 !important;
}
.btn.btn-light {
    background: #fffaf2;
    color: #6d1b2a !important;
    font-weight: 800;
}
.back-to-top {
    background: #6d1b2a !important;
    color: #fff !important;
}

.header-carousel .header-carousel-item.bg-primary {
    background: linear-gradient(135deg, #3d0d16 0%, #6d1b2a 55%, #8a3140 100%) !important;
}
.header-carousel .calrousel-img img {
    border-radius: 22px;
    border: 3px solid rgba(201, 162, 39, .75);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
}
.header-carousel .carousel-caption h4 {
    color: #c9a227 !important;
    letter-spacing: 0;
}
.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    background: #c9a227 !important;
    color: #3d0d16 !important;
}

.sm-home-actions {
    margin-top: -28px;
    position: relative;
    z-index: 3;
    padding: 0 16px 10px;
}
.sm-home-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.sm-home-card {
    display: block;
    text-decoration: none;
    background: #fffdf8;
    border: 1.5px solid #e3cc9a;
    border-radius: 22px;
    padding: 22px 16px 18px;
    text-align: center;
    color: #4a1d22;
    box-shadow: 0 16px 34px rgba(61, 13, 22, .1);
    transition: transform .2s ease, box-shadow .2s ease;
}
.sm-home-card:hover {
    transform: translateY(-4px);
    color: #6d1b2a;
    box-shadow: 0 20px 40px rgba(61, 13, 22, .16);
}
.sm-home-card i {
    width: 58px;
    height: 58px;
    margin: 0 auto 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #6d1b2a;
    color: #f7efe6;
    font-size: 22px;
}
.sm-home-card h3 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 800;
    color: #3d141c;
}
.sm-home-card p {
    margin: 0;
    color: #7a5a52;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
}

.faq-section.bg-light,
.feature.bg-light {
    background: #f6efe4 !important;
}
.faq-section,
.blog {
    position: relative;
}
h4.text-primary {
    color: #6d1b2a !important;
    font-weight: 800;
}
h4.text-primary:before {
    content: "";
    display: block;
    width: 72px;
    height: 10px;
    margin-bottom: 8px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 12'%3E%3Cpath fill='none' stroke='%23c9a227' stroke-width='1.4' d='M2 6h22 M58 6h20 M30 6c4-6 16-6 20 0'/%3E%3Ccircle cx='40' cy='6' r='2.2' fill='%23c9a227'/%3E%3C/svg%3E") center / contain no-repeat;
}
.text-center h4.text-primary:before { margin-right: auto; margin-left: auto; }
.display-4 { color: #3d141c; font-weight: 800; }

.blog .blog-item {
    background: #fffdf8;
    border: 1.5px solid #e3cc9a;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(61, 13, 22, .08);
}
.blog .blog-item .blog-img .blog-categiry {
    background: #6d1b2a !important;
    color: #fff !important;
    border-radius: 999px;
}
.accordion-button {
    background: #fffaf2;
    color: #3d141c;
    font-weight: 800;
}
.accordion-button:not(.collapsed) {
    background: #6d1b2a;
    color: #fff;
    box-shadow: none;
}
.accordion-item {
    border: 1px solid #e3cc9a;
    border-radius: 14px !important;
    overflow: hidden;
    margin-bottom: 8px;
}

.footer {
    background: linear-gradient(160deg, #3d0d16, #6d1b2a) !important;
}
.footer .footer-item h4 { color: #c9a227 !important; }
.footer p,
.footer a,
.footer a:visited,
.copyright a,
.copyright span {
    color: #fffaf2 !important;
}
.footer a:hover { color: #c9a227 !important; }
.copyright {
    background: #2a0c12 !important;
    color: #f7efe6;
}

.modalPopup {
    border-color: #6d1b2a !important;
}
.modalPopup .header,
.modalPopup .yes {
    background-color: #6d1b2a !important;
    border-color: #3d0d16 !important;
}
.bg-primary { background-color: #6d1b2a !important; }
.text-primary { color: #6d1b2a !important; }

.sm-video-page { padding: 12px 0 28px; width: 100%; }
.sm-video-page .display-4 { margin-bottom: 16px; }
.sm-video-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #1c0c10;
    border: 2px solid #c9a227;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(61, 13, 22, .12);
}
.sm-video-frame iframe,
.sm-video-frame video,
.sm-video-frame object,
.sm-video-frame embed {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}
.sm-video-meta { margin: 14px 0 8px; }
.sm-video-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #6d1b2a;
    color: #fffaf2;
    border-radius: 999px;
    padding: 8px 16px;
    font-weight: 800;
}
.sm-video-notes {
    background: #fffdf8;
    border: 1.5px solid #e3cc9a;
    border-radius: 18px;
    padding: 18px 20px;
    font-size: 18px;
    line-height: 1.9;
    font-weight: 700;
}
.sm-video-more { padding-top: 28px; }
.sm-video-more .sm-deir-grid { grid-template-columns: repeat(4, 1fr); }
.sm-video-more a.on { outline: 3px solid #6d1b2a; }

.sm-site .header-carousel { display: none !important; }
.sm-site .feature.bg-light {
    background: transparent !important;
    padding-top: 8px !important;
}
.sm-site .about.bg-light,
.sm-site .about .bg-light {
    background: transparent !important;
    background-color: transparent !important;
}
.about-item-content,
.feature .bg-white,
.feature-item {
    background: #fffdf8 !important;
    border: 1.5px solid #e3cc9a;
    border-radius: 22px;
}
.feature-icon {
    background: #6d1b2a !important;
    color: #fffaf2 !important;
    border-radius: 18px;
}

.sm-deir { padding: 28px 16px 10px; }
.sm-deir .display-4 { margin-bottom: 18px; }
.sm-deir-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.sm-deir-grid a {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    background: #fffdf8;
    border: 1.5px solid #e3cc9a;
    border-radius: 18px;
    padding: 16px 18px;
    color: #3d141c;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 12px 28px rgba(61, 13, 22, .08);
    overflow: hidden;
}
.sm-deir-grid a.sm-deir-photo {
    display: block;
    padding: 0;
}
.sm-deir-grid a.sm-deir-photo img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.sm-deir-grid a.sm-deir-photo span { display: block; padding: 12px 14px 14px; }
.sm-deir-grid a:hover { color: #6d1b2a; transform: translateY(-2px); }
.sm-deir-grid i {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #6d1b2a, #3d0d16);
    color: #f6e7b8;
    font-size: 18px;
}

.sm-rooms { padding: 36px 16px 20px; }
.sm-rooms .display-4 { margin-bottom: 16px; }
.sm-room-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.sm-room-cats button {
    border: 1.5px solid #e3cc9a;
    background: #fffaf2;
    color: #4a1d22;
    border-radius: 999px;
    padding: 8px 16px;
    font-family: Cairo, Tahoma, sans-serif;
    font-weight: 800;
    cursor: pointer;
}
.sm-room-cats button.on {
    background: #6d1b2a;
    color: #fffaf2;
    border-color: #6d1b2a;
}
.sm-room-stage {
    position: relative;
    background: #fffdf8;
    border: 1.5px solid #e3cc9a;
    border-radius: 22px;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sm-room-stage img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    object-position: center;
    cursor: zoom-in;
    background: #1c0c10;
}
.sm-room-stage button,
.sm-room-pop button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: #c9a227;
    color: #3d0d16;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}
.sm-room-stage #smRoomPrev,
.sm-room-pop #smRoomPopPrev { right: 12px; }
.sm-room-stage #smRoomNext,
.sm-room-pop #smRoomPopNext { left: 12px; }
.sm-room-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 2px 4px;
}
.sm-room-thumbs button {
    border: 2px solid transparent;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
    flex: 0 0 auto;
    cursor: pointer;
}
.sm-room-thumbs button.on { border-color: #6d1b2a; }
.sm-room-thumbs img { width: 92px; height: 68px; object-fit: cover; display: block; }
.sm-room-empty { text-align: center; color: #6d1b2a; font-weight: 800; }
.sm-room-pop {
    position: fixed;
    inset: 0;
    z-index: 30000;
    background: rgba(28, 8, 12, .88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.sm-room-pop[hidden] { display: none !important; }
.sm-room-pop figure { margin: 0; max-width: min(1100px, 92vw); text-align: center; }
.sm-room-pop img { max-width: 100%; max-height: 78vh; border-radius: 16px; border: 2px solid #c9a227; background: #1c0c10; }
.sm-room-pop figcaption { color: #fffaf2; margin-top: 10px; font-weight: 800; }
.sm-room-pop #smRoomPopClose,
.sm-room-pop .sm-pop-close {
    top: 16px;
    left: 16px;
    transform: none;
}
.sm-news-zoom { cursor: zoom-in; }
.navbar { overflow: visible; }
.sm-nav-search { position: relative; margin: 0 10px; flex: 0 0 auto; z-index: 30; }
.sm-nav-search-btn {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #6d1b2a, #3d0d16);
    color: #fffaf2;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(109, 27, 42, .22);
}
.sm-nav-search-btn[aria-expanded="true"] { background: #c9a227; color: #3d0d16; }
.sm-nav-search-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: min(440px, 86vw);
    z-index: 4000;
    background: #fffdf8;
    border: 2px solid #e3cc9a;
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 18px 40px rgba(61, 13, 22, .2);
}
.sm-nav-search-panel[hidden] { display: none !important; }
.sm-nav-search-panel input[type="search"] {
    width: 100%;
    border: 2px solid #e3cc9a;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 1.05rem;
    background: #fffaf2;
    color: #3d0d16;
    outline: none;
}
.sm-nav-search-panel input[type="search"]:focus { border-color: #c9a227; }
.sm-nav-search-panel .sm-search-list { max-height: 52vh; }
#searchModal .modal-content { background: #f6efe4; }
#searchModal .modal-header { border: 0; background: #f6efe4; }
#searchModal .modal-title { color: #6d1b2a; font-weight: 800; }
#searchModal .sm-search-body {
    display: block !important;
    background: #f6efe4 !important;
    align-items: stretch !important;
    padding: 8px 16px 40px;
}
.sm-search-wrap { width: min(820px, 100%); margin: 0 auto; }
.sm-search-wrap input[type="search"] {
    width: 100%;
    border: 2px solid #e3cc9a;
    border-radius: 18px;
    padding: 16px 18px;
    font-size: 1.15rem;
    background: #fffdf8;
    color: #3d0d16;
    outline: none;
}
.sm-search-wrap input[type="search"]:focus { border-color: #c9a227; }
.sm-search-list {
    margin-top: 12px;
    background: #fffdf8;
    border: 2px solid #e3cc9a;
    border-radius: 18px;
    max-height: 62vh;
    overflow: auto;
}
.sm-search-item {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    border-bottom: 1px solid #f0e4cc;
    color: #3d0d16;
    text-align: right;
}
.sm-search-item:hover,
.sm-search-item.on,
.sm-search-item:focus { background: #fff6e4; color: #3d0d16; }
.sm-search-kind {
    display: inline-block;
    background: #6d1b2a;
    color: #fffaf2;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 800;
}
.sm-search-item strong { display: block; margin-top: 4px; font-size: 1.05rem; }
.sm-search-item small { display: block; color: #6b5344; margin-top: 2px; }
.sm-search-empty { padding: 16px; color: #6d1b2a; font-weight: 800; text-align: right; }
body.sm-intro-on #spinner { display: none !important; }
.sm-intro {
    position: fixed;
    inset: 0;
    z-index: 40000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(ellipse at 50% 38%, #fffaf2 0%, #f6efe4 46%, #6d1b2a 150%);
    transition: opacity .6s ease, visibility .6s ease;
}
.sm-intro.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.sm-intro-card { width: min(820px, 100%); text-align: center; }
.sm-intro-kicker {
    margin: 0 0 18px;
    color: #c9a227;
    font-weight: 800;
    font-size: 15px;
}
.sm-intro-title {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 14px;
    direction: rtl;
    min-height: 1.4em;
}
.sm-intro-title span {
    display: inline-block;
    font-family: Cairo, Tahoma, Arial, sans-serif;
    font-weight: 800;
    font-size: clamp(30px, 5.4vw, 58px);
    line-height: 1.35;
    color: #6d1b2a;
    opacity: 0;
    animation: sm-intro-word 4.8s ease-in-out infinite;
}
.sm-intro-title span:nth-child(1) { animation-delay: 0s; }
.sm-intro-title span:nth-child(2) { animation-delay: .28s; }
.sm-intro-title span:nth-child(3) { animation-delay: .56s; }
.sm-intro-title span:nth-child(4) { animation-delay: .84s; }
.sm-intro-title span:nth-child(5) { animation-delay: 1.12s; }
.sm-intro-track {
    direction: ltr;
    position: relative;
    height: 6px;
    width: min(420px, 86%);
    margin: 28px auto 0;
    border-radius: 99px;
    background: #ead7b8;
    overflow: hidden;
}
.sm-intro-track span {
    position: absolute;
    top: 0;
    left: -42%;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #6d1b2a, #c9a227);
    animation: sm-slide 2.6s linear infinite;
}
.sm-intro-note {
    margin: 16px 0 0;
    color: #3d0d16;
    font-weight: 800;
}
.sm-intro-copy {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 22px;
    margin: 0;
    direction: ltr;
    text-align: center;
    color: #3d0d16;
    font-size: 14px;
    font-weight: 700;
}
@keyframes sm-slide {
    0% { left: -42%; }
    100% { left: 100%; }
}
@keyframes sm-intro-word {
    0% { opacity: 0; transform: translateX(46px); }
    20% { opacity: 1; transform: translateX(0); }
    68% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(-40px); }
}
@media (prefers-reduced-motion: reduce) {
    .sm-intro-title span,
    .sm-intro-track span { animation: none; opacity: 1; transform: none; }
}

@media (max-width: 991px) {
    .sm-nav-search-panel { position: fixed; top: 86px; left: 12px; right: 12px; width: auto; }
    .sm-home-grid { grid-template-columns: 1fr 1fr; }
    .sm-deir-grid,
    .sm-video-more .sm-deir-grid { grid-template-columns: 1fr 1fr; }
    .sm-home-actions { margin-top: 16px; }
}
@media (max-width: 575px) {
    .sm-home-grid,
    .sm-deir-grid,
    .sm-video-more .sm-deir-grid { grid-template-columns: 1fr; }
    .sm-room-stage img { height: 260px; }
}
