:root {
    --color-black: #222222;
    --color-white: #f8f8f8;
    --color-gray: #a1a1a1;
    --color-gray-light: #f0f0f0;
    --color-red: rgba(181, 71, 70, 1);
    --color-red-deep: rgba(143, 16, 16, 1);
    --color-red-light: #ed9b90;
    --color-blue: #007bff;
    --color-green: #189b18;
    --color-orange: #f58421;
    --color-light-orange: #fffaf0;
    --color-yellow: #e4d533;
    --color-yellow-light: #e9de67;

    --color-text-dark: rgba(37, 32, 67, 1);
    --color-text-gray: rgba(159, 156, 180, 1);
    --color-text-white: rgba(255, 255, 255, 1);

    /* HOME - Article BG bleed */
    --size-article-bleed: 120px;

    --size-navbar-height: 65px;
    --size-navbar-height-desktop: 80px;
    --size-max-width: 1200px;
}

@font-face {
    font-family: "Merriweather";
    src: url("../font/Merriweather/Merriweather-VariableFont_opsz,wdth,wght.ttf")
        format("truetype");
    font-weight: 300 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DM Sans";
    src: url("../font/DM_Sans/DMSans-VariableFont_opsz,wght.ttf")
        format("truetype");
    font-weight: 300 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Open Sans";
    src: url("../font/Open_Sans/OpenSans-VariableFont_wdth,wght.ttf")
        format("truetype");
    font-weight: 300 900;
    font-style: normal;
    font-display: swap;
}

* {
    padding: 0;
    margin: 0;
    font-family: "Merriweather";
    color: var(--color-text-dark);
    box-sizing: border-box;
    transition: all 0.375s ease;
}

html {
    padding: 0;
    margin: 0;
    font-size: 10px;
    scroll-behavior: smooth;
}

body {
    height: 100%;
    padding: 0;
    margin: 0;
    background-color: var(--color-white);
}

input[type="file"] {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

a {
    text-decoration: none;
}

.hidden {
    display: none !important;
}

.reef-input-secret {
    display: none;
}

.reef-section {
    position: relative;
    min-height: 170px;
}

.reef-main-section {
    margin-top: var(--size-navbar-height);
}

.reef-page-wrapper {
    padding: 30px 15px;
}

.reef-page-wrapper > * + *,
.reef-main-content > * + * {
    margin-top: 30px;
}

.reef-page-headings {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reef-page-columns-2-2 {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.reef-page-columns-2-2 > * {
    flex: 1;
}

.reef-page-headings-column > * + * {
    margin-top: 15px;
}

.reef-page-title {
    flex: 1;
    font-weight: 700;
    font-size: 2.5rem;
}

.reef-page-descriptions {
    flex: 1;
    font-family: "DM Sans";
    font-weight: 400;

    font-size: 1.4rem;
}

.reef-page-categories {
    border-top: 1px solid rgba(72, 66, 110, 1);
    border-bottom: 1px solid rgba(72, 66, 110, 1);

    display: flex;
    width: 100%;

    padding: 0 20px;
    gap: 15px;

    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* fade hint at edges so it's clear there's more to scroll */
    mask-image: linear-gradient(
        90deg,
        transparent 0,
        black 8px,
        black calc(100% - 8px),
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0,
        black 8px,
        black calc(100% - 8px),
        transparent 100%
    );
}

.reef-page-categories::-webkit-scrollbar {
    display: none;
}

.reef-page-category {
    all: unset;
    cursor: pointer;
    color: var(--color-text-gray);
    font-weight: 700;
    flex-shrink: 0;
    white-space: nowrap;
    scroll-snap-align: start;

    font-size: 1.3rem;
    padding: 8px 4px;
}

.reef-page-category.is-active {
    color: var(--color-text-dark);
    position: relative;
}

.reef-page-category.is-active::after {
    content: "";
    z-index: -100;
    position: absolute;
    bottom: 25%;
    right: 10%;
    width: 50%;
    overflow: hidden;
    height: 5px;
    background-color: var(--color-red);
}

.reef-page-search {
    display: flex;
    gap: 12px;
    margin-top: 30px !important;
}

.reef-search-input-wrap {
    position: relative;
    width: 100%;
}

.reef-searchbar-input {
    width: 100%;
    border: 0;
    outline: none;
    background: var(--color-white);
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 12px 48px 12px 14px;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--color-black);
}

.reef-searchbar-input::placeholder {
    color: rgba(151, 151, 151, 1);
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
}

.reef-searchbar-icon-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.reef-searchbar-icon-btn img {
    width: 25px;
    height: 25px;
    fill: var(--color-black);
}

.reef-sort-wrap {
    display: flex;
    position: relative;
    flex-shrink: 0;
}

.reef-sort-btn {
    all: unset;
    flex-shrink: 0;
    white-space: nowrap;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.5em;
    color: #000;
    padding: 0;
}

.reef-sort-icon {
    width: 25px;
    height: 25px;
    flex-shrink: 0;
}

.reef-page-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reef-page-list-card-count {
    font-weight: 700;
    font-size: 1.5em;
}

.reef-page-list-cards {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 16px;
}

.reef-page-grid-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    gap: 8px;
}

.reef-page-card-long {
    cursor: pointer;
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "image image"
        "content schedule";

    height: auto;
    width: 100%;
    background-color: var(--color-white);
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.15);
}

.reef-page-card-long:hover {
    transform: scale(1.01);
}

.reef-page-card-short {
    display: flex;
    flex-direction: column;

    height: auto;
    width: 100%;
    background-color: var(--color-white);
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.15);
}

.reef-page-card-short:hover {
    transform: scale(1.05);
}

.reef-page-card-top {
    flex: 1;
    width: 100%;
}

.reef-page-card-bottom {
    flex: 2;
    width: 100%;

    display: grid;
    grid-template-rows: 1fr auto;
    gap: 12px;
}

.reef-page-card-meta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.reef-page-card-download {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}

.reef-page-card-download img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.reef-page-card-download:hover {
    transform: scale(1.1);
}

.reef-page-card-left {
    position: static;
    z-index: auto;

    grid-area: image;
    flex: none;
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: 10px;
}

