/* 
   Banah Valley News - Main Stylesheet 
   Dark Theme UI with RTL Support | Premium Edition
*/

:root {
    --bg-dark: #f8f9fa; /* body background */
    --bg-black: #080808; /* header background */
    --bg-card: #ffffff; /* pure white cards */
    --text-white: #ffffff; /* used specifically where forcing white text (header, over imgs) */
    --text-gray: #4a4a4a; /* standard text and descriptions */
    --text-dark: #111111; /* standard titles and headings */
    
    --gold-start: #f4c430;
    --gold-end: #d4af37;
    --gold-gradient: linear-gradient(135deg, var(--gold-start) 0%, var(--gold-end) 100%);
    --gold-gradient-hover: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
    
    --font-en: 'Onest', sans-serif;
    --font-ur: 'Alyamama', 'Noto Nastaliq Urdu', serif;
    --font-desc: 'Jameel Noori Nastaliq', 'Noto Nastaliq Urdu', serif;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 10px;
    --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.25);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-gray);
    font-family: var(--font-desc);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================
   HEADER
============================ */
.main-header {
    background-color: var(--bg-black);
    color: var(--text-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #1a1a1a;
    box-shadow: 0 2px 20px rgba(0,0,0,0.8);
}

/* Top header bar */
.header-bar {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px;
    direction: ltr;
    border-bottom: 1px solid #111;
}

/* Left: Flat social icons + site URL */
.hdr-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hdr-socials {
    display: flex;
    align-items: center;
    gap: 11px;
}

.hdr-soc-icon {
    color: #aaa;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 5px;
    background: rgba(255,255,255,0.07);
    transition: all var(--transition);
}
.hdr-soc-icon:hover {
    color: var(--gold-start);
    background: rgba(244,196,48,0.12);
    transform: translateY(-2px);
}

.hdr-site-url {
    font-family: var(--font-en);
    font-size: 13px;
    color: #aaa;
    font-weight: 500;
    border-left: 1px solid #333;
    padding-left: 14px;
    letter-spacing: 0.3px;
}

/* Center: Urdu clock */
.hdr-center {
    font-family: var(--font-ur);
    font-size: 14px;
    color: var(--text-gray);
    text-align: center;
    flex-shrink: 0;
}
#live-clock {
    color: #ccc;
}

/* Right: Logo block */
.hdr-right {
    display: flex;
    align-items: center;
}

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

/* Logo image is the small square badge on the outer right */
.hdr-logo-img {
    flex-shrink: 0;
}
.hdr-logo-img img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

/* Site name text is to the left of the logo image (RTL layout) */
.hdr-logo-text {
    font-family: var(--font-ur);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
}

/* Category Nav */
.category-nav {
    background: #0a0a0a;
    border-top: 1px solid #181818;
}

.category-nav-inner {
    max-width: 100%;
    padding: 0 20px;
    display: flex;
    gap: 0;
    font-family: var(--font-ur);
    font-size: 15px;
    flex-wrap: wrap;
    direction: rtl;
    justify-content: center;
}

.nav-link {
    color: #aaa;
    padding: 9px 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
    font-weight: 400;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--gold-start);
    background: rgba(244,196,48,0.05);
}

.nav-link.active {
    color: var(--text-white);
    background: rgba(244,196,48,0.08);
    border-bottom-color: var(--gold-start);
}

/* ============================
   BREAKING NEWS TICKER
============================ */
.ticker-wrapper {
    background: #0a0a0a;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #1a1a1a;
    overflow: hidden;
    direction: rtl; /* Label on right, track on left */
}

.ticker-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: stretch;
    height: 40px;
}

.ticker-label {
    background: #222;
    color: #fff;
    font-family: var(--font-ur);
    font-weight: bold;
    font-size: 15px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 120px;
    border-bottom: 2px solid var(--gold-start);
}

