:root {
    --primary: #1f6b4a;
    --primary-dark: #123f2c;
    --primary-2: #2f9e69;
    --secondary: #e6f5ec;
    --text: #21302a;
    --muted: #5f6f66;
    --border: #dbe8e0;
    --ink: #0f1b15;
    --bg: #f4f8f5;
    --amazon: #ff9900;
    --amazon-dark: #e88b00;

    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 26px;

    --shadow-sm: 0 2px 10px rgba(15, 40, 28, 0.05);
    --shadow: 0 10px 30px rgba(15, 40, 28, 0.08);
    --shadow-lg: 0 26px 60px -18px rgba(15, 40, 28, 0.28);

    --grad-brand: linear-gradient(135deg, #123f2c 0%, #1f6b4a 45%, #37a06d 100%);

    --font-sans: "Inter", "Noto Sans Tamil", -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

body {
    font-family: var(--font-sans);
    background:
        radial-gradient(1100px 520px at 100% -8%, rgba(47, 158, 105, 0.09), transparent 62%),
        radial-gradient(900px 500px at -8% 0%, rgba(31, 107, 74, 0.06), transparent 58%),
        var(--bg);
    color: var(--text);
    line-height: 1.9;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.01em;
}

/* ---------- Navbar ---------- */
.site-navbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.site-navbar .navbar-brand {
    color: var(--primary);
    font-size: 20px;
}

.site-navbar .site-logo {
    height: 42px;
    width: auto;
    border-radius: 8px;
}

.site-navbar .nav-link {
    color: var(--text);
    font-weight: 600;
}

.site-navbar .nav-link:hover {
    color: var(--primary);
}

.site-navbar .nav-link.active {
    color: var(--primary);
    font-weight: 700;
}

.site-navbar .dropdown-menu {
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.09);
    padding: 8px;
}

.site-navbar .dropdown-menu-cats {
    min-width: 280px;
    max-height: 70vh;
    overflow-y: auto;
}

.site-navbar .dropdown-item {
    color: var(--text);
    font-weight: 600;
    border-radius: 8px;
    padding: 8px 12px;
}

.site-navbar .dropdown-item:hover,
.site-navbar .dropdown-item:focus {
    background: var(--secondary);
    color: var(--primary);
}

.site-navbar .dropdown-item.active {
    background: var(--primary);
    color: #fff;
}

.site-navbar .dropdown-item.active .badge {
    color: var(--primary) !important;
}

/* ---------- Article header ---------- */
.article-header {
    background: linear-gradient(135deg, #17452f, #39845b);
    color: #fff;
    padding: 55px 20px;
    border-radius: 0 0 30px 30px;
}

.article-header h1 {
    font-size: clamp(25px, 4vw, 38px);
    font-weight: 800;
    line-height: 1.6;
}

.article-header p {
    color: #e6f5e9;
    max-width: 800px;
    margin: 15px auto 0;
}

.article-header__cover {
    display: block;
    width: 100%;
    max-width: 720px;
    height: auto;
    margin: 26px auto 0;
    border-radius: 18px;
    border: 3px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

/* ---------- Layout ---------- */
.article-container {
    max-width: 1000px;
    margin: 30px auto;
}

.article-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    margin-bottom: 22px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.035);
}

.article-card h2 {
    color: var(--primary);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 18px;
    line-height: 1.7;
}

.article-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: #315f45;
    margin-top: 22px;
    margin-bottom: 12px;
}

.article-card p {
    text-align: justify;
    margin-bottom: 14px;
}

/* ---------- Feature cards ---------- */
.feature-card {
    background: #f3faf4;
    border: 1px solid #dceee0;
    padding: 20px;
    border-radius: 14px;
    height: 100%;
}

.feature-icon {
    font-size: 30px;
    color: #2e8050;
    margin-bottom: 10px;
}

.feature-card h3 {
    font-size: 18px;
    margin-top: 5px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 10px;
}

.notice {
    background: #fff8e7;
    border-left: 5px solid #e0a126;
    padding: 18px;
    border-radius: 8px;
    margin: 18px 0;
}