.reef-page-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reef-page-card-thumbnail {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.reef-page-card-thumbnail img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.reef-page-card-center {
    position: static;
    z-index: auto;

    grid-area: content;
    flex: 1;
    width: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0; /* prevents overflow */
}

.reef-page-card-content-top {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reef-page-card-content-top span {
    font-family: "DM Sans";
    font-weight: 700;
    font-size: 0.9em;
    color: var(--color-text-gray);
}

.reef-page-card-title {
    font-weight: 700;
    font-size: 1.6em;
    line-height: 1.3;
    color: var(--color-text-dark);
}

.reef-page-card-cta-button span {
    font-family: "DM Sans";
    font-weight: 400;
    font-size: 1.2em;

    text-decoration: underline;
    color: rgba(23, 0, 167, 1);
}

.reef-page-card-footer {
    font-family: "DM Sans";
    font-weight: 400;
    font-size: 1.1em;
}

.reef-page-card-content-top p {
    font-family: "DM Sans";
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.4;
    max-height: 4.2em;
    overflow: hidden;
    text-overflow: ellipsis;
    line-clamp: 3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    color: var(--color-text-dark);
}

.reef-page-card-link {
    position: absolute;
    inset: 0;
    z-index: 10;
}

.reef-page-card-content-bottom {
    margin-top: 8px;
}

.reef-page-card-detail-author {
    font-family: "DM Sans";
    font-weight: 500;
    font-size: 1em;
}

.reef-page-card-detail-date {
    font-family: "DM Sans";
    font-size: 1em;
}

.reef-page-card-share {
    position: absolute;
    top: 15px;
    right: 15px;

    z-index: 20;

    width: 40px;
    height: 40px;

    background-color: var(--color-white);
    border: none;
    border-radius: 999px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}

.reef-page-card-share img {
    width: 18px;
    height: 18px;
}

.reef-page-card-content-location {
    display: flex;
    gap: 8px;
}

.reef-page-card-content-location img {
    height: 16px;
}

.reef-page-card-content-location span {
    font-family: "DM Sans";
    font-weight: 700;
    font-size: 1.2em;
}

.reef-page-card-right {
    grid-area: schedule;
    flex: 0 0 auto;
    width: 100px;
    margin-top: 0;
    display: flex;
    align-self: stretch;
    align-items: stretch;
    min-width: 100px;
}

.reef-page-card-content-schedule-big {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.reef-page-card-content-schedule-big img {
    width: 24px;
    height: 24px;
}

.reef-page-card-content-schedule-big span {
    font-family: "DM Sans";
    font-weight: 600;
    font-size: 1em;
}

.reef-page-card-content-schedule-big p {
    font-family: "DM Sans";
    font-weight: 700;
    font-size: 1.5em;
}

.reef-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    height: 40px;

    margin-top: 30px;
    padding: 0 16px;
}

.reef-pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;

    font-family: "DM Sans";
    font-size: 1rem;
    font-weight: 700;
}

.reef-pagination-arrow {
    all: unset;
    cursor: pointer;
    width: 20px;
    height: 20px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.reef-pagination-number {
    all: unset;
    cursor: pointer;
    width: 25px;
    height: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-family: "DM Sans";
    font-weight: 700;
    font-size: 1rem;

    color: var(--color-black);
    text-decoration: none;
}

.reef-pagination-number:hover {
    color: var(--color-red);
}

.reef-pagination-number.is-active {
    background-color: var(--color-red-deep);
    color: var(--color-white);
}

.reef-pagination img {
    height: 16px;
}

.reef-pagination-next:hover {
    transform: translateX(3px);
}

/* NAVBAR START */
.reef-navbar-wrapper {
    z-index: 20;
    width: 100%;
    position: fixed;
    top: 0;
}

.reef-navbar-container-group {
    padding: 6px;
    height: var(--size-navbar-height);
    background-color: var(--color-white);
    box-shadow: rgba(0, 0, 0, 0.5) 2px 2px 5px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}

.reef-navbar-logo {
    height: 100%;
    aspect-ratio: 1/1;
    margin-left: 12px;
}

.reef-navbar-logo a,
.reef-navbar-logo a img {
    height: 100%;
    width: 100%;
}

.reef-navbar-title {
    text-align: center;
    margin: auto 0px;
    color: var(--color-black);
}

.reef-navbar-trigger {
    cursor: pointer;
}

.reef-navbar-trigger img {
    max-width: 100%;
    max-height: calc(var(--size-navbar-height) - 30px);
    margin-right: 12px;
}

.reef-navbar-button-group {
    width: 75%;
    position: absolute;
    display: grid;
    grid-template-rows: 50px 1fr;
    background-color: var(--color-white);
    padding: 10px;
    text-align: left;
    height: calc(100vh - var(--size-navbar-height));
    top: 0;
    left: 0;
    margin-top: calc(var(--size-navbar-height) + 10px);
    transition: all 0.375s ease;
    transform: translate3d(-100%, 0, 0);
}

.reef-navbar-button-group.expanded {
    transform: translate3d(5px, 0, 0);
    box-shadow: rgb(0 0 0 / 30%) 5px 5px 5px;
}

.reef-navbar-button-subgroup {
    align-items: center;
    gap: 5px;
}

.reef-navbar-button-subgroup.left {
    margin-top: 10%;
    order: 2;
}

.reef-navbar-button-subgroup.left .reef-navbar-button {
    display: block;
    padding: 20px 10px;
    position: relative;
}

.reef-navbar-button-subgroup.left .reef-navbar-button:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 0;
    height: 1px;
    background-color: var(--color-red);
}

.reef-navbar-button-subgroup.right {
    order: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.reef-navbar-button {
    color: var(--color-black);
    font-size: 1.5rem;
    text-decoration: none;
    display: block;
    padding: 20px 10px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
}

.reef-navbar-button:hover {
    color: var(--color-red);
}

.reef-navbar-greeting {
    font-size: 1.8em;
    font-weight: 700;
}

.reef-navbar-photo {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* FOOTER */
.reef-section.footer {
    background: linear-gradient(180deg, #0f0b2d 10%, #191055 90%);
    overflow: hidden;
}

.reef-footer-bg-left,
.reef-footer-bg-right {
    display: none;
}

.reef-footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 5%;
    gap: 20px;
}

.reef-footer-logo {
    width: 150px;
    height: auto;
}

.reef-footer-text {
    font-family: "DM Sans";
    font-size: 1.5em;
    color: var(--color-white);
}

.reef-footer-socials {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reef-footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;

    color: var(--color-white);
    text-decoration: none;

    transition: opacity 0.2s ease;
}

.reef-footer-social span {
    font-family: "Open Sans";
    color: var(--color-white);
    font-size: 1.2rem;
    font-weight: 400;
}

.reef-footer-social:hover {
    opacity: 0.8;
}

.reef-footer-social img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.reef-footer-lang {
    display: flex;
    align-items: center;
    gap: 0.5rem;

    font-size: 1rem;
    font-weight: 600;
}

.reef-footer-lang-option {
    font-family: "DM Sans";
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.reef-footer-lang-option:hover {
    color: #fff;
}

.reef-footer-lang-option.active {
    color: #fff;
    font-weight: 700;
}

.reef-footer-lang-separator {
    color: rgba(255, 255, 255, 0.4);
    user-select: none;
}

.reef-footer-horizontal-line {
    height: 1.5px;
    width: 200%;
    background-color: rgba(72, 66, 110, 1);
}

.reef-footer-copyright {
    font-family: "Open Sans";
    font-weight: 600;
    font-size: 1em;
    color: var(--color-white);
}

/* HOME - BANNERS */
.reef-banner-container {
    position: relative;
    width: 100%;
}
.reef-banner {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    border-radius: 0;
    background: var(--color-white);
}

.reef-banner-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.reef-banner-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--color-white); /* fallback while image loads */
    opacity: 0;
    visibility: hidden;
    transition: opacity 900ms ease;
    z-index: 1;
}

.reef-banner-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Left-heavy gradient so text stays legible over any image */
.reef-banner-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(7, 23, 26, 0.92) 0%,
            rgba(7, 23, 26, 0.72) 32%,
            rgba(7, 23, 26, 0.32) 58%,
            rgba(7, 23, 26, 0.08) 78%
        ),
        linear-gradient(
            180deg,
            rgba(7, 23, 26, 0.15) 0%,
            rgba(7, 23, 26, 0) 30%,
            rgba(7, 23, 26, 0.35) 100%
        );
}

