/* Soft UI polish — keeps approved layout & brand colors */

#header {
    background:
        radial-gradient(ellipse at 30% 80%, rgba(157, 133, 86, 0.08), transparent 50%),
        linear-gradient(rgba(255, 252, 247, 0.72), #fff 55%, #fff),
        url(../img/pattern2.png);
}

#header .header__pic img {
    filter: none;
    box-shadow: none;
}

#header .header__title h2 {
    letter-spacing: 0.06em;
    line-height: 1.35;
}

#header .header__title h5 {
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
    letter-spacing: 0.18em;
}

#header .header__title h5::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 48px;
    height: 2px;
    transform: translateX(-50%);
    background: #9d8556;
    border-radius: 2px;
    opacity: 0.85;
}

header.header-hero {
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

header.header-hero.fixed {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

header.header-hero .custom-dropdown .dropdown-toggle {
    padding: 6px 10px;
    border-radius: 999px;
    transition: background 0.25s ease;
}

header.header-hero .custom-dropdown .dropdown-toggle:hover {
    background: rgba(91, 77, 50, 0.08);
}

#about {
    background: linear-gradient(145deg, #5b4d32 0%, #6a5a3c 48%, #52452d 100%);
}

#about .about__content--text p {
    line-height: 1.75;
    font-size: 1rem;
}

#about .about__content--photo img {
    border-color: rgba(157, 133, 86, 0.85);
}

#about .about__content--audio {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(157, 133, 86, 0.75);
    backdrop-filter: blur(4px);
}

.btn-rounded-sish {
    padding: 0.55rem 1.35rem;
    letter-spacing: 0.04em;
    box-shadow: 0 6px 16px rgba(91, 77, 50, 0.18);
}

.btn-rounded-sish:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(91, 77, 50, 0.24);
}

.btn-rounded-sish:focus {
    outline: 2px solid rgba(157, 133, 86, 0.55);
    outline-offset: 2px;
}

.section .section__header {
    position: relative;
    padding-bottom: 14px;
}

.section .section__header::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 56px;
    height: 2px;
    transform: translateX(-50%);
    background: #9d8556;
    border-radius: 2px;
    opacity: 0.8;
}

.box {
    box-shadow: 0 8px 28px rgba(91, 77, 50, 0.1);
    background: #fff;
}

.box:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(91, 77, 50, 0.18);
}

.box .box__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.box:hover .box__image img {
    transform: scale(1.04);
}

.box .box__image .box__info {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
    justify-content: flex-end;
    top: auto;
    bottom: 0;
    height: auto;
    padding: 18px 12px 12px;
    transform: none;
}

.box .box__image .box__info .category {
    text-align: left;
}

.box:hover .box__image .box__info {
    top: auto;
}

.box .box__content .box__title {
    font-size: 1.15rem;
    line-height: 1.35;
    margin-bottom: 8px;
}

.box .box__content .box__text {
    height: auto;
    max-height: 85px;
    color: #555;
}

.box:hover .box__content .box__text {
    color: rgba(255, 255, 255, 0.9);
}

#books .book {
    box-shadow: 0 8px 24px rgba(91, 77, 50, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#books .book:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(91, 77, 50, 0.16);
}

#books .book__image {
    height: 280px;
    background: #efe9dc;
}

#books .book__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-container {
    background: transparent;
    padding-bottom: 12px;
}

.swiper-container .swiper-slide {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(91, 77, 50, 0.12);
}

.swiper-container .swiper-slide img {
    height: 100%;
    object-fit: cover;
}

.swiper-button-next,
.swiper-button-prev {
    color: #5b4d32 !important;
}

.swiper-pagination-bullet-active {
    background: #9d8556 !important;
}

.footer .footer-main {
    background: linear-gradient(160deg, #5b4d32 0%, #4a3f2a 100%);
}

.footer input[type="email"] {
    padding: 6px 4px;
    transition: border-color 0.25s ease;
}

.footer input[type="email"]:focus {
    border-bottom-color: #e8dfd0;
}

.footer .links li a {
    transition: opacity 0.25s ease;
}

.footer .links li a:hover {
    opacity: 0.85;
}

.footer .credits .social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 0;
    list-style: none;
}

.footer .credits .social li {
    display: inline-flex;
    margin: 0 !important;
    padding: 0;
    float: none !important;
}

