/* style.css - Global News Day Design System */
:root {
  --orange: #f86f0d;
  --bright-blue: #0784cc;
  --deep-navy: #174c7a;
  --white: #ffffff;
  --off-white: #f5f7fa;
  --gray-light: #e2e8f0;
  --gray-mid: #64748b;
  --text-dark: #0f172a;
  --text-soft: #334155;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.1);
  --shadow-lg: 0 16px 32px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px; 
  --space-unit: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--off-white);
  color: var(--text-dark);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header & Sticky Nav */
.site-header {
  color: var(--deep-navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white;
  box-shadow: var(--shadow-md);
}

.top-stripe {
    background: var(--deep-navy);
    color: white;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.3px;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px;
  max-width: 1400px;
  margin: 0 auto;
  background: white;
}

.category-nav {
    background: white;
}

.social-links{
    display:flex;
    align-items:center;
    gap: 5px;
    flex-wrap:wrap;
}

.social-links a{
    width: 35px;
    height: 35px;
    border-radius:10px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    text-decoration:none;
    font-size:18px;
    transition:0.3s ease;
}

.social-links a:hover{
    transform:translateY(-3px) scale(1.08);
}

/* X (Twitter) */
.social-links .twitter{
    background:#000000;
}

/* Instagram */
.social-links .instagram{
    background:linear-gradient(
        45deg,
        #f09433,
        #e6683c,
        #dc2743,
        #cc2366,
        #bc1888
    );
}

/* Facebook */
.social-links .facebook{
    background:#1877f2;
}

/* Telegram */
.social-links .telegram{
    background:#229ED9;
}

/* LinkedIn */
.social-links .linkedin{
    background:#0A66C2;
}

/* WhatsApp */
.social-links .whatsapp{
    background:#25D366;
}

/* TikTok */
.social-links .tiktok{
    background:#000000;
}

/* Hero Logo */
.logo-area img{
    width: 50%;
    height: auto;
}

/* Search Box */
.search-box{
    display:flex;
    align-items:center;
    gap:10px;
    background:#ffffff;
    border:2px solid #e2e8f0;
    border-radius: 50px;
    padding:0 14px;
    height:48px;
    min-width:280px;
    transition:0.3s ease;
}

.search-box:hover{
    border-color:var(--bright-blue);
}

.search-box:focus-within{
    border-color:var(--bright-blue);
    box-shadow:0 0 0 4px rgba(7,132,204,0.12);
}

.search-box i{
    color:var(--gray-mid);
    font-size:15px;
}

.search-box input{
    border:none;
    outline:none;
    width:100%;
    height:100%;
    background:transparent;
    font-size:0.95rem;
    color:var(--text-dark);
    font-family:'Poppins', sans-serif;
}

.search-box input::placeholder{
    color:#94a3b8;
}

/* Mobile menu & search slide styles */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--deep-navy);
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    transition: 0.2s;
}
.mobile-menu-toggle:hover {
    color: var(--orange);
}

/* Mobile drawer navigation (overlay) */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: var(--white);
    z-index: 1100;
    box-shadow: var(--shadow-lg);
    transition: left 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    padding: 20px 0;
    overflow-y: auto;
    border-right: 1px solid var(--gray-light);
}
.mobile-drawer.open {
    left: 0;
}
.drawer-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--gray-light);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.drawer-header img {
    max-width: 140px;
    height: auto;
}
.close-drawer {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--gray-mid);
}
.drawer-social {
    padding: 20px;
    border-top: 1px solid var(--gray-light);
    margin-top: 20px;
}
.drawer-social .social-links {
    justify-content: flex-start;
}
.mobile-drawer .category-mobile-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 20px;
}
.mobile-drawer .cat-item-mobile {
    padding: 12px 16px;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: 0.2s;
    display: block;
}
.mobile-drawer .cat-item-mobile.active {
    color: var(--orange);
    background: rgba(248, 111, 13, 0.08);
}
.mobile-drawer .cat-item-mobile:hover {
    background: var(--gray-light);
    color: var(--orange);
}

/* Search slide panel */
.search-slide-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    z-index: 1150;
    padding: 16px 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02), 0 1px 3px rgba(0, 0, 0, 0.05);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    border-bottom: 1px solid var(--gray-light);
}
.search-slide-panel.open {
    transform: translateY(0);
}
.search-slide-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}
.search-slide-inner input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--gray-light);
    border-radius: 40px;
    font-size: 1rem;
    outline: none;
    font-family: 'Poppins', sans-serif;
}
.search-slide-inner input:focus {
    border-color: var(--bright-blue);
}
.search-slide-inner button {
    background: var(--orange);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 600;
}
.close-search {
    background: transparent;
    border: none;
    font-size: 1.6rem;
    color: var(--gray-mid);
    cursor: pointer;
}

/* Overlay background when drawer open */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1050;
    display: none;
}
.drawer-overlay.active {
    display: block;
}

/* Category horizontal scroll nav */
.category-nav {
  border-top: 1px solid #64748b;
  border-bottom:1px solid #64748b;
  padding: 0px 0;
  display: block;
}

.category-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px;
  white-space: nowrap;
  scrollbar-width: thin;
  scrollbar-color: var(--orange) transparent;
}
.category-scroll::-webkit-scrollbar {
  height: 4px;
}
.category-scroll::-webkit-scrollbar-thumb {
  background: var(--orange);
  border-radius: 4px;
}

.cat-item {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  scroll-snap-align: start;
  transition: all 0.2s;
  white-space: nowrap;
  min-height: 44px;
  text-decoration: none;
}
.cat-item.active {
  color: var(--orange);
}
.cat-item:hover {
  color: var(--orange);
}