.reef-banner-content {
    position: relative;
    z-index: 3;
    height: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding-left: 40px;
}

.reef-banner-caption {
    font-size: 2.75em;
    line-height: 1.6;
    color: var(--color-text-white);
    margin: 0;
    max-width: 440px;
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity 650ms ease 160ms,
        transform 650ms ease 160ms;
}

.reef-banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin-top: 8px;
    padding: 10px 20px;
    font-size: 1.25em;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--color-black);
    background: var(--color-red);
    border-radius: 999px;
    text-decoration: none;
    transition:
        background 220ms ease,
        transform 220ms ease,
        opacity 650ms ease 240ms,
        translate 650ms ease 240ms;
    opacity: 0;
    transform: translateY(14px);
}

.reef-banner-cta svg {
    transition: transform 220ms ease;
}

.reef-banner-cta:hover {
    background: var(--color-red-light);
}

.reef-banner-cta:hover svg {
    transform: translateX(3px);
}

.reef-banner-slide.is-active .reef-banner-caption,
.reef-banner-slide.is-active .reef-banner-cta {
    opacity: 1;
    transform: translateY(0);
}

.reef-banner-pagination {
    position: absolute;
    z-index: 4;
    left: 6vw;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reef-banner-dot {
    position: relative;
    width: 12px;
    height: 12px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition:
        background 220ms ease,
        transform 220ms ease;
}

.reef-banner-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.reef-banner-dot:focus-visible {
    outline: 2px solid var(--color-red);
    outline-offset: 3px;
}

.reef-banner-dot.is-active {
    background: transparent;
}

/* ring around active dot */
.reef-banner-dot.is-active::before {
    content: "";
    position: absolute;
    inset: -4px;
    border: 1.5px solid var(--color-red);
    border-radius: 50%;
}

/* fill now matches the ring's box (inset: -4px), not the dot's own box,
   so scale(1) actually reaches the ring instead of stopping at the dot's edge */
.reef-banner-dot-fill {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--color-red);
    transform: scale(0);
    transform-origin: center;
    transition: transform linear;
}

.reef-banner-dot.is-active .reef-banner-dot-fill {
    transform: scale(1);
}

/* HOME - ABOUT US */
.reef-section.about {
    position: relative;
    z-index: 1;
}

.reef-about-container {
    display: flex;
    flex-direction: column;
    padding: 60px 20px;
    gap: 60px;
}

.reef-about-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 50px;
}

.reef-about-text-left {
    flex: 2;
    font-weight: 700;
    font-size: 3.5em;
}

.reef-about-text-right {
    flex: 3;
    font-family: "DM Sans";
    font-weight: 400;
    font-size: 1.8em;
}

.reef-about-image {
    width: 100%;
    height: 250px;
    border-radius: 100px 100px 0 0;
    overflow: hidden;
    position: relative;
}

.reef-about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 55%;
}

/* HOME - ARTICLE LIST */

.reef-section.articles {
    background-size: cover;
    margin-top: calc(-1 * var(--size-article-bleed));
    padding-top: var(--size-article-bleed);
    padding-bottom: 60px;
    position: relative;
    z-index: 0;
}

.reef-home-article-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px 30px;
    gap: 30px;
}

.reef-home-article-title {
    font-size: 3.5em;
}

.reef-home-article-categories {
    display: flex;
    gap: 30px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* fade hint at edges so it's clear there's more to scroll */
    mask-image: linear-gradient(
        90deg,
        transparent 0,
        black 8px,
        black calc(100% - 8px),
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0,
        black 8px,
        black calc(100% - 8px),
        transparent 100%
    );
}

.reef-home-article-categories::-webkit-scrollbar {
    display: none;
}

.reef-home-article-badge {
    all: unset;
    cursor: pointer;
    color: var(--color-text-gray);
    font-size: 1.5em;
    font-weight: 700;
    flex-shrink: 0;
    white-space: nowrap;
    scroll-snap-align: start;
}

.reef-home-article-badge.is-active {
    color: var(--color-text-dark);
    position: relative;
}

.reef-home-article-badge.is-active::after {
    content: "";
    z-index: -100;
    position: absolute;
    bottom: 0%;
    right: 0%;
    width: 50%;
    overflow: hidden;
    height: 5px;
    background-color: var(--color-red);
}

.reef-home-article-badge:not(.is-active):hover {
    color: var(--color-red);
}

.reef-home-articles-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
}

.reef-home-articles-empty {
    margin-top: 30px;
    font-family: "DM Sans";
    font-size: 1.6em;
}

.reef-home-article-card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
    height: auto;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.15);
}

.reef-home-article-image {
    width: 100%;
    height: 80px;
}

