/* =========================================================
   SAWAAL NEWS PORTAL
   Clean Professional Stylesheet
   Brand: Red / Black / White
========================================================= */

:root {
    --red: #e31b23;
    --red-dark: #b90f16;
    --black: #111111;
    --ink: #171717;
    --muted: #6d6d6d;
    --paper: #ffffff;
    --soft: #f5f5f4;
    --line: #e4e4e1;
    --page-bg: #fafafa;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 14px;
    --shadow-sm: 0 6px 18px rgba(0,0,0,.06);
    --shadow: 0 14px 40px rgba(0,0,0,.08);
    --container: 1260px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--page-bg);
    line-height: 1.45;
    top: 0 !important;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

.wrap {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 22px;
}

/* HEADER */
.site-header {
    position: relative;
    z-index: 50;
    background: var(--paper);
}

.utility-bar {
    background: var(--black);
    color: #fff;
    font-size: 12px;
}

.utility-inner {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.utility-left,
.utility-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.utility-right a {
    opacity: .78;
    transition: opacity .2s ease;
}

.utility-right a:hover {
    opacity: 1;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 4px rgba(227,27,35,.18);
}

.brand-area {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.brandrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 16px 0;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
}

.brand .site-logo-img,
.brand img {
    width: auto;
    height: 82px;
    max-width: 260px;
    object-fit: contain;
}

.brand-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* SEARCH */
.search-form {
    display: flex;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.search-form input {
    width: 260px;
    border: 0;
    outline: 0;
    padding: 11px 15px;
    background: transparent;
}

.search-form button {
    border: 0;
    padding: 0 18px;
    background: var(--red);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.search-form button:hover {
    background: var(--red-dark);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 42px;
    padding: 10px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--black);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #fff;
}

/* LANGUAGE */
.language-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
    padding-left: 14px;
    border-left: 1px solid rgba(255,255,255,.2);
}

.lang-btn {
    width: auto;
    padding: 2px 4px;
    border: 0;
    background: transparent;
    color: inherit;
    font-weight: 800;
    opacity: .65;
    cursor: pointer;
}

.lang-btn:hover,
.lang-btn.active {
    color: var(--red);
    opacity: 1;
}

.language-switch span {
    opacity: .35;
}

.mobile-language-switch {
    display: none;
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
    color: var(--black);
}

.google-translate-host {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame {
    display: none !important;
}

.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
}

/* NAV */
.main-nav {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    align-items: center;
}

.nav > a,
.drop > a {
    position: relative;
    display: block;
    padding: 14px 15px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.nav > a:hover,
.drop > a:hover {
    color: var(--red);
}

.home-link {
    background: var(--red);
    color: #fff !important;
}

.drop {
    position: relative;
}

.dropmenu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    min-width: 210px;
    padding: 8px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 0 0 10px 10px;
    box-shadow: var(--shadow);
}

.drop:hover .dropmenu {
    display: block;
}

.dropmenu a {
    display: block;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
}

.dropmenu a:hover {
    background: var(--soft);
    color: var(--red);
}

/* LATEST STRIP */
.news-strip {
    background: #f3f3f1;
    border-bottom: 1px solid var(--line);
}

.strip-inner {
    display: flex;
    align-items: center;
    min-height: 38px;
    font-size: 13px;
}

.strip-label {
    margin-right: 18px;
    padding: 11px 16px;
    background: var(--red);
    color: #fff;
    font-weight: 800;
    letter-spacing: .08em;
}

.strip-text {
    color: #505050;
}

/* HOMEPAGE HERO */
.homepage {
    padding-top: 24px;
}

.feature-hero {
    display: grid;
    grid-template-columns: minmax(0,2.15fr) minmax(280px,.85fr);
    gap: 18px;
}

.feature-stage {
    position: relative;
    min-height: 535px;
    overflow: hidden;
    background: var(--black);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.slide {
    position: absolute;
    inset: 0;
    display: none;
    background-size: cover;
    background-position: center;
}

.slide.active {
    display: block;
    animation: fadeIn .5s ease;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,rgba(0,0,0,.87) 0%,rgba(0,0,0,.55) 52%,rgba(0,0,0,.15) 100%),
        linear-gradient(0deg,rgba(0,0,0,.55),transparent 52%);
}

.hero-content {
    position: absolute;
    left: 6%;
    bottom: 9%;
    max-width: 690px;
    color: #fff;
}

.eyebrow,
.section-kicker {
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .13em;
}

.hero-content .eyebrow {
    display: inline-block;
    padding: 7px 10px;
    background: var(--red);
    color: #fff;
    border-radius: 4px;
}

.hero-content h1 {
    margin: 14px 0 12px;
    font-size: clamp(38px,5vw,64px);
    line-height: 1.01;
    letter-spacing: -.035em;
}

.hero-content p {
    max-width: 590px;
    margin: 0 0 24px;
    color: #ececec;
    font-size: 17px;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 12px 17px;
    background: #fff;
    color: var(--black);
    border-radius: 7px;
    font-weight: 800;
}

.primary-btn:hover {
    background: var(--red);
    color: #fff;
}

.hero-controls {
    position: absolute;
    right: 20px;
    bottom: 19px;
    display: flex;
    gap: 6px;
}

.dot {
    width: 28px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: rgba(255,255,255,.45);
    cursor: pointer;
}

.dot.active {
    background: var(--red);
}

/* FEATURE RAIL */
.feature-rail {
    overflow: hidden;
    background: var(--black);
    color: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.rail-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 19px;
    border-bottom: 1px solid #2d2d2d;
}

.rail-heading span {
    font-size: 19px;
    font-weight: 900;
}

.rail-heading small {
    color: #aaa;
}

.rail-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    padding: 17px 18px;
    border-bottom: 1px solid #2d2d2d;
}

