/* Blog listing page */

/* Nav on dark hero */
body.page-blog-list nav.navbar.bootsnav.navbar-fixed {
    z-index: 1030 !important;
    transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

body.page-blog-list nav.navbar.bootsnav.navbar-fixed:not(.no-background) {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

body.page-blog-list.blog-nav-scrolled:not(.blog-nav-on-light) nav.navbar.bootsnav.navbar-fixed:not(.no-background) {
    background: rgba(15, 23, 42, 0.96) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18) !important;
}

body.page-blog-list nav.navbar.bootsnav ul.nav > li > a {
    color: #f3f4f6 !important;
}

html[data-theme="dark"] body.page-blog-list nav.navbar.bootsnav .logo.logo-display,
html:not([data-theme]) body.page-blog-list nav.navbar.bootsnav .logo.logo-display,
body.page-blog-list nav.navbar.bootsnav.navbar-fixed:not(.no-background) .logo-display {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

html[data-theme="dark"] body.page-blog-list nav.navbar.bootsnav .logo.logo-scrolled,
html:not([data-theme]) body.page-blog-list nav.navbar.bootsnav .logo.logo-scrolled,
body.page-blog-list nav.navbar.bootsnav.navbar-fixed:not(.no-background) .logo-scrolled {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

body.page-blog-list nav.navbar.bootsnav.navbar-fixed:not(.no-background) .fa-bars {
    color: #f3f4f6 !important;
}

/* Light mode — white nav over dark blog hero */
html[data-theme="light"] body.page-blog-list:not(.blog-nav-scrolled):not(.blog-nav-on-light) nav.navbar.bootsnav.navbar-fixed:not(.no-background) {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

html[data-theme="light"] body.page-blog-list:not(.blog-nav-on-light) nav.navbar.bootsnav ul.nav > li > a,
html[data-theme="light"] body.page-blog-list:not(.blog-nav-on-light) nav.navbar.bootsnav.navbar-fixed:not(.no-background) ul.nav > li > a,
html[data-theme="light"] body.page-blog-list:not(.blog-nav-on-light) nav.navbar.bootsnav.navbar-fixed.nav-scrolled ul.nav > li > a {
    color: #ffffff !important;
}

html[data-theme="light"] body.page-blog-list:not(.blog-nav-on-light) nav.navbar.bootsnav.navbar-fixed:not(.no-background) .logo-display,
html[data-theme="light"] body.page-blog-list:not(.blog-nav-on-light) nav.navbar .logo.logo-display {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

html[data-theme="light"] body.page-blog-list:not(.blog-nav-on-light) nav.navbar.bootsnav.navbar-fixed:not(.no-background) .logo-scrolled,
html[data-theme="light"] body.page-blog-list:not(.blog-nav-on-light) nav.navbar .logo.logo-scrolled {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

html[data-theme="light"] body.page-blog-list:not(.blog-nav-on-light) nav.navbar.bootsnav .navbar-toggle .fa-bars,
html[data-theme="light"] body.page-blog-list:not(.blog-nav-on-light) nav.navbar.bootsnav.navbar-fixed:not(.no-background) .fa-bars {
    color: #ffffff !important;
}

/* Light mode — dark nav after scrolling past hero */
html[data-theme="light"] body.page-blog-list.blog-nav-on-light nav.navbar.bootsnav.navbar-fixed:not(.no-background) {
    background-color: #ffffff !important;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] body.page-blog-list.blog-nav-on-light nav.navbar.bootsnav ul.nav > li > a {
    color: #1f2937 !important;
}

html[data-theme="light"] body.page-blog-list.blog-nav-on-light nav.navbar.bootsnav.navbar-fixed:not(.no-background) .logo-display {
    opacity: 0 !important;
    visibility: hidden !important;
}

html[data-theme="light"] body.page-blog-list.blog-nav-on-light nav.navbar.bootsnav.navbar-fixed:not(.no-background) .logo-scrolled {
    opacity: 1 !important;
    visibility: visible !important;
}

html[data-theme="light"] body.page-blog-list.blog-nav-on-light nav.navbar.bootsnav.navbar-fixed:not(.no-background) .fa-bars {
    color: #1f2937 !important;
}

/* Hero */
.page-blog-list .blog-hero {
    position: relative;
    z-index: 1;
    background: #1c1c1c;
    padding: clamp(150px, 20vh, 190px) 0 64px;
}

.page-blog-list .blog-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
    gap: 48px;
    align-items: center;
}

.page-blog-list .blog-hero__title {
    margin: 0 0 24px;
    font-family: "Raleway", Arial, sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.page-blog-list .blog-hero__text {
    margin: 0;
    font-family: "Raleway", Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.75;
    color: #d1d5db;
    max-width: 560px;
}

.page-blog-list .blog-hero__nav {
    display: flex;
    gap: 14px;
    margin-top: 36px;
}

.page-blog-list .blog-hero__nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid #ff7854;
    border-radius: 50%;
    background: transparent;
    color: #ff7854;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.page-blog-list .blog-hero__nav-btn:hover {
    background: #ff7854;
    color: #ffffff;
}

.page-blog-list .blog-hero__carousel {
    width: 100%;
    max-width: 480px;
    margin-left: auto;
}

.page-blog-list .blog-hero__viewport {
    overflow: hidden;
}

.page-blog-list .blog-hero__track {
    position: relative;
    min-height: 430px;
}

.page-blog-list .blog-hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(16px);
    transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s ease;
    z-index: 0;
}

.page-blog-list .blog-hero__slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 1;
}

.page-blog-list .blog-featured-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    text-decoration: none !important;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.page-blog-list .blog-featured-card__media {
    position: relative;
    flex-shrink: 0;
}

.page-blog-list .blog-featured-card__badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 1;
    padding: 6px 14px;
    border-radius: 999px;
    background: #ff7854;
    color: #ffffff;
    font-family: "Raleway", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
}

.page-blog-list .blog-featured-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.page-blog-list .blog-featured-card__body {
    flex: 1;
    padding: 22px 24px 20px;
}

.page-blog-list .blog-featured-card__label {
    display: block;
    margin-bottom: 10px;
    font-family: "Raleway", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #ff7854;
}

.page-blog-list .blog-featured-card__title {
    margin: 0;
    font-family: "Raleway", Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    color: #111827;
}

.page-blog-list .blog-featured-card__accent {
    display: block;
    height: 6px;
    background: #ff7854;
}

.page-blog-list .blog-featured-card:hover .blog-featured-card__title {
    color: #000000;
}

.page-blog-list .blog-hero__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.page-blog-list .blog-hero__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 2px;
    background: #6b7280;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.page-blog-list .blog-hero__dot.is-active {
    background: #ff7854;
    transform: scale(1.1);
}

/* Card grid */
.page-blog-list .blog-list-section {
    background: #f3f4f6;
    padding: 48px 0 72px;
}

.page-blog-list .blog-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.page-blog-list .blog-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    height: 100%;
    transition: box-shadow 0.2s ease;
}