.reef-home-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.reef-home-article-detail {
    flex: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.reef-home-article-detail-top,
.reef-home-article-detail-bottom {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reef-home-article-detail-category {
    font-family: "DM Sans";
    font-weight: 700;
    font-size: 1em;
    color: var(--color-text-gray);
}

.reef-home-article-detail-title {
    font-weight: 700;
    font-size: 1.6em;
    color: var(--color-text-dark);
}

.reef-home-article-detail-author {
    font-family: "DM Sans";
    font-weight: 500;
    font-size: 1em;
}

.reef-home-article-detail-date {
    font-family: "DM Sans";
    font-weight: 400;
    font-size: 1em;
}

/* HOME - PARTNERS */

.reef-home-partners {
    display: flex;
    flex-direction: column;
    padding: 50px 20px;
    gap: 30px;
}

.reef-home-partners-left {
    display: flex;
    gap: 50px;
    flex-direction: column;
    align-items: center;
}

.reef-home-partners-title {
    font-size: 2.4em;
    font-weight: 700;
    text-align: center;
}

.reef-home-partners-image {
    width: 50%;
    /* hidden on mobile; restored on tablet/desktop below */
    display: none;
}

.reef-home-partners-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: auto;
}

.reef-home-partners-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.reef-home-partners-grid::-webkit-scrollbar {
    display: none;
}

.reef-home-partners-card {
    flex: 0 0 calc((100% - 24px) / 3);
    width: auto;
    height: 100px;
    border-radius: 15px;
    scroll-snap-align: start;
}

.reef-home-partners-nav {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.reef-home-partners-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1.5px solid var(--color-red);
    border-radius: 50%;
    background: transparent;
    color: var(--color-red);
    cursor: pointer;
    transition:
        background 220ms ease,
        color 220ms ease,
        transform 220ms ease;
}

.reef-home-partners-arrow:hover {
    background: var(--color-red);
    color: var(--color-text-white);
}

.reef-home-partners-arrow:active {
    transform: scale(0.92);
}

.reef-home-partners-arrow:focus-visible {
    outline: 2px solid var(--color-red);
    outline-offset: 3px;
}

.reef-home-partners-arrow:disabled {
    border-color: var(--color-gray);
    color: var(--color-gray);
    cursor: default;
    opacity: 0.5;
}

.reef-home-partners-arrow:disabled:hover {
    background: transparent;
    color: var(--color-gray);
}

/* COMMITTEE */

.reef-committee-head {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 420px;

    padding: 12px;
    gap: 12px;

    background-color: rgba(2, 3, 47, 1);
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

.reef-committee-head-picture {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-radius: 10px;
}

.reef-committee-head-details {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 12px;
}

.reef-committee-head-name {
    font-weight: 700;
    font-size: 1.8em;
    color: var(--color-white);
}

.reef-committee-head-position {
    font-family: "DM Sans";
    font-weight: 500;
    font-size: 1.5em;
    color: var(--color-white);
}

.reef-committee-head-description {
    font-family: "DM Sans";
    font-weight: 400;
    font-size: 1.2em;
    color: var(--color-white);
}

.reef-committee-head-socials {
    margin-top: auto;
    display: flex;
    gap: 20px;
}

.reef-committee-head-socials a img {
    width: 20px;
    height: 20px;
}

.reef-committee-position {
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.reef-committee-position-title {
    font-weight: 600;
    font-size: 2em;
}

.reef-committee-member-list {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.reef-committee-member-card {
    display: flex;
    flex-direction: column;

    background-color: var(--color-white);
    border-radius: 10px;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.15);
    padding: 12px;
}

.reef-committee-member-picture {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    object-fit: cover;
    object-position: top center;
}

.reef-committee-member-details {
    display: flex;
    flex-direction: column;
    margin: 5px 0;
    gap: 10px;

    text-align: center;
    align-items: center;
}

.reef-committee-member-name {
    font-weight: 700;
    font-size: 1em;
}

.reef-committee-member-socials {
    display: flex;
    margin-top: 15px;
    gap: 10px;
}

.reef-committee-member-socials a img {
    width: 10px;
    height: 10px;
}

/* MEMBERS */

.reef-member-list {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
}

.reef-member-card {
    position: relative;
    display: flex;

    background-color: var(--color-white);
    border-radius: 10px;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.15);
    padding: 12px;
    gap: 12px;
}

.reef-member-card:hover {
    transform: scale(1.01);
}

.reef-member-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.reef-member-picture {
    width: 150px;
    height: 150px;
    flex-shrink: 0;

    border-radius: 10px;
    object-fit: cover;
}

.reef-member-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.reef-member-name {
    font-weight: 700;
    font-size: 1.5em;
}

.reef-member-position {
    font-family: "DM Sans";
    font-weight: 500;
    font-size: 1.2em;
}

.reef-member-socials {
    margin-top: auto;
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.reef-member-socials a img {
    height: 16px;
    width: 16px;
}

/* MEMBER DETAIL */

.reef-member-detail-wrapper {
    display: grid;
    gap: 30px;
    padding: 10px;
}

.reef-member-photo-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.reef-member-photo-container h3 {
    font-family: "DM Sans";
    font-size: 1.3em;
    font-weight: 500;
    color: var(--color-text-gray);
}

.reef-member-photo-container p {
    font-family: "DM Sans";
    font-size: 1.2em;
    line-height: 1.8;
    color: var(--color-text-dark);
}

.reef-member-photo-container b {
    font-weight: 700;
}

.reef-member-photo {
    width: 80%;
    max-width: 250px;
    border-radius: 12px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.12);
}

.reef-member-info-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.reef-member-info-container h1 {
    font-size: 2.5em;
    font-weight: 700;
}

.reef-member-info-container > p {
    font-family: "DM Sans";
    font-size: 1.4em;
    line-height: 1.7;
    color: var(--color-text-dark);
}

.reef-edit-button {
    position: absolute;
    top: 0;
    right: 0;
    width: 36px;
    height: 36px;
    background-image: url("../image/icon_pencil.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 70%;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.reef-edit-button:hover {
    background-color: var(--color-gray-light);
}

.reef-member-data-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 5px;
}

.reef-member-data-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.reef-member-data-icon {
    width: 28px;
    flex-shrink: 0;
    margin-top: 2px;
}

.reef-member-data-text {
    font-family: "DM Sans";
    font-size: 1.3em;
    line-height: 1.6;
    color: var(--color-text-dark);
}

.reef-member-data-text a,
.reef-member-data-text a:visited {
    color: var(--color-text-dark);
    text-decoration: none;
}

.reef-member-data-text a:hover {
    color: var(--color-red);
}

.reef-member-data-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    background-color: var(--color-gray-light);
    border-radius: 10px;
}

.reef-member-data-placeholder p {
    font-family: "DM Sans";
    font-size: 1.3em;
    color: var(--color-text-gray);
    text-align: center;
}

.reef-article-headings {
    padding: 30px;
    padding-bottom: 30px;
}

.reef-article-title {
    font-weight: 700;
    font-size: 4rem;
}

.reef-article-meta {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.reef-article-author {
    font-family: "DM Sans";
    font-weight: 500;
    font-size: 1.5em;
}

.reef-article-date {
    font-family: "DM Sans";
    font-weight: 400;
    font-size: 1.5em;
}

.reef-article-picture {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
}

.reef-article-wrapper {
    padding: 30px 15px;
}

.reef-article-content {
    font-family: "DM Sans";
    font-size: 1.8em;
}

.reef-article-share {
    margin-top: 30px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;

    border-top: 1.5px solid rgba(72, 66, 110, 1);
    border-bottom: 1.5px solid rgba(72, 66, 110, 1);
    padding: 15px 0;
}

.reef-article-share-text {
    font-family: "DM Sans";
    font-weight: 500;
    font-size: 1.8em;
    line-height: 1;

    padding: 0px 10px;
}

.reef-article-share-buttons {
    margin-left: auto;
    display: flex;
    gap: 20px;
    padding: 0px 10px;
}

.reef-article-share-buttons a img {
    height: 15px;
    width: 15px;
}

/* ARTICLE - RELATED ARTICLES CAROUSEL */
.reef-article-related {
    margin-top: 40px;
    width: 100%;
}

.reef-article-related-headings {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.reef-article-related-text {
    font-family: "DM Sans";
    font-weight: 700;
    font-size: 2em;
    color: var(--color-text-dark);
}

.reef-article-related-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reef-article-related-arrows {
    height: 36px;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
}

.reef-article-related-arrows:hover {
    background-color: var(--color-gray-light);
}

.reef-article-related-arrows.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* Carousel mechanics */
.reef-article-related-carousel-wrapper {
    width: 100%;
}

.reef-article-related-carousel-viewport {
    width: 100%;
    overflow: hidden;
    padding: 4px;
}

.reef-article-related-carousel-track {
    display: flex;
    gap: 16px;
    /* JS sets transform: translateX(...) on this element to slide */
}

/* CARD STYLING */
.reef-article-related-card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    cursor: pointer;
    flex: 0 0 calc((100% - 16px) / 2);
    min-width: 0;
}

.reef-article-related-card:hover {
    transform: scale(1.02);
}

.reef-article-related-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.reef-article-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reef-article-related-detail {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
}

.reef-article-related-detail-top {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.reef-article-related-detail-category {
    font-family: "DM Sans";
    font-weight: 700;
    font-size: 1em;
    color: var(--color-text-gray);
}

.reef-article-related-detail-title {
    font-family: "Merriweather";
    font-weight: 700;
    font-size: 1.4em;
    line-height: 1.35;
    color: var(--color-text-dark);

    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.reef-article-related-detail-bottom {
    display: flex;
    flex-direction: column;
}

.reef-article-related-detail-author,
.reef-article-related-detail-date {
    font-family: "DM Sans";
    font-weight: 400;
    font-size: 1.1em;
}

/* MERCHANDISE */
.reef-hero-image {
    width: 100%;
    height: 400px;

    margin-bottom: -150px;
}

.reef-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reef-hero-heading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.reef-main-content {
    width: 90%;
    background-color: var(--color-white);
    padding: 30px 15px;
    border-radius: 50px 50px 0 0;
}

.reef-page-headings-hero {
    margin-bottom: 50px;
    text-align: center;
}

.reef-merchandise-card {
    gap: 0 !important;
    height: 300px;
}

.reef-merchandise-image {
    width: 100%;
    aspect-ratio: 1/1;

    border-radius: 10px;
    object-fit: cover;
}

.reef-merchandise-category {
    font-family: "DM Sans";
    font-weight: 700;
    font-size: 1em;
    margin-top: 6px;

    color: var(--color-text-gray);
}

.reef-merchandise-name {
    font-weight: 700;
    font-size: 1.8em;
    margin-top: 6px;
}

.reef-merchandise-price {
    margin-top: auto;
}

.reef-merchandise-price-effective {
    font-family: "DM Sans";
    font-weight: 500;
    font-size: 1.5em;
    color: var(--color-red-deep);
}

.reef-merchandise-price-original {
    font-family: "DM Sans";
    font-weight: 400;
    font-size: 1em;
    color: var(--color-text-gray);
    text-decoration: line-through;
    margin-top: auto;
    margin-bottom: -4px;
}

/* MERCHANDISE DETAIL */

.reef-merchandise-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 10px;
}

.reef-merchandise-image-container {
    width: 100%;
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.reef-merchandise-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.reef-merchandise-detail-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reef-merchandise-detail-container .reef-merchandise-code {
    font-family: "DM Sans";
    font-weight: 600;
    font-size: 1.3em;
    color: var(--color-text-gray);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.reef-merchandise-detail-container .reef-merchandise-name {
    font-family: "Merriweather";
    font-weight: 700;
    font-size: 2.8em;
    line-height: 1.2;
    margin-top: 0;
    color: var(--color-text-dark);
}

.reef-merchandise-detail-container .reef-merchandise-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.reef-display-price {
    font-family: "DM Sans";
    font-size: 2em;
    font-weight: 700;
    color: var(--color-red-deep);
}

.reef-original-price {
    font-family: "DM Sans";
    font-size: 1.4em;
    font-weight: 400;
    color: var(--color-text-gray);
    text-decoration: line-through;
}

.reef-merchandise-detail-container .reef-merchandise-description {
    font-family: "DM Sans";
    font-size: 1.5em;
    line-height: 1.8;
    color: var(--color-text-dark);
}

.reef-merchandise-purchase-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.reef-merchandise-purchase-button {
    display: none; /* hidden for now */
    padding: 14px 36px;
    background-color: var(--color-red);
    color: var(--color-white);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: "DM Sans";
    font-weight: 700;
    font-size: 1.5em;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
}

.reef-merchandise-purchase-button:hover {
    background-color: var(--color-red-deep);
    transform: translateY(-2px);
    box-shadow: 0px 4px 12px rgba(181, 71, 70, 0.35);
}

/* OTHER MERCHANDISE */

.reef-other-merchandise-title {
    font-family: "Merriweather";
    font-weight: 700;
    font-size: 2em;
    margin-bottom: 24px;
    text-align: center;
    color: var(--color-text-dark);
}

.reef-other-merchandise-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 4px 12px;
}

.reef-other-merchandise-scroll::-webkit-scrollbar {
    display: none;
}

.reef-other-merchandise-scroll .reef-merchandise-card {
    flex: 0 0 calc(50% - 8px);
    min-width: 150px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: var(--color-white);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.06);
    scroll-snap-align: start;
    gap: 8px;
    height: auto;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.reef-other-merchandise-scroll .reef-merchandise-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.12);
}

.reef-other-merchandise-scroll .reef-merchandise-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
}

.reef-other-merchandise-scroll .reef-merchandise-card-name {
    margin-top: 12px;
    font-family: "DM Sans";
    font-weight: 700;
    font-size: 1.3em;
    line-height: 1.3;
    color: var(--color-text-dark);
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.reef-other-merchandise-scroll .reef-merchandise-card-price {
    margin-top: auto;
    display: flex;
    flex-direction: column;
}

.reef-other-merchandise-scroll .reef-merchandise-card-price span:last-child {
    font-family: "DM Sans";
    font-weight: 700;
    font-size: 1.3em;
    color: var(--color-red-deep);
}

.reef-other-merchandise-scroll
    .reef-merchandise-card-price
    .reef-original-price {
    font-size: 1.1em;
    margin-bottom: 2px;
}

.reef-other-merchandise-scroll
    .reef-merchandise-card-price
    .reef-display-price {
    font-size: 1.3em;
}

/* REEF LOGIN */
.reef-auth-headings {
    width: 100%;
    margin-bottom: 30px;
}

.reef-auth-title {
    font-weight: 700;
    font-size: 40px;
}

.reef-auth-cta {
    font-family: "DM Sans";
    font-size: 1.2em;
}

.reef-auth-cta a {
    text-decoration: underline;
    font-weight: 700;
    color: rgba(16, 35, 143, 1);
}

.reef-auth-wrapper {
    display: flex;
    gap: 60px;
}

.reef-auth-image {
    flex: 2;
    width: 100%;
    display: none;
}

.reef-auth-image img {
    width: 100%;
}

.reef-form-container {
    flex: 3;
}

.reef-form-subtitle {
    font-family: "DM Sans";
    font-size: 1.8em;
}

.reef-form {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.reef-form-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
}

.reef-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reef-input-label {
    font-weight: 600;
    font-size: 1.7em;
}

.reef-input-text {
    border: unset;
    padding: 12px;
    border-radius: 40px;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.25);
    font-family: "DM Sans";
    font-size: 1.5em;
}

.reef-input-text::placeholder {
    color: var(--color-text-gray);
}

.reef-auth-button {
    all: unset;
    cursor: pointer; /* Restores the clickable hand icon */
    text-align: center;

    margin-left: auto;
    padding: 15px 20px;
    border-radius: 100px;

    background-color: rgba(3, 5, 102, 1);

    font-weight: 700;
    font-size: 1.5em;
    color: var(--color-white);
}

.reef-button {
    cursor: pointer;
    padding: 10px 24px;
    background-color: var(--color-gray);
    color: var(--color-text-dark);
    text-decoration: none;
    font-size: 1.4em;
    font-weight: 600;
    display: inline-block;
    text-align: center;
    border: none;
    border-radius: 8px;
    font-family: "DM Sans";
    transition: all 0.2s ease;
}

.reef-button:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.15);
}