.danger-notice {
    background: #fff0ef;
    border-left: 5px solid #dc3545;
    padding: 18px;
    border-radius: 8px;
    margin: 18px 0;
}

.table thead th {
    background: #e8f5e9;
    color: #245c42;
}

.table td,
.table th {
    padding: 12px;
    vertical-align: middle;
}

/* ---------- Post cards (index) ---------- */
.post-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.035);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.post-card__img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.post-card__body {
    padding: 22px;
}

.post-card__cat {
    display: inline-block;
    background: var(--secondary);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    text-decoration: none;
}

.post-card__cat:hover {
    background: var(--primary);
    color: #fff;
}

.post-card__title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.6;
    margin-bottom: 10px;
}

.post-card__title a {
    color: var(--text);
    text-decoration: none;
}

.post-card__title a:hover {
    color: var(--primary);
}

.post-card__excerpt {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 12px;
}

.post-card__meta {
    color: var(--muted);
    font-size: 14px;
}

.post-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    background: #f3faf4;
    padding: 10px 16px;
}

.post-card__stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.post-card__stat i {
    color: var(--primary);
}

/* ---------- Affiliate disclosure ---------- */
.affiliate-disclosure {
    background: #fff8e7;
    border: 1px solid #f0dfb8;
    border-left: 5px solid #e0a126;
    color: #6b5417;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 22px;
    font-size: 14px;
}

/* ---------- Amazon product card ---------- */
.product-card {
    display: flex;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    margin: 18px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    height: 100%;
}

.product-card__media {
    position: relative;
    flex: 0 0 130px;
    width: 130px;
    height: 130px;
    border-radius: 12px;
    overflow: hidden;
    background: #f3faf4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-card__placeholder {
    font-size: 40px;
    color: #b9d3c2;
}

.product-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
}

.product-card__body {
    flex: 1 1 auto;
    min-width: 0;
}

.product-card__store {
    font-size: 12px;
    font-weight: 700;
    color: var(--amazon-dark);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}

.product-card__title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.5;
    margin: 0 0 6px;
}

.product-card__desc {
    font-size: 14px;
    color: var(--muted);
    margin: 0 0 8px;
    text-align: left;
}

.product-card__rating {
    color: var(--amazon);
    font-size: 14px;
    margin-bottom: 8px;
}

.product-card__rating span {
    color: var(--muted);
    margin-left: 6px;
    font-size: 13px;
}

.product-card__note {
    background: var(--secondary);
    color: var(--primary);
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 8px;
    margin: 0 0 10px;
    text-align: left;
}

.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.product-card__price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

.btn-amazon {
    background: var(--amazon);
    border: 1px solid var(--amazon-dark);
    color: #1a1a1a;
    font-weight: 700;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 10px;
}

.btn-amazon:hover {
    background: var(--amazon-dark);
    color: #fff;
}

/* ---------- Footer ---------- */
.article-footer {
    background: #17452f;
    color: #fff;
    text-align: center;
    padding: 30px 15px;
    margin-top: 40px;
}

.article-footer h4 {
    font-size: 18px;
    font-weight: 700;
}

.article-footer p {
    margin-bottom: 0;
    color: #cfe6d8;
}

/* ---------- Site footer (multi-column) ---------- */
.site-footer {
    text-align: left;
    padding: 44px 15px 20px;
}

.site-footer__brand {
    display: inline-flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    margin-bottom: 14px;
}

.site-footer__brand:hover {
    color: #fff;
}

.site-footer__tagline {
    color: #cfe6d8;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: left;
}

.site-footer__note {
    color: #a9c7b7;
    font-size: 14px;
    line-height: 1.8;
    text-align: left;
    margin-bottom: 12px;
}

.site-footer__title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #fff;
    margin-bottom: 14px;
}

.site-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer__links li {
    margin-bottom: 8px;
}

.site-footer__links a {
    color: #cfe6d8;
    text-decoration: none;
    font-size: 15px;
}

.site-footer__links a:hover {
    color: #fff;
    text-decoration: underline;
}

.site-footer__link {
    color: #8fd0ab;
    text-decoration: none;
    font-weight: 600;
}

.site-footer__link:hover {
    color: #fff;
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 30px;
    padding-top: 18px;
    color: #a9c7b7;
    font-size: 14px;
}

