/*
 * TABLE OF CONTENTS
 * 1. Root Variables, Reset & Base Typography
 * 2. Layout Skeleton
 * 3. Buttons & Shared UI Elements
 * 4. Header, Navigation & Search Form
 * 5. Homepage
 * 6. Pages & WordPress Block Overrides
 * 7. Gulf Journal Editions & Archives
 * 8. News, Stories & Tag Selector
 * 9. Media & Submissions
 * 10. Videos Section
 * 11. Posters & Annual Reports
 * 12. Search Results Grid
 * 13. Footer
 * Responsive and page-specific overrides remain later to preserve cascade order.
 */

/* ========================================== ROOT VARIABLES, RESET & BASE TYPOGRAPHY ========================================== */
:root {
    --cyan: rgba(30, 120, 160, 1);
    --text-dark: #111;
    --bg-light: #d7e6f6;
    --border-color: #333;
    --navy: #002a54;
}

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

html {
    font-size: 150%;
}

.smaller {
    font-size: 100%;
}

/* Responsive adjustment for small mobile screens */
@media (max-width: 600px) {
    html {
        font-size: 120%;
    }
}

body {
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
    font-weight: 300;
}

/* ========================================== LAYOUT SKELETON ========================================== */

#wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#wrapper > footer {
    margin-top: 3rem;
}

h3 {
    font-size: 1em;
}

:not(.wp-block-media-text__content) > h2.wp-block-heading {
    margin: 3rem 0 1rem 0;
}

.wp-block-media-text__content h2.wp-block-heading {
    margin: -0.5rem 0 1rem 0;
}

/* Responsive adjustment for small mobile screens */
@media (max-width: 600px) {
    .wp-block-media-text__content h2.wp-block-heading {
        margin: 0.5rem 0 1rem 0;
    }
}

.wp-block-media-text.is-vertically-aligned-top {
    margin-top: 4rem;
}

a:link,
a:visited,
a:hover,
a:active {
    color: rgba(30, 120, 160, 1);
    font-weight: 600;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

q {
    font-style: italic;
    color: var(--cyan);
    display: block;
}

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

.entry-content img,
.entry-content figure img,
.entry-content iframe,
.entry-content video,
.entry-content object,
.entry-content embed {
    display: block;
    max-width: 100%;
    height: auto;
}

summary {
    color: var(--cyan);
    margin-bottom: 1rem;
}

hr.wp-block-separator {
    border: 0;
    border-top: 1px solid var(--text-dark);
    margin: 4rem 0 2rem 0;
}

/* ========================================== BUTTONS & SHARED UI ELEMENTS ========================================== */

.wp-block-button a,
a.btn-read {
    display: inline-block;
    border: 1px solid var(--navy);
    padding: 12px 30px;
    margin: 0 20px;
    border-radius: 6px;
    text-transform: uppercase;
    font-size: 13px;
    font-style: italic;
    text-align: center;
    text-decoration: none;
    background-color: var(--navy);
    color: #fff;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.wp-block-button a:hover,
a.btn-read:hover {
    background-color: var(--cyan);
    border-color: var(--cyan);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: none;
    text-decoration: none;
}

.page-id-5223 .wp-block-buttons {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.page-id-5223 .wp-block-buttons::before,
.page-id-5223 .wp-block-buttons::after {
    content: "";
    flex: 1 1 0;
    border-bottom: 1px solid var(--border-color);
}

.page-id-5223 .wp-block-button {
    flex: 0 0 auto;
}

.page-id-5223 .wp-block-button a {
    width: auto;
    margin: 0 20px;
}

.page-id-5223 .entry-content .wp-block-buttons {
    margin-bottom: 30px;
}

/* ========================================== HEADER, NAVIGATION & SEARCH FORM ========================================== */
.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #fff;
    position: relative;
    z-index: 100;
}

.logo img {
    height: 60px;
    width: auto;
    filter: none;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 6px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--navy);
    border-radius: 2px;
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links > li {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: -20px; /* Expands hover area */
}

.nav-links > li > a {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    color: var(--navy);
}

.nav-links > li > a:hover {
    color: var(--cyan);
    text-decoration: none;
}

/* Dropdown Menu */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--cyan);
    color: #fff;
    min-width: 180px;
    list-style: none;
    padding: 15px 0;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content li a {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    color: #fff;
    transition: color 0.2s;
}

.dropdown-content li a:hover {
    color: var(--navy);
    text-decoration: none;
}

/* Search Form */
.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-form button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
}

