/*
Theme Name: Daily Update News
Theme URI: https://github.com/google-deepmind/antigravity
Author: Antigravity
Author URI: https://github.com/google-deepmind/antigravity
Description: A modern, beautiful, news and magazine theme designed for Daily Update News / Daily Update News.
Version: 1.0.0
Text Domain: daily-update-news
*/

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

body {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333333;
    background-color: #f7f9fa;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Top Bar */
.top-bar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eaeaea;
    padding: 8px 0;
    font-size: 13px;
    color: #495057;
    font-weight: 500;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-right a:hover {
    color: #17a2b8;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    color: #495057;
}

.social-links a:hover {
    color: #17a2b8;
}

/* Brand Header */
.site-header {
    background-color: #ffffff;
    padding: 25px 0;
    text-align: center;
}

.site-logo {
    display: inline-block;
}

.site-logo h1 {
    font-size: 32px;
    font-weight: 800;
    color: #111111;
    letter-spacing: -0.5px;
}

.site-logo h1 span {
    color: #17a2b8;
}

.site-tagline {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
    font-weight: 500;
}

/* Main Navigation */
.main-nav-bar {
    background-color: #17a2b8;
}

.main-nav-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-menu {
    display: flex;
    list-style: none;
}

.main-menu li a {
    display: block;
    padding: 14px 18px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.main-menu li.current-menu-item a,
.main-menu li a:hover {
    background-color: #138496;
}

.search-icon-btn {
    color: #ffffff;
    padding: 14px 18px;
    font-size: 16px;
    cursor: pointer;
}

.search-icon-btn:hover {
    background-color: #138496;
}

/* Sub Navigation (Active Category Tags) */
.sub-nav-bar {
    background-color: #ffffff;
    padding: 15px 0;
    border-bottom: 1px solid #eaeaea;
}

.sub-nav-menu {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    list-style: none;
}

.sub-nav-menu li a {
    display: block;
    padding: 6px 14px;
    background-color: #f1f3f5;
    color: #495057;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
}

.sub-nav-menu li.active a,
.sub-nav-menu li a:hover {
    background-color: #17a2b8;
    color: #ffffff;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 15px 0 5px 0;
    font-size: 13px;
    color: #868e96;
}

.breadcrumbs a {
    color: #495057;
}

.breadcrumbs a:hover {
    color: #17a2b8;
}

/* Page Title Section */
.page-title-section {
    padding: 10px 0 20px 0;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #111111;
}

/* Main Layout Grid */
.layout-wrapper {
    padding-bottom: 50px;
}

.layout-wrapper .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 992px) {
    .layout-wrapper .container {
        grid-template-columns: 2.2fr 0.9fr;
    }
}

/* Featured Rows Layout */
.news-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* First Row: 3 Featured Grid Cards */
.featured-row-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .featured-row-1 {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.featured-card {
    position: relative;
    height: 320px;
    border-radius: 6px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.85));
    z-index: 1;
}

.featured-card-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    color: #ffffff;
}

.card-category-label {
    display: inline-block;
    padding: 3px 8px;
    background-color: #17a2b8;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
    margin-bottom: 10px;
}

.featured-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}

.featured-card-meta {
    font-size: 11px;
    color: #cccccc;
    font-weight: 500;
}

/* Subsequent Rows: 2 columns list card styling */
.featured-row-subsequent {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

@media (min-width: 768px) {
    .featured-row-subsequent {
        grid-template-columns: 1fr 1fr;
    }
}

.standard-card {
    background-color: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.standard-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.standard-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.standard-card-content .card-category-label {
    background-color: transparent;
    color: #dc3545;
    padding: 0;
    margin-bottom: 8px;
    font-size: 12px;
}

.standard-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: #111111;
    margin-bottom: 10px;
}

.standard-card-meta {
    font-size: 12px;
    color: #868e96;
    margin-top: auto;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 30px 0 10px 0;
}

.pagination-btn {
    padding: 8px 20px;
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:hover {
    background-color: #17a2b8;
    color: #ffffff;
    border-color: #17a2b8;
}

/* Sidebar Styling */
.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: #111111;
    margin-bottom: 20px;
    border-bottom: 2px solid #17a2b8;
    padding-bottom: 8px;
}

.sidebar-widget {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 30px;
}

.latest-articles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.latest-article-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 15px;
    align-items: center;
}

.latest-article-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 1px solid #eaeaea;
}

.latest-article-content {
    display: flex;
    flex-direction: column;
}

.latest-article-cat {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    color: #17a2b8;
    margin-bottom: 4px;
}

.latest-article-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    color: #212529;
}

.latest-article-title:hover {
    color: #17a2b8;
}

.sidebar-load-more {
    display: block;
    margin-top: 15px;
    font-size: 13px;
    font-weight: 700;
    color: #17a2b8;
}

.sidebar-load-more:hover {
    color: #138496;
}

/* Footer Styling */
.site-footer {
    background-color: #222a35;
    color: #adb5bd;
    padding: 50px 0 20px 0;
    font-size: 14px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

@media (min-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-logo h2 {
    font-size: 24px;
    color: #ffffff;
    font-weight: 800;
}

.footer-logo h2 span {
    color: #17a2b8;
}

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

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-contact-title {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-email {
    font-size: 16px;
    font-weight: 700;
    color: #17a2b8;
    margin-bottom: 20px;
}

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

.footer-social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.footer-social-links a:hover {
    background-color: #17a2b8;
}

.footer-bottom {
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    font-size: 12px;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.footer-links li a:hover {
    color: #ffffff;
}

/* Single Post View & Static Page Templates */
.content-area {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    padding: 30px;
}

.post-header {
    margin-bottom: 25px;
}

.post-header-cat {
    margin-bottom: 10px;
}

.post-title-main {
    font-size: 32px;
    font-weight: 800;
    color: #111111;
    line-height: 1.3;
    margin-bottom: 15px;
}

.post-meta-main {
    font-size: 13px;
    color: #868e96;
    display: flex;
    gap: 15px;
}

.post-featured-image {
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 30px;
}

.entry-content {
    font-size: 16px;
    color: #212529;
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 35px 0 15px 0;
    color: #111111;
}

.entry-content ul, .entry-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.entry-content li {
    margin-bottom: 8px;
}