@media (max-width: 576px) {
    body {
        font-size: 15px;
    }

    .article-header {
        padding: 35px 18px;
    }

    .article-card {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .article-card h2 {
        font-size: 21px;
    }

    .article-card h3 {
        font-size: 18px;
    }

    .product-card {
        flex-direction: column;
    }

    .product-card__media {
        width: 100%;
        flex-basis: auto;
        height: 180px;
    }

    .table {
        font-size: 14px;
    }
}

/* ---------- Advertisements ---------- */
.ad-slot {
    margin: 20px auto;
    text-align: center;
}

.ad-slot .ad {
    display: block;
    max-width: 100%;
    margin: 0 auto;
}

.ad-slot--top {
    margin: 0;
    padding: 14px 12px;
    background: #f0f6f1;
    border-bottom: 1px solid var(--border);
}

.ad-slot--post_middle {
    margin: 26px auto;
}

.ad-slot--post_bottom {
    margin-bottom: 0;
}

.ad-slot--feed {
    margin: 6px 0 18px;
}

.ad-slot--footer_top {
    max-width: 900px;
    padding: 18px 12px 0;
}

.ad-preview__box img {
    max-width: 100%;
    height: auto;
}

/* ---------- Home hero slider ---------- */
.home-hero {
    margin-top: 22px;
}

.home-hero .carousel {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(23, 69, 47, 0.16);
}

.hero-slide {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 440px;
    background-color: var(--primary);
    background-size: cover;
    background-position: center;
}

.hero-slide--gradient {
    background: linear-gradient(135deg, #17452f 0%, #2e8050 55%, #5aa97c 100%);
}

.hero-slide__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(9, 32, 22, 0.85) 0%,
        rgba(9, 32, 22, 0.55) 45%,
        rgba(9, 32, 22, 0.25) 100%
    );
}

.hero-slide__content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding-top: 40px;
    padding-bottom: 40px;
    max-width: 760px;
}

.hero-slide__badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.hero-slide__badge:hover {
    background: #fff;
    color: var(--primary-dark);
}

.hero-slide__title {
    font-size: clamp(24px, 3.4vw, 40px);
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 14px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.hero-slide__title a {
    color: #fff;
}

.hero-slide__title a:hover {
    color: var(--secondary);
}

.hero-slide__excerpt {
    color: #e9f5ee;
    font-size: 17px;
    margin-bottom: 22px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-slide__btn {
    font-weight: 700;
    padding: 10px 26px;
    border-radius: 999px;
}

.home-hero .carousel-control-prev,
.home-hero .carousel-control-next {
    width: 9%;
    opacity: 0.85;
}

.home-hero .carousel-indicators [data-bs-target] {
    width: 30px;
    height: 4px;
    border-radius: 2px;
}

@media (max-width: 767.98px) {
    .home-hero .carousel {
        border-radius: 16px;
    }

    .hero-slide {
        min-height: 340px;
    }

    .hero-slide__content {
        padding-top: 28px;
        padding-bottom: 28px;
    }
}

/* ---------- Home CTA band ---------- */
.cta-band-wrap {
    padding: 10px 0 40px;
}

.cta-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: linear-gradient(135deg, #17452f, #2e8050);
    color: #fff;
    border-radius: 22px;
    padding: 38px 40px;
    box-shadow: 0 14px 34px rgba(23, 69, 47, 0.22);
}

.cta-band__text {
    max-width: 620px;
}

.cta-band__title {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 10px;
}

.cta-band__lead {
    color: #dff0e6;
    margin-bottom: 0;
}

.cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 767.98px) {
    .cta-band {
        padding: 28px 22px;
    }

    .cta-band__actions {
        width: 100%;
    }

    .cta-band__actions .btn {
        flex: 1 1 auto;
    }
}

/* ---------- Post engagement bar ---------- */
.post-engagement {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 12px;
    margin: 26px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    justify-content: center;
}

.post-engagement__stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 999px;
}

.post-engagement__stat:hover {
    color: var(--primary);
    background: var(--secondary);
}

