/* assets/css/style.css - Complete modern homepage design with enhanced styling */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f4f7f9;
    color: #1a1d29;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    line-height: 1.2;
    color: #1a1d29;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease, background-color 0.2s ease;
}

a:hover {
    color: #1e3c72;
}

/* Skip to Content Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #1e3c72;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}

/* Header Top Ad */
.header-top-ad {
    background: #f8f9fa;
    padding: 8px 0;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.header-top-ad img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
}

/* Top Information Bar */
.top-info-bar {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 8px 0;
    font-size: 13px;
    position: relative;
    overflow: hidden;
}

.top-info-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.info-left .date-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.info-left .separator {
    opacity: 0.6;
    margin: 0 4px;
}

.info-center {
    flex: 1;
    margin: 0 20px;
    overflow: hidden;
}

.breaking-news-ticker {
    display: flex;
    align-items: center;
    height: 24px;
}

.breaking-label {
    background: #dc3545;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    margin-right: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.breaking-label i {
    font-size: 10px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.ticker-content {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.ticker-item {
    display: inline-block;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    margin-right: 40px;
    animation: scroll-ticker 30s linear infinite;
    transition: color 0.3s ease;
}

.ticker-item:hover {
    color: #fff;
}

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

.info-right .quick-links {
    display: flex;
    gap: 12px;
}

.quick-links a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.quick-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Main Header */
.main-header {
    background: #ffffff;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
    position: relative;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Logo Section */
.logo-section {
    flex-shrink: 0;
}

.logo-link {
    text-decoration: none;
    display: block;
}

.site-logo {
    max-height: 60px;
    width: auto;
}

.logo-text .site-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1e3c72;
    margin: 0;
    line-height: 1;
    letter-spacing: -0.02em;
}

.logo-text .site-tagline {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 4px 0 0 0;
    font-weight: 500;
}

/* Navigation */
.main-nav {
    flex: 1;
}

.main-menu {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 25px;
    margin: 0;
}

.main-menu li a {
    color: #1a1d29;
    font-size: 16px;
    font-weight: 600;
    position: relative;
    padding: 5px 0;
}

.main-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1e3c72;
    transition: width 0.3s ease;
}

.main-menu li a:hover::after,
.main-menu li.current-menu-item a::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.action-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 18px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.action-btn:hover {
    background-color: #f1f3f5;
    color: #1a1d29;
}

/* Search Overlay */
#searchOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#searchOverlay.show {
    display: flex;
    opacity: 1;
}

.search-input-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    font-size: 1.5rem;
    border: none;
    border-bottom: 2px solid #ccc;
    background: transparent;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: #1e3c72;
}

.search-input-container .search-btn {
    position: absolute;
    right: 10px;
    color: #1a1d29;
    font-size: 1.5rem;
}

.close-search-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    color: #1a1d29;
    cursor: pointer;
}

.close-search-btn:hover {
    transform: rotate(90deg);
}

/* MAIN CONTENT LAYOUT */
main {
    padding-top: 40px;
}

.main-content-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding-top: 40px;
}

/* =================================
   New Home Grid Layout
==================================== */
.home-grid {
    display: grid;
    grid-template-columns: 70% 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.main-column {
    /* Styles for the left 70% column */
}

.sidebar-column {
    /* Styles for the right 30% column */
}

/* =================================
   New Featured Section Design
==================================== */
.featured-section-new {
    background: #fff;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 40px;
}

.featured-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    min-height: 500px;
}

/* Main Featured Post (Left Side) */
.main-featured-new {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

.main-featured-new a {
    display: block;
    height: 100%;
    position: relative;
}

.main-featured-new img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-featured-new:hover img {
    transform: scale(1.05);
}

.main-featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    color: #fff;
    border-radius: 0 0 8px 8px;
}

.main-featured-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.main-featured-content p {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Sub Featured Grid (Right Side) */
.sub-featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 1fr);
    gap: 15px;
}