.reef-button.red {
    background-color: var(--color-red);
    color: var(--color-white);
}

.reef-button.green {
    background-color: var(--color-green);
    color: var(--color-white);
}

.reef-button.small {
    font-size: 1.2em;
    padding: 8px 16px;
}

.reef-button.full {
    width: 100%;
    max-width: 100%;
}

.reef-form-message {
    text-align: right;
    margin-left: auto;

    font-family: "DM Sans";
    font-size: 1.5em;
}

.reef-form-message a {
    text-decoration: underline;
    font-weight: 700;
    color: rgba(16, 35, 143, 1);
}

.reef-form-warning {
    text-align: center;
    font-size: 1.4em;
    font-family: "DM Sans";
    padding: 12px 16px;
    border-radius: 8px;
    background-color: var(--color-gray-light);
    color: var(--color-text-dark);
}

.reef-form-warning.success {
    background-color: var(--color-green);
    color: var(--color-white);
}

.reef-form-warning.error {
    background-color: var(--color-red);
    color: var(--color-white);
}

select.reef-input-text,
textarea.reef-input-text {
    color: var(--color-text-dark);
}

.reef-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.reef-popup-container {
    display: grid;
    width: 50%;
    font-size: 1.5rem;
    padding: 10px;
    text-align: center;
    background-color: var(--color-white);
    border-radius: 30px;
    padding: 30px;
}

