/* ── Custom Kurdish font ─────────────────────────────────────── */
@font-face {
    font-family: 'speda';
    src: url('../fonts/Speda-Bold.ttf');
    font-weight: normal;
    font-style: normal;
}

.speda_font {
    font-family: 'speda', sans-serif;
}

.site-header {
    transition: background-color 0.2s ease, backdrop-filter 0.2s ease, -webkit-backdrop-filter 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
    background-color: rgba(255, 255, 255, 0.78) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

/* ── Bootstrap utility aliases needed by carousel & generated HTML ── */
.d-block  { display: block  !important; }
.d-none   { display: none   !important; }
.w-100    { width:   100%   !important; }
.h-100    { height:  100%   !important; }
.img-fluid { max-width: 100%; height: auto; }
@media (min-width: 768px) {
    .d-md-block { display: block !important; }
}

/* ── Minimal Bootstrap 5 carousel CSS ───────────────────────── */
.carousel { position: relative; }
.carousel.pointer-event { touch-action: pan-y; }
.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.carousel-inner::after { display: block; clear: both; content: ""; }
.carousel-item {
    position: relative;
    display: none;
    float: left;
    width: 100%;
    margin-right: -100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 0.6s ease-in-out;
}
.carousel-item.active,
.carousel-item-next,
.carousel-item-prev { display: block; }
.carousel-item-next:not(.carousel-item-start),
.active.carousel-item-end   { transform: translateX(100%); }
.active.carousel-item-start,
.carousel-item-prev:not(.carousel-item-end) { transform: translateX(-100%); }
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 0; bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15%;
    padding: 0;
    color: #fff;
    text-align: center;
    background: none;
    border: 0;
    opacity: 0.5;
    transition: opacity 0.15s ease;
    cursor: pointer;
}
.carousel-control-prev { left: 0; }
.carousel-control-next { right: 0; }
.carousel-control-prev:hover,
.carousel-control-next:hover { opacity: 0.9; }
.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: inline-block;
    width: 2rem; height: 2rem;
    background-repeat: no-repeat;
    background-position: 50%;
    background-size: 100% 100%;
}
.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}
.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* ── Carousel height ─────────────────────────────────────────── */
.carousel_height { height: 325px; }
@media (max-width: 767px) {
    .carousel_height { height: 120px; }
}

/* ── Tab navigation ──────────────────────────────────────────── */
.tabMain {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
    text-decoration: none;
}
.tabMain:hover {
    color: #2563eb;
    border-bottom-color: #93c5fd;
}
.tabMain.active {
    color: #2563eb !important;
    border-bottom-color: #2563eb !important;
    font-weight: 700;
}

/* ── Flickity gallery ────────────────────────────────────────── */
.gallery { background: #fff; }

.gallery-cell {
    width: 28%;
    height: 250px;
    margin-right: 10px;
}
@media (max-width: 767px) {
    .gallery-cell {
        width: 50%;
        height: 230px;
        margin-right: 10px;
    }
}

/* ── Book card ───────────────────────────────────────────────── */
.ag-shop-card_box {
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 10px 10px 0 rgba(0, 0, 35, .25);
    border-radius: 8px;
    transition: .4s;
}
.ag-shop-card_box:hover { transform: translateY(-3px); }

.ag-shop-card_body {
    display: block;
    height: 150px;
    background-position: 50%;
    background-size: cover;
    overflow: hidden;
    transition: .4s;
    position: relative;
}
@media (max-width: 767px) {
    .ag-shop-card_body { height: 120px; }
}

.ag-card-bg {
    height: 100%;
    width: 200%;
    background-position: 50%;
    background-size: cover;
    position: absolute;
    top: 0;
    left: -50%;
    transition: height .6s;
}

/* Yellow "new" badge button */
.ag-shop-card-body_link {
    background-color: #FFD701;
    height: 40px;
    width: 40px;
    margin: 0 auto;
    overflow: hidden;
    z-index: 9;
    position: absolute;
    top: 25%;
    right: 5%;
    border-radius: 50%;
    box-shadow: 0 10px 20px 0 rgba(0, 0, 0, .35);
    transform: translateY(-50%);
    transition: top .4s;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 767px) {
    .ag-shop-card-body_link { top: 30%; right: 4%; }
}

.ag-shop-card_footer {
    padding: 15px 20px 15px 55px;
    border: 0;
    background-color: #fff;
    position: relative;
}
@media (max-width: 767px) {
    .ag-shop-card_footer { padding: 15px 7px 15px 38px; }
}

.ag-shop-card-footer_title {
    display: block;
    line-height: 1.3;
    font-weight: 700;
    font-size: 12px;
    color: #690911;
}
.ag-shop-card-footer_products {
    display: block;
    line-height: 1.3;
    font-size: 12px;
}

/* Orange download arrow button */
.ag-shop-card-footer_link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    width: 35px;
    background-color: #ff7b1a;
    position: absolute;
    left: 20px;
    top: 10px;
    border-radius: 50%;
}
@media (max-width: 767px) {
    .ag-shop-card-footer_link { left: 4px; top: 15px; }
}

.ag-shop-card-footer_arrow { max-width: 16px; }

/* ── Search not-found image ──────────────────────────────────── */
.search_not_found { width: 400px; height: 400px; }
@media (max-width: 767px) {
    .search_not_found { width: 200px; height: 200px; }
}

/* ── Footer ──────────────────────────────────────────────────── */
.blog-footer {
    padding: 2.5rem 0;
    color: #727272;
    text-align: center;
    background-color: #f9f9f9;
    border-top: .05rem solid #e5e5e5;
}
.blog-footer p:last-child { margin-bottom: 0; }
