/* --- Design Tokens & Global Styles --- */
:root {
    --color-primary: #0056B3; /* Deep Blue */
    --color-accent:  #F37021; /* Bright Orange */
    --color-neutral: #6B7280; /* Medium Gray */
    --color-success: #2EB67D; /* Green */
    --color-danger:  #D92D20; /* Red */
    --color-bg:      #F7FAFC; /* Light Gray-Blue */
    --color-text:    #1F2937;
    --color-white:   #FFFFFF;
    --font-heading: 'Merriweather', serif;
    --font-body: 'Inter', sans-serif;
    --header-height: 70px;
}

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

html {
    scroll-behavior: smooth;
}
.header-weather{
    width: 120px;
    position: relative;
    display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
}
.header-weather img{
    margin-top: 20px;
}
.header-weather-temp{
    float: right;
    position: absolute;
    top: 30px;
    right: 25px;
    font-size: 18px;
    font-weight: 700;
    color: #0056b3;
}
body {
    font-family: var(--font-body);
    line-height: 1.6;
    background: linear-gradient(1deg, #ffffff, #f6f6f6);
    color: var(--color-text);
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    text-decoration: underline;
    color: var(--color-accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
   
}
.no-margin {
    margin: 0 !important;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

/* Homepage specific container layout */
.container:has(.main-grid) {
    grid-template-columns: 1fr;
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    overflow: visible;
}

main#main-content {
    min-width: 0;
}
.beaking-wrapper {
    background: #1f2937;
}
.beaking-wrapper section {
    max-width: 1350px;
    margin: auto;
}
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-accent);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}


/* --- Header & Navigation --- */
.site-header {
    background: linear-gradient(45deg, #e8faff, #ffffff, #dae5ed);
    border-bottom: 1px solid #E5E7EB;
    padding: 0 1.5rem;
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1380px;
    margin: 0 auto;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    color: var(--color-text);
}
.logo-link:hover { text-decoration: none; }

.logo { height: 60px; }
.site-name { font-family: var(--font-heading); font-size: 1.25rem; display: none; }

.logo-desktop {
    display: none;
}
.logo-mobile {
    display: block;
    background-color: #ffffff !important; 
}

.header-right { display: flex; align-items: center; gap: 1rem; }
.real-time-clock {
    font-family: 'Inter', sans-serif;
    font-size: 1.0rem;
    padding-top: 10px;
    font-weight: 600;
    color: #0056b3;
    margin-right: 1rem;
    white-space: nowrap;
}

.search-form { display: none; }
.search-form input {
    border: 1px solid #D1D5DB;
    padding: 0.5rem;
    border-radius: 4px;
}
.search-form button,
.search-form .search-submit-link {
    background: none; 
    border: none; 
    font-size: 1rem; 
    cursor: pointer; 
    color: var(--color-neutral);
    display: inline-flex;
    align-items: center;
}

.main-nav {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0 1.5rem;
}

.main-nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.main-nav a {
    display: block;
    padding: 0.75rem 0;
    color: var(--color-white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}
.main-nav a:hover {
    color: var(--color-white);
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text);
}


/* --- Breaking News Ticker --- */
.breaking-news-ticker {
    display: flex;
    background-color: var(--color-text);
    color: var(--color-white);
    padding: 0.5rem 1.5rem;
    overflow: hidden;
    white-space: nowrap;
}
.ticker-label {
    font-family: var(--font-heading);
    background-color: var(--color-danger);
    padding: 0.2rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 700;
    margin-right: 1rem;
    flex-shrink: 0;
}
.ticker-content {
    overflow: hidden;
    position: relative;
    width: 100%;
    align-self: center;
}
#ticker-item {
    transition: opacity 0.5s ease-in-out;
}


/* --- Main Grid & Article Cards --- */
.main-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