.search-form button svg {
    width: 24px;
    height: 24px;
    fill: var(--navy);
    transition: fill 0.3s;
}

.search-form button:hover svg {
    fill: var(--cyan);
}

.search-form input[type="text"] {
    padding: 8px;
    border: 1px solid var(--navy);
    width: 120px;
    font-size: 14px;
    background-color: var(--bg-light);
}

.search-form input[type="text"]:focus {
    outline: none;
    border-color: var(--cyan);
}

/* ========================================== LAYOUT SKELETON ========================================== */
#main {
    max-width: 1200px;
    margin: 0 auto;
}

/* Search Results Page Layout Override */
body.search #main,
body.search-results #main,
body.search.search-results #main,
.search-results #main {
    width: 100%;
    max-width: none;
    padding: 0 2rem;
    box-sizing: border-box;
}

#main-blu {
    padding: 0 4em 4em 4em;
}

/* ========================================== HOMEPAGE ========================================== */

/* Full-width background wrappers */
.home-park {
    background: #d1d5db url("../img/home-park-map-bg.jpg") no-repeat center center;
    background-size: cover;
    color: #fff;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    padding: 4rem 40px;
}

.home-bg-posters {
    background: #d1d5db url("../img/home-posters-bg.jpg") no-repeat center center;
    background-size: cover;
    width: 100%;
}

/* Constrained inner containers */
.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px;
}

/* Typography Overrides */
.home-intro-title {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 2.5rem;
    max-width: 1000px;
}

.home-statement {
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1.4;
    margin: 0;
}

.home-statement strong {
    font-weight: 700;
}

.posters-text {
    font-size: 1.3rem;
    font-weight: 700;
    max-width: 800px;
    margin-bottom: 2.5rem;
    line-height: 1.5;
    color: #fff;
    text-shadow: 0 0px 24px rgba(0, 0, 0, 1);
}

/* 3-Column Grid (Teasers & Stories) */
.home-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: -1rem;
}

.home-card img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1.25rem;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0 !important;
    border: 1px solid #fff;
}

.home-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.home-card p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* 2-Column Split (Park & Get Involved) */
.home-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.home-split-text h2 {
    font-size: 1.6rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.home-split-text h2 strong {
    font-weight: 700;
}

.home-split-text p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.home-split-image img {
    width: 100%;
    height: auto;
    display: block;
}

.wheke img {
    margin-top: -12rem;
    animation: wheke-bounce 4s ease-in-out infinite;
}

body.page-template-page-home .wheke {
    position: relative;
}

body.page-template-page-home .wheke::before {
    content: "";
    position: absolute;
    z-index: 0;
    right: 0;
    bottom: 0;
    left: 0;
    aspect-ratio: 948 / 525;
    background: url("../img/home-wheke-bg.jpg") no-repeat center / cover;
    pointer-events: none;
}

body.page-template-page-home .wheke img {
    position: relative;
    z-index: 1;
}

@keyframes wheke-bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Divider block reusing report-header logic for button flanked by lines */
.home-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4rem 0 0 0;
}

.home-divider::before,
.home-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.home-divider .btn-read {
    margin: 0 20px;
}

.home-grid-3 + .home-divider {
    margin-bottom: 4rem;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
    .home-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .home-split-image {
        order: -1; /* Brings image to top on mobile */
    }
}

