@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --bg-light: #fdfdfd;
    --bg-gray: #f4f4f4;
    --accent: #2e2e2e;
    --border: #eaeaea;
    --decomaxi-gold: #cfa873; 
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.3s ease; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* Header */
.header {
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
    background: var(--bg-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; color: var(--accent); letter-spacing: -0.5px;}
.logo span { color: var(--decomaxi-gold); }

.nav-links { display: flex; gap: 2rem; font-size: 0.95rem; font-weight: 500; }
.nav-links a { white-space: nowrap; }
.nav-links a:hover { color: var(--decomaxi-gold); }

/* Hero Section */
.hero {
    padding: 4rem 0 3rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
    background: var(--bg-gray);
}
.hero-title { font-family: 'Playfair Display', serif; font-size: 3rem; margin-bottom: 1rem; color: var(--accent); }
.hero-subtitle { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* Grid Layout */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem 2rem;
    padding: 4rem 0;
}

/* Post Card */
.post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modern-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    overflow: hidden;
    position: relative;
}

.modern-card .post-img-wrap {
    margin-bottom: 0;
    aspect-ratio: 4/5;
    border-radius: 0;
}

.modern-card .card-content {
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem 1.5rem;
    color: #fff;
    z-index: 2;
}

.modern-card .post-title {
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.modern-card .post-meta {
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
}

.modern-card .category-badge { color: var(--decomaxi-gold); }

.modern-card .read-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    opacity: 0.8;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.modern-card:hover .read-more {
    opacity: 1;
    transform: translateY(0);
    color: var(--decomaxi-gold);
}

.post-img-wrap {
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    background: #eee;
    aspect-ratio: 4/3;
    position: relative;
}

.post-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-img-wrap img { transform: scale(1.05); }

.post-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.category-badge { color: var(--decomaxi-gold); font-weight: 600; }

.post-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--accent);
}

.post-card:hover .post-title { color: var(--decomaxi-gold); }

.post-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 4rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; margin-bottom: 1rem; color: var(--accent); }

/* --- NEWS PORTAL LAYOUT STYLES --- */
.container-wide { max-width: 1400px; padding: 0 2rem; }
.top-news-area { padding: 3rem 0; background: var(--bg-gray); border-bottom: 1px solid var(--border); }

/* Hero Grid Layout */
.hero-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    min-height: 500px;
}
.manset-module { height: 100%; border-radius: 12px; overflow: hidden; }
.mansetSwiper { height: 100%; width: 100%; }
.manset-card .post-img-wrap { aspect-ratio: auto; height: 100%; position: absolute; width:100%; top:0; left:0; border-radius:0; margin:0;}
.manset-card .card-content { padding: 3rem; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0) 100%); }

.side-4-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.5rem;
    height: 100%;
}
.mini-grid-card { height: 100%; }
.mini-grid-card .post-img-wrap { aspect-ratio: auto; height: 100%; position: absolute; width:100%; top:0; left:0; border-radius:0; margin:0; }
.mini-grid-card .card-content { padding: 1.5rem; }
.mini-grid-card .card-content h3 { font-size: 1rem; line-height: 1.4; text-shadow: 1px 1px 3px rgba(0,0,0,0.8); }

/* Sidebar Layout */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
}
.main-content-flow {
    min-width: 0; /* CRITICAL FIX FOR SWIPER INSIDE CSS GRID */
    overflow: hidden;
}
.section-heading {
    font-family: 'Playfair Display', serif; font-size: 1.8rem; margin-bottom: 2rem;
    border-bottom: 2px solid var(--border); padding-bottom: 0.5rem; color: var(--accent);
}
.section-heading span { border-bottom: 2px solid var(--decomaxi-gold); padding-bottom: 0.5rem; display: inline-block; margin-bottom: -2px; }

/* Classic List */
.classic-list { display: flex; flex-direction: column; gap: 2rem; }
.list-item { display: flex; gap: 1.5rem; background: #fff; padding: 1.5rem; border-radius: 8px; border: 1px solid var(--border); transition: 0.3s; }
.list-item:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.05); transform: translateY(-3px); border-color: var(--decomaxi-gold); }
.list-img { flex: 0 0 250px; border-radius: 8px; overflow: hidden; aspect-ratio: 16/9; }
.list-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.list-item:hover .list-img img { transform: scale(1.05); }
.list-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.list-title { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--accent); margin: 0.5rem 0; line-height: 1.3; transition: 0.3s; }
.list-item:hover .list-title { color: var(--decomaxi-gold); }
.list-excerpt { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem; }
.list-date { color: #999; font-size: 0.8rem; font-weight: 500; }

/* Sidebar Widgets */
.sidebar-right { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 2rem; }
.widget { background: #fff; padding: 2rem; border-radius: 8px; border: 1px solid var(--border); }
.widget h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: 1.5rem; color: var(--accent); border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }

/* Social Widget */
.subscribe-widget p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.social-squares { display: flex; gap: 0.5rem; }
.social-squares a { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: #fff; border-radius: 4px; font-size: 1.2rem; transition: 0.3s; }
.social-squares a:hover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(0,0,0,0.2); }

/* Category Widget */
.cat-widget ul { display: flex; flex-direction: column; gap: 0.8rem; }
.cat-widget a { color: var(--text-muted); font-size: 0.95rem; display: flex; align-items: center; }
.cat-widget a::before { content: "•"; color: var(--decomaxi-gold); margin-right: 0.5rem; font-size: 1.2rem; }
.cat-widget a:hover { color: var(--decomaxi-gold); padding-left: 5px; }

/* Banner Widget */
.banner-widget { padding: 0; border: none; position: relative; overflow: hidden; border-radius: 8px; display: block; }
.banner-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: bold; text-align: center; padding: 1rem; transition: 0.3s; }
.banner-widget:hover .banner-overlay { background: rgba(0,0,0,0.3); }

/* Article Detail */
.article-header { text-align: center; max-width: 800px; margin: 4rem auto 3rem; }
.article-title { font-family: 'Playfair Display', serif; font-size: 2.8rem; margin: 1rem 0; color: var(--accent); line-height: 1.2;}
.article-featured-img { width: 100%; max-height: 600px; object-fit: cover; border-radius: 12px; margin-bottom: 3rem; }
.article-content { max-width: 800px; margin: 0 auto 5rem; font-size: 1.1rem; line-height: 1.8; color: #333; }
.article-content h2 { font-family: 'Playfair Display', serif; font-size: 1.8rem; margin: 2.5rem 0 1rem; color: var(--accent); }
.article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 2rem 0; }
.article-content p { margin-bottom: 1.5rem; }

@media(max-width: 1024px) {
    .content-with-sidebar { grid-template-columns: 1fr; }
    .hero-grid-layout { grid-template-columns: 1fr; }
    .manset-module { min-height: 400px; }
}

@media(max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 2.2rem; }
    .article-title { font-size: 2rem; }
}