.card {
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}
.card figure {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.card:hover img {
    transform: scale(1.05);
}

.card-content { padding: 1rem; flex-grow: 1; display: flex; flex-direction: column;}
.card h2 { font-size: 1.15rem; margin-top: 0.5rem; flex-grow: 1; }
.card h2 a { color: var(--color-text); }
.card h2 a:hover { color: var(--color-primary); }

.card-meta {
    font-size: 0.8rem;
    color: var(--color-neutral);
    margin-bottom: 0.75rem;
    margin-top: auto;
}
.card-meta span { font-weight: 600; }
.card-dek { font-size: 0.95rem; display: none; } /* Hidden by default, shown on hero */

.category-badge {
    display: inline-block;
    background-color: var(--badge-color, var(--color-neutral));
    color: var(--color-white);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.sponsored-banner {
    background-color: #FFFBEB;
    color: #B45309;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    border-bottom: 1px solid #FDE68A;
}


/* --- Sidebar --- */
.sidebar { display: grid; gap: 2rem; align-content: start; }
.widget {
    background-color: #effbff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);
}
.widget.weather {
    background-color: #effbff;
    
}
.widget h3, .widget h4 { margin-top: 0; }
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s, transform 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background-color: var(--color-primary); color: var(--color-white); }
.btn-primary:hover { background-color: #004494; }
.btn-accent { background-color: var(--color-accent); color: var(--color-white); }
.btn-accent:hover { background-color: #D9601A; }
.cta-widget .btn { width: 100%; margin-top: 1rem; }
.author-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    float: left;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}


/* --- Weather Widget --- */
#weather-widget{
    display: flex;
}
#weather-widget .weather-loading { color: var(--color-neutral); }
.weather-current { text-align: center; margin-bottom: 1rem; display: flex; align-items: center; justify-content: center; gap: 1rem;}
.weather-icon { 
    width: 40%;
    height: auto; }
#weather-widget h3{
    font-size: 33px;
    color: #0056b3;
    margin: 0px 0px -10px 0px;
}
.weather-current-main { text-align: left; }
.weather-current-temp { font-size: 2.5rem; font-weight: 700; line-height: 1; }
.weather-current-desc { text-transform: capitalize; }


/* --- Footer --- */
.site-footer {
    background-color: var(--color-text);
    color: #D1D5DB;
    padding: 2rem 1.5rem 1rem;
    /* margin-top: 2rem; */
}
.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-neutral);
}
.footer-block h4 { color: var(--color-white); }
.footer-block ul { list-style-type: none; }
.footer-block a { color: #D1D5DB; }
.footer-block a:hover { color: var(--color-white); }
.newsletter-form label { display: block; margin-bottom: 0.5rem; }
.newsletter-form input {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--color-neutral);
    background: #374151;
    color: var(--color-white);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}
.social-icons { display: flex; gap: 1rem; margin-top: 1rem; font-size: 1.25rem; }
.footer-bottom { text-align: center; font-size: 0.8rem; margin-top: 2rem; }

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.modal-overlay:not([hidden]) {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s;
    max-height: 85vh;
    overflow-y: auto;
}
.modal-overlay:not([hidden]) .modal-content {
    transform: translateY(0);
}
.modal-close-btn {
    position: absolute;
    top: 1rem; right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-neutral);
    cursor: pointer;
}
.modal-form { margin-top: 1.5rem; }
.modal-form input { width: 100%; padding: 0.75rem; border: 1px solid #D1D5DB; border-radius: 6px; margin-bottom: 1rem; }
.modal-form .btn { width: 100%; }
.modal-content small { display: block; text-align: center; color: var(--color-neutral); margin-top: 1rem; }

.modal-policy-text {
    margin-top: 1.5rem;
    text-align: left;
}
.modal-policy-text h3 {
    font-size: 1.1rem;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--color-text);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.modal-policy-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-neutral);
    margin-bottom: 1rem;
}
.modal-policy-text a {
    font-weight: 600;
}
.modal-policy-text h3:first-child {
    margin-top: 0;
}
.form-success-message {
    padding: 1rem;
    background-color: #F0FFF4; /* Light green background */
    border: 1px solid var(--color-success);
    color: #276749; /* Dark green text */
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
}

.static-page-container {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 8px;
}

.static-page-header {
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
}

.static-page-header h1 {
    font-size: 2.5rem;
}

.static-page-header .subtitle {
    font-size: 1.2rem;
    color: var(--color-neutral);
    margin-top: 0.5rem;
}

