:root {
    ---primary: #111111;
    ---accent: #ffd900;
    ---text-dark: #1f2937;
    ---text-light: #6b7280;
    ---bg-main: #f7f8fb;
    ---card-bg: #ffffff;
    ---border: #e5e7eb;
}

#mainContent{
    height: 80vh;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:40px 20px;
    background:
        linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
        url('/src/assets/images/main.webp');
    background-size:cover;
    background-position:center;
}

.heroText h1{
    color:white;
    font-size:clamp(2.2rem, 4vw, 3.8rem);
    max-width:900px;
    margin:auto auto 20px;
    line-height:1.1;
}

.heroButton{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#ffd900;
    color:#000;
    text-decoration:none;
    font-weight:900;
    padding:15px 30px;
    border-radius:14px;
    transition:.3s;
    border:none;
}

.heroButton:hover{
    transform:translateY(-3px);
}

.-section {
    padding: 60px 0 100px;
    background-color: var(---bg-main);
    box-sizing: border-box;
}

.-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title, .-header h2 {
    font-size: clamp(2rem, 3.2vw, 2.7rem);
    color: var(---primary);
    margin: 0 0 15px;
    font-weight: 900;
}

.section-subtitle, .-header p {
    font-size: 1.05rem;
    color: var(---text-light);
    max-width: 740px;
    margin: 0 auto;
    line-height: 1.7;
}

.-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: var(---card-bg);
    border: 1px solid var(---border);
    color: var(---text-dark);
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-btn:hover {
    border-color: var(---accent);
    background-color: #fffdf0;
}

.filter-btn.active {
    background-color: var(---accent);
    border-color: var(---accent);
    color: var(---primary);
}

.-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.-card {
    background-color: var(---card-bg);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}

.-image-placeholder {
    width: 100%;
    height: 220px;
    background-color: #eef2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.9rem;
    position: relative;
    border-bottom: 3px solid var(---accent);
}

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

.-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.85rem;
    gap: 10px;
}

.-category {
    background-color: #fff7cc;
    color: #8a6d00;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.-date {
    color: var(---text-light);
}

.-title {
    font-size: 1.25rem;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.-title a {
    text-decoration: none;
    color: var(---primary);
    transition: color 0.2s ease;
}

.-title a:hover {
    color: #8a6d00;
}

.-excerpt {
    color: var(---text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.-read-more {
    text-decoration: none;
    color: var(---primary);
    font-weight: 800;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.-read-more span {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.-read-more:hover {
    color: #8a6d00;
}

.-card:hover .-read-more span {
    transform: translateX(5px);
}

.-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.page-btn {
    background-color: var(---card-bg);
    border: 1px solid var(---border);
    color: var(---text-dark);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

.page-btn:hover:not(:disabled) {
    background-color: #fffdf0;
    border-color: var(---accent);
}

.page-btn.active {
    background-color: var(---accent);
    border-color: var(---accent);
    color: var(---primary);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f3f4f6;
}

.page-dots {
    color: var(---text-light);
    font-weight: bold;
    padding: 0 5px;
}

/*  post page */
.-post-page{
    background: linear-gradient(180deg,#f7f8fb 0%, #fff 100%);
    padding-bottom:80px;
}

.-post-hero{
    min-height: 62vh;
    display:flex;
    align-items:center;
    background-size:cover;
    background-position:center;
    position:relative;
}

.-post-hero .container{
    width:100%;
    max-width:1200px;
    margin:0 auto;
    padding:60px 20px;
}

.-hero-content{
    max-width:900px;
    color:#fff;
}

.-badge{
    display:inline-flex;
    background:var(---accent);
    color:#111;
    padding:8px 16px;
    border-radius:999px;
    font-weight:900;
    margin-bottom:16px;
}

.-hero-content h1{
    font-size:clamp(2.4rem, 5vw, 4.4rem);
    line-height:1.05;
    margin:0 0 14px;
}

.breadcrumb-{
    max-width:1200px;
    margin:22px auto 0;
    padding:0 20px;
    display:flex;
    gap:10px;
    align-items:center;
    flex-wrap:wrap;
    color:var(---text-light);
}

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

.-article{
    margin-top:-52px;
}

.-article-layout{
    display:grid;
    grid-template-columns:minmax(0, 1.3fr) minmax(280px, .7fr);
    gap:24px;
}

.-article-content{
    background:#fff;
    border:1px solid var(---border);
    border-radius:28px;
    padding:30px;
    box-shadow:0 22px 60px rgba(15,23,42,.08);
}

.-article-image img{
    width:100%;
    border-radius:22px;
    object-fit:cover;
    margin-bottom:20px;
}

.-copy{
    color:var(---text-dark);
    line-height:1.9;
    font-size:1.06rem;
}

.-copy p:first-child{
    margin-top:0;
}

.-copy img{
    max-width:100%;
    border-radius:18px;
}

.article-block{
    margin-top:34px;
    padding-top:18px;
    border-top:1px solid var(---border);
}

.article-block h2{
    margin:0 0 14px;
    font-size:1.5rem;
}

.-sidebar{
    display:grid;
    gap:18px;
}

.sidebar-card{
    background:#fff;
    border:1px solid var(---border);
    border-radius:22px;
    padding:22px;
    box-shadow:0 12px 28px rgba(15,23,42,.05);
}

.sidebar-card h3{
    margin:0 0 10px;
}

.-gallery-grid{
    margin-top:10px;
}

.related-posts{
    margin-top:48px;
    padding-bottom:20px;
}

.related-posts h2{
    margin:0 0 18px;
    font-size:2rem;
}

#relatedPosts{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
    gap:22px;
}

.related-post-card{
    background:#fff;
    border:1px solid var(---border);
    border-radius:22px;
    overflow:hidden;
    box-shadow:0 12px 28px rgba(15,23,42,.05);
}

.related-post-card img{
    width:100%;
    aspect-ratio: 16 / 10;
    object-fit:cover;
}

.related-post-card-body{
    padding:18px;
}

.related-post-card h3{
    margin:10px 0 8px;
    font-size:1.1rem;
}

.related-post-card h3 a{
    color:var(---primary);
}

.related-post-card p{
    margin:0;
    color:var(---text-light);
}

@media (max-width: 900px){
    .-article-layout{
        grid-template-columns:1fr;
    }
}

@media (max-width: 768px) {
    .-header h2, .section-title {
        font-size: 2rem;
    }

    .-filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 6px 15px;
        font-size: 0.85rem;
    }

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

    .-post-hero{
        min-height: 56vh;
    }

    .-article{
        margin-top:-28px;
    }

    .-article-content{
        padding:22px;
        border-radius:22px;
    }
}