.reef-popup-container h2 {
    margin: 0 0 20px;
}

.reef-button-close-popup {
    padding: 10px;
    display: inline-block;
    background-color: var(--color-red);
    color: var(--color-white);
    cursor: pointer;
    border: none;
    min-width: 120px;
    margin: 10px auto 0;
    border-radius: 30px;
}

.reef-button-close-popup:hover {
    box-shadow: rgba(0, 0, 0, 0.5) 2px 2px 5px;
}

/* ===========================
   REGISTER PAGE ONLY
   =========================== */

.reef-input-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.reef-form-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reef-form-column .reef-input-group {
    width: 100%;
}

.reef-form-column .reef-input-text,
.reef-form-column textarea,
.reef-form-column select {
    width: 100%;
}

.reef-input-text.textarea {
    min-height: 130px;
    resize: vertical;
    border-radius: 20px;
}

.reef-register-wrapper {
    display: grid;
    gap: 10px;
    padding: 10px;
    width: 100%;
}

.reef-register-wrapper.result {
    text-align: center;
    padding: 50px;
    max-width: 700px;
    margin: auto;
}

.reef-register-wrapper.result h1 {
    font-size: 3rem;
}

.reef-register-wrapper.result p {
    font-size: 1.5rem;
}

/* ===========================
   PROGRAM DETAIL
   =========================== */

.reef-program-detail-wrapper {
    display: grid;
    gap: 30px;
}

.reef-program-header {
    display: grid;
    gap: 20px;
}

.reef-program-header .reef-document-thumbnail {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    aspect-ratio: 16 / 10;
}

.reef-program-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.reef-program-content h1 {
    font-weight: 700;
    font-size: 2.5em;
    line-height: 1.25;
}

.reef-program-content > p {
    font-family: "DM Sans";
    font-size: 1.4em;
    line-height: 1.6;
    color: var(--color-text-dark);
}

.reef-program-item-meta-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 5px;
}