.post-engagement__like {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
    font-size: 15px;
    color: var(--muted);
    background: #f4f7f4;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 16px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.post-engagement__like:hover {
    background: #ffeef0;
    border-color: #f6c9cf;
    color: #d6336c;
}

.post-engagement__like.is-liked {
    background: #ffe3e8;
    border-color: #f3a6b3;
    color: #d6336c;
}

.post-engagement__like:disabled {
    opacity: 0.7;
    cursor: default;
}

/* ---------- Comments ---------- */
.comments__title {
    margin-bottom: 20px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
}

.comment {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
}

.comment:first-child {
    border-top: 0;
}

.comment__avatar {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.comment__body {
    flex: 1 1 auto;
    min-width: 0;
}

.comment__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    align-items: baseline;
    margin-bottom: 4px;
}

.comment__name {
    font-weight: 700;
    color: var(--primary);
}

.comment__date {
    color: var(--muted);
    font-size: 13px;
}

.comment__text {
    margin: 0;
    text-align: left;
}

.comment-form {
    background: #f3faf4;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
}

.comment-form .form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

@media (max-width: 576px) {
    .post-engagement {
        border-radius: 16px;
    }

    .post-engagement__stat,
    .post-engagement__like {
        padding: 6px 10px;
        font-size: 14px;
    }

    .comment-form {
        padding: 16px;
    }
}

/* ---------- Navbar search ---------- */
.navbar-search {
    max-width: 320px;
}

.navbar-search .input-group {
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #fff;
}

.navbar-search__icon {
    background: #fff;
    border: 0;
    color: var(--muted);
}

.navbar-search .form-control {
    border: 0;
    box-shadow: none !important;
    background: #fff;
}

.navbar-search .btn {
    border-radius: 0;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .navbar-search {
        max-width: none;
        margin-bottom: 12px;
    }
}

/* ---------- Search results page ---------- */
.search-page-form {
    max-width: 560px;
}

.search-page-form .form-control {
    border-radius: 10px 0 0 10px;
    border: 0;
    padding: 12px 16px;
}

.search-page-form .btn {
    border-radius: 0 10px 10px 0;
    font-weight: 700;
}

/* ---------- Home page sections ---------- */
.home-sections {
    max-width: 1200px;
}

.home-section {
    margin-bottom: 46px;
}

.home-section__head {
    margin-bottom: 22px;
    text-align: center;
}

.home-section__title {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.home-section__lead {
    color: var(--muted);
    margin-bottom: 0;
}

/* Most popular list */
.popular-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.popular-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.popular-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(23, 69, 47, 0.12);
    color: var(--primary);
}

.popular-item__rank {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--primary);
    font-weight: 800;
    font-size: 15px;
}

.popular-item__thumb {
    flex: 0 0 auto;
    width: 74px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
}

.popular-item__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.popular-item__cat {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--primary);
}

.popular-item__title {
    font-weight: 700;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-item__meta {
    font-size: 13px;
    color: var(--muted);
}

/* Category tiles */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
}

.category-tile {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: linear-gradient(135deg, #ffffff, #f1faf3);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.category-tile:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 12px 28px rgba(23, 69, 47, 0.12);
}

.category-tile__name {
    font-weight: 800;
    color: var(--primary-dark);
}

.category-tile__count {
    font-size: 13px;
    color: var(--muted);
}

/* Per-category latest posts */
.home-cat-block {
    margin-bottom: 40px;
}

.home-cat-block:last-child {
    margin-bottom: 0;
}

.home-cat-block__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary);
}

.home-cat-block__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: clamp(19px, 2.4vw, 24px);
    font-weight: 800;
    color: var(--primary-dark);
}

.home-cat-block__title a {
    color: inherit;
    text-decoration: none;
}

.home-cat-block__title a:hover {
    color: var(--primary);
}

.home-cat-block__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--secondary);
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}

.home-cat-block__more {
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
}

.home-cat-block__more:hover {
    text-decoration: underline;
}

