/*
=========================================================
 CENTRAL INDIA TIMES
 Editorial Design System
=========================================================
*/

:root {
    --cit-navy: #101d35;
    --cit-navy-light: #1c3152;
    --cit-red: #c62835;
    --cit-gold: #d8a94d;
    --cit-background: #f3f5f8;
    --cit-white: #ffffff;
    --cit-text: #273449;
    --cit-muted: #788397;
    --cit-border: #e5e9ef;
    --cit-radius: 9px;
    --cit-shadow: 0 5px 22px rgba(16, 29, 53, .06);
}

/* Global */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cit-background);
    color: var(--cit-text);
    font-family: Inter, "Noto Sans Devanagari", "Noto Sans Marathi", Arial, sans-serif;
    line-height: 1.65;
}

a {
    color: inherit;
}

.cit-homepage {
    width: 100%;
    overflow: hidden;
}

.cit-container {
    width: min(1200px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

/* Hide the default GeneratePress header and navigation.
   The custom masthead is rendered by functions.php. */
.site-header,
.main-navigation {
    display: none !important;
}

.site-content,
.content-area,
.site-main {
    margin-top: 0 !important;
}

/* Masthead */
.cit-masthead {
    width: 100%;
    background: var(--cit-navy);
    color: var(--cit-white);
    position: relative;
    z-index: 100;
}

.cit-masthead-inner {
    width: min(1200px, calc(100% - 40px));
    min-height: 88px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cit-brand a {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-decoration: none;
}

.cit-brand-name {
    color: var(--cit-white);
    font-size: 27px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.2;
}

.cit-brand-tagline {
    color: var(--cit-gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.cit-language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cit-language-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 4px;
    color: var(--cit-white);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease;
}

.cit-language-switcher a:hover,
.cit-language-switcher a.cit-language-active {
    background: var(--cit-red);
    border-color: var(--cit-red);
    color: var(--cit-white);
}

/* Intro */
.cit-intro {
    background: var(--cit-white);
    padding: 54px 20px 48px;
    text-align: center;
}

.cit-intro .cit-container {
    max-width: 900px;
}

.cit-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--cit-red);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.5;
    text-transform: uppercase;
}

.cit-intro h1 {
    margin: 0 0 12px;
    color: var(--cit-navy);
    font-size: clamp(27px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.2;
}

.cit-intro p {
    margin: 0;
    color: var(--cit-muted);
    font-size: 16px;
}

/* Breaking ticker */
.cit-ticker {
    display: flex;
    align-items: stretch;
    width: min(1200px, calc(100% - 40px));
    min-height: 46px;
    margin: 22px auto 0;
    overflow: hidden;
    border-radius: 5px;
    background: var(--cit-white);
    box-shadow: var(--cit-shadow);
}

.cit-ticker-label {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    padding: 0 17px;
    background: var(--cit-red);
    color: var(--cit-white);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .7px;
}

.cit-ticker-window {
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
}

.cit-ticker-track {
    display: flex;
    align-items: center;
    gap: 34px;
    padding: 0 20px;
    white-space: nowrap;
}

.cit-ticker-track a {
    color: var(--cit-navy);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.cit-ticker-track a:hover {
    color: var(--cit-red);
}

/* Featured story */
.cit-featured {
    display: grid;
    grid-template-columns: 1.2fr .9fr;
    min-height: 360px;
    margin-top: 24px;
    overflow: hidden;
    border-radius: var(--cit-radius);
    background: var(--cit-white);
    box-shadow: var(--cit-shadow);
}

.cit-featured-image {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    background: var(--cit-navy-light);
}

.cit-featured-image > a,
.cit-card-image {
    display: block;
    width: 100%;
    height: 100%;
}

.cit-featured-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

.cit-featured-label {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 13px;
    border-radius: 2px;
    background: var(--cit-red);
    color: var(--cit-white);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .5px;
}

.cit-featured-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 38px;
}

.cit-card-date {
    display: block;
    margin-bottom: 10px;
    color: var(--cit-muted);
    font-size: 11px;
}

.cit-featured-content h2 {
    margin: 0 0 14px;
    color: var(--cit-navy);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.25;
}

.cit-featured-content h2 a,
.cit-news-card h3 a {
    color: inherit;
    text-decoration: none;
}

.cit-featured-content h2 a:hover,
.cit-news-card h3 a:hover {
    color: var(--cit-red);
}

.cit-featured-content p {
    margin: 0 0 24px;
    color: var(--cit-muted);
    font-size: 15px;
}

.cit-button {
    display: inline-flex;
    align-items: center;
    padding: 11px 18px;
    border-radius: 4px;
    background: var(--cit-navy);
    color: var(--cit-white);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.cit-button:hover {
    background: var(--cit-red);
    color: var(--cit-white);
}

/* Placeholder when no featured image is assigned */
.cit-image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    background: linear-gradient(135deg, var(--cit-navy), var(--cit-navy-light));
}

/* Sections */
.cit-section {
    padding-top: 48px;
}

.cit-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--cit-border);
}

.cit-section-heading h2 {
    margin: 0;
    padding-left: 13px;
    border-left: 5px solid var(--cit-red);
    color: var(--cit-navy);
    font-size: 25px;
    font-weight: 800;
    line-height: 1.2;
}

/* Regional news */
.cit-region-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.cit-region-column {
    min-width: 0;
    min-height: 180px;
    padding: 22px;
    border-radius: var(--cit-radius);
    background: var(--cit-white);
    box-shadow: var(--cit-shadow);
}

.cit-region-column > h3 {
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--cit-red);
    color: var(--cit-navy);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
}

