@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;500;700&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}
body {
    background-color: #25252a;
    font-family: 'Ubuntu', sans-serif;
    width: 100%;
    min-height: 100vh;
    color: #fff;
    overflow-y: overlay;
}

:root {
    --menu-count: 5;
}

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

.header-main {
    width: 100%;
    padding: 0 20px;
    height: 60px;
    background-color: #5e86d6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 100;
}

.header-main .logo {
    height: 40px;
    width: fit-content;
    cursor: pointer;
}

.header-main .logo a {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
    gap: 10px;
}

.header-main .logo img {
    height: 100%;
    width: auto;
}

.header-main .logo .logo-text {
    color: white;
    font-size: 1.2em;
    margin: 0;
    white-space: nowrap;
}

.header-main .logo .logo-text span {
    font-size: 1.3em;
    color: #b9ebde;
    font-weight: bold;
}

.header-main nav {
    display: flex;
    align-items: center;
}

.header-main ul {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.header-main ul li {
    margin-left: 20px;
}

.header-main ul li a {
    color: white;
    text-decoration: none;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.header-main ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hide mobile menu button on desktop */
.mobile-menu-btn {
    display: none;
}

/* Material Symbols styling */
.material-symbols-outlined {
    font-variation-settings:
    'FILL' 0,
    'wght' 200,
    'GRAD' 0,
    'opsz' 40;
    vertical-align: middle;
    margin-right: 9px;
    font-size: 40px;
}

/* Responsive Design */
@media only screen and (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 60px;
        height: 60px;
        position: fixed;
        top: 0;
        right: 0;
        z-index: 200;
        background-color: rgba(0, 0, 0, 0.1);
        cursor: pointer;
    }

    .mobile-menu-btn .material-symbols-outlined {
        color: white;
        font-size: 2em;
    }

    /* Hide navigation on mobile */
    .header-main nav {
        display: none;
        position: fixed;
        top: 60px;
        right: 0;
        width: 250px;
        background-color: #5e86d6;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        height: calc(100vh - 60px);
        z-index: 150;
    }

    /* Show navigation when mobile menu is active */
    .header-main.mobile-active nav {
        display: block;
    }

    .header-main nav ul {
        flex-direction: column;
        width: 100%;
        padding: 20px 0;
    }

    .header-main nav ul li {
        margin: 0;
        width: 100%;
    }

    .header-main nav ul li a {
        width: 100%;
        padding: 15px 20px;
        border-radius: 0;
        justify-content: flex-start;
    }

    .header-main nav ul li a:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

    /* Adjust header padding on mobile */
    .header-main {
        padding: 0 10px;
    }

    /* Adjust logo on mobile */
    .header-main .logo .logo-text {
        font-size: 1em;
    }

    .header-main .logo a {
        gap: 8px;
    }

    /* Responsive Footer */
     .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .citation {
        font-size: 0.8em;
    }

    /* Breaking News Responsive Styles */
    .topHeadlines {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 80px 20px 30px;
    }

    .topHeadlines .left {
        padding: 10px 15px;
    }

    .topHeadlines .left .text .description {
        font-size: 12px;
    }

    .topHeadlines .right {
        padding: 10px 15px;
    }

    .topHeadlines .right .news .img {
        height: 120px;
    }

    /* Temperature Table Responsive */
    .temperature-table-container {
        margin: 15px 0;
        padding: 10px;
    }

    .temperature-table-img {
        border-width: 2px;
        padding: 8px;
    }
}

.iframe-container {
    width: 100%;
    height: 100vh;
    border: none;
    overflow: hidden;
}

/* Footer Styles */
.footer-main {
    background-color: #1a1a1f;
    color: #fff;
    padding: 30px 20px 20px;
    border-top: 2px solid #5e86d6;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

.sources-section h3 {
    color: #5e86d6;
    font-size: 1.2em;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

.apa-citations {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.citation {
    font-size: 0.9em;
    line-height: 1.5;
    color: #ccc;
    margin: 0;
    padding-left: 15px;
    text-indent: -15px;
}

.citation a {
    color: #5e86d6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.citation a:hover {
    color: #b9ebde;
    text-decoration: underline;
}

/* Breaking News Page Styles */
.topHeadlines {
    padding: 100px 50px 50px;
    width: 100%;
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 30px;
}

.topHeadlines .left {
    padding: 10px 20px;
}

.topHeadlines .left .title {
    font-size: 20px;
    padding: 15px;
    text-align: center;
}

.topHeadlines .left .img {
    background-color: #25252a;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.topHeadlines .left .img img {
    border: 4px solid #5e86d6;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.topHeadlines .left .text {
    text-align: justify;
}

.topHeadlines .left .text .description {
    font-size: 15px;
    margin-top: 10px;
    color: #aaa;
    letter-spacing: 1px;
    line-height: 1.5;
}

/* Right section styles for breaking news */
.topHeadlines .right {
    padding: 10px 20px;
}

.topHeadlines .right .title {
    font-size: 18px;
    padding: 15px;
    text-align: center;
    border-bottom: 2px solid #5e86d6;
    margin-bottom: 20px;
}

.topHeadlines .right .topNews {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.topHeadlines .right .news {
    background-color: #2f2f35;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.topHeadlines .right .news:hover {
    transform: translateY(-2px);
}

.topHeadlines .right .news .img {
    width: 100%;
    height: 150px;
    background-color: #3a3a40;
    overflow: hidden;
}

.topHeadlines .right .news .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topHeadlines .right .news .text {
    padding: 15px;
}

.topHeadlines .right .news .text .title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    padding: 0;
    text-align: left;
    border: none;
}

.topHeadlines .right .news .text .title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.topHeadlines .right .news .text .title a:hover {
    color: #5e86d6;
}

.topHeadlines .right .news .text .description {
    font-size: 12px;
    color: #aaa;
    line-height: 1.4;
    margin-bottom: 10px;
}

.topHeadlines .right .news .text .source {
    font-size: 10px;
    color: #666;
}

/* Temperature Table Image Styling */
.temperature-table-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background-color: #2f2f35;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.temperature-table-img {
    max-width: 100%;
    height: auto;
    border: 3px solid #5e86d6;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(94, 134, 214, 0.3);
    background-color: #fff;
    padding: 10px;
}
