/* =========================================================
   THE OCEANS POST
   CATEGORY NEWS PAGE
   RESPONSIVE / FAST / EDITORIAL
========================================================= */


/* =========================================================
   GLOBAL RESET
========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    background: white;
    color: black; /* was #ffffff (invisible on white) */
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

a {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   HEADLINE TICKER
========================================================= */

.headline-ticker {
    width: 100%;
    height: 42px;
    display: flex;
    align-items: center;
    background: antiquewhite;
    overflow: hidden;
    border-bottom: 1px solid #292929;
}

.headline-label {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    background: #e00000;
    color: whitesmoke;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.headline-track {
    flex: 1;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.headline-moving {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: headlineScroll 28s linear infinite;
}

.headline-moving a {
    color: black;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    margin: 0 18px;
}

.headline-moving a:hover {
    color: red;
}

.headline-dot {
    color: orangered;
    font-size: 18px;
}

@keyframes headlineScroll {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}

.headline-track:hover .headline-moving {
    animation-play-state: paused;
}


/* =========================================================
   MAIN
========================================================= */

main {
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: auto;
    padding: 35px 20px 70px;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: black;
    font-size: 12px;
}

.breadcrumb a {
    color: black;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: darkred;
}

.breadcrumb span:last-child {
    color: #0b1115;
}


/* =========================================================
   CATEGORY HEADING
========================================================= */

.category-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 25px;
}

.heading-line {
    width: 4px;
    min-height: 52px;
    background: #e50914;
    border-radius: 2px;
    flex-shrink: 0;
}

.category-heading h1 {
    font-family: Georgia, "Times New Roman", serif;
    color: black;
    font-size: 38px;
    line-height: 1.1;
    margin-bottom: 7px;
}

.category-heading p {
    color: black;
    font-size: 14px;
}


/* =========================================================
   RESULT INFO
========================================================= */

.result-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-bottom: 12px;
    margin-bottom: 0;
    color: black;
    font-size: 11px;
    border-bottom: 1px solid black;
}


/* =========================================================
   NEWS LIST
========================================================= */

.news-list {
    width: 100%;
}


/* =========================================================
   NEWS CARD
========================================================= */

.news-card {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 24px;
    padding: 22px 0;
    border-bottom: 1px solid #ddd; /* was #2e343b */
}

.news-card:last-child {
    border-bottom: none;
}


/* =========================================================
   IMAGE
========================================================= */

.news-image-link {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    overflow: hidden;
    background: whitesmoke;
    text-decoration: none;
    border-radius: 6px;
}

.news-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-image-link:hover .news-image {
    transform: scale(1.035);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb; /* was #111827 */
    color: #6b7280;      /* was #64748b */
    font-size: 12px;
}


/* =========================================================
   CONTENT
========================================================= */

.news-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}


/* =========================================================
   CATEGORY
========================================================= */