.footer .credits .social li a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px;
    min-height: 38px;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.06);
    text-align: center;
    box-sizing: border-box !important;
    vertical-align: middle;
    transition: background 0.25s ease, transform 0.25s ease;
}

.footer .credits .social li a i,
.footer .credits .social li a .fab,
.footer .credits .social li a .fas,
.footer .credits .social li a .far {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    text-align: center;
}

.footer .credits .social li a i::before,
.footer .credits .social li a .fab::before,
.footer .credits .social li a .fas::before,
.footer .credits .social li a .far::before {
    display: block;
    line-height: 1;
    width: 1em;
    text-align: center;
}

/* Optical tweaks for FA brand glyphs inside perfect circles */
.footer .credits .social li a .fa-facebook-f::before {
    transform: translate(0.5px, 0);
}

.footer .credits .social li a .fa-youtube::before {
    transform: translate(0.5px, 0.5px);
}

.footer .credits .social li a .fa-twitter::before {
    transform: translate(0, 0.5px);
}

.footer .credits .social li a .fa-instagram::before {
    transform: translate(0, 0.5px);
}

.footer .credits .social li a:hover {
    background: rgba(157, 133, 86, 0.45);
    transform: translateY(-2px);
    color: #fff;
}

img.is-fallback {
    object-fit: cover;
    background: #f3efe6;
}

/* ------------------------------------------------------------------ */
/* Mobile header: keep login / language / menu on one usable row      */
/* ------------------------------------------------------------------ */
@media (max-width: 767.98px) {
    header.header-hero {
        max-height: none;
    }

    header.header-hero .container,
    header.header-hero .row,
    header.header-hero .col-12 {
        max-width: 100%;
    }

    header.header-hero .logo {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 6px;
        padding: 8px 52px 8px 10px !important;
        text-align: left !important;
        min-height: 44px;
    }

    header.header-hero .logo .name {
        float: none !important;
        flex: 1 1 auto;
        min-width: 0;
        max-width: 42%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        line-height: 1.2;
        visibility: visible;
    }

    header.header-hero .logo .name .sish {
        display: inline !important;
        font-size: 0.7rem !important;
        letter-spacing: 0.03em;
        line-height: 1.2 !important;
    }

    header.header-hero .logo .name .full {
        display: none !important;
    }

    header.header-hero .header-utils,
    header.header-hero .logo > .text-dark {
        display: inline-flex !important;
        align-items: center;
        justify-content: flex-end;
        flex: 0 0 auto;
        flex-wrap: nowrap !important;
        gap: 4px;
        white-space: nowrap !important;
        margin: 0 !important;
        padding-right: 2px;
    }

    header.header-hero .custom-dropdown,
    header.header-hero #auth,
    header.header-hero #selectLanugage {
        display: inline-flex !important;
        margin: 0 !important;
        vertical-align: middle;
    }

    header.header-hero .custom-dropdown .dropdown-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 40px;
        min-height: 40px;
        padding: 8px !important;
        white-space: nowrap;
    }

    /* Hide language label on phone — icon only, opens dropdown */
    header.header-hero #selectLanugage .header-utils__lang-name {
        display: none !important;
    }

    header.header-hero #auth .header-utils__auth-name {
        display: none !important;
    }

    header.header-hero .hc-nav-trigger,
    .hc-nav-trigger.hc-nav-1,
    a.hc-nav-trigger {
        position: absolute !important;
        right: 6px !important;
        top: 6px !important;
        left: auto !important;
        z-index: 1001 !important;
        width: 40px;
        height: 40px;
        transform: none !important;
    }

    .rtl header.header-hero .logo {
        padding: 8px 10px 8px 48px !important;
    }

    .rtl header.header-hero .hc-nav-trigger,
    .rtl .hc-nav-trigger.hc-nav-1,
    .rtl a.hc-nav-trigger {
        right: auto !important;
        left: 8px !important;
        transform-origin: top left;
    }

    .rtl header.header-hero .header-utils,
    .rtl header.header-hero .logo > .text-dark {
        justify-content: flex-start;
    }
}

@media (max-width: 380px) {
    header.header-hero .logo .name {
        max-width: 34%;
    }

    header.header-hero .logo .name .sish {
        font-size: 0.62rem !important;
    }
}
