:root {
    --dts-blog-pink: #E4007C; /* swap for your existing brand pink variable if one is already defined in main.css */
}

.blog-hero {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
    background: #000 url('../images/blogbg.png') center/cover no-repeat;
    padding: 0 40px;
}

.blog-hero-title {
    color: #fff;
    font-size: 70px;
    font-weight: 700;
    line-height: 70px;
    margin: 0;
}

.blog-hero-title .highlight {
    color: var(--dts-blog-pink);
}

.blog-listing-section {
    padding: 60px 40px;
}

.blog-listing-container {
    max-width: 1280px;
    margin: 0 auto;
}

.blog-listing-title {
    font-size: 46px;
    font-weight: 700;
    margin-bottom: 59px;
    color:#000;
}

.blog-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
        align-items: center;
        border: 0.5px solid #878787;
        width: fit-content;
        padding: 6px;
        border-radius: 30px;
        margin-inline: auto;

    
}


.blog-filter-tab {
    padding: 10px 20px;
    border-radius: 59px;
    /* border: 1px solid #e5e5e5; */
    color: #43474F;
    text-decoration: none;
    font-weight: 500;
    font-size: 24px;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}

.blog-filter-tab:hover {
    background: #f7f7f7;
}

.blog-filter-tab.is-active {
    background: var(--dts-blog-pink);
    border-color: var(--dts-blog-pink);
    color: #fff;
}

.blog-search-form {
    position: relative;
    max-width: 600px;
    margin: 0 auto 40px;
}

.blog-search-input {
    width: 100%;
    padding: 14px 20px 14px 44px;
    border-radius: 999px;
    border: 0.5px solid #878787;
    font-size: 22px;
}
.blog-search-input::placeholder {
    padding-left: 30px; /* fine-tune this value */
    font-weight: 300;
    color:#878787;
}

.blog-search-icon {
    position: absolute;
    left: 33px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: url('../images/search-icon.svg') center/contain no-repeat;
}

.blog-listing-body {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 28px;
    align-items: start;
}

.blog-sidebar-recent {
    border: 1px solid #878787;
    border-radius: 14px;
    padding: 22px 10px;
    /* max-width: 400px; */
}

.blog-sidebar-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

.blog-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-sidebar-item {
    margin-bottom: 23px;
}

.blog-sidebar-item a {
    display: block;
    padding: 13px 40px;
    border-radius: 999px;
    color: #000;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
}

.blog-sidebar-item.is-active a {
    background: var(--dts-blog-pink);
    color: #fff;
}

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

.blog-card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}



.blog-card-image-link {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f2f2f2;
}

.blog-card-image {
    width: 400px;
    height: 100%;
    object-fit: cover;
    display: block;
    font-size: 0;
    color: transparent;
    border-radius: 8px 8px 0px 0px ;
}

.blog-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-title {
    font-size: 22px;
    font-weight: 700;
    margin: 22px 0 13px;
}

.blog-card-title a {
    color: #151823;
    text-decoration: none;
}

.blog-card-excerpt {
    font-size: 16px;
    color: #43474F;
    margin-bottom: 12px;
    flex: 1;
}
.blog-card-author{
    font-size: 14px;
    font-weight: 500;
    color: #151823;
}
.blog-card-date{
    font-size: 14px;
    font-weight: 400;
    color: #8E8E8E;
}
.blog-card-meta {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #8E8E8E;
    margin-bottom: 32px;
    white-space: nowrap;
}

.blog-card-author-icon {
    width: 40px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.blog-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    align-self: flex-start;
    padding: 15px 20px;
    border-radius: 50px;
    background: var(--dts-blog-pink);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    
    font-size: 18px;
}

.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.blog-pagination .page-numbers.current {
    background: var(--dts-blog-pink);
    color: #fff;
}

/* ---- Responsive: Tablet / iPad (max-width: 1024px) ---- */
@media (max-width: 1024px) {
    .blog-hero-title {
        font-size: 3.5rem; /* 56px — tablet step between desktop 70px and mobile 48px */
        line-height: 1.15;
    }

    .blog-listing-title {
        font-size: 2.5rem; /* 40px — tablet step, matches the mobile h2 target */
    }

    .blog-filter-tab {
        font-size: 18px;
        padding: 9px 16px;
    }

    .blog-search-input {
        font-size: 18px;
    }

    .blog-listing-body {
        grid-template-columns: 320px 1fr; /* narrower fixed sidebar so it
                                              doesn't crowd the grid on iPad landscape */
        gap: 20px;
    }

    /* FIX: .blog-card-image had a hardcoded width: 400px — on any card
       narrower than 400px (true from tablet width down) the image
       overflows its card. Grid cards are always narrower than 400px
       below desktop, so this needs a fluid width from here down. */
    .blog-card-image {
        width: 100%;
    }
}

