:root {
    --primary: #2c7a7b;
    --primary-light: #4fd1c5;
    --text: #2d3748;
    --text-light: #4a5568;
    --bg: #f8f9fa;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.dark {
    --text: #f1f5f9;
    --text-light: #cbd5e1;
    --bg: #0f172a;
    --card-bg: #1e2937;
    --border: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}


/* ================================ Hero Header ====================================== */

/* ===========================
   ROOT HERO
=========================== */

.rootHero {
    padding: 25px 0 10px;
}

.rootHeroBox {
    position: relative;

    background:
        linear-gradient(
            135deg,
            rgba(44,122,123,.08),
            rgba(79,209,197,.05)
        );

    border: 1px solid var(--border);

    border-radius: 14px;

    overflow: hidden;

    box-shadow: var(--shadow);
}

.rootHeroBox::before {
    content: "";

    position: absolute;

    top: -80px;
    right: -80px;

    width: 220px;
    height: 220px;

    border-radius: 50%;

    background:
        rgba(79,209,197,.12);
}

.rootHeroBox::after {
    content: "";

    position: absolute;

    bottom: -100px;
    left: -100px;

    width: 260px;
    height: 260px;

    border-radius: 50%;

    background:
        rgba(44,122,123,.08);
}

.rootHeroContent {
    position: relative;
    z-index: 2;

    max-width: 900px;

    padding: 55px 45px;
}

.rootHeroBadge {
    display: inline-block;

    padding: 7px 14px;

    border-radius: 999px;

    background:
        rgba(44,122,123,.12);

    color: var(--primary);

    font-size: .9rem;
    font-weight: 600;

    margin-bottom: 18px;
}

.rootHeroTitle {
    font-size: clamp(2rem, 4vw, 3.4rem);

    line-height: 1.2;

    color: var(--text);

    margin-bottom: 18px;
}

.rootHeroDesc {
    font-size: 1.08rem;

    line-height: 1.9;

    color: var(--text-light);

    max-width: 800px;
}

.rootHeroStats {
    display: flex;
    flex-wrap: wrap;

    gap: 15px;

    margin-top: 30px;
}

.rootHeroStat {
    min-width: 140px;

    padding: 14px 18px;

    background: var(--card-bg);

    border: 1px solid var(--border);

    border-radius: 10px;
}

.rootHeroStat strong {
    display: block;

    color: var(--primary);

    font-size: 1.3rem;

    margin-bottom: 4px;
}

.rootHeroStat span {
    font-size: .9rem;
    color: var(--text-light);
}

/* ===========================
   TABLET
=========================== */

@media (max-width: 1199px) {

    .rootHeroContent {
        padding: 40px 30px;
    }

    .rootHeroDesc {
        font-size: 1rem;
    }

}

/* ===========================
   MOBILE
=========================== */

@media (max-width: 767px) {

    .rootHero {
        padding-top: 15px;
    }

    .rootHeroContent {
        padding: 25px 18px;
    }

    .rootHeroTitle {
        line-height: 1.3;
    }

    .rootHeroDesc {
        font-size: .95rem;
        line-height: 1.8;
    }

    .rootHeroStats {
        gap: 10px;
    }

    .rootHeroStat {
        flex: 1 1 calc(50% - 10px);
        min-width: 120px;
    }

}

/* ================================ Hero Header End ====================================== */



.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary);
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--primary-light);
    margin: 12px auto;
    border-radius: 3px;
}

/* Popular Grid */
.popular-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.7rem;
}

.blog-card {
    background: var(--card-bg);
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: border-color .25s ease, background-color .25s ease;
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: var(--primary-light);
    background-color: rgba(79, 209, 197, 0.04);
}

.card-image {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.card-content p {
    flex: 1;
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.featured-blog-card {
    grid-column: span 2;
    grid-row: span 2;
}

.featured-blog-card .card-content h3 {
    font-size: 1.9rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 700;
}

.featured-blog-card .card-image {
    padding-top: 65%;
}

.featured-blog-card .card-content {
    padding: 1.75rem;
}

.featured-blog-card .meta {
    font-size: 1rem;
}

.featured-blog-card p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Categories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.7rem;
}

.category-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: border-color .25s ease, background-color .25s ease, color .25s ease;
    border: 1px solid var(--border);
}

.category-card:hover {
    color: var(--primary);
    border-color: var(--primary-light);
    background-color: rgba(79, 209, 197, 0.04);
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--card-bg);
    padding: 1.25rem 2rem;
    border-radius: 10px;
    margin-top: 3rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.category-header h2 {
    font-size: 1.8rem;
    line-height: 1.3;
}

.cat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.category-card h3 {
    font-size: 1.1rem;
}

/* Category Sections */

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--primary-light);
    padding: 8px 14px;
    border-radius: 999px;
    transition: all .2s ease;
}

.view-all:hover {
    background: rgba(79, 209, 197, 0.08);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.7rem;
}

.post-card {
    background: var(--card-bg);
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: border-color .25s ease, background-color .25s ease;
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    border-color: var(--primary-light);
    background-color: rgba(79, 209, 197, 0.04);
}

.post-card .card-image {
    padding-top: 62%;
}

.post-card .card-content {
    padding: 1.25rem;
}

.post-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
}

.short-desc {
    font-size: 0.92rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    flex: 1;
}

/* Placeholder */