.sub-featured-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sub-featured-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.sub-featured-item a {
    display: block;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.sub-featured-item img {
    width: 100%;
    height: 100%;
    min-height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sub-featured-item:hover img {
    transform: scale(1.1);
}

.sub-featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.sub-featured-item h3 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Category Tags */
.featured-category-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 12px;
    margin-bottom: 8px;
    backdrop-filter: blur(10px);
}

.latest-posts-widget {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.latest-posts-widget .widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.latest-posts-list {
    list-style: none;
}

.latest-posts-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.latest-posts-list li:last-child {
    border-bottom: none;
}

.latest-posts-list a {
    font-size: 15px;
}

/* Category Sections */
.category-section {
    margin-bottom: 40px;
}

.section-title a {
    font-size: 24px;
    margin-bottom: 20px;
    border-left: 4px solid #1e3c72;
    padding-left: 10px;
    display: inline-block;
}

/* Featured Posts Section (Original) */
.featured-posts {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.main-featured {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 400px;
}

.main-featured .featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-featured .featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    color: white;
}

.main-featured .category-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.main-featured .featured-title a {
    color: white;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    display: block;
    margin-bottom: 10px;
}

.main-featured .featured-title a:hover {
    text-decoration: underline;
}

.main-featured .post-meta {
    font-size: 14px;
    opacity: 0.8;
}

.small-featured-grid {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 20px;
}

.small-featured-item {
    display: flex;
    gap: 15px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.small-featured-img {
    width: 120px;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.small-featured-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.small-featured-item .category-tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.small-featured-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.small-featured-date {
    font-size: 12px;
    color: #6c757d;
    opacity: 0.8;
}

/* Latest News Section */
.latest-news-section .section-title {
    font-size: 24px;
    margin-bottom: 20px;
    border-left: 4px solid #1e3c72;
    padding-left: 10px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.news-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

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

.news-card-content .category-tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.news-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.news-card .post-meta {
    font-size: 13px;
    color: #6c757d;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #e9ecef;
    color: #495057;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.pagination a:hover {
    background: #e2e6ea;
}

.pagination .active {
    background: #1e3c72;
    color: white;
}

.pagination .prev-page, .pagination .next-page {
    width: auto;
    padding: 0 15px;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #1e3c72;
}

.trending-list, .categories-list {
    list-style: none;
}

.trending-list li a {
    display: block;
    padding: 10px 0;
    font-size: 16px;
    border-bottom: 1px dashed #e9ecef;
    transition: padding-left 0.2s ease;
}

.trending-list li:last-child a {
    border-bottom: none;
}

.trending-list li a:hover {
    padding-left: 8px;
    color: #1e3c72;
}

.categories-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px dashed #e9ecef;
}

.categories-list li:last-child a {
    border-bottom: none;
}

.categories-list li a:hover {
    color: #1e3c72;
}

.categories-list .post-count {
    font-size: 13px;
    color: #6c757d;
}

/* =================================
   4-Column Category Grid Styles
==================================== */
.category-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.category-grid-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.category-grid-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    position: relative;
}

.category-grid-title a {
    color: #c0392b; /* Red color for title */
    text-decoration: none;
    display: flex;
    align-items: center;
}

.category-grid-title a:hover {
    color: #a03024; /* Darker red on hover */
}

.category-grid-title a::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #c0392b;
    margin-right: 10px;
    flex-shrink: 0;
}

.category-grid-posts {
    list-style: none;
    padding-left: 0;
}

.category-grid-posts li {
    margin-bottom: 12px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 12px;
}

.category-grid-posts li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.category-grid-posts .featured-post {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-grid-posts .featured-post img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    transition: opacity 0.3s ease;
}

.category-grid-posts .featured-post:hover img {
    opacity: 0.85;
}

.category-grid-posts .featured-post span {
    font-weight: 600;
    color: #333;
}

.category-grid-posts a {
    color: #333;
    font-size: 15px;
}

.category-grid-posts a:hover {
    color: #1e3c72;
}

/* =================================
   Footer Styles
==================================== */
.site-footer {
    background-color: #1a1d29;
    color: #adb5bd;
    padding: 60px 0 0;
    margin-top: 40px;
    font-size: 15px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid #343a40;
}

.footer-column .site-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
}

.footer-description {
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-column .social-links {
    display: flex;
    gap: 10px;
}

.footer-column .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #343a40;
    color: #ffffff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-column .social-links a:hover {
    background-color: #1e3c72; /* Primary color */
    transform: translateY(-3px);
}

.footer-heading {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #1e3c72; /* Primary color */
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

/* Footer styles (basic for now) */
footer {
    background: #1a1d29;
    color: #f4f7f9;
    padding: 40px 0;
    text-align: center;
    margin-top: 40px;
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    .main-content-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: static;
    }
    
    /* Featured Section Responsive */
    .featured-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .main-featured-new {
        min-height: 350px;
    }
    
    .main-featured-new img {
        min-height: 350px;
    }
    
    .sub-featured-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
    
    .main-featured-content h2 {
        font-size: 24px;
    }
    
    .category-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .featured-posts {
        grid-template-columns: 1fr;
    }
    .main-featured {
        height: 300px;
    }
    .small-featured-grid {
        grid-template-rows: repeat(auto-fill, minmax(120px, 1fr));
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .small-featured-item {
        flex-direction: row;
    }
    .small-featured-img {
        height: 120px;
        width: 160px;
    }
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    .main-header .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }
    .main-nav {
        display: none;
    }
    .header-actions {
        order: 1;
        margin-left: auto;
    }
    .logo-section {
        order: 2;
        width: 100%;
        text-align: center;
    }
    .top-info-bar .container {
        flex-direction: column;
        gap: 10px;
    }
    .info-left, .info-right {
        text-align: center;
        width: 100%;
    }
    .info-center {
        width: 100%;
        margin: 0;
    }
    
    /* Featured Section Mobile */
    .sub-featured-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }
    
    .main-featured-content {
        padding: 20px;
    }
    
    .main-featured-content h2 {
        font-size: 20px;
    }
    
    .main-featured-content p {
        font-size: 14px;
    }
    
    .category-grid-container {
        grid-template-columns: 1fr;
    }
    
    .home-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .main-featured .featured-content {
        padding: 20px;
    }
    .main-featured .featured-title a {
        font-size: 20px;
    }
    .small-featured-item {
        flex-direction: column;
    }
    .small-featured-img {
        width: 100%;
        height: 150px;
    }
    
    /* Featured Section Mobile */
    .featured-container {
        gap: 15px;
    }
    
    .sub-featured-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 1fr);
        gap: 10px;
    }
    
    .sub-featured-item {
        min-height: 120px;
    }
    
    .sub-featured-item img {
        min-height: 120px;
    }
    
    .main-featured-new {
        min-height: 280px;
    }
    
    .main-featured-new img {
        min-height: 280px;
    }
}