.news-category {
    display: inline-block;
    margin-bottom: 7px;
    color: #ff4b54;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* =========================================================
   TITLE
========================================================= */

.news-content h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    line-height: 1.25;
    margin-bottom: 10px;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-content h2 a {
    color: black;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-content h2 a:hover {
    color: darkred;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.news-description {
    color: #0b1115;
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* =========================================================
   META
========================================================= */

.news-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    color: black;
    font-size: 11px;
    margin-top: auto;
}

.news-meta strong {
    color: black;
    font-weight: 600;
}


/* =========================================================
   READ MORE
========================================================= */

.read-more {
    display: inline-block;
    margin-top: 12px;
    color: orangered;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.read-more:hover {
    color: #137a4b;
    transform: translateX(3px);
}


/* =========================================================
   NO NEWS
========================================================= */

.no-news {
    padding: 70px 20px;
    margin-top: 20px;
    text-align: center;
    background: #f5f5f5;      /* was #111827 */
    border: 1px solid #ddd;   /* was #334155 */
    border-radius: 8px;
}

.no-news h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    margin-bottom: 8px;
    color: black;
}

.no-news p {
    color: black;
    font-size: 13px;
    margin-bottom: 20px;
}

.back-home {
    display: inline-block;
    padding: 9px 15px;
    background: #e50914;
    color: white; /* was #0b1115 (poor contrast on red) */
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   PAGINATION
========================================================= */

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

.page-numbers {
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-number,
.pagination-prev,
.pagination-next {
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid #0b1115;
    border-radius: 4px;
    background: whitesmoke;
    color: black;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.page-number:hover,
.pagination-prev:hover,
.pagination-next:hover {
    background: #e50914;
    border-color: #e50914;
    color: white; /* was orangered (unreadable on red) */
}

.page-number.active {
    background: #e50914;
    border-color: #e50914;
    color: white; /* was black */
    cursor: default;
}

.pagination-disabled {
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid #ddd;  /* was #334155 */
    border-radius: 4px;
    color: #999;             /* was #475569 */
    font-size: 11px;
    font-weight: 600;
    cursor: not-allowed;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .navbar {
        padding: 0 16px;
    }

    .menu-toggle {
        display: block;
    }

    nav#nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 18px 12px;
        background: #111111;
        border-top: 1px solid #292929;
        border-bottom: 1px solid #292929;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    }

    nav#nav-menu.active {
        display: flex;
    }

    nav#nav-menu a {
        display: block;
        padding: 11px 4px;
        border-bottom: 1px solid #292929;
        font-size: 14px;
    }

    nav#nav-menu a:last-child {
        border-bottom: none;
    }

    nav#nav-menu a::after {
        display: none;
    }

    .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .news-card {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 18px;
    }

    .news-content h2 {
        font-size: 21px;
    }

    .news-description {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    /* HEADER */

    .navbar {
        min-height: 60px;
        position: relative;
    }

    .logo img {
        width: 125px;
    }

    .menu-toggle {
        font-size: 27px;
    }

    nav#nav-menu {
        top: 60px;
    }


    /* TICKER */

    .headline-ticker {
        height: 39px;
    }

    .headline-label {
        padding: 0 10px;
        font-size: 9px;
    }

    .headline-moving a {
        font-size: 11px;
        margin: 0 12px;
    }


    /* MAIN */

    .container {
        padding: 25px 14px 45px;
    }


    /* BREADCRUMB */

    .breadcrumb {
        margin-bottom: 17px;
        font-size: 10px;
    }


    /* CATEGORY HEADING */

    .category-heading {
        gap: 9px;
        margin-bottom: 20px;
    }

    .heading-line {
        width: 3px;
        min-height: 42px;
    }

    .category-heading h1 {
        font-size: 27px;
        line-height: 1.1;
    }

    .category-heading p {
        font-size: 11px;
        line-height: 1.5;
    }


    /* RESULT INFO */

    .result-info {
        padding-bottom: 9px;
        font-size: 9px;
    }


    /* MOBILE NEWS LIST (BBC-STYLE) */

    .news-card {
        width: 100%;
        display: grid;
        grid-template-columns: 115px minmax(0, 1fr);
        gap: 14px;
        padding: 16px 0;
        background: transparent;
        border: 0;
        border-bottom: 1px solid #ddd; /* was #475569 */
        border-radius: 0;
    }

    .news-card:last-child {
        border-bottom: none;
    }


    /* IMAGE */

    .news-image-link {
        width: 115px;
        height: 76px;
        aspect-ratio: auto;
        border-radius: 0;
    }

    .news-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


    /* CONTENT */

    .news-content {
        min-width: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }


    /* CATEGORY */

    .news-category {
        order: 2;
        margin: 6px 0 0;
        color: #e50914;          /* was #94a3b8 */
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.4px;
    }


    /* TITLE */

    .news-content h2 {
        order: 1;
        width: 100%;
        margin: 0;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 18px;
        line-height: 1.25;
        font-weight: 700;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .news-content h2 a {
        color: black; /* was #f8fafc */
        text-decoration: none;
    }

    .news-content h2 a:hover,
    .news-content h2 a:active {
        color: darkred;
    }


    /* DESCRIPTION: hidden on mobile to keep rows fast/compact */

    .news-description {
        display: none;
    }


    /* META */

    .news-meta {
        order: 3;
        display: flex;
        gap: 5px;
        margin-top: 3px;
        color: #555; /* was #64748b */
        font-size: 10px;
        line-height: 1.3;
    }

    .news-meta span:first-child {
        display: none;
    }

    .news-meta span:nth-child(2) {
        display: none;
    }


    /* READ MORE: hidden because whole story is already clickable */

    .read-more {
        display: none;
    }


    /* PAGINATION */

    .pagination {
        gap: 6px;
        margin-top: 25px;
    }

    .page-numbers {
        gap: 3px;
    }

    .page-number,
    .pagination-prev,
    .pagination-next,
    .pagination-disabled {
        min-width: 32px;
        height: 32px;
        padding: 0 7px;
        font-size: 9px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .logo img {
        width: 115px;
    }

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .category-heading h1 {
        font-size: 24px;
    }

    .category-heading p {
        font-size: 10px;
    }

    .news-card {
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 12px;
        padding: 14px 0;
    }

    .news-image-link {
        width: 100px;
        height: 68px;
    }

    .news-content h2 {
        font-size: 16px;
        line-height: 1.25;
    }

    .news-category {
        font-size: 9px; /* was 8px */
        margin-top: 5px;
    }

    .news-meta {
        font-size: 9px; /* was 8px */
    }

    .pagination {
        flex-wrap: wrap;
    }

}


/* =========================================================
   VERY SMALL PHONE
========================================================= */

@media (max-width: 320px) {

    .news-card {
        grid-template-columns: 90px minmax(0, 1fr);
        gap: 10px;
    }

    .news-image-link {
        width: 90px;
        height: 62px;
    }

    .news-content h2 {
        font-size: 15px;
    }

    .news-category {
        font-size: 9px; /* was 7px */
    }

    .news-meta {
        font-size: 9px; /* was 7px */
    }

}