.blinking-live-pulse {
    width: 10px;
    height: 10px;
    background-color: #ff0000;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px rgba(255,0,0,0.8);
    animation: simple-blink 1.2s infinite;
}

@keyframes simple-blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); box-shadow: 0 0 2px rgba(255,0,0,0.4); }
}

.ticker-track {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    direction: rtl;
}

/* LTR scroll: text enters from left side, exits right */
.ticker-scroll-ltr {
    display: flex;
    white-space: nowrap;
    padding-right: 100vw;
    font-family: var(--font-ur);
    animation: ticker-ltr 25s linear infinite;
    direction: ltr;
}

.ticker-scroll-ltr:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-block;
    padding-left: 20px;
    color: #ddd;
    font-family: var(--font-ur);
    font-size: 14px;
    transition: color var(--transition);
}
.ticker-item:hover {
    color: var(--gold-start);
}

.blink-dot {
    color: var(--gold-start);
    font-size: 9px;
    margin: 0 16px;
    animation: blink-anim 1.2s step-start infinite;
    display: inline-block;
    vertical-align: middle;
}

@keyframes ticker-ltr {
    0%   { transform: translateX(-100vw); }
    100% { transform: translateX(100%); }
}

@keyframes ticker-rtl {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@keyframes blink-anim {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ============================
   MAIN LAYOUT
============================ */
.main-container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2.2fr 1.8fr 1fr;
    gap: 30px;
}

/* Section Titles */
.section-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-dark);
    font-family: var(--font-ur);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--gold-gradient);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold-gradient);
    display: inline-block;
    box-shadow: 0 0 8px rgba(244,196,48,0.5);
}

.mt-2 { margin-top: 30px; }

/* ============================
   BIG NEWS CARD
============================ */
.big-news-card {
    background: var(--bg-card);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.page-card {
    background: var(--bg-card);
    border-radius: 14px;
    padding: 30px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    color: var(--text-gray);
    font-size: 18px;
    line-height: 2.2;
}
.page-card h1, .page-card h2 {
    color: var(--text-dark);
    font-family: var(--font-ur);
}
.big-news-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212,175,55,0.4);
    box-shadow: 0 20px 50px rgba(212,175,55,0.12);
}

.big-news-img-container {
    width: 100%;
    height: 300px;
    background-color: #222;
    background-image: url('../img/logo.png');
    background-size: cover;
    background-position: center;
    position: relative;
}
.big-news-img-container::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.big-news-title {
    font-size: 26px;
    color: var(--text-dark);
    font-family: var(--font-ur);
    font-weight: bold;
    padding: 18px 18px 8px;
    line-height: 1.5;
}

.big-news-excerpt {
    font-size: 15px;
    padding: 0 18px 18px;
    color: var(--text-gray);
    line-height: 2;
    text-align: justify;
}

/* Editorials Section */
.editorials-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.editorial-card {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    direction: rtl;
    padding: 0;
    min-height: 70px;
}
.editorial-card:hover {
    border-color: rgba(244,196,48,0.4);
    box-shadow: 0 4px 20px rgba(244,196,48,0.15);
    transform: translateY(-1px);
}

/* Right side — circular image */
.editorial-card-avatar {
    width: 62px;
    min-width: 62px;
    height: 62px;
    border-radius: 50%;
    background-color: #f3f4f6;
    background-size: cover;
    background-position: center;
    margin: 0 14px;
    flex-shrink: 0;
    border: 2.5px solid var(--gold-start);
    box-shadow: 0 2px 8px rgba(244,196,48,0.2);
}

.editorial-card-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(244,196,48,0.1);
}
.editorial-card-avatar-placeholder::after {
    content: "اد";
    font-family: var(--font-ur);
    font-size: 20px;
    font-weight: bold;
    color: var(--gold-start);
}

/* Center — title + author */
.editorial-card-body {
    flex: 1;
    padding: 10px 0;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    min-width: 0;
}