/* ---- Responsive: Tablet / iPad — layout stacking (max-width: 900px) ---- */
@media (max-width: 900px) {
    .blog-listing-body {
        grid-template-columns: 1fr;
    }
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- Responsive: Mobile (max-width: 768px) ---- */
@media (max-width: 768px) {
    .blog-hero {
        min-height: 260px;
        padding: 0 20px;
    }

    .blog-hero-title {
        font-size: 3rem; /* 48px — standard mobile h1 */
        line-height: 1.2;
    }

    .blog-listing-section {
        padding: 40px 20px;
    }

    .blog-listing-title {
        font-size: 2.25rem; /* 36px — standard mobile h2 */
        line-height: 1.2;
        margin-bottom: 32px;
    }

    .blog-filter-tab {
        font-size: 14px; /* standard mobile button */
        padding: 8px 14px;
    }

    .blog-search-input {
        font-size: 1rem; /* 16px — keeps mobile Safari from auto-zooming on focus */
    }

    .blog-sidebar-title {
        font-size: 1.5rem; /* 24px — sidebar widget heading, scaled down proportionally
                               since it's already at the 36px standard on desktop and
                               this sidebar is now full-width above the post grid */
    }

    .blog-sidebar-item a {
        font-size: 1rem; /* 16px, matched to mobile p scale */
        padding: 11px 24px;
    }

    .blog-card-title {
        font-size: 20px; /* standard mobile h3 */
    }

    .blog-card-btn {
        font-size: 14px; /* standard mobile button */
        padding: 12px 18px;
    }
}

/* ---- Responsive: Small phone (max-width: 600px) ---- */
@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}



/* single page  */
html {
    scroll-behavior: smooth;
}

.blog-single-hero {
    background: linear-gradient(120deg, #fbe4f0 0%, #eef0fb 100%);
    padding: 60px 40px;
}

.blog-single-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.blog-single-hero-title {
    font-size: 70px;
    font-weight: 700;
    line-height: 70px;
    margin: 0 0 59px;
    color: #000;
}
.blog-single-hero-author{
    font-size: 22px;
    font-weight: 600px;
    line-height: 20px;
    color: #151823;
}
.blog-single-hero-dot{
     font-size: 14px;
    font-weight: 400px;
    line-height: 20px;
    color: #888888;
}
.blog-single-hero-date{
    font-size: 20px;
    font-weight: 400px;
    line-height: 20px;
    color: #8E8E8E;
}

.blog-single-hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
}

.blog-single-hero-avatar {
    width: 62px;
    height: 53px;
    /* border-radius: 50%; */
}

.blog-single-hero-image img {
    width: 100%;
    border-radius: 16px;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 10;
}

.blog-single-section {
    padding: 60px 40px;
}

.blog-single-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

.blog-quick-nav {
    position: sticky;
    top: 100px;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px;
}

.blog-quick-nav-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 16px;
}

.blog-quick-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-quick-nav-list li {
    margin-bottom: 10px;
}

.blog-quick-nav-link {
    display: block;
    padding: 10px 14px;
    border-radius: 999px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background .2s ease, color .2s ease;
}

.blog-quick-nav-link.is-active {
    background: var(--dts-blog-pink);
    color: #fff;
}

.blog-single-content h2 {
    font-size: 26px;
    font-weight: 800;
    margin: 40px 0 16px;
    scroll-margin-top: 110px; /* offsets for your sticky header height — adjust to match */
}

.blog-single-content h2:first-child {
    margin-top: 0;
}

.blog-single-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 16px;
}

.blog-single-content ul {
    margin: 0 0 20px;
    padding-left: 0;
    list-style: none;
}

.blog-single-content ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    font-size: 15px;
    color: #444;
}

.blog-single-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    background: var(--dts-blog-pink);
}

.blog-single-content .wp-block-button__link {
    background: var(--dts-blog-pink);
    color: #fff;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 12px;
}

.blog-related-section {
    padding: 0 40px 60px;
}

/* ---- Responsive: Tablet / iPad (max-width: 1024px) ---- */
@media (max-width: 1024px) {
    .blog-single-hero-title {
        font-size: 3.5rem; /* 56px — tablet step between desktop 70px and mobile 48px */
        line-height: 1.15;
        margin-bottom: 32px;
    }

    .blog-single-container {
        grid-template-columns: 240px 1fr; /* narrower fixed sidebar on iPad landscape */
        gap: 28px;
    }
}

/* ---- Responsive: Tablet / iPad — layout stacking (max-width: 900px) ---- */
@media (max-width: 900px) {
    .blog-single-hero-inner {
        grid-template-columns: 1fr;
    }
    .blog-single-container {
        grid-template-columns: 1fr;
    }
    .blog-quick-nav {
        position: static;
    }
}

/* ---- Responsive: Mobile (max-width: 768px) ---- */
@media (max-width: 768px) {
    .blog-single-hero {
        padding: 40px 20px;
    }

    .blog-single-hero-title {
        font-size: 3rem; /* 48px — standard mobile h1 */
        line-height: 1.2;
        margin-bottom: 24px;
    }

    .blog-single-hero-author {
        font-size: 1rem; /* 16px, matched to mobile p scale */
    }

    .blog-single-hero-date {
        font-size: 14px; /* standard mobile badge/caption scale, matches .blog-single-hero-dot */
    }

    .blog-single-section {
        padding: 40px 20px;
    }

    .blog-related-section {
        padding: 0 20px 40px;
    }

    .blog-quick-nav {
        padding: 18px;
    }

    /* Article body headings: these are WP content headings inside the
       post, not full page-section headings, so scaled to sit between
       the 20px h3 and 36px h2 standard rather than either exactly —
       judgment call, flag if you'd rather match one of the two tiers. */
    .blog-single-content h2 {
        font-size: 22px;
        margin: 28px 0 12px;
    }
}