@media (max-width: 575.98px) {
    .home-cat-block__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* Related posts */
.related-posts {
    margin: 34px 0;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

@media (max-width: 767.98px) {
    .popular-list {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   MODERN HOME REDESIGN
   ========================================================= */

/* ---------- Navbar ---------- */
.site-navbar {
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(219, 232, 224, 0.9);
    box-shadow: 0 1px 0 rgba(15, 40, 28, 0.03);
}

.site-navbar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad-brand);
}

.site-navbar .navbar-brand {
    font-size: 1.28rem;
    letter-spacing: -0.02em;
}

.site-navbar .site-logo {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(15, 40, 28, 0.12);
}

.site-navbar .navbar-nav .nav-link {
    border-radius: 999px;
    padding: 0.4rem 0.85rem !important;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease;
}

.site-navbar .navbar-nav .nav-link:hover,
.site-navbar .navbar-nav .nav-link.active {
    background: var(--secondary);
    color: var(--primary);
}

/* ---------- Hero slider ---------- */
.home-hero {
    max-width: 1232px;
    margin-inline: auto;
    padding: clamp(1rem, 2.5vw, 1.75rem) 16px 0;
}

.home-hero .carousel {
    border-radius: var(--radius-lg);
    box-shadow: 0 34px 72px -24px rgba(18, 63, 44, 0.5);
}

.hero-slide {
    min-height: clamp(380px, 50vw, 560px);
}

.hero-slide__overlay {
    background:
        linear-gradient(105deg, rgba(9, 26, 18, 0.94) 0%, rgba(9, 26, 18, 0.72) 40%, rgba(9, 26, 18, 0.12) 100%),
        linear-gradient(to top, rgba(9, 26, 18, 0.62), transparent 55%);
}

.hero-slide__content {
    max-width: 700px;
    padding: clamp(1.5rem, 4vw, 3.5rem);
}

.hero-slide__badge {
    background: rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #eafff3;
    border: 1px solid rgba(255, 255, 255, 0.28);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
}

.hero-slide__badge:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.hero-slide__title {
    font-size: clamp(26px, 4vw, 46px);
    line-height: 1.45;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.hero-slide__excerpt {
    color: #dcefe4;
    font-size: clamp(15px, 1.4vw, 18px);
}

.hero-slide__btn {
    background: #fff;
    color: var(--primary-dark);
    border: 0;
    font-weight: 700;
    padding: 0.7rem 1.7rem;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.hero-slide__btn:hover {
    background: #eafff3;
    color: var(--primary-dark);
}

.home-hero .carousel-indicators {
    margin-bottom: 1.15rem;
    gap: 0.4rem;
}

.home-hero .carousel-indicators [data-bs-target] {
    width: 34px;
    height: 4px;
    background: rgba(255, 255, 255, 0.45);
}

.home-hero .carousel-indicators .active {
    width: 54px;
    background: #fff;
}

/* ---------- Topic chips ---------- */
.home-topics {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    max-width: 1232px;
    margin: 1.75rem auto 0;
    padding-inline: 16px;
}

.home-topics__label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    color: var(--muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

.home-topics__scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.25rem 0;
    scrollbar-width: none;
}

.home-topics__scroll::-webkit-scrollbar {
    display: none;
}

.home-topic {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.home-topic:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.home-topic span {
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--secondary);
    color: var(--primary);
    border-radius: 999px;
    padding: 1px 7px;
}

.home-topic:hover span {
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
}

/* ---------- Section headings ---------- */
.home-section {
    margin-bottom: clamp(2.75rem, 5vw, 4.25rem);
}

.home-section__head {
    position: relative;
    max-width: 720px;
    margin-bottom: 1.75rem;
    padding-left: 1.1rem;
    text-align: left;
}

.home-section__head::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.3rem;
    bottom: 0.3rem;
    width: 5px;
    border-radius: 999px;
    background: var(--grad-brand);
}

.home-section__title {
    font-size: clamp(1.5rem, 2.6vw, 2.05rem);
    color: var(--ink);
    margin-bottom: 0.35rem;
}

.home-section__lead {
    color: var(--muted);
}

/* ---------- Post cards ---------- */
.post-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: #cbe4d6;
}

.post-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--grad-brand);
}

.post-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.post-card:hover .post-card__media img {
    transform: scale(1.06);
}

.post-card__media--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2.5rem;
}

.post-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.15rem 1.2rem 1.25rem;
}

