/* ===========================================================================
   redesign-blog.css  —  page-scoped styles for the Blog module
   Pages: site/pages/blogs/index.blade.php  +  site/pages/blogs/show.blade.php
   Source: hertz.org.az-frontend/assets/css/style.css (blogs.html + blog_detail.html)
   Loaded via @push('css'); namespaced to blog sections only.
   =========================================================================== */

/* ---------- yellow accent lines (blogs head) — src 9873–9895 ---------- */
.blogs-sec .yellow-lines {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blogs-sec .yellow-lines .short-line {
    width: 5px;
    height: 4px;
    background: #ffd400;
}

.blogs-sec .yellow-lines .long-line {
    width: 15px;
    height: 4px;
    background: #ffd400;
}

/* ---------- blogs list — src 10368–10480 ---------- */
.blogs-sec {
    padding: 72px 0 32px;
}

.blogs-sec h1 {
    margin-bottom: 28px;
    color: #141414;
    line-height: 1;
    font-weight: 700;
    font-size: 36px;
}

.blogs-sec .blogs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.blogs-sec .blog-card {
    overflow: hidden;
    border-radius: 10px;
    background: #f8f8f8;
    color: #151515;
    text-decoration: none;
}

.blogs-sec .blog-image {
    height: 200px;
    overflow: hidden;
}

.blogs-sec .blog-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blogs-sec .blog-card:hover .blog-image img {
    transform: scale(1.08);
}

.blogs-sec .blog-content {
    padding: 16px 20px;
}

.blogs-sec .category {
    display: inline-block;
    padding: 8px 10px;
    background: #FFCC00;
    color: #000000;
    line-height: 1;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    border-radius: 12px;
}

.blogs-sec .blog-content h2 {
    margin: 10px 0 6px;
    color: #141413;
    font-weight: 500;
    font-size: 18px;
}

.blogs-sec .blog-content p {
    margin: 0;
    color: #4D4D4D;
    font-weight: 400;
    font-size: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blogs-sec .blog-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    color: #808080;
    font-weight: 500;
    font-size: 14px;
}

.blogs-sec .blog-info span {
    display: flex;
    gap: 4px;
}

.blogs-sec .blog-info img {
    width: 20px;
    height: 20px;
}

.blogs-sec .arrow {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: #555;
    border: 0.9px solid #EBEBEB;
}

.blogs-sec .arrow svg {
    width: 18px;
    height: 18px;
}

/* empty state (Laravel fallback, no design source) */
.blogs-sec .blogs-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #808080;
    font-weight: 500;
    font-size: 16px;
    padding: 40px 0;
}

/* ---------- blogs head + filter component — src 10820–10826, 14953–15035 ---------- */
.blogs-sec .blogs-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.blogs-sec .filter-component {
    position: relative;
    margin-top: 3px;
}

.blogs-sec .filter-component__trigger {
    width: 200px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    color: #141414;
    font-weight: 500;
    font-size: 16px;
    border: 1px solid #EBEBEB;
    background-color: #F7F7F7;
    padding: 10px 14px;
    border-radius: 8px;
}

.blogs-sec .filter-component__trigger img {
    width: 12px;
    height: 12px;
}

.blogs-sec .filter-component__menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    z-index: 10;
    width: 200px;
    padding: 5px 0;
    border: 1px solid #e5e5e5;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: 0.2s ease;
}

.blogs-sec .filter-component__menu a {
    display: block;
    padding: 7px 10px;
    color: #333;
    font-size: 16px;
    text-decoration: none;
}

.blogs-sec .filter-component__menu a:hover {
    background: #f5f5f5;
}

.blogs-sec .filter-component.active .filter-component__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.blogs-sec .filter-component__trigger svg {
    width: 15px;
    height: 8px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.blogs-sec .filter-component.active .filter-component__trigger svg {
    transform: rotate(180deg);
}

/* ---------- pagination — src 10900–10950 ---------- */
.blogs-sec .blogs-pagination {
    margin-top: 32px;
}

.blogs-sec .blogs-pagination .pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.blogs-sec .blogs-pagination .page-item {
    margin: 0;
}

.blogs-sec .blogs-pagination .page-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    padding: 11.25px;
    background: #F7F7F7;
    color: #141414;
    border: 1.13px solid #EBEBEB;
}

.blogs-sec .blogs-pagination .page-item.active .page-link {
    background: #FFCC00;
    color: #141414;
    border: 1.13px solid #1414141A;
}

.blogs-sec .blogs-pagination .page-item.disabled .page-link {
    background: #F7F7F7;
    color: #141414;
    border: 1.13px solid #EBEBEB;
}

.blogs-sec .blogs-pagination .page-link:focus,
.blogs-sec .blogs-pagination .page-link:active {
    box-shadow: none;
    outline: none;
}