.static-page-content {
    max-width: 750px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

.contact-info-block {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}
.contact-info-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.contact-info-block h3 {
    margin-bottom: 0.75rem;
}
.contact-info-block .contact-email a {
    font-weight: 600;
    font-size: 1.2rem;
}


.search-header { text-align: center; margin-bottom: 2rem; }
.search-header h1 { font-size: 2.5rem; }
.search-results-list { max-width: 800px; margin: 0 auto; }

.search-result-item {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
}
.search-result-title a { color: var(--color-text); }
.search-result-meta { font-size: 0.85rem; color: var(--color-neutral); margin: 0.5rem 0 1rem; display: flex; align-items: center; gap: 1rem; }
.search-result-excerpt { color: #4B5563; margin-bottom: 1rem; }
a.read-more { font-weight: 600; }

.no-results {
    text-align: center;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 8px;
}

  .header-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}
/*
.header-weather {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2D3748;
    white-space: nowrap;
}

.header-weather-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.header-weather-temp {
    min-width: 3.5rem;
} */

.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}


/* --- Responsive Breakpoints --- */

/* Mobile Navigation */
@media (max-width: 1023px) {
    .main-nav {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        padding: 0;
    }
    .main-nav.is-open {
        max-height: 500px; /* Large enough for content */
        padding:0rem 0;
    }
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .main-nav ul li {
         width: 100%; text-align: center;
         border-bottom: 1px solid #a1caf5;
        text-align: left;
    }
    .main-nav a { padding: 1rem; }
}
@media (min-width: 1024px) {
    .mobile-menu-toggle { display: none; }
}

@media (max-width: 768px) {
    .logo { height: 40px; }
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: flex;
    }
    
    .real-time-clock,
    .header-weather {
        display: flex;
        font-size: 0.8rem;
    }
    
    .header-info {
        gap: 0.5rem;
    }
    
    .header-weather {
        width: 80px;
    }
    
    .header-weather img {
        width: 50px;
        height: 50px;
        margin: 33px 0 0px -10px;
    }
    
    .header-weather-temp {
        top: 38px;
        right: 10px;
        font-size: 14px;
    }
    
    .real-time-clock {
        font-size: 0.8rem;
        padding-top: 0px;
        margin: -30px -0px 0px 0px;
    }
    .ad-label {
        font-size: 0.4rem;
         
        padding: 0.05rem 0.5rem;
     
    }
}


/* Tablet Layout */
@media (min-width: 600px) {
    .site-name { display: block; }
    .footer-container { grid-template-columns: repeat(2, 1fr); }
    .main-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .card-hero {
        grid-column: 1 / -1;
    }

    .logo-desktop {
        display: block;
    }
    .logo-mobile {
        display: none;
    }
}


/* Small Desktop Layout */
@media (min-width: 1024px) {
    .container {
        /* grid-template-columns: 2fr 1fr; */
    }
    
    /* Homepage specific container layout */
    .container:has(.main-grid) {
        grid-template-columns: 2fr 1fr;
    }

    .main-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .card-hero {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 1.5rem;
        align-items: center;
        
        position: relative; 
        color: var(--color-white);
    }
    .card-hero figure {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }
    .card-hero figure::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
        z-index: 2;
        transition: background 0.3s ease;
    }
    .card-hero:hover figure::before {
        background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%);
    }

    .card-hero .card-content {
        position: relative;
        z-index: 3;
        background: none;
        padding: 2rem;
        grid-column: 1 / -1;
        align-self: end;
    }
    .card-hero figure, .card-hero img { height: 100%; }

    .card-hero h2 { 
        font-size: 1.75rem; 
    }
    .card-hero h2 a, .card-hero .card-dek a {
        color: var(--color-white);
        text-decoration: none;
    }
    .card-hero h2 a:hover, .card-hero .card-dek a:hover {
        text-decoration: underline;
    }

    .card-hero .card-dek { display: block; opacity: 0.9; }
    .card-hero .card-meta { color: rgba(255, 255, 255, 0.8); }
    
    .real-time-clock { display: block; }
    .search-form { display: flex; }
    .footer-container { grid-template-columns: repeat(3, 1fr); }
}


/* Large Desktop Layout */
@media (min-width: 1280px) {
    .main-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .card-hero {
        grid-column: 1 / span 2;
        grid-row: 1 / span 2;
    }
    .card-hero h2 { font-size: 2rem; }
}

 