/* ===========================================
   India Daily News - Core Stylesheet
   =========================================== */

:root {
    --brand: #b30000;
    --brand-dark: #7a0000;
    --dark: #1a1a1a;
    --gray: #555;
    --light-gray: #f2f2f2;
    --border: #e0e0e0;
    --white: #ffffff;
}

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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--dark);
    background: #fafafa;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Top strip */
.top-strip {
    background: var(--dark);
    color: #ccc;
    font-size: 13px;
}
.top-strip-inner {
    display: flex;
    justify-content: space-between;
    padding: 6px 16px;
}

/* Main header */
.main-header {
    background: var(--white);
    border-bottom: 3px solid var(--brand);
}
.main-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 16px;
    flex-wrap: wrap;
    gap: 12px;
}
.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
}
.logo span { color: var(--brand); }

.search-form { display: flex; }
.search-form input {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 4px 0 0 4px;
    outline: none;
    width: 200px;
}
.search-form button {
    background: var(--brand);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: 600;
}
.search-form button:hover { background: var(--brand-dark); }

/* Nav */
.main-nav {
    background: var(--brand);
}
.nav-list {
    display: flex;
    flex-wrap: wrap;
}
.nav-list li a {
    display: block;
    padding: 12px 18px;
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.nav-list li a:hover { background: var(--brand-dark); }

/* Page layout */
.page-wrap {
    padding: 30px 16px;
    min-height: 60vh;
}

.section-title {
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--dark);
    border-left: 5px solid var(--brand);
    padding-left: 10px;
    margin: 30px 0 16px;
}

/* Featured / hero article */
.hero-article {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.hero-article .hero-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 6px;
    background: #ddd;
}
.hero-article h1 {
    font-size: 26px;
    margin: 14px 0 8px;
}
.hero-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.hero-side-item {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}
.hero-side-item img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background: #ddd;
}
.hero-side-item h3 { font-size: 15px; }

/* News grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.news-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.news-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.08); }
.news-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    background: #ddd;
}
.news-card-body { padding: 14px; }
.news-card .category-tag {
    display: inline-block;
    background: var(--brand);
    color: var(--white);
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.news-card h3 { font-size: 16px; margin-bottom: 8px; }
.news-card p { font-size: 14px; color: var(--gray); }
.news-meta {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
}

/* Article page */
.article-page h1 { font-size: 30px; margin-bottom: 10px; }
.article-meta {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
}
.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 20px;
    background: #ddd;
}
.article-content { font-size: 17px; }
.article-content p { margin-bottom: 16px; }

/* Pagination */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 30px 0;
}
.pagination a, .pagination span {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--white);
}
.pagination a:hover { background: var(--brand); color: var(--white); }
.pagination .active { background: var(--brand); color: var(--white); }

/* Forms (contact, search) */
.form-box {
    background: var(--white);
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 6px;
    max-width: 600px;
}
.form-box input, .form-box textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
}
.form-box button {
    background: var(--brand);
    color: var(--white);
    border: none;
    padding: 10px 22px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}
.form-box button:hover { background: var(--brand-dark); }

.alert {
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
}
.alert-success { background: #e3f7e3; color: #1a7a1a; border: 1px solid #b6e6b6; }
.alert-error { background: #fdeaea; color: var(--brand-dark); border: 1px solid #f5c2c2; }

/* Footer */
.site-footer {
    background: var(--dark);
    color: #bbb;
    margin-top: 40px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    padding: 36px 16px;
}
.footer-col h3 { color: var(--white); margin-bottom: 12px; font-size: 22px; }
.footer-col h3 span { color: var(--brand); }
.footer-col h4 { color: var(--white); margin-bottom: 12px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
    text-align: center;
    padding: 14px;
    border-top: 1px solid #333;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-article { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .news-grid { grid-template-columns: 1fr; }
    .main-header-inner { flex-direction: column; align-items: flex-start; }
    .search-form input { width: 140px; }
    .top-strip-inner { flex-direction: column; gap: 2px; }
}