.reef-program-item-meta {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.reef-program-item-meta-icon {
    width: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.reef-program-item-meta-text {
    font-family: "DM Sans";
    font-size: 1.3em;
    line-height: 1.6;
    color: var(--color-text-dark);
}

/* Register Now button inside meta */
.reef-program-item-meta .reef-button {
    margin-top: 8px;
}

/* Tabs */
.reef-program-tab-button-container {
    display: flex;
    padding: 10px 0 0;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-bottom: 2px solid var(--color-gray-light);
}

.reef-program-tab-button-container::-webkit-scrollbar {
    display: none;
}

.reef-program-tab-button {
    padding: 10px 16px;
    cursor: pointer;
    font-family: "DM Sans";
    font-size: 1.2em;
    font-weight: 600;
    color: var(--color-text-gray);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    flex-shrink: 0;
}

.reef-program-tab-button:hover {
    color: var(--color-text-dark);
}

.reef-program-tab-button.active {
    color: var(--color-text-dark);
    border-bottom-color: var(--color-red);
}

.reef-program-tab-page {
    display: none;
    padding-top: 20px;
}

.reef-program-tab-page.active {
    margin-top: 5px;
    display: block;
}

.reef-program-tab-page-placeholder {
    padding: 50px 20px;
    text-align: center;
    font-family: "DM Sans";
    font-size: 1.5em;
    color: var(--color-text-gray);
}

/* Description */
.reef-program-description {
    font-family: "DM Sans";
    font-size: 1.5em;
    line-height: 1.8;
    color: var(--color-text-dark);
}

.reef-program-description ul {
    margin-left: 20px;
}

.reef-program-description p {
    margin: 10px 0;
}

/* FAQ */
.reef-program-faq-item {
    padding: 14px 16px;
    border: 1.5px solid var(--color-red);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: background-color 0.2s ease;
}

.reef-program-faq-item:hover {
    background-color: var(--color-yellow-light);
}

.reef-program-faq-question {
    font-family: "DM Sans";
    font-weight: 700;
    font-size: 1.4em;
    margin-bottom: 6px;
    color: var(--color-text-dark);
}

.reef-program-faq-answer {
    font-family: "DM Sans";
    font-size: 1.3em;
    line-height: 1.6;
    color: var(--color-text-dark);
}

/* Gallery */
.reef-program-gallery-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.reef-program-gallery-item {
    display: grid;
    gap: 6px;
    text-align: center;
    overflow: hidden;
    cursor: pointer;
    border-radius: 10px;
    transition: transform 0.2s ease;
}

.reef-program-gallery-item:hover {
    transform: scale(1.02);
}

.reef-program-gallery-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 10px;
}

.reef-program-gallery-caption {
    font-family: "DM Sans";
    font-size: 1.1em;
    color: var(--color-text-gray);
    padding: 0 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Gallery enlarged state */
.reef-program-gallery-item.enlarged {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 100;
    border-radius: 0;
    cursor: default;
}

.reef-program-gallery-item.enlarged:hover {
    transform: none;
}

.enlarged .reef-program-gallery-image {
    width: min(500px, 80vw);
    height: min(500px, 80vh);
    aspect-ratio: auto;
    background-size: contain;
    border-radius: 0;
}

.enlarged .reef-program-gallery-caption {
    color: var(--color-white);
    font-size: 1.5em;
    max-width: 80vw;
    margin-top: 12px;
    white-space: normal;
}

/* ===========================
   DOCUMENT LIST
   =========================== */

.reef-document-list-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.reef-document-item {
    text-decoration: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.2s ease;
}

.reef-document-item:hover {
    transform: scale(1.02);
}

.reef-document-item:hover h2 {
    color: var(--color-red);
}

.reef-document-item h2 {
    font-weight: 700;
    font-size: 1.3em;
    line-height: 1.35;
    color: var(--color-text-dark);
}

.reef-document-item p {
    font-family: "DM Sans";
    font-size: 1.1em;
    color: var(--color-text-gray);
}

.reef-document-thumbnail {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.1);
}

/* ===========================
   SHARED UTILITY
   =========================== */

.reef-disclaimer-text {
    font-family: "DM Sans";
    font-size: 1.3em;
    font-weight: 600;
    color: var(--color-red);
    line-height: 1.6;
}

.reef-empty-list-placeholder {
    padding: 30px;
    text-align: center;
    font-family: "DM Sans";
    font-size: 1.6em;
    color: var(--color-text-gray);
    grid-column: 1 / -1;
}

/* MEDIA SMALL DESKTOP VIEW */
@media only screen and (min-width: 768px) {
    .reef-page-wrapper {
        padding: 60px;
    }

    .reef-section {
        min-height: 370px;
    }

    /* NAVBAR START */
    .reef-navbar-button-group {
        width: 50%;
    }

    .reef-banner-pagination {
        left: 0;
        right: 0;
        justify-content: center;
        bottom: 18px;
    }

    /* HOME - ARTICLE LIST: tablet, 2 columns, card goes back to side-by-side */
    .reef-home-articles-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .reef-home-article-card {
        flex-direction: row;
        height: 150px;
    }

    .reef-home-article-image {
        flex: 1;
        height: 100%;
    }

    /* HOME - PARTNER LIST: tablet, restore image, larger title */
    .reef-home-partners {
        padding: 50px;
    }

    .reef-home-partners-title {
        font-size: 3em;
    }

    .reef-home-partners-image {
        display: block;
    }

    /* MEMBER DETAIL */
    .reef-member-detail-wrapper {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }

    .reef-member-photo {
        width: 100%;
        max-width: 100%;
    }

    /* PROGRAM DETAIL */
    .reef-program-header {
        grid-template-columns: 300px 1fr;
        align-items: start;
    }

    .reef-program-header .reef-document-thumbnail {
        aspect-ratio: auto;
        height: 100%;
    }

    .reef-program-item-meta-container {
        grid-template-columns: 1fr 1fr;
    }

    .reef-document-list-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }

    .reef-program-gallery-container {
        grid-template-columns: repeat(4, 1fr);
    }

    /* MERCHANDISE DETAIL */
    .reef-merchandise-detail-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        padding: 0;
    }

    .reef-merchandise-detail-container {
        margin: 20px 0;
    }

    .reef-other-merchandise-scroll {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        overflow-x: visible;
        padding: 4px;
    }

    .reef-other-merchandise-scroll .reef-merchandise-card {
        flex: 1;
        min-width: unset;
    }
}

