* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #fff;
    color: #222;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
    outline: 3px solid #ffcc00;
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    top: -50px;
    left: 15px;
    z-index: 100;
    padding: 10px 15px;
    background: #fff;
    color: #222;
    font-weight: bold;
    text-decoration: none;
}

.skip-link:focus {
    top: 15px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* HEADER */

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    background-color: #8b0000;
    color: #fff;
}

.logo-nav {
    display: flex;
    align-items: center;
}

.logo {
    display: block;
    height: 30px;
    border-radius: 50%;
}

.brand-name {
    margin-left: 10px;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-left: 30px;
}

.main-nav a {
    color: #f5f5f5;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
    color: #ffcc00;
}

.main-nav a.red-dot {
    color: orangered;
}

.date,
.weather {
    margin: 0;
    font-weight: bold;
    white-space: nowrap;
}

.auth-actions,
.user-area {
    display: flex;
    align-items: center;
    gap: 18px;
}

.btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.btn-dark {
    border: 1px solid #fff;
    background-color: #8b0000;
    color: #fff;
}

.btn-dark:hover {
    background-color: #600000;
}

.btn-light {
    border: 1px solid #fff;
    background-color: #fff;
    color: #8b0000;
}

.btn-light:hover {
    background-color: #600000;
    color: #fff;
}

/* PROFILE MENU */

.profile-menu {
    position: relative;
}

.profile-menu summary {
    padding: 5px;
    border-radius: 50%;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    list-style: none;
}

.profile-menu summary::-webkit-details-marker {
    display: none;
}

.profile-menu summary:hover {
    background: #600000;
}

.profile-dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    z-index: 1000;
    min-width: 200px;
    padding: 10px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.profile-email {
    margin: 0 0 8px;
    padding: 0 8px 8px;
    border-bottom: 1px solid #ddd;
    color: #555;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.profile-dropdown a,
.profile-dropdown button {
    display: block;
    width: 100%;
    padding: 10px 8px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #222;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.profile-dropdown a:hover,
.profile-dropdown button:hover {
    background: #f1f1f1;
}

.profile-dropdown form {
    margin: 0;
}

/* SEARCH */

.menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #fff;
    border-radius: 5px;
    background: transparent;
    color: #fff;
    font-size: 17px;
    cursor: pointer;
}

.menu-icon:hover {
    background: #fff;
    color: #8b0000;
}

.search-bar {
    display: none;
    padding: 12px 20px;
    background: #8b0000;
    text-align: center;
}

.search-bar.show {
    display: block;
}

.search-bar input {
    width: min(60%, 500px);
    padding: 9px 15px;
    border: 1px solid #fff;
    border-radius: 25px;
    font-size: 16px;
}

.search-bar button {
    padding: 9px 15px;
    margin-left: 10px;
    border: 1px solid #fff;
    border-radius: 25px;
    background: #000;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

/* HERO */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;
    background-image: url("../images/politic.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    text-align: center;
}

.hero .overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 25, 50, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    margin: 0 0 20px;
    color: #fff;
    font-size: 64px;
    font-weight: bold;
}

.sub-branding {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}

/* TOP STORIES */

.top-stories {
    display: flex;
    gap: 20px;
    padding: 40px 15%;
    background-color: #fff;
}

.top-story {
    flex: 1;
    overflow: hidden;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.top-story:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.16);
}

.news-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.top-story img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.tag {
    display: inline-block;
    margin: 10px 10px 0;
    color: #005bb5;
    font-size: 13px;
    font-weight: bold;
}

.top-story h2,
.more-story h3 {
    margin: 8px 10px 15px;
    color: #333;
    font-size: 18px;
    line-height: 1.4;
}

.news-link:hover h2,
.news-link:hover h3 {
    color: #8b0000;
}

/* MORE NEWS */

.more-news {
    padding: 25px 15%;
    background-color: #f9f9f9;
}

.more-news > h2 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 4px solid #8b0000;
    color: #222;
    font-size: 22px;
}

.news-rows {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.more-story {
    width: calc(50% - 10px);
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.more-story:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.more-story .tag {
    color: #555;
}

/* FOOTER */

.main-footer {
    margin-top: 50px;
    padding: 20px;
    background: #8b0000;
    color: #fff;
    text-align: center;
}

.main-footer p {
    margin: 0;
}

/* TABLET */

@media (max-width: 1100px) {
    .top-header {
        justify-content: center;
        flex-wrap: wrap;
    }

    .top-stories {
        flex-wrap: wrap;
    }

    .top-story {
        min-width: 250px;
    }
}

/* MOBILE */

@media (max-width: 600px) {
    .top-header,
    .top-stories,
    .more-news {
        padding-right: 15px;
        padding-left: 15px;
    }

    .date,
    .weather,
    .user-area {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .main-nav {
        justify-content: center;
        margin-left: 0;
    }

    .hero h1 {
        font-size: 42px;
    }

    .top-stories {
        flex-direction: column;
    }

    .more-story {
        width: 100%;
    }

    .search-bar input {
        width: 65%;
    }
}