/* =========================================
   LADLI KHABARSETU - CUSTOMER DESIGN
   ========================================= */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --dark: #0f172a;
    --dark-soft: #1e293b;
    --text: #334155;
    --muted: #64748b;
    --light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --radius: 18px;
}

/* ================= RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.7;
    padding-bottom: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
}

input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

/* ================= HEADER ================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo */

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand h1 {
    color: var(--dark);
    font-size: 1.35rem;
    line-height: 1.2;
    font-weight: 800;
}

.brand p {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.75rem;
}

/* Header Buttons */

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.icon-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--light);
    color: var(--dark);
    font-size: 1.1rem;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.icon-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 12px;
    background: var(--dark);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.admin-link:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* ================= BREAKING NEWS ================= */

.breaking-bar {
    background: var(--dark);
    color: var(--white);
}

.breaking-inner {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 16px;
    overflow: hidden;
}

.breaking-label {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 6px;
    background: #ef4444;
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
}

.breaking-inner p {
    overflow: hidden;
    color: var(--white);
    font-size: 0.9rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ================= HERO ================= */

.hero-section {
    padding: 70px 0;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        #0f172a,
        #1e3a8a
    );
    color: var(--white);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
}

.eyebrow,
.section-label {
    display: inline-block;
    margin-bottom: 14px;
    color: #93c5fd;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h2 {
    margin-bottom: 20px;
    color: var(--white);
    font-size: clamp(2.7rem, 6vw, 4.6rem);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.hero-content h2 span {
    color: #60a5fa;
}

.hero-content p {
    max-width: 480px;
    margin-bottom: 28px;
    color: #cbd5e1;
    font-size: 1.05rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-light {
    background: var(--white);
    color: var(--dark);
}

.btn-light:hover {
    background: #dbeafe;
}

/* ================= HERO CARD ================= */

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-card {
    position: relative;
    width: min(100%, 360px);
    min-height: 280px;
    padding: 34px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.hero-card::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(96, 165, 250, 0.15);
}

.hero-card-label {
    color: #93c5fd;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-card h3 {
    position: relative;
    margin: 20px 0 12px;
    color: var(--white);
    font-size: 2rem;
    line-height: 1.25;
}

.hero-card p {
    position: relative;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.hero-card-icon {
    position: absolute;
    right: 24px;
    bottom: 18px;
    font-size: 3rem;
    opacity: 0.5;
}

/* ================= COMMON SECTIONS ================= */

.section {
    padding: 65px 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.section-label {
    margin-bottom: 4px;
    color: var(--primary);
}

.section-heading h2 {
    color: var(--dark);
    font-size: 1.8rem;
    line-height: 1.3;
}

.view-all {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.view-all:hover {
    color: var(--primary-dark);
}

/* ================= SEARCH ================= */

.search-section {
    background: var(--white);
}

.news-search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.news-search-form input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    background: var(--light);
    color: var(--text);
    font-size: 0.95rem;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.news-search-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* ================= CATEGORIES ================= */

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.category-card {
    padding: 22px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    text-align: center;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.category-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 14px 35px rgba(37, 99, 235, 0.12);
    transform: translateY(-4px);
}

.category-card span {
    display: block;
    margin-bottom: 8px;
    font-size: 1.8rem;
}

.category-card strong {
    color: var(--dark);
    font-size: 0.85rem;
}

/* ================= LATEST NEWS ================= */

.latest-section {
    background: #f1f5f9;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.news-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    position: relative;
    height: 210px;
    background: #e2e8f0;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    background: #ef4444;
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 800;
}

.news-content {
    padding: 20px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.75rem;
}

.news-content h3 {
    margin-bottom: 10px;
    color: var(--dark);
    font-size: 1.15rem;
    line-height: 1.4;
}

.news-content p {
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 0.9rem;
}

.read-more {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
}

.read-more:hover {
    color: var(--primary-dark);
}

/* ================= LOADING / EMPTY / ERROR ================= */

.news-loading,
.empty-state,
.error-state {
    width: 100%;
    padding: 45px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    text-align: center;
}

.news-loading {
    grid-column: 1 / -1;
}

.news-loading p,
.empty-state p,
.error-state p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.9rem;
}

.loading-spinner {
    width: 38px;
    height: 38px;
    margin: 0 auto 15px;
    border: 4px solid #dbeafe;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.empty-state-icon,
.error-state-icon {
    margin-bottom: 12px;
    font-size: 2.5rem;
}

.empty-state h3,
.error-state h3 {
    color: var(--dark);
    font-size: 1.2rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ================= NEWSLETTER ================= */

.newsletter-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 40px;
    border-radius: 24px;
    background: linear-gradient(
        135deg,
        #2563eb,
        #1e40af
    );
    color: var(--white);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.18);
}

.newsletter-box .section-label {
    color: #bfdbfe;
}

.newsletter-box h2 {
    margin-bottom: 6px;
    color: var(--white);
    font-size: 1.8rem;
}

.newsletter-box p {
    color: #dbeafe;
}

/* ================= FOOTER ================= */

.site-footer {
    padding: 45px 0 25px;
    background: var(--dark);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 35px;
    padding-bottom: 35px;
}

.footer-brand {
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 800;
}

.footer-grid p {
    margin-top: 10px;
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-grid h3 {
    margin-bottom: 12px;
    color: var(--white);
    font-size: 1rem;
}

.footer-grid a:not(.footer-brand) {
    display: block;
    width: fit-content;
    margin: 7px 0;
    color: #94a3b8;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-grid a:not(.footer-brand):hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #334155;
    color: #64748b;
    font-size: 0.8rem;
}

/* ================= MOBILE NAVBAR ================= */

.mobile-navbar {
    display: none;
}

/* ================= DARK THEME ================= */

body.dark-theme {
    --light: #0f172a;
    --white: #1e293b;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --border: #334155;
    --dark: #f8fafc;
    --dark-soft: #cbd5e1;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);

    background: #0f172a;
    color: #e2e8f0;
}

body.dark-theme .site-header,
body.dark-theme .search-section,
body.dark-theme .category-card,
body.dark-theme .news-card,
body.dark-theme .news-loading,
body.dark-theme .empty-state,
body.dark-theme .error-state {
    background: #1e293b;
}

body.dark-theme .brand h1,
body.dark-theme .section-heading h2,
body.dark-theme .category-card strong,
body.dark-theme .news-content h3,
body.dark-theme .empty-state h3,
body.dark-theme .error-state h3 {
    color: #f8fafc;
}

body.dark-theme .icon-btn {
    background: #334155;
    color: #f8fafc;
}

body.dark-theme .news-search-form input {
    background: #0f172a;
    color: #f8fafc;
    border-color: #475569;
}

body.dark-theme .latest-section {
    background: #111827;
}

body.dark-theme .news-image {
    background: #334155;
}

body.dark-theme .mobile-navbar {
    background: rgba(15, 23, 42, 0.98);
    border-top-color: #334155;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1000px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content p {
        margin-right: auto;
        margin-left: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        justify-content: center;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    body {
        padding-bottom: 76px;
    }

    .container {
        width: min(100% - 24px, 1180px);
    }

    .header-inner {
        min-height: 70px;
        gap: 10px;
    }

    .brand {
        gap: 8px;
    }

    .brand img {
        width: 42px;
        height: 42px;
    }

    .brand h1 {
        font-size: 1.05rem;
    }

    .brand p {
        font-size: 0.65rem;
    }

    .header-actions {
        gap: 5px;
    }

    .icon-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .admin-link {
        display: none;
    }

    .breaking-inner {
        min-height: 40px;
        gap: 8px;
    }

    .breaking-label {
        padding: 3px 6px;
        font-size: 0.65rem;
    }

    .breaking-inner p {
        font-size: 0.75rem;
    }

    .hero-section {
        padding: 48px 0;
    }

    .hero-content h2 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .hero-card {
        min-height: 230px;
        padding: 25px;
    }

    .hero-card h3 {
        font-size: 1.7rem;
    }

    .section {
        padding: 45px 0;
    }

    .section-heading {
        align-items: flex-start;
    }

    .section-heading h2 {
        font-size: 1.45rem;
    }

    .view-all {
        font-size: 0.8rem;
    }

    .news-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .news-search-form input {
        width: 100%;
    }

    .news-search-form .btn {
        width: 100%;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .category-card {
        padding: 15px 6px;
    }

    .category-card span {
        font-size: 1.4rem;
    }

    .category-card strong {
        font-size: 0.72rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-image {
        height: 200px;
    }

    .newsletter-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 22px;
    }

    .newsletter-box h2 {
        font-size: 1.4rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }

    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 4px;
    }

    /* Mobile Bottom Navbar */

    .mobile-navbar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 2000;
        height: 68px;
        display: flex;
        align-items: center;
        justify-content: space-around;
        background: rgba(255, 255, 255, 0.97);
        border-top: 1px solid var(--border);
        box-shadow: 0 -5px 20px rgba(15, 23, 42, 0.08);
        backdrop-filter: blur(12px);
    }

    .nav-item {
        display: flex;
        min-width: 52px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        color: #94a3b8;
        font-size: 1.2rem;
        transition: color 0.2s ease;
    }

    .nav-item small {
        font-size: 0.65rem;
        font-weight: 600;
    }

    .nav-item.active,
    .nav-item:hover {
        color: var(--primary);
    }
}

@media (max-width: 380px) {
    .brand h1 {
        font-size: 0.95rem;
    }

    .brand img {
        width: 38px;
        height: 38px;
    }

    .header-actions {
        gap: 4px;
    }

    .icon-btn {
        width: 34px;
        height: 34px;
    }

    .hero-content h2 {
        font-size: 2.3rem;
    }

    .nav-item {
        min-width: 45px;
        font-size: 1.05rem;
    }

    .nav-item small {
        font-size: 0.58rem;
    }
}