/* MEDIA DESKTOP VIEW */
@media only screen and (min-width: 1024px) {
    .reef-navbar-wrapper,
    .reef-navbar-container-group {
        height: var(--size-navbar-height-desktop);
    }

    .reef-page-wrapper > * + *,
    .reef-main-content > * + * {
        margin-top: 60px;
    }

    .reef-main-section {
        margin-top: var(--size-navbar-height-desktop);
    }

    /* MULTI-PAGE START */
    .reef-page-headings {
        flex-direction: row;
    }

    .reef-page-columns-2-2 {
        flex-direction: row;
    }

    .reef-page-title {
        font-size: 3.5em;
    }

    .reef-page-descriptions {
        font-size: 1.6em;
    }

    .reef-page-categories {
        gap: 30px;
        padding: 0 60px;
    }

    .reef-page-category {
        font-size: 1.5em;
        padding: 12px;
    }

    .reef-page-search {
        flex-direction: row;
        gap: 20px;
        padding: 0;
    }

    .reef-page-list-cards {
        gap: 20px;
    }

    .reef-page-grid-cards {
        grid-template-columns: repeat(5, 1fr);
        gap: 16px;
    }

    .reef-page-card-long {
        display: flex;
        flex-direction: row;
        height: 200px;
    }

    .reef-page-card-left {
        flex: 2;
        height: 100%;
        border-radius: 12px;
    }

    .reef-page-card-center {
        flex: 5;
        width: 100%;
        padding: 6px 0 0;
    }

    .reef-page-card-content-top {
        gap: 8px;
    }

    .reef-page-card-content-top span {
        font-size: 1em;
    }

    .reef-page-card-title {
        font-size: 2em;
    }

    .reef-page-card-content-top p {
        font-size: 1.2em;
    }

    .reef-page-card-right {
        flex: 1;
        width: 100%;
    }

    /* PAGINATION */
    .reef-pagination-ellipsis {
        min-width: 40px;
        font-size: 1.4rem;
    }

    .reef-pagination-arrow {
        width: 40px;
        height: 40px;
    }

    .reef-pagination-number {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }

    /* NAVBAR START */
    .reef-navbar-container-group {
        padding: 6px 30px;
        display: grid;
        grid-template-columns: 80px 1fr;
        gap: 40px;
    }

    .reef-navbar-trigger {
        display: none;
    }

    .reef-navbar-button-group {
        position: relative;
        display: grid;
        grid-template-columns: 1fr 300px;
        width: 100%;
        margin: 0;
        color: var(--color-black);
        box-shadow: none;
        padding: 0;
        transform: translate3d(0, 0, 0);
        height: auto;
        align-items: center;
        justify-content: space-between;
    }

    .reef-navbar-button-group.expanded {
        box-shadow: none;
    }

    .reef-navbar-button-subgroup {
        display: flex;
    }

    .reef-navbar-button-subgroup.left {
        order: 1;
        margin-top: 0;
    }

    .reef-navbar-button-subgroup.left
        .reef-navbar-button:not(:last-child):not(.is-active)::after {
        content: none;
    }

    .reef-navbar-button-subgroup.left .reef-navbar-button.is-active::after {
        content: "";
        z-index: -100;
        position: absolute;
        bottom: 35%;
        left: 60%;
        right: 0;
        transform: translateX(-50%);
        min-height: 0;
        width: 50%;
        overflow: hidden;
        height: 5px;
        background-color: var(--color-red);
    }

    .reef-navbar-button-subgroup.right {
        display: flex;
        justify-content: flex-end;
        order: 2;
        grid-template-columns: 1fr 50px;
        direction: ltr;
    }

    .reef-navbar-greeting {
        margin-left: 12px;
    }

    /* FOOTER */
    .reef-section.footer {
        background: linear-gradient(180deg, #0f0b2d 0.5%, #191055 99.5%);
        overflow: hidden;
    }

    .reef-footer-bg-left,
    .reef-footer-bg-right {
        display: block;
        position: absolute;
        top: 0;
        height: 150%;
        object-fit: cover;
        opacity: 0.3;
        -webkit-user-drag: none;
        user-select: none;
        pointer-events: none;
    }

    .reef-footer-bg-left {
        left: 0;
        transform: scaleX(-1);
    }

    .reef-footer-bg-right {
        right: 0;
    }

    .reef-footer-container {
        padding: 20px 25%;
    }

    /* HOME - BANNER */
    .reef-banner-content {
        padding-left: 120px;
    }

    /* HOME - ABOUT US */
    .reef-about-container {
        padding: 60px 60px;
        gap: 60px;
    }

    .reef-about-text {
        flex-direction: row;
        text-align: left;
    }

    /* HOME - ARTICLE LIST: desktop, 3 columns */
    .reef-home-articles-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .reef-home-article-categories {
        justify-content: center;
        flex-wrap: wrap;
        overflow-x: visible;
        mask-image: none;
        -webkit-mask-image: none;
    }

    /* HOME - PARTNER LIST: desktop, side-by-side; grid clips to 3x3 and pages horizontally if more than 9 cards exist */
    .reef-home-partners {
        flex-direction: row;
        gap: 50px;
    }

    .reef-home-partners-left {
        flex: 1;
    }

    .reef-home-partners-right {
        flex: 1;
    }

    .reef-home-partners-title {
        font-size: 4em;
    }

    .reef-home-partners-grid {
        display: grid;
        grid-template-rows: repeat(3, 1fr);
        grid-auto-flow: column;
        grid-auto-columns: calc((100% - 24px) / 3);
        gap: 12px;
        height: calc(3 * 120px + 2 * 12px);
    }

    .reef-home-partners-card {
        flex: none;
        width: 100%;
        height: 100%;
    }

    /* COMMITTEE */

    .reef-committee-head {
        flex-direction: row;
        min-height: unset;
        height: 300px;
    }

    .reef-committee-head-picture {
        flex: 1;
        height: 100%;
        width: auto;
    }

    .reef-committee-head-details {
        flex: 2;
        padding: 10px 0px;
    }

    .reef-committee-member-list {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .reef-committee-member-details {
        margin: 15px 0;
        gap: 20px;
    }

    .reef-committee-member-name {
        font-size: 1.8em;
    }

    .reef-committee-member-socials {
        gap: 15px;
    }

    .reef-committee-member-socials a img {
        width: 18px;
        height: 18px;
    }

    /* MERCHANDISE */
    .reef-merchandise-card {
        height: 320px;
    }

    /* MEMBERS */
    .reef-member-list {
        grid-template-columns: repeat(3, 1fr);
    }

    /* MEMBER DETAIL */
    .reef-member-detail-wrapper {
        grid-template-columns: 280px 1fr;
        gap: 40px;
        padding: 0;
    }

    .reef-member-photo {
        width: 100%;
        max-width: 100%;
    }

    .reef-member-data-container {
        grid-template-columns: 1fr 1fr;
    }

    .reef-member-data-placeholder {
        grid-column: span 2;
    }

    /* PROGRAM DETAIL */
    .reef-program-header {
        grid-template-columns: 350px 1fr;
    }

    .reef-program-content h1 {
        font-size: 3em;
    }

    .reef-program-content > p {
        font-size: 1.5em;
    }

    .reef-program-item-meta-container {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .reef-document-list-wrapper {
        grid-template-columns: repeat(4, 1fr);
    }

    .reef-document-item h2 {
        font-size: 1.4em;
    }

    .reef-program-gallery-container {
        grid-template-columns: repeat(5, 1fr);
    }

    /* MERCHANDISE DETAIL */
    .reef-merchandise-detail-wrapper {
        grid-template-columns: 400px 1fr;
        gap: 60px;
    }

    .reef-merchandise-detail-container .reef-merchandise-name {
        font-size: 3.2em;
    }

    .reef-other-merchandise-scroll {
        grid-template-columns: repeat(4, 1fr);
    }

    .reef-article-headings {
        padding: 30px 80px;
    }

    .reef-article-wrapper {
        padding: 30px 80px;
    }

    .reef-article-related-text {
        font-size: 2.2em;
    }

    .reef-article-related-card {
        flex: 0 0 calc((100% - 2 * 16px) / 3);
        flex-direction: row;
    }

    .reef-article-related-image {
        flex: 1;
    }

    .reef-article-related-detail {
        flex: 1;
    }

    .reef-article-related-detail-title {
        font-size: 1.5em;
    }

    .reef-main-content {
        padding: 50px;
    }

    .reef-page-headings-hero {
        text-align: left;
    }

    .reef-auth-wrapper {
        margin-top: 30px;
    }

    .reef-auth-image {
        display: block;
    }

    .reef-input-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
        align-items: start;
    }

    .reef-form-column {
        gap: 22px;
    }
}