@media (max-width: 600px) {
    .home-grid-3 {
        grid-template-columns: 1fr;
    }

    .home-intro-title,
    .home-statement {
        font-size: 1rem;
        font-weight: 700;
    }

    .home-park {
        padding: 1rem;
    }

    .home-container {
        padding: 0 0 1rem 0;
    }

    body.page-template-page-home .home-bg-posters {
        width: 100vw;
        max-width: none;
        margin-left: calc(50% - 50vw);
    }

    body.page-template-page-home .home-bg-posters .home-container {
        padding: 2rem 24px;
    }

    body.page-template-page-home .wheke img {
        margin-top: -1rem;
    }

    .home-split-text p {
        font-weight: 700;
        font-size: 0.8rem;
    }
}

/* ========================================== PAGES & WORDPRESS BLOCK OVERRIDES ========================================== */

.hero {
    background-color: var(--bg-light);
    padding: 360px 0 0 0;
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 400;
    color: #fff;
    line-height: 1.2;
    max-width: 1200px;
    margin: 240px auto 0 auto;
}

header img {
    display: block;
}

body.search.search-results .search-results-hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

body.search.search-results #main {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 20px;
    padding-left: 20px;
}

body.page-id-3293 .entry-content > figure.wp-block-embed {
    width: calc(100% - 80px);
    max-width: none;
    margin: 1em 40px;
}

body.page-id-3293 .entry-content > figure.wp-block-embed .wp-block-embed__wrapper {
    aspect-ratio: 16 / 9;
}

body.page-id-3293 .entry-content > figure.wp-block-embed iframe {
    width: 100%;
    height: 100%;
    display: block;
}

body.page-id-3295 .entry-content > div:has(iframe[src*="luG6GL8LnRk"]) > div {
    padding-bottom: 75% !important;
}

.wp-block-image figcaption {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.wp-caption-text,
.wp-element-caption {
    color: rgba(255, 255, 255, 1);
    background-color: rgba(51, 51, 51, 1);
    display: inline-block;
    font-size: 0.8rem;
    margin: 0 0 0.8rem 0rem;
    padding: 0.3rem;
}

.entry-content blockquote p {
    font-size: 1.4rem;
    line-height: 1.8rem;
    font-weight: 600;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #000;
}

.entry-content p {
    margin: 0 0 0.5rem 0;
    line-height: 1.4rem;
}

.entry-content {
    padding: 1em 0 0 0;
    overflow: hidden;
}

.entry-content:after {
    content: "";
    display: block;
    clear: both;
}

/* ========================================== GULF JOURNAL EDITIONS & ARCHIVES ========================================== */
.issuem_archives_shortcode {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 24px;
    margin: 32px 0 60px;
}

.issuem_archive {
    min-width: 0;
    text-align: center;
}

.issuem_archive p {
    margin: 0;
}

.issuem_archive .issuem-archives-issue-cover {
    margin-bottom: 12px;
}

.issuem_archive .featured_archives_cover,
.issuem_archive .featured_archives_cover img {
    display: block;
    width: 100% !important;
    height: auto !important;
}

.issuem_archive .issuem-archives-issue-title {
    font-size: 18px;
    font-weight: 700;
}

.issuem_archive .issuem-archives-pdf-link {
    font-size: 14px;
}

@media (max-width: 900px) {
    .issuem_archives_shortcode {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .issuem_archives_shortcode {
        grid-template-columns: 1fr;
    }
}

.entry-content .wp-block-image.alignleft,
.entry-content .wp-block-image.alignright {
    max-width: 100%;
}

.entry-content .wp-block-image.alignleft {
    float: left;
    margin: 0 1.5rem 1rem 0;
}

.entry-content .wp-block-image.alignright {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

/* ========================================== MEDIA & SUBMISSIONS ========================================== */

/* Media Key Header */
body.page-template-page-media-submissions-php .media-key {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin: 3rem auto 10px auto;
    padding: 0 20px;
}

.key-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
}

.key-label {
    font-weight: 700;
    font-size: 1rem;
    color: var(--cyan);
}

.media-submissions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    clear: both;
}

/* Responsive adjustment for small mobile screens */
@media (max-width: 600px) {
    .media-key {
        flex-direction: column;
        align-items: stretch;
    }

    .key-item {
        justify-content: center;
    }
}

/* Document Cards */
a.document-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--cyan);
    border-radius: 6px;
    text-decoration: none;
    background-color: #ffffff;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
}