/* ---------- blogs list page wrapper — src 10952 ---------- */
.blogs-page {
    padding: 40px 0 72px;
}

/* ===========================================================================
   BLOG DETAIL  (blog_detail.html) — src 10957–11082, 12899–12965, 15216–15370
   =========================================================================== */
.blog-detail {
    padding: 40px 0 32px;
}

.blog-detail .container {
    display: flex;
    justify-content: center;
}

.blog-detail__content {
    width: 100%;
    padding: 48px 160px 72px;
    border-radius: 16px;
    background: #f8f8f8;
}

.blog-detail__content .content {
    position: relative;
}

.blog-detail__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.blog-detail__category {
    display: inline-flex;
    align-items: center;
    border-radius: 12px;
    color: #000;
    line-height: 1;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    background-color: #FFCC00;
    padding: 8px 10px;
}

.blog-detail__share {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    padding: 10px;
    background-color: #FFFFFF;
    border: 1px solid #1414141A;
}

.blog-detail__share img {
    width: 24px;
    height: 24px;
}

/* share dropdown (scoped so it never touches other Bootstrap dropdowns) */
.blog-detail__share .dropdown-menu {
    background-color: #FFFFFF;
    width: 308px;
    padding: 20px;
    position: relative;
    z-index: 100;
    border-radius: 8px;
}