.post-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.post-card__chip {
    display: inline-block;
    background: var(--secondary);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    text-decoration: none;
    max-width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-card__chip:hover {
    background: var(--primary);
    color: #fff;
}

.post-card__date {
    font-size: 0.78rem;
    color: var(--muted);
    white-space: nowrap;
}

.post-card__title {
    font-size: 1.15rem;
    line-height: 1.55;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.post-card__title a {
    color: var(--ink);
    text-decoration: none;
}

.post-card__title a:hover {
    color: var(--primary);
}

.post-card__excerpt {
    color: var(--muted);
    font-size: 0.925rem;
    line-height: 1.75;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card__footer {
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.post-card__stat {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.post-card__stat i {
    color: var(--primary);
}

.post-card__cta {
    margin-left: auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.post-card:hover .post-card__cta {
    background: var(--primary);
    color: #fff;
    transform: translateX(2px);
}

/* ---------- Most popular ---------- */
.popular-list {
    gap: 1rem;
}

.popular-item {
    border-radius: var(--radius);
    padding: 0.9rem 1rem;
    box-shadow: var(--shadow-sm);
    gap: 1rem;
}

.popular-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: #cbe4d6;
}

.popular-item__rank {
    width: 38px;
    height: 38px;
    font-size: 1rem;
}

.popular-item:nth-child(1) .popular-item__rank {
    background: linear-gradient(135deg, #f7c948, #e0a126);
    color: #4a3303;
}

.popular-item:nth-child(2) .popular-item__rank {
    background: linear-gradient(135deg, #d6dee3, #9aa8b0);
    color: #2a3238;
}

.popular-item:nth-child(3) .popular-item__rank {
    background: linear-gradient(135deg, #e8ad7f, #c47b45);
    color: #3c230f;
}

.popular-item__thumb {
    width: 88px;
    height: 68px;
    border-radius: 12px;
}

.popular-item__title {
    font-size: 0.98rem;
}

/* ---------- Browse by category ---------- */
.home-cat-block {
    background: linear-gradient(180deg, #f2f8f4, #ffffff);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: clamp(1.1rem, 2vw, 1.6rem);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.home-cat-block__head {
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 1.25rem;
    align-items: center;
}

.home-cat-block__title {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.home-cat-block__more {
    background: var(--secondary);
    color: var(--primary);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.82rem;
}

.home-cat-block__more:hover {
    background: var(--primary);
    color: #fff;
    text-decoration: none;
}

.home-cat-block .post-card {
    box-shadow: none;
    border-color: #e2efe7;
}

.home-cat-block .post-card:hover {
    box-shadow: var(--shadow);
}

/* ---------- CTA band ---------- */
.cta-band-wrap {
    padding: 1rem 0 clamp(2.5rem, 6vw, 4rem);
}

.cta-band {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 4vw, 3.25rem) clamp(1.25rem, 4vw, 3.25rem);
    background: var(--grad-brand);
    box-shadow: 0 34px 66px -28px rgba(18, 63, 44, 0.65);
}

.cta-band::before,
.cta-band::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.cta-band::before {
    width: 360px;
    height: 360px;
    right: -90px;
    top: -150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 70%);
}

.cta-band::after {
    width: 280px;
    height: 280px;
    right: 130px;
    bottom: -170px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
}

.cta-band__text,
.cta-band__actions {
    position: relative;
    z-index: 1;
}

.cta-band__title {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.cta-band .btn-amazon {
    border: 0;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.cta-band .btn-outline-light {
    border-width: 1.5px;
}

/* ---------- Footer ---------- */
.article-footer {
    background: linear-gradient(180deg, #123f2c, #0e2c1e);
}

.site-footer {
    padding-top: clamp(3rem, 6vw, 4.5rem);
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .home-hero .carousel {
        border-radius: 22px;
    }

    .popular-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .home-topics {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .popular-list {
        grid-template-columns: 1fr;
    }

    .home-section__head {
        max-width: none;
    }
}

@media (max-width: 575.98px) {
    .home-hero .carousel {
        border-radius: 18px;
    }

    .post-card__title {
        font-size: 1.08rem;
    }
}