a.document-card:hover {
    background-color: #f9f9f9;
    transform: translateY(-2px);
}

/* Text Container */
.card-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Card Title */
.card-details h3.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cyan);
    margin: 0 0 4px 0;
    padding: 0;
    line-height: 1.3;
}

/* Responsive adjustment for small mobile screens */
@media (max-width: 600px) {
    .card-details h3.card-title {
        font-size: .9rem;
    }
}

/* Card Date */
.card-details span.card-date {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--cyan);
    margin: 0;
}

/* Icons */
.card-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Speech Bubble Icon (Submissions) */
.icon-speech-bubble {
    background-image: url("../img/icon-sub.svg");
}

/* Megaphone Icon (Press Releases) */
.icon-megaphone {
    background-image: url("../img/icon-pr.svg");
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
    .media-submissions-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================== NEWS, STORIES & TAG SELECTOR: POST STORIES ========================================== */
#stories {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-bottom: 3rem;
}

.post-teaser {
    box-sizing: border-box;
    width: 100%;
    padding: 1rem;
}

.image-container {
    position: relative;
    background-color: #000;
}

.image-container img {
    display: block;
}

.image-container .post-icon {
    position: absolute;
    bottom: calc(50% - 25%); /* Minus half the height */
    left: calc(50% - 25%); /* Minus half the width */
    width: 50%;
    height: 50%;
    pointer-events: none;
    opacity: 0.8;
}

.post-cat-podcast .post-icon {
    background: url("../img/icon-podcast.svg") no-repeat 50% 50%;
}

.size-thumbnail {
    max-width: none; /* max-width override */
    width: 100%;
    opacity: 0.8;
}

.post-teaser h2 {
    margin-bottom: 0;
}

.post-teaser p {
    margin-top: 0.5rem;
}

@media only screen and (min-width: 768px) {
    .post-teaser {
        width: 33%;
        padding: 1rem 1rem 0 0;
    }

    /* Homepage 2020 */
}

.shareEmail:link,
.shareEmail:visited,
.shareEmail:active {
    /* Other buttons auto styled by the services */
    background-color: rgba(180, 180, 180, 0.8);
    border-radius: 3px;
    background-image: url("../img/icon_email.svg");
    background-repeat: no-repeat;
    background-position: 10% 50%;
    background-size: 25%;
    margin: 3px 0 0 0;
    padding: 0px 4px 2px 21px;
    width: 32px;
    height: 18px;
    font-style: normal;
    font-weight: 600;
    font-size: 12px;
    color: rgba(255, 255, 255, 1);
    vertical-align: top;
    display: inline-block;
    box-sizing: content-box;
}

.shareEmail:hover {
    text-decoration: none;
    background-color: rgba(180, 180, 180, 1);
}

/* ========================================== VIDEOS SECTION ========================================== */
.videos-section {
    max-width: 1200px;
    margin: -60px auto 40px; /* Pulls slightly over the hero */
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
    z-index: 10;
}

.video-card {
    background: #fff;
    text-align: center;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    border: 1px solid #fff;
    background: #fff;
    margin-bottom: 15px;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: #000;
    cursor: pointer;
}

.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-iframe-container {
    display: none;
    width: 100%;
    height: 100%;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 0px;
}