.rail-item:hover {
    background: #1b1b1b;
}

.rail-number {
    color: var(--red);
    font-size: 22px;
    font-weight: 900;
}

.rail-item strong {
    display: block;
    font-size: 15px;
    line-height: 1.25;
}

.rail-item small {
    display: block;
    margin-top: 7px;
    color: #999;
}

/* SECTIONS */
.section {
    margin: 52px 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--line);
}

.section-head h2 {
    margin: 5px 0 0;
    font-size: 34px;
    line-height: 1;
    letter-spacing: -.02em;
}

.section-head > a {
    color: var(--red);
    font-size: 13px;
    font-weight: 800;
}

/* NEWS */
.lead-news-grid {
    display: grid;
    grid-template-columns: 1.35fr .95fr;
    gap: 22px;
}

.lead-card {
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.lead-card img {
    width: 100%;
    height: 370px;
    object-fit: cover;
}

.lead-copy {
    padding: 24px;
}

.meta {
    color: #777;
    font-size: 11px;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.lead-card h3 {
    margin: 8px 0 12px;
    font-size: 32px;
    line-height: 1.1;
}

.lead-card p {
    margin: 0 0 16px;
    color: #666;
}

.text-link {
    color: var(--red);
    font-size: 13px;
    font-weight: 900;
}

.news-stack {
    display: grid;
    gap: 1px;
    overflow: hidden;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.stack-card {
    display: grid;
    grid-template-columns: 145px 1fr;
    gap: 16px;
    padding: 13px;
    background: var(--paper);
}

.stack-card img {
    width: 145px;
    height: 96px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.stack-card h3 {
    margin: 6px 0;
    font-size: 17px;
    line-height: 1.25;
}

.news-card-grid {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 16px;
    margin-top: 22px;
}

.story-card,
.video-card {
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    transition: transform .2s ease, box-shadow .2s ease;
}

.story-card:hover,
.video-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.story-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.card-body {
    padding: 15px;
}

.story-card h3,
.video-card h3 {
    margin: 7px 0;
    font-size: 17px;
    line-height: 1.25;
}

.story-card p {
    margin: 8px 0 0;
    color: #777;
    font-size: 13px;
}

/* EDITORIAL BAND */
.editorial-band {
    display: grid;
    grid-template-columns: 1.1fr 1.2fr auto;
    align-items: center;
    gap: 36px;
    margin: 52px 0;
    padding: 34px 38px;
    background: var(--red);
    color: #fff;
    border-radius: var(--radius-lg);
}

.section-kicker.light {
    color: #fff;
    opacity: .75;
}

.editorial-band h2 {
    margin: 6px 0 0;
    font-size: 34px;
    line-height: 1.04;
}

.editorial-band p {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
}

.editorial-band a {
    padding: 12px 16px;
    background: var(--black);
    color: #fff;
    border-radius: 7px;
    font-weight: 800;
    white-space: nowrap;
}

/* VIDEO / BLOG */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
}

.video-frame {
    aspect-ratio: 16/9;
    background: var(--black);
}

.video-frame iframe,
.video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}

.blog-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 18px;
    padding: 16px;
    background: var(--paper);
    border-top: 3px solid var(--black);
}

.blog-card img {
    width: 160px;
    height: 145px;
    object-fit: cover;
}

.blog-card h3 {
    margin: 6px 0;
    font-size: 20px;
    line-height: 1.2;
}

.blog-card p {
    color: #737373;
    font-size: 13px;
}

/* INNER PAGES */
.two {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    margin-top: 28px;
}

.sidebar {
    height: max-content;
    padding: 18px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.sidebar a {
    display: block;
    padding: 9px 0;
    border-bottom: 1px solid #eee;
}

.article {
    padding: 28px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.article img.cover {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.article h1 {
    font-size: 46px;
    line-height: 1.06;
}

.content {
    font-size: 18px;
    line-height: 1.8;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 18px;
}

.card {
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card .pad {
    padding: 14px;
}

.card h3 {
    margin: 5px 0;
}

.shorts {
    grid-template-columns: repeat(4,1fr);
}

.short iframe {
    width: 100%;
    aspect-ratio: 9/16;
}

/* FOOTER */
.site-footer {
    margin-top: 62px;
    background: var(--black);
    color: #d5d5d5;
}

.footer-accent {
    height: 5px;
    background: var(--red);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.15fr;
    gap: 50px;
    padding: 46px 0 40px;
}

.footer-brand img {
    width: 220px;
    height: auto;
    object-fit: contain;
    filter: none;
}

.footer-brand p {
    max-width: 390px;
    color: #999;
}

.site-footer h4 {
    margin: 3px 0 15px;
    color: #fff;
}

.site-footer a {
    display: block;
    margin: 9px 0;
    color: #aaa;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer p {
    color: #aaa;
}

.footer-small {
    font-size: 12px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding: 17px 0 20px;
    border-top: 1px solid #2b2b2b;
    color: #777;
    font-size: 12px;
}

/* ADMIN */
.admin {
    display: grid;
    grid-template-columns: 230px 1fr;
    min-height: 100vh;
}

.aside {
    padding: 20px;
    background: var(--black);
    color: #fff;
}

.aside a {
    display: block;
    padding: 10px 6px;
}

.adminmain {
    padding: 25px;
}

.panel {
    margin-bottom: 20px;
    padding: 20px;
    background: var(--paper);
    border-radius: var(--radius-sm);
}

.formgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.formgrid .full {
    grid-column: 1/-1;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

textarea {
    min-height: 110px;
}

.editor {
    min-height: 320px;
}

.button {
    padding: 11px 16px;
    border: 0;
    background: var(--black);
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

/* ANIMATION */
@keyframes fadeIn {
    from { opacity: .2; }
    to { opacity: 1; }
}

/* RESPONSIVE */
@media (max-width: 1050px) {
    .news-card-grid {
        grid-template-columns: repeat(3,1fr);
    }

    .feature-hero {
        grid-template-columns: 1fr;
    }

    .feature-rail {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .rail-heading {
        grid-column: 1/-1;
    }

    .editorial-band {
        grid-template-columns: 1fr 1.2fr;
    }

    .editorial-band a {
        grid-column: 1/-1;
        width: max-content;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

@media (max-width: 800px) {
    .wrap {
        padding: 0 16px;
    }

    .mobile-language-switch {
        display: flex;
    }

    .utility-left {
        width: 100%;
    }

    .utility-right,
    .search-form {
        display: none;
    }

    .brand .site-logo-img,
    .brand img {
        height: 65px;
        max-width: 200px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
    }

    .main-nav.open {
        display: block;
    }

    .nav {
        display: block;
        padding: 8px 16px;
    }

    .nav > a,
    .drop > a {
        padding: 11px 10px;
    }

    .dropmenu {
        position: static;
        display: none !important;
        border: 0;
        box-shadow: none;
    }

    .home-link {
        border-radius: 6px;
    }

    .news-strip {
        display: none;
    }

    .homepage {
        padding-top: 16px;
    }

    .feature-stage {
        min-height: 460px;
    }

    .feature-rail {
        display: none;
    }

    .hero-content {
        left: 7%;
        right: 7%;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .lead-news-grid {
        grid-template-columns: 1fr;
    }

    .news-card-grid,
    .video-grid,
    .blog-grid {
        grid-template-columns: 1fr 1fr;
    }

    .editorial-band {
        grid-template-columns: 1fr;
        padding: 27px;
    }

    .editorial-band a {
        grid-column: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .two {
        grid-template-columns: 1fr;
    }

    .grid,
    .shorts {
        grid-template-columns: 1fr 1fr;
    }

    .formgrid {
        grid-template-columns: 1fr;
    }

    .admin {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .brandrow {
        padding: 11px 0;
    }

    .brand .site-logo-img,
    .brand img {
        height: 55px;
        max-width: 165px;
    }

    .feature-stage {
        min-height: 420px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .section {
        margin: 38px 0;
    }

    .section-head h2 {
        font-size: 28px;
    }

    .section-head > a {
        display: none;
    }

    .lead-card img {
        height: 240px;
    }

    .lead-card h3 {
        font-size: 25px;
    }

    .stack-card {
        grid-template-columns: 105px 1fr;
    }

    .stack-card img {
        width: 105px;
        height: 82px;
    }

    .news-card-grid,
    .video-grid,
    .blog-grid,
    .grid,
    .shorts {
        grid-template-columns: 1fr;
    }

    .blog-card {
        grid-template-columns: 110px 1fr;
    }

    .blog-card img {
        width: 110px;
        height: 110px;
    }

    .editorial-band h2 {
        font-size: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-bottom {
        display: block;
    }

    .footer-bottom span {
        display: block;
        margin: 5px 0;
    }

    .article h1 {
        font-size: 32px;
    }
}