.cit-region-story {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--cit-border);
}

.cit-region-story:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.cit-region-story > a {
    display: contents;
    color: var(--cit-navy);
    text-decoration: none;
}

.cit-region-story img {
    grid-row: span 2;
    width: 88px;
    height: 66px;
    border-radius: 4px;
    object-fit: cover;
}

.cit-region-story h4 {
    margin: 0;
    color: var(--cit-navy);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.cit-region-story a:hover h4 {
    color: var(--cit-red);
}

.cit-region-story .cit-card-date {
    margin: 0;
    font-size: 10px;
}

.cit-empty {
    margin: 0;
    color: var(--cit-muted);
    font-size: 13px;
}

/* Latest news cards */
.cit-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.cit-news-card {
    min-width: 0;
    overflow: hidden;
    border-radius: var(--cit-radius);
    background: var(--cit-white);
    box-shadow: var(--cit-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}

.cit-news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(16, 29, 53, .10);
}

.cit-card-image {
    height: 205px;
    overflow: hidden;
    background: var(--cit-navy-light);
}

.cit-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cit-card-content {
    padding: 20px;
}

.cit-news-card h3 {
    margin: 0 0 10px;
    color: var(--cit-navy);
    font-size: 18px;
    line-height: 1.35;
}

.cit-news-card p {
    margin: 0 0 16px;
    color: var(--cit-muted);
    font-size: 13px;
    line-height: 1.65;
}

.cit-read-more {
    color: var(--cit-red);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.cit-read-more:hover {
    color: var(--cit-navy);
}

/* Footer */
.site-footer {
    margin-top: 55px;
    background: var(--cit-navy);
    color: var(--cit-white);
}

.site-footer,
.site-footer a {
    color: var(--cit-white);
}

/* Responsive */
@media (max-width: 900px) {
    .cit-featured {
        grid-template-columns: 1fr 1fr;
    }

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

    .cit-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .cit-container,
    .cit-ticker {
        width: calc(100% - 24px);
    }

    .cit-masthead-inner {
        width: calc(100% - 24px);
        min-height: 76px;
        gap: 8px;
    }

    .cit-brand-name {
        font-size: 16px;
        letter-spacing: .3px;
    }

    .cit-brand-tagline {
        font-size: 8px;
        letter-spacing: .8px;
    }

    .cit-language-switcher {
        gap: 4px;
    }

    .cit-language-switcher a {
        min-height: 32px;
        padding: 5px 7px;
        font-size: 10px;
    }

    .cit-intro {
        padding: 38px 16px 32px;
    }

    .cit-intro h1 {
        font-size: 27px;
    }

    .cit-intro p {
        font-size: 14px;
    }

    .cit-ticker {
        min-height: 42px;
        margin-top: 14px;
    }

    .cit-ticker-label {
        padding: 0 10px;
        font-size: 9px;
    }

    .cit-ticker-track {
        gap: 22px;
        padding: 0 12px;
    }

    .cit-ticker-track a {
        font-size: 11px;
    }

    .cit-featured {
        grid-template-columns: 1fr;
        margin-top: 16px;
    }

    .cit-featured-image,
    .cit-featured-image img {
        min-height: 220px;
        height: 220px;
    }

    .cit-featured-content {
        padding: 23px;
    }

    .cit-featured-content h2 {
        font-size: 25px;
    }

    .cit-section {
        padding-top: 34px;
    }

    .cit-section-heading h2 {
        font-size: 21px;
    }

    .cit-region-grid,
    .cit-news-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cit-region-column {
        padding: 18px;
    }

    .cit-card-image {
        height: 210px;
    }
}
