@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --brand-red: #E3000F;      /* Matches Logo N */
    --brand-orange: #F37021;   /* Matches Logo Text */
    --dark-grey: #2d3748;
    --light-grey: #f4f6f9;
    --border-color: #e2e8f0;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background: var(--light-grey); color: var(--dark-grey); line-height: 1.6; }
a { text-decoration: none; color: var(--dark-grey); transition: 0.2s; }
a:hover { color: var(--brand-red); }

/* --- Header Layout --- */
.top-bar { background: var(--brand-red); color: var(--white); height: 40px; display: flex; justify-content: space-between; align-items: center; padding: 0 5%; font-size: 12px; }
.top-bar a { color: var(--white); margin-left: 10px; }
.middle-bar { background: var(--white); padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; }
.logo-area img { max-height: 60px; }
.nav-area { display: flex; flex-direction: column; align-items: flex-end; }
.main-menu { list-style: none; display: flex; gap: 20px; font-weight: 600; }
.main-menu li { position: relative; }
.main-menu > li > a:hover { color: var(--brand-red); }
.sub-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--white); border: 1px solid var(--border-color); box-shadow: 0 4px 6px rgba(0,0,0,0.1); z-index: 100; min-width: 150px; }
.main-menu li:hover .sub-menu { display: block; }
.sub-menu li { list-style: none; border-bottom: 1px solid var(--light-grey); }
.sub-menu li a { display: block; padding: 10px; font-size: 14px; }

/* Color the menu icons red */
.main-menu i { color: var(--brand-red); margin-right: 4px; }

/* Ensure Hamburger is strictly hidden on desktop */
.menu-toggle { display: none !important; font-size: 24px; cursor: pointer; color: var(--dark-grey); margin-left: auto; }

/* Only show Hamburger on mobile screens */
@media (max-width: 768px) {
    .menu-toggle { display: block !important; }
}

.search-box { margin-top: 10px; display: flex; }
.search-box input { padding: 5px 10px; border: 1px solid var(--border-color); border-radius: 4px 0 0 4px; outline: none; }
.search-box button { padding: 5px 15px; background: var(--dark-grey); color: var(--white); border: none; border-radius: 0 4px 4px 0; cursor: pointer; }
.bottom-bar { background: var(--brand-orange); height: 5px; width: 100%; }

/* --- Mobile Menu --- */
.menu-toggle { display: none; font-size: 24px; cursor: pointer; color: var(--dark-grey); }
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .main-menu { display: none; flex-direction: column; width: 100%; position: absolute; top: 100px; left: 0; background: var(--white); padding: 20px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); z-index: 999; }
    .main-menu.active { display: flex; }
    .nav-area { width: 100%; align-items: center; }
    .search-box { margin-top: 15px; width: 100%; justify-content: center; }
}

/* --- Layout & Grid --- */
.wrapper { display: flex; gap: 30px; padding: 30px 5%; max-width: 1400px; margin: 0 auto; }
.content-main { flex: 7.5; min-width: 0; }
.content-sidebar { flex: 2.5; min-width: 0; }