.page-blog-list .blog-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.page-blog-list .blog-card__image-link {
    display: block;
    flex-shrink: 0;
}

.page-blog-list .blog-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.page-blog-list .blog-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 22px 24px;
    min-height: 200px;
}

.page-blog-list .blog-card__label {
    display: block;
    margin: 0 0 12px;
    font-family: "Raleway", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    color: #ff7854;
}

.page-blog-list .blog-card__title {
    margin: 0 0 24px;
    font-family: "Raleway", Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #000000;
}

.page-blog-list .blog-card__title a {
    color: inherit;
    text-decoration: none;
}

.page-blog-list .blog-card__title a:hover {
    color: #111827;
    text-decoration: none;
}

.page-blog-list .blog-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    font-family: "Raleway", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    text-decoration: none;
}

.page-blog-list .blog-card__link:hover {
    color: #111827;
    text-decoration: none;
}

.page-blog-list .blog-card__arrow {
    color: #ff7854;
    font-size: 16px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.page-blog-list .blog-card__link:hover .blog-card__arrow {
    transform: translateX(3px);
}

.page-blog-list .blog-list-empty {
    text-align: center;
    padding: 48px 0;
    color: #6b7280;
    font-size: 16px;
}

@media (max-width: 991px) {
    .page-blog-list .blog-hero__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .page-blog-list .blog-hero__carousel {
        max-width: 100%;
        margin-left: 0;
    }

    .page-blog-list .blog-hero__text {
        max-width: none;
    }

    .page-blog-list .blog-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 575px) {
    .page-blog-list .blog-hero {
        padding: 130px 0 48px;
    }

    .page-blog-list .blog-hero__track {
        min-height: 380px;
    }

    .page-blog-list .blog-card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-blog-list .blog-list-section {
        padding: 32px 0 48px;
    }
}

/* Dark theme — list grid */
html[data-theme="dark"] body.page-blog-list .blog-list-section {
    background: #111827;
}

html[data-theme="dark"] body.page-blog-list .blog-card {
    background: #1f2937;
    border-color: #374151;
}

html[data-theme="dark"] body.page-blog-list .blog-card__title,
html[data-theme="dark"] body.page-blog-list .blog-card__title a,
html[data-theme="dark"] body.page-blog-list .blog-card__link {
    color: #f9fafb;
}

html[data-theme="dark"] body.page-blog-list .blog-list-empty {
    color: #9ca3af;
}