.editorial-card-title {
    font-family: var(--font-ur);
    font-size: 15px;
    font-weight: bold;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    display: flex;
    align-items: center;
    gap: 6px;
}
.editorial-card-title::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold-start);
    flex-shrink: 0;
}

.editorial-card-divider {
    width: 1px;
    height: 18px;
    background: #ddd;
    flex-shrink: 0;
}

.editorial-card-author {
    font-family: var(--font-ur);
    font-size: 13px;
    color: var(--text-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 2;
    max-width: 120px;
}

/* Left side — date + arrow (inline) */
.editorial-card-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    flex-shrink: 0;
    direction: ltr;
}

.editorial-card-date {
    font-family: var(--font-en);
    font-size: 11px;
    color: var(--text-gray);
    white-space: nowrap;
    display: flex;
    align-items: center;
    line-height: 1;
    margin-top: 2px; /* Visual adjustment for exact middle alignment with icon */
}

.editorial-card-arrow {
    color: var(--gold-start);
    font-size: 13px;
    display: flex;
    align-items: center;
    line-height: 1;
}

/* Guest Section */
.guest-title {
    text-align: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}
.guest-title .dot { display: none; }

.guest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.guest-card {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border-radius: 12px;
    padding: 14px;
    transition: all var(--transition);
}
.guest-card:hover {
    transform: translateY(-4px);
    border-color: rgba(244,196,48,0.25);
    box-shadow: var(--shadow-gold);
}

.guest-avatar {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: #f3f4f6;
    border-radius: 10px;
    margin-bottom: 10px;
    background-size: cover;
    background-position: center;
}

.guest-card p {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

/* ============================
   SMALL NEWS CARDS
============================ */
.read-more-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.small-news-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    padding-bottom: 10px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: all var(--transition);
    display: block;
}
.small-news-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212,175,55,0.3);
    box-shadow: 0 8px 25px rgba(212,175,55,0.1);
}

.small-news-img {
    width: 100%;
    height: 120px;
    background-color: #f3f4f6;
    border-bottom: 2px solid var(--gold-end);
    background-size: cover;
    background-position: center;
}

.small-news-title {
    font-size: 14px;
    padding: 10px;
    color: var(--text-dark);
    font-weight: bold;
    font-family: var(--font-ur);
    line-height: 1.7;
}

/* Social Selection Block */
.social-selection-block {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    background: var(--bg-card);
}
.social-selection-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px 10px 0 0;
}
.social-selection-text {
    padding: 14px;
    font-family: var(--font-ur);
    font-size: 16px;
    color: var(--text-gray);
    line-height: 2;
}
.social-selection-placeholder {
    width: 100%;
    min-height: 200px;
    background: var(--bg-card);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-family: var(--font-en);
    font-size: 13px;
}

/* Ad Banner */
.ad-banner-placeholder {
    width: 100%;
    border-radius: 12px;
    margin-top: 10px;
}

/* ============================
   FOOTER
============================ */
.main-footer {
    background-color: #080808;
    margin-top: 60px;
    border-top: 1px solid #151515;
}

.footer-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 24px 36px;
}

/* 4-column grid — LTR visual order matching reference */
.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr 1fr 1.3fr;
    gap: 40px;
    align-items: start;
    direction: ltr;
}

/* ---- Col 1: Chief Editor ---- */
.fc-editor-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.fc-editor-top {
    display: flex;
    align-items: center;
    gap: 20px;
    direction: rtl;
}

.fc-editor-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
    gap: 0;
}

.fc-editor-label {
    font-family: var(--font-ur);
    font-size: 26px;
    color: #fff;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
}

.fc-editor-name {
    font-family: var(--font-desc);
    font-size: 26px;
    color: var(--gold-start);
    font-weight: bold;
    line-height: 1.6;
}

.fc-editor-desc {
    font-family: var(--font-desc);
    font-size: 13px;
    color: #999;
    line-height: 1.9;
    margin-top: 5px;
    max-width: 220px;
    text-align: right;
}