.blog-detail__share .share_icons {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-detail__share .share_icons .social_media_icon {
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background-color: #F7F7F7;
    border-radius: 100%;
    transition: all .3s;
}

.blog-detail__share .share_icons .social_media_icon path {
    transition: fill 0.3s ease;
}

.blog-detail__share .share_icons .social_media_icon:hover path {
    fill: #FFCA06;
}

.blog-detail__share .dropdown-menu .copy_link {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.blog-detail__share .dropdown-menu .copy_link p {
    width: 80%;
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1 !important;
    text-overflow: ellipsis;
    overflow: hidden;
    min-height: auto !important;
    color: #A5A5A5;
    background-color: #F7F7F7;
    padding: 5px;
}

.blog-detail__share .dropdown-menu .copy_link svg {
    width: 20px;
    height: 20px;
}

.blog-detail__date {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 16px;
    color: #808080;
    font-size: 14px;
}

.blog-detail__date img {
    width: 14px;
    height: 14px;
}

.blog-detail h1 {
    margin: 32px 0 20px;
    color: #141414;
    font-weight: 700;
    font-size: 42px;
}

.blog-detail__image {
    width: 100%;
    height: 260px;
    overflow: hidden;
    border-radius: 12px;
}

.blog-detail__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.blog-detail__text {
    margin-top: 32px;
    color: #4d4d4d;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-detail__text h2 {
    color: #141414;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 20px;
}

.blog-detail__text p {
    color: #4D4D4D;
    font-weight: 500;
    font-size: 16px;
}

.blog-detail__text ul {
    list-style: disc !important;
    margin-left: 15px;
    padding-left: 15px;
}

.blog-detail__text li {
    color: #4D4D4D;
    font-weight: 500;
    font-size: 16px;
}

/* ---------- detail "trips" promo banner — src 15216–15370 ---------- */
.detail-trips {
    padding-bottom: 72px;
}

.detail-trips-content {
    background-image: url('../images/banner/new.png');
    background-size: cover;
    background-position: 10% center;
    background-repeat: no-repeat;
    border-radius: 16px;
    padding: 40px 160px;
    background-color: #F7F7F7;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.detail-trips-info {
    flex-shrink: 0;
}

.detail-trips-badge {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border: 1px solid #EBEBEB;
    border-radius: 20px;
    background: #fff;
    color: #151515;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

.detail-trips-badge img {
    width: 14px;
    height: 14px;
}

.detail-trips-info h2 {
    margin: 24px 0 0;
    color: #151515;
    font-size: 56px;
    line-height: 1.05;
    font-weight: 700;
}

.detail-trips-info h2 span {
    display: block;
    font-family: 'proximanova-semibold';
}

.detail-trips-card {
    position: relative;
    width: 640px;
    height: 280px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
}

.detail-trips-card__image {
    position: absolute;
    inset: 0;
}

.detail-trips-card__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.detail-trips-card__overlay {
    position: absolute;
    inset: 0;
    width: 55%;
    mask-image: linear-gradient(to right, #000 0%, #000 65%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 65%, transparent 100%);
    background: linear-gradient(90deg,
            rgba(20, 20, 20, 0.88) 0%,
            rgba(20, 20, 20, 0.72) 30%,
            rgba(20, 20, 20, 0.35) 65%,
            rgba(20, 20, 20, 0) 100%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1;
    pointer-events: none;
}

.detail-trips-card__content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 70px 20px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 16px;
}

.detail-trips-card__content h3 {
    margin: 0;
    color: #fff;
    line-height: 1;
    font-weight: 500;
    font-size: 28px;
}

.detail-trips-card__line {
    width: 32px;
    height: 2px;
    background: #FFCC00;
}

.detail-trips-card__content p {
    margin: 0 0 4px;
    color: #BFBFBF;
    line-height: 1.4;
    font-weight: 500;
    font-size: 14px;
}

.detail-trips-card__arrow {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
}

.detail-trips-card__arrow svg {
    width: 16px;
    height: 16px;
}

/* ===========================================================================
   APP DOWNLOAD strip (shared marketing section) — src 10590–10675
   =========================================================================== */
.app-sec {
    position: relative;
    height: 140px;
    background: #3D3D3D;
    overflow: hidden;
}

.app-sec .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.app-sec .app-bg {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 650px;
    z-index: 0;
}

.app-sec .app-bg img {
    width: 100%;
    display: block;
}

.app-sec .app-content {
    width: fit-content;
}

.app-sec .app-content p {
    margin: 0;
    color: #EBEBEB;
    font-weight: 500;
    font-size: 18px;
}

.app-sec .app-image {
    position: absolute;
    left: 50%;
    bottom: -70px;
    transform: translateX(-50%);
    z-index: 2;
}

.app-sec .app-image img {
    height: 215px;
    display: block;
    object-fit: contain;
}

.app-sec .app-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.app-sec .store-links {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.app-sec .store-links.mobile {
    display: none;
}

.app-sec .store-links a {
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    color: #FFFFFF;
    background: #3D3D3D;
    border: 1px solid #616161;
    padding: 8px 10px;
    border-radius: 8px;
    text-align: center;
}

.app-sec .qr-code {
    width: 92px;
    height: 92px;
}

.app-sec .qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===========================================================================
   RESPONSIVE
   =========================================================================== */
@media (max-width: 1024px) {
    .blogs-page .blogs {
        grid-template-columns: repeat(3, 1fr);
    }

    .blog-detail__content {
        padding: 32px 48px 48px;
    }

    .blog-detail h1 {
        font-size: 36px;
    }

    .detail-trips-content {
        padding: 40px 48px;
    }

    .detail-trips-card {
        width: 554px;
    }

    .detail-trips-info h2 {
        font-size: 42px;
    }

    .blog-detail {
        padding: 32px 0 24px;
    }
}

@media (max-width: 768px) {
    .blogs-sec .blogs {
        margin-top: 28px;
    }

    .blogs-page .blogs {
        grid-template-columns: repeat(2, 1fr);
    }

    .blogs-sec h1 {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .blog-detail {
        padding: 24px 0;
    }

    .blog-detail h1 {
        font-size: 28px;
    }

    .blog-detail__image {
        height: 220px;
    }

    .blog-detail__text h2 {
        font-size: 18px;
    }

    .blog-detail__text p {
        font-size: 14px;
        line-height: normal;
    }

    .detail-trips-card {
        width: 378px;
        height: 280px;
    }

    .detail-trips-content {
        padding: 24px;
    }

    .app-sec .qr-code {
        display: none;
    }

    .app-sec .store-links.mobile {
        display: flex;
    }

    .app-sec .store-links.desktop {
        display: none;
    }

    .app-sec .app-bg {
        width: 475px;
    }
}

@media (max-width: 440px) {
    .blogs-sec .filter-component__trigger {
        width: 170px;
    }

    .app-sec {
        height: 174px;
    }

    .app-sec .app-content {
        position: absolute;
        z-index: 1;
        top: 20px;
        left: 12px;
        line-height: normal;
    }

    .app-sec .app-bg {
        left: unset;
        right: -30%;
        transform: rotate(8deg);
        width: 430px;
    }

    .app-sec .app-image {
        left: unset;
        transform: rotate(-18deg);
        right: -20%;
        bottom: -55px;
    }

    .app-sec .store-links.mobile {
        position: absolute;
        z-index: 1;
        bottom: 20px;
        left: 12px;
    }

    .app-sec .app-content p {
        font-size: 16px;
        line-height: 1;
    }

    .blogs-sec .blogs {
        margin-top: 24px;
    }

    .blogs-page .blogs {
        grid-template-columns: 1fr;
    }

    .blogs-sec h1 {
        margin-bottom: 16px;
    }

    .blogs-sec .blogs-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .blog-detail {
        padding: 16px 0 24px;
    }

    .detail-trips-content {
        flex-direction: column;
        gap: 42px;
        height: unset;
        align-items: flex-start;
    }

    .detail-trips-card {
        width: 100%;
    }

    .detail-trips-info h2 {
        margin-top: 20px;
        font-size: 36px;
    }

    .detail-trips-info h2 span {
        display: inline;
    }

    .blog-detail__content {
        padding: 24px 24px 32px;
    }

    .blog-detail__date {
        margin-top: 12px;
    }
}
