/* Premium Editorial Public Site Styling - Namma Veetu Kalyanam */

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

:root {
    --primary: #ad2928; /* Brand Red */
    --accent: #feec00; /* Brand Yellow */
    --text-main: #111827;
    --text-muted: #4b5563;
    --bg-body: #ffffff;
    --bg-alt: #f8fafc;
    --border-color: #e5e7eb;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --container-width: 1200px;
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-serif {
    font-family: 'Playfair Display', serif;
}

a {
    transition: all 0.3s ease;
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Nav */
.site-header {
    background: white;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-muted);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

/* Hero Section */
.hero-section {
    padding: 100px 0 80px;
    text-align: center;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 80px;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* Filter area */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.article-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-controls {
    display: flex;
    gap: 16px;
    align-items: center;
}

.search-trigger, .cat-filter {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-trigger:hover, .cat-filter:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 100px;
}

.blog-card {
    display: flex;
    flex-direction: column;
}

.card-image-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 24px;
    aspect-ratio: 16/10;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.card-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--accent);
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card-date {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}

.card-title a:hover {
    color: var(--primary);
}

.card-excerpt {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-link {
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.read-more-link:after {
    content: '\f178';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

/* Single Post Page */
.post-main {
    max-width: 900px;
    margin: 80px auto;
}

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

.post-meta-top {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.post-title {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 32px;
}

.post-featured-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 60px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.post-body {
    font-size: 20px;
    line-height: 1.8;
    color: #374151;
}

.post-body p {
    margin-bottom: 32px;
}

.post-body h2, .post-body h3 {
    margin: 60px 0 24px;
    color: var(--text-main);
    line-height: 1.2;
}

.post-body blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 32px;
    font-style: italic;
    color: var(--primary);
    font-size: 24px;
    margin: 48px 0;
}

/* Footer Refinement */
.site-footer {
    border-top: 1px solid var(--border-color);
}


/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 60px;
}

.page-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    font-weight: 600;
}

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

.page-btn:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-title { font-size: 40px; }
    .blog-grid { grid-template-columns: 1fr; }
    .post-title { font-size: 36px; }
    .footer-top { grid-template-columns: 1fr; gap: 40px; }
    .nav-links { display: none; }
}

/* Centered Logo Refinement */
.site-header .navbar {
    flex-direction: column;
    padding: 10px 0;
}

.logo-link img {
    transition: transform 0.3s ease;
}

.logo-link:hover img {
    transform: scale(1.05);
}