/* ===== MAIN LAYOUT (NEWSPAPER STYLE) ===== */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px;
    background: #ffffff;
}

/* ---- GRID SYSTEM (CORE LAYOUT) ---- */
.magazine-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr 340px;
    gap: 10px;
    margin-bottom: 56px;
    align-items: start;
}

/* LEFT COLUMN:*/
.left-small-stack {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.small-card {
    background: white;
    overflow: hidden;
    border-radius: 5px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-light);
    height: 100%;
}

.small-card:hover {
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}
.small-card .card-img {
    height: 160px;  /* smaller than default, balanced */
    position: relative;
    overflow: hidden;
    background: #e2e8f0;
}
.small-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.small-card:hover .card-img img {
    transform: scale(1.03);
}

.small-card .category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--orange);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 30px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
}
.small-card .card-content {
    padding: 18px 18px 16px;
    flex: 1;
}
.small-card .news-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
    color: var(--text-dark);
}
.small-card .news-excerpt {
    font-size: 0.85rem;
    color: var(--text-soft);
    margin-bottom: 14px;
    line-height: 1.45;
}
.small-card .meta-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.7rem;
    color: var(--gray-mid);
    border-top: 1px solid var(--gray-light);
    padding-top: 12px;
    margin-top: auto;
}

/* CENTER */
.hero-card {
    background: white;
    border-radius: 5px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-light);
}
.hero-card:hover {
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.12);
}
.hero-card .card-img {
    height: 280px;
    position: relative;
    overflow: hidden;
    background: #cbd5e1;
}
.hero-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.hero-card:hover .card-img img {
    transform: scale(1.04);
}
.hero-card .category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--orange);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 40px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 2;
}
.hero-card .card-content {
    padding: 24px 26px 26px;
}
.hero-card .news-title {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
    color: var(--text-dark);
}
.hero-card .news-excerpt {
    font-size: 1rem;
    color: var(--text-soft);
    line-height: 1.5;
    margin-bottom: 22px;
}
.hero-card .meta-info {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.8rem;
    color: var(--gray-mid);
    border-top: 1px solid var(--gray-light);
    padding-top: 18px;
}

/* RIGHT SIDEBAR: Latest News (sticky, scrollable) */
.latest-sidebar {
    background: white;
    border-radius: 5px;
    padding: 0 0 12px 0;
    position: sticky;
    top: 110px;
    height: fit-content;
    max-height: 580px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02), 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-light);
    overflow: hidden;
}
.sidebar-header {
    padding: 15px 15px 14px;
    border-bottom: 3px solid var(--orange);
    margin-bottom: 6px;
    background: white;
}
.sidebar-header h3 {
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0;
    color: var(--text-dark);
    letter-spacing: -0.2px;
}
.sidebar-header h3 i {
    color: var(--orange);
    margin-right: 8px;
}
.latest-news-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 16px 16px 16px;
    scrollbar-width: thin;
}
.latest-item {
    display: flex;
    gap: 14px;
    padding: 16px 10px;
    border-bottom: 1px solid var(--gray-light);
    transition: background 0.2s, border-radius 0.2s;
    cursor: pointer;
    border-radius: 12px;
}
.latest-item:hover {
    background: var(--off-white);
    border-radius: 14px;
}
.latest-thumb {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    background: #d4dce8;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.latest-content {
    flex: 1;
}
.latest-title {
    font-weight: 650;
    font-size: 0.9rem;
    line-height: 1.38;
    margin-bottom: 8px;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.latest-meta {
    font-size: 0.7rem;
    color: var(--gray-mid);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.latest-meta i {
    font-size: 0.7rem;
    margin-right: 2px;
}
.badge-sm {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--orange-dark);
}


/* Responsive: tablet & mobile adapt gracefully */
@media (max-width: 1100px) {
    .magazine-grid {
        grid-template-columns: 1fr 1.2fr 300px;
        gap: 24px;
    }
    .hero-card .news-title {
        font-size: 1.5rem;
    }
}

/* Responsive overrides */
@media (max-width: 900px) {
    .top-stripe {
        display: none !important;
    }
    .header-social-links {
        display: none !important;
    }
    .magazine-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .left-small-stack {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .latest-sidebar {
        position: relative;
        top: 0;
        max-height: 500px;
    }
    .hero-card .card-img {
        height: 240px;
    }
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .search-box {
        display: none !important;
    }
    .mobile-search-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        font-size: 1.4rem;
        color: var(--deep-navy);
        cursor: pointer;
        padding: 8px;
    }
    .header-container {
        padding: 10px 16px;
        position: relative;
    }
    .logo-area {
        flex: 1;
        text-align: center;
    }
    .logo-area img {
        max-width: 160px;
        width: auto;
    }
    .header-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .header-actions .mobile-search-icon {
        display: flex;
    }
    /* hide original search box on mobile */
    .search-box {
        display: none;
    }
}

@media (min-width: 992px) {
    
    .mobile-search-icon {
        display: none !important;
    }
    .mobile-menu-toggle {
        display: none !important;
    }
    .header-social-links {
        display: block !important;
    }
    .top-stripe {
        display: block !important;
    }
    .search-box {
        display: flex !important;
    }
    .mobile-drawer, .drawer-overlay, .search-slide-panel {
        display: none;
    }
}

 @media (max-width: 580px) {
    .left-small-stack {
        grid-template-columns: 1fr;
    }
    .main-container {
        padding: 24px 16px;
    }
    .hero-card .news-title {
        font-size: 1.4rem;
    }
}