.fc-editor-photo {
    width: 120px;
    height: 140px;
    border-radius: 12px;
    background-color: #2b2b2b;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    border: 1px solid #3a3a3a;
}

/* ---- Col 2 & 3: Headings ---- */
.fc-col { padding-top: 2px; }

.fc-heading {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 13px;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 3px solid var(--gold-start);
    line-height: 1;
}

/* Quick links */
.fc-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.fc-links a {
    color: #777;
    font-family: var(--font-en);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition);
}

.fc-links a i {
    color: var(--gold-start);
    font-size: 10px;
    transition: transform var(--transition);
}

.fc-links a:hover {
    color: var(--text-white);
    padding-left: 4px;
}

.fc-links a:hover i { transform: translateX(3px); }

/* Contact list */
.fc-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fc-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: var(--font-en);
    font-size: 13px;
    color: #777;
    direction: ltr;
}

.fc-contact i {
    color: var(--gold-start);
    margin-top: 2px;
    flex-shrink: 0;
    width: 14px;
    text-align: center;
}

.fc-contact span { line-height: 1.5; }

/* ---- Col 4: Logo Block ---- */
.fc-logo-col { direction: rtl; }

.fc-logo-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.fc-logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* flex-start in RTL column aligns to the right */
    justify-content: center;
    text-align: right;
    gap: 5px;
    flex: 1;
}

.fc-site-title {
    font-family: var(--font-ur);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.2;
    margin: 0;
}

.fc-site-url {
    font-family: var(--font-en);
    font-size: 14px;
    color: var(--gold-start);
    font-weight: 500;
    direction: ltr;
    margin-bottom: 4px;
}

/* Social icons */
.fc-socials {
    display: flex;
    gap: 11px;
    margin-top: 2px;
    justify-content: flex-end;
}

.fc-soc {
    color: #aaa;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 5px;
    background: rgba(255,255,255,0.07);
    transition: all var(--transition);
}

.fc-soc:hover {
    color: var(--gold-start);
    background: rgba(244,196,48,0.12);
    transform: translateY(-2px);
}

.fc-logo-badge { flex-shrink: 0; }

.ad-banner-placeholder img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Sidebar YouTube Embed */
.sidebar-youtube-video iframe {
    width: 100% !important;
    height: 220px;
    border: none;
    border-radius: 12px;
}

.fc-logo-badge img {
    max-width: 140px;
    height: auto;
    display: block;
    box-shadow: 0 5px 25px rgba(244,196,48,0.08);
}

.fc-description {
    font-family: var(--font-desc);
    font-size: 14px;
    color: #777;
    line-height: 2.2;
    text-align: right;
    direction: rtl;
}

/* ---- Footer Bottom Bar ---- */
.footer-bottom-bar {
    background: #040404;
    border-top: 1px solid #111;
    padding: 14px 0;
}

.footer-bottom-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: ltr;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-bottom-bar p {
    font-family: var(--font-en);
    font-size: 12px;
    color: #444;
}

.footer-bottom-bar strong {
    color: var(--gold-start);
    font-weight: 700;
}

.gold-text { color: var(--gold-start); font-weight: bold; }

.footer-bottom-links { display: flex; gap: 18px; }

.footer-bottom-links a {
    font-family: var(--font-en);
    font-size: 12px;
    color: #555;
    transition: color var(--transition);
}

.footer-bottom-links a:hover { color: var(--gold-start); }

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 1100px) {
    .main-container { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 768px) {
    .header-bar { flex-wrap: wrap; gap: 10px; }
    .hdr-center { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .footer-bottom-links { justify-content: center; }
    .read-more-grid { grid-template-columns: 1fr; }
    .guest-grid { grid-template-columns: 1fr; }
    .fc-logo-col { direction: ltr; }
    .fc-logo-text { align-items: flex-start; }
    .fc-description { text-align: left; }
}

/* Typography Helpers */
.font-en { font-family: var(--font-en); }