.breadcrumb { font-size: 13px; color: #718096; margin-bottom: 20px; }
.breadcrumb a { color: var(--brand-red); font-weight: 600; }

/* Grid specific for Category Page */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.post-card { background: var(--white); border: 1px solid var(--border-color); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 6px 12px rgba(0,0,0,0.05); }
.post-card img { width: 100%; height: 160px; object-fit: cover; }
.post-card .info { padding: 15px; display: flex; flex-direction: column; flex-grow: 1; }
.post-card h3 { font-size: 15px; line-height: 1.4; margin-bottom: 10px; flex-grow: 1; }
.post-card .date { font-size: 12px; color: #718096; }

/* --- Post Page --- */
.single-post { background: var(--white); padding: 30px; border-radius: 8px; border: 1px solid var(--border-color); }
.single-post h1 { font-size: 28px; margin-bottom: 15px; color: var(--brand-red); }
.single-post img.featured { width: 100%; max-height: 400px; object-fit: cover; border-radius: 8px; margin-bottom: 20px; }
.single-post .description { font-size: 16px; line-height: 1.8; margin-bottom: 30px; }
.single-post .tags { display: flex; gap: 10px; flex-wrap: wrap; }
.single-post .hashtag { background: #edf2f7; color: var(--brand-orange); padding: 5px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; }

/* --- Sidebar --- */
.sidebar-widget { background: var(--white); padding: 20px; border: 1px solid var(--border-color); border-radius: 6px; margin-bottom: 20px; }
.sidebar-widget h3 { border-bottom: 2px solid var(--brand-red); padding-bottom: 10px; margin-bottom: 15px; font-size: 16px; }
.sidebar-list { list-style: none; }
.sidebar-list li { margin-bottom: 10px; border-bottom: 1px solid var(--light-grey); padding-bottom: 10px; }
.sidebar-list li:last-child { border: none; padding-bottom: 0; margin-bottom: 0; }
.sidebar-post { display: flex; gap: 10px; align-items: center; }
.sidebar-post img { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; }
.sidebar-post .title { font-size: 13px; font-weight: 600; line-height: 1.3; }

/* --- Footer --- */
.footer-top { height: 5px; background: var(--brand-red); width: 100%; }
.footer-middle { background: var(--light-grey); border-top: 1px solid var(--border-color); padding: 10px 5%; display: flex; gap: 10px; align-items: flex-start; }
.footer-socials { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.footer-socials a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--white); color: var(--dark-grey); border-radius: 50%; font-size: 18px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); transition: transform 0.3s, background 0.3s, color 0.3s; }
.footer-socials a:hover { background: var(--brand-red); color: var(--white); transform: translateY(-3px); }
.footer-col { flex: 1; display: flex; flex-direction: column; }
.footer-col h3 { font-size: 16px; margin-bottom: 15px; color: var(--brand-orange); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-bottom { background: var(--dark-grey); color: var(--white); text-align: center; padding: 15px; font-size: 13px; }

/* Pagination Tools */
.pagination-tool { display: flex; justify-content: space-between; align-items: center; margin: 20px 0; font-size: 14px; background: var(--white); padding: 10px; border: 1px solid var(--border-color); border-radius: 4px; }
.btn { background: var(--dark-grey); color: var(--white); padding: 6px 15px; border-radius: 4px; border: none; cursor: pointer; font-weight: 600; }
.btn:hover { background: var(--brand-red); color: var(--white); }

/* --- Homepage Swiper Slider --- */
.hero-slider-wrapper { max-width: 1400px; margin: 20px auto; padding: 0 5%; }
.swiper { width: 100%; height: 450px; border-radius: 8px; overflow: hidden; }
.swiper-slide { position: relative; display: flex; align-items: flex-end; }
.swiper-slide img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; z-index: 1; }
.slide-overlay { position: absolute; bottom: 0; left: 0; width: 100%; height: 60%; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); z-index: 2; }
.slide-content { position: relative; z-index: 3; padding: 40px; color: var(--white); width: 100%; max-width: 800px; }
.slide-tag { display: inline-block; background: var(--brand-red); color: var(--white); padding: 4px 10px; font-size: 12px; font-weight: 600; border-radius: 3px; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.slide-title { font-size: 32px; font-weight: 700; line-height: 1.2; margin-bottom: 10px; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }
.slide-title a { color: var(--white); }
.slide-title a:hover { color: var(--brand-orange); }
.slide-meta { font-size: 13px; color: #cbd5e0; }
.swiper-pagination-bullet-active { background: var(--brand-orange) !important; }

/* --- Homepage Category Sections --- */
.home-section { margin-bottom: 40px; }
.section-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--border-color); margin-bottom: 20px; padding-bottom: 10px; }
.section-header h2 { font-size: 22px; color: var(--dark-grey); position: relative; }
.section-header h2::after { content: ''; position: absolute; bottom: -12px; left: 0; width: 60px; height: 4px; background: var(--brand-red); }
.section-header .view-all { font-size: 13px; font-weight: 600; color: var(--brand-red); text-transform: uppercase; }

/* Top Stories Layout (1 Large, 2 Small) */
.top-stories-grid { display: grid; grid-template-columns: 0.8fr 1fr; gap: 20px; }
.ts-main { position: relative; height: 220px; border-radius: 6px; overflow: hidden; }
.ts-main img { width: 100%; height: 100%; object-fit: cover; }
.ts-main .info { position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); color: var(--white); }
.ts-main .info h3 { font-size: 12px; margin-bottom: 5px; }
.ts-main .info a { color: var(--white); }
.ts-side { display: flex; flex-direction: column; gap: 20px; }
.ts-card { display: flex; gap: 15px; background: var(--white); padding: 15px; border-radius: 6px; border: 1px solid var(--border-color); height: 100px; }
.ts-card img { width: 100px; height: 100%; object-fit: cover; border-radius: 4px; }
.ts-card .info { display: flex; flex-direction: column; justify-content: space-between; }
.ts-card .info h4 { font-size: 12px; line-height: 1.4; }

/* Standard 3-Column Grid */
.standard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Mobile Adjustments */
@media (max-width: 992px) {
    .top-stories-grid { grid-template-columns: 1fr; }
    .standard-grid { grid-template-columns: repeat(2, 1fr); }
    .swiper { height: 350px; }
    .slide-title { font-size: 24px; }
}
@media (max-width: 768px) {
    .wrapper { flex-direction: column; }
    .standard-grid { grid-template-columns: 1fr; }
    .slide-content { padding: 20px; }
}

/* Small Scrolling Carousel */
.carousel-section { padding: 15px 5%; background: var(--light-grey); border-bottom: 3px solid var(--border-color); margin-bottom: 20px; }
.carousel-slider { width: 90%; height: auto !important; overflow: hidden; }

/* Fix Swiper Slide Height Stretching Bug */
.swiper-slide.carousel-slide { height: auto; } 

/* Card Layout */
.carousel-card { display: block; border-radius: 6px; overflow: hidden; border: 1px solid var(--border-color); transition: border-color 0.2s; }

/* Bulletproof 16:9 Image Container */
.card-img-wrap { position: relative; width: 100%; padding-top: 56.25%; /* 16:9 Ratio */ overflow: hidden; display: block; }
.card-img-wrap img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }

/* Overlays */
.cat-overlay { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,0.8); color: #ffffff; padding: 4px 6px; font-size: 9px; font-weight: 600; text-transform: uppercase; border-radius: 3px; z-index: 2; letter-spacing: 0.5px; }

.title-overlay { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); color: #ffffff; padding: 20px 8px 8px 8px; font-size: 9px; font-weight: 400; z-index: 2; line-height: 1.3; }