.placeholders {
    margin-top: 5rem;
    margin-bottom: 5rem;
    display: none;
}

.placeholder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.placeholder-block {
    background: var(--card-bg);
    border: 2px dashed var(--border);
    border-radius: 10px;
    padding: 3rem 2rem;
    text-align: center;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.placeholder-block h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
}



/* Responsive */
@media (max-width: 1199px) {

    .container {
        padding: 0 16px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-top: 2rem;
        margin-bottom: 1.5rem;
    }

    .card-content {
        padding: 1rem;
    }

    .card-content h3 {
        font-size: 1rem;
    }

    .meta {
        font-size: 0.8rem;
    }

    .card-content p,
    .short-desc {
        font-size: 0.88rem;
    }

    .category-header {
        padding: 1rem 1.25rem;
    }

    .category-header h2 {
        font-size: 1.4rem;
    }

    .view-all {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    .popular-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .featured-blog-card {
        grid-column: span 2;
        grid-row: span 2;
    }

    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {

    .container {
        padding: 0 10px;
    }

    .section-title {
        font-size: 1.45rem;
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }

    .card-content {
        padding: 0.8rem;
    }

    .card-content h3 {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .meta {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .card-content p,
    .short-desc {
        font-size: 0.82rem;
        line-height: 1.5;
    }

    .category-card {
        padding: 1.25rem 0.75rem;
    }

    .category-card h3 {
        font-size: 0.95rem;
    }

    .cat-icon {
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
    }

    .category-header {
        padding: 1rem;
        gap: 0.75rem;
    }

    .category-header h2 {
        font-size: 1.05rem;
    }

    .view-all {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    .placeholder-block {
        padding: 2rem 1rem;
    }
    .popular-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-blog-card {
        grid-column: span 2;
        grid-row: span 2;
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .placeholder-grid {
        grid-template-columns: 1fr;
    }
    
    
    .section-title {
        font-size: 1.7rem;
    }

.featured-blog-card .card-content h3 {
    font-size: 1.15rem;
}

.featured-blog-card .card-content {
    padding: 1rem;
}

.featured-blog-card .meta {
    font-size: 0.8rem;
}

.featured-blog-card p {
    font-size: 0.85rem;
    line-height: 1.5;
}

}

@media (min-width: 1200px) {
    .container {
        padding: 0 40px;
    }
}


.genreTopics{
    margin-top:10px;
    margin-bottom:25px;
}

.genreTopicsWrap{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.genreTopicsWrap a{
    text-decoration:none;
    color:var(--primary);

    background:rgba(79,209,197,.08);

    border:1px solid var(--border);

    border-radius:999px;

    padding:8px 16px;

    transition:.25s;
}

.genreTopicsWrap a:hover{
    border-color:var(--primary-light);
    background:rgba(79,209,197,.15);
}

@media (max-width:767px){

    .genreTopicsWrap{
        gap:8px;
    }

    .genreTopicsWrap a{
        padding:6px 12px;
        font-size:.85rem;
    }

}



.genreFeaturedSection{
    margin-top:1rem;
}

.genreFeaturedGrid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:.7rem;
}

.genreFeaturedGrid .post-card .card-image{
    padding-top:66.66%;
}

.genreCategorySection{
    margin-top:2rem;
}

.genreCategoryGrid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:.7rem;
}

.genrePostsSection{
    margin-top: 25px;
    margin-bottom: 4rem;
}

.genrePostsSection .category-header{
    margin-top:0;
}

.genrePostsSection .posts-grid .card-image{
    padding-top:66.66%;
}

@media(max-width:1199px){

    .genreCategoryGrid{
        grid-template-columns:repeat(3,1fr);
    }

}

@media(max-width:767px){

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

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

}


/* ========================== Genre Header ============================== */

/* ===========================
   GENRE HERO
=========================== */

.genreHero{
    padding:20px 0 10px;
}

.genreHeroBox{

    position:relative;

    overflow:hidden;

    padding:50px 40px;

    border-radius:14px;

    background:var(--card-bg);

    border:1px solid var(--border);

    box-shadow:var(--shadow);
}

.genreHeroBox::before{

    content:"";

    position:absolute;

    top:0;
    left:0;

    width:100%;
    height:5px;

    background:linear-gradient(
        90deg,
        var(--primary),
        var(--primary-light)
    );
}

.genreHeroTop{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:15px;

    margin-bottom:20px;
}

.genreHeroBadge{

    display:inline-flex;

    align-items:center;

    padding:8px 14px;

    border-radius:999px;

    background:rgba(44,122,123,.08);

    color:var(--primary);

    font-size:.9rem;

    font-weight:600;
}

.genreHeroCount{

    color:var(--text-light);

    font-size:.95rem;
}

.genreHeroTitle{

    max-width:850px;

    font-size:clamp(2rem,4vw,3.5rem);

    line-height:1.15;

    margin-bottom:18px;
}

.genreHeroDesc{

    max-width:900px;

    color:var(--text-light);

    font-size:1.05rem;

    line-height:1.9;
}

@media(max-width:767px){

    .genreHeroBox{
        padding:30px 20px;
    }

    .genreHeroTop{
        flex-direction:column;
        align-items:flex-start;
        gap:10px;
    }

    .genreHeroDesc{
        font-size:.95rem;
    }

}

html {
    scroll-behavior: smooth;
}