.video-card p {
    font-size: 22px;
    color: #555;
}

/* ========================================== SHARED UI: REPORT LINK HOVER ========================================== */

.read-report:hover .read-report-text {
    color: var(--cyan);
}

/* ========================================== FOOTER ========================================== */
footer {
    background-color: var(--cyan);
    padding: 40px;
    display: flex;
    justify-content: space-between;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 14px;
    color: var(--bg-light);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 6px;
}

.footer-left a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 0;
    text-decoration: none;
    color: #fff;
    background-color: transparent;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.footer-left a img {
    width: 28px;
    height: 28px;
    margin-right: 0;
    flex-shrink: 0;
    filter: none;
    transition: opacity 0.3s ease;
}

.footer-left a:hover,
.footer-left a:focus-visible {
    opacity: 0.75;
    transform: translateY(-2px);
}

.footer-left .copyright {
    margin: 15px 0 0 0;
    font-size: 12px;
    color: var(--bg-light);
}

.footer-nav {
    display: flex;
    gap: clamp(32px, 6vw, 88px);
    margin: 0 auto;
}

.footer-nav-group h2 {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-nav-group ul {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-nav-group li {
    font-size: 12px;
    line-height: 1.6;
}

.footer-nav a,
.footer-nav a:visited {
    color: var(--bg-light);
    font-size: 12px;
    font-weight: 300;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.footer-right img {
    height: 80px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(92%) sepia(9%) saturate(200%) hue-rotate(175deg);
}

/* ========================================== POSTERS & ANNUAL REPORTS: POSTERS ========================================== */

.poster-series h2 {
    margin: 0 0;
}

.poster-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.poster-link {
    display: inline-block;
    position: relative;
    left: 0;
    top: 0;
    margin: 0 0 0 0;
    width: 100%;
    vertical-align: top;
}

.poster-link img {
    width: 99%;
    display: block;
}

.poster-link .overlay {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: url("../img/zoom_hover.svg") no-repeat 50% 40%;
    background-size: 40%;
    transition: background-size 0.3s;
}

.poster-link .overlay:hover {
    background-size: 43%;
}

.poster-series {
    background-color: rgba(255, 255, 255, 1);
    padding: 1rem;
    margin: 1rem;
}

.poster-title {
    display: block;
    font-size: 0.7em;
    margin-top: 0.1em;
    font-style: italic;
}

@media (min-width: 768px) {
    .poster-series {
        margin: 1rem 0 1rem 1rem;
    }

    .poster-link {
        width: 32%;
    }
}

/* ========================================== SEARCH RESULTS GRID ========================================== */

/* Container using CSS Grid */
.searchResultsGrid {
    display: grid;
    grid-template-columns: 1fr; /* 1 column (Mobile) */
    gap: 1.25rem;
}

/* Base Card & Typography (0.8em base font) */
.searchResultsGrid .searchCard {
    background: rgba(255, 255, 255, 1);
    padding: 1.25rem;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    font-size: 0.8em; /* Sets uniform base size */

    /* 1 & 2 Column Layout: Stacked (Image above text) */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Image sizing for stacked (1-col & 2-col) views */
.searchResultsGrid .searchCard img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    display: block;
    flex: 0 0 120px;
    margin-bottom: 0.75rem; /* Space between image and text */
}

/* Text block for stacked views */
.searchResultsGrid .searchCard .searchCardTextImg {
    width: 100%;
    padding: 0;
}

/* Font scaling relative to 0.8em parent */
.searchResultsGrid .searchCard h4 {
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.2em;
    margin: 0 0 0.4rem 0;
}

.searchResultsGrid .searchCard p {
    font-size: 1em;
    font-weight: 300;
    line-height: 1.3em;
    margin: 0;
}

/* Search Results Page Grid Override */
body.search .searchResultsGrid,
body.search-results .searchResultsGrid,
body.search.search-results .searchResultsGrid,
.search-results .searchResultsGrid {
    width: 100%;
    max-width: none;
}

body.page-id-27 .entry-content > .search {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 24px;
    margin: 32px 0 60px;
}

body.page-id-27 .entry-content > .search .searchCard {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 0;
}

body.page-id-27 .entry-content > .search .searchCard > img {
    display: block;
    width: 100%;
    height: 150px;
    margin: 0 0 12px;
    object-fit: cover;
}

body.page-id-27 .entry-content > .search .searchCardTextImg {
    width: 100%;
}

body.page-id-27 .entry-content > .search .searchCard h4 {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.3;
}

body.page-id-27 .entry-content > .search .searchCard p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 900px) {
    body.page-id-27 .entry-content > .search {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    body.page-id-27 .entry-content > .search {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.page-id-27 .entry-content > .search .searchCard > img {
        height: 120px;
    }
}

@media (max-width: 420px) {
    body.page-id-27 .entry-content > .search {
        grid-template-columns: 1fr;
    }
}

/* 2-Column layout (Tablets - Text remains underneath image) */
@media only screen and (min-width: 600px) {
    .searchResultsGrid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 3-Column layout (Desktop - Switches back to side-by-side) */
@media only screen and (min-width: 1024px) {
    .searchResultsGrid {
        grid-template-columns: repeat(3, 1fr);
    }

    .searchResultsGrid .searchCard {
        flex-direction: row; /* Puts image back beside text */
        align-items: flex-start;
    }

    .searchResultsGrid .searchCard img {
        margin-bottom: 0;
        margin-right: 0.75rem;
        width: 90px;
        height: 70px;
        flex: 0 0 90px;
    }

    .searchResultsGrid .searchCard .searchCardTextImg {
        width: calc(100% - 70px - 0.75rem);
    }
}

/* ========================================== BUTTONS & SHARED UI ELEMENTS: GET INVOLVED ========================================== */

.getInvolved .button:hover,
.getInvolved .button:active {
    width: 100%;
}

.button:link,
.button:visited,
.button:hover,
.button:active {
    /* Used in seminars */
    display: inline-block;
    vertical-align: middle;
    min-height: 2rem;
    min-width: 10rem;
    background-color: rgba(0, 175, 255, 1) !important;
    font-size: 0.8em;
    font-weight: 600;
    font-style: normal;
    text-align: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 1);
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 3px;
}

/* ========================================== POSTERS & ANNUAL REPORTS: ANNUAL REPORTS ========================================== */

.ars {
    display: flex;
    flex-wrap: wrap;
}

.ar {
    width: calc(50% - 1rem);
    padding: 1rem 1rem 0.2rem 1rem;
    margin: 0 1rem 1rem 0rem;
    box-sizing: border-box;
}

.ar p {
    text-align: center;
}

@media only screen and (min-width: 768px) {
    .ar {
        width: 20%;
    }
}

/* ========================================== RESPONSIVE OVERRIDES ========================================== */
@media (max-width: 900px) {
    header {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
        align-items: center;
    }

    .nav-header {
        gap: 12px;
        padding: 16px clamp(12px, 4vw, 24px);
    }

    .nav-header .logo img {
        height: clamp(30px, 12vw, 48px);
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .nav-container {
        display: none;
        width: 100%;
        max-width: 100%;
        padding: 0 20px 0 0;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding-top: 8px;
    }

    .nav-container.is-open {
        display: flex;
    }

    .nav {
        width: 100%;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .nav-links > li {
        width: 100%;
        box-sizing: border-box;
        padding-top: 10px;
        padding-bottom: 17px;
        border-top: 1px solid var(--navy);
    }

    .nav-links > li:last-child {
        padding-bottom: 9px;
    }

    .nav-links > li > a {
        display: block;
        width: 100%;
        padding: 0;
    }

    .dropdown-content {
        display: none;
        position: static;
        transform: none;
        background-color: transparent;
        color: #000;
        box-shadow: none;
        padding: 8px 0 0 12px;
        text-align: left;
    }

    .dropdown.open .dropdown-content {
        display: block;
    }

    .dropdown-content li a {
        color: #555;
        padding: 6px 0;
    }

    .search-form {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 10px;
        padding-top: 14px;
        border-top: 1px solid var(--navy);
    }

    .search-form input[type="text"] {
        flex: 1;
        min-width: 0;
        width: auto;
    }

    .videos-section {
        grid-template-columns: 1fr;
        margin-top: 20px;
    }

    .hero {
        padding: 40px 20px 60px;
    }

    body.page-id-3293 .entry-content > figure.wp-block-embed {
        width: calc(100% - 40px);
        margin-right: 20px;
        margin-left: 20px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    h1, h2 {
        font-size: 1.2rem;
        line-height: 1.4rem;
    }

    .entry-content blockquote p {
        font-size: 1.2rem;
        line-height: 1.5rem;
    }

    footer {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-left {
        align-items: center;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-nav {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        text-align: center;
    }

    .footer-right {
        display: flex;
        justify-content: center;
    }
} /* ===== End of media query for max-width: 900px ===== */

/* ========================================== HOMEPAGE: FEATURE STORIES GRID ========================================== */
.home-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.home-feature {
    display: flex;
    flex-direction: column;
}

.home-feature-image {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    margin-bottom: 12px;
}

.home-feature-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--cyan);
    letter-spacing: 1px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.home-feature h2 {
    font-size: 16px;
    line-height: 1.3;
    margin-bottom: 8px;
}

.home-feature h2 a {
    color: var(--navy);
    font-weight: 700;
}

.home-feature h2 a:hover {
    color: var(--cyan);
}

.home-feature p {
    font-size: 13px;
    color: #4a5568;
    line-height: 1.4;
}

/* ========================================== NEWS, STORIES & TAG SELECTOR ========================================== */
.articlesTitle {
    font-size: 24px;
    font-weight: 800;
    color: var(--navy);
    margin: 3rem 0 1rem 0;
    padding-top: 8px;
    border-top: 1px solid var(--navy);
    letter-spacing: 1px;
}

.tagSelector {
    margin-bottom: 30px;
    background: var(--bg-light);
    padding: 16px 20px;
    border-radius: 6px;
}

.viewNews {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tagsMenu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tagButton {
    display: inline-block;
    padding: 4px 12px;
    background: #fff;
    color: var(--navy) !important;
    font-size: 12px;
    font-weight: 600 !important;
    border-radius: 20px;
    border: 1px solid rgba(0, 42, 84, 0.15);
    transition: all 0.2s ease;
}

.tagButton:hover {
    background: var(--cyan);
    color: #fff !important;
    border-color: var(--cyan);
    text-decoration: none !important;
}

/* ========================================== NEWS, STORIES & TAG SELECTOR: NEWS ARTICLES GRID ========================================== */
.newsContainer {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.page-template-page-soers .btn-read,
.page-id-3293 .wp-element-button {
    margin-left: 0;
}

.newsArticle {
    background: #fff;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
}

.newsArticle img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.newsArticle h2 {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 10px;
}

.newsArticle h2 a {
    color: var(--navy);
    font-weight: 700;
}

.newsArticle h2 a:hover {
    color: var(--cyan);
}

.newsArticle p {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 10px;
}

.entry-share {
    margin-top: auto;
    padding: 15px 0 1rem 1rem;
    border-top: 1px solid #edf2f7;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
}

/* ========================================== CONTENT RESPONSIVE BREAKPOINTS ========================================== */
@media (min-width: 900px) and (max-width: 1200px) {
    #main {
        padding: 0 20px;
    }
}

@media (max-width: 900px) {
    #main {
        padding: 0 20px;
    }

    .home-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .newsContainer {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .home-features {
        grid-template-columns: 1fr;
    }
}

/* ========================================== GULF JOURNAL EDITIONS & ARCHIVES: RELATED CONTENT ========================================== */

.newsArticle ul,
article ul,
.wp-block-list {
    padding: 0 0 0 2em;
}
.newsArticle li,
article li,
.wp-block-list li {
    padding: 0 0 1em 0;
}

.relatedArticles {
    margin-top: 2em;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    align-items: start;
}

/* ========================================== HOMEPAGE: VIDEO HERO & PAGE OVERRIDES ========================================== */
body.page-template-page-home .nav-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent);
}

body.page-template-page-home .nav-header .logo img {
    filter: brightness(0) invert(1);
}

body.page-template-page-home .nav-header .nav-links > li > a,
body.page-template-page-home .nav-header .search-form input[type="text"] {
    color: #fff;
}

body.page-template-page-home .nav-header .nav-links > li > a:hover {
    color: #fff;
}

body.page-template-page-home .nav-header .menu-toggle span {
    background-color: #fff;
}

body.page-template-page-home .nav-header .search-form button svg {
    fill: #fff;
}

body.page-template-page-home #wrapper {
    overflow-x: hidden;
    overflow-x: clip;
}

.home-hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    background-color: var(--navy);
}

.home-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.home-hero-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.home-hero-title {
    position: absolute;
    z-index: 1;
    right: clamp(16px, 4vw, 64px);
    bottom: clamp(32px, 8vh, 88px);
    left: clamp(16px, 4vw, 64px);
    display: grid;
    color: #fff;
    font-size: min(6.4vw, 4.5rem);
    font-weight: 600;
    line-height: 1.05;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}

.home-hero-title > span {
    grid-area: 1 / 1;
    align-self: end;
    white-space: nowrap;
    opacity: 0;
    animation-duration: 15s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.home-hero-title-one {
    animation-name: home-hero-title-one;
}

.home-hero-title-two {
    animation-name: home-hero-title-two;
}

.home-hero-title-three {
    animation-name: home-hero-title-three;
}

@keyframes home-hero-title-one {
    0%,
    33.333% {
        opacity: 1;
    }
    36.667%,
    96.667% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes home-hero-title-two {
    0%,
    33.333% {
        opacity: 0;
    }
    36.667%,
    66.667% {
        opacity: 1;
    }
    70%,
    100% {
        opacity: 0;
    }
}

@keyframes home-hero-title-three {
    0%,
    66.667% {
        opacity: 0;
    }
    70%,
    96.667% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-title > span {
        animation: none;
    }

    .home-hero-title-two,
    .home-hero-title-three {
        display: none;
    }

    .home-hero-title > span.home-hero-title-one {
        opacity: 1;
    }
}

@media (max-width: 900px) {
    body.page-template-page-home .home-split-text h2 {
        font-size: 0.8rem;
    }

    body.page-template-page-home .home-statement {
        font-size: 0.9rem;
    }

    body.page-template-page-home .nav-header .nav-container {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 100px);
        max-height: calc(100svh - 100px);
        overflow-y: auto;
        padding: 16px 24px;
        background-color: rgba(0, 42, 84, 0.96);
    }

    body.page-template-page-home .nav-header .nav-links > li {
        border-color: rgba(255, 255, 255, 0.5);
    }

    body.page-template-page-home .nav-header .nav-links > li > a,
    body.page-template-page-home .nav-header .dropdown-content li a {
        color: #fff;
    }

    body.page-template-page-home .nav-header .dropdown-content li a:hover {
        color: #fff;
    }

    body.page-template-page-home .nav-header .search-form {
        border-color: rgba(255, 255, 255, 0.5);
    }

    body.page-template-page-home .nav-header .search-form input[type="text"] {
        border-color: #fff;
    }
}
