/* ==========================================================
   CAVE CONSERVATION PROGRAM PAGE
========================================================== */

.cave-page {
    background: #f5f8fb;
    color: #102033;
}

.cave-section {
    padding: 82px 0;
}

.section-label,
.cave-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #049bce;
}

.cave-page h1,
.cave-page h2,
.cave-page h3,
.cave-page h4 {
    color: #071827;
}

.cave-page p {
    color: #4b5d70;
    line-height: 1.75;
}

/* HERO */

.cave-hero {
    position: relative;
    padding: 110px 0 96px;
    background:
        radial-gradient(circle at 15% 20%, rgba(4, 155, 206, 0.32), transparent 26%),
        radial-gradient(circle at 85% 15%, rgba(125, 220, 255, 0.18), transparent 30%),
        linear-gradient(135deg, #071827 0%, #08364a 52%, #06131f 100%);
    overflow: hidden;
}

.cave-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 52px 52px;
    opacity: 0.65;
}

.cave-hero::after {
    content: "";
    position: absolute;
    right: -180px;
    top: -190px;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 0 80px rgba(4,155,206,0.22);
}

.cave-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 42px;
    align-items: center;
}

.cave-eyebrow {
    color: #7ddcff;
}

.cave-hero h1 {
    max-width: 800px;
    margin: 0 0 22px;
    color: #ffffff;
    font-size: clamp(2.55rem, 5.6vw, 5.2rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.cave-hero p {
    max-width: 780px;
    margin: 0;
    color: rgba(255,255,255,0.88);
    font-size: 1.15rem;
    line-height: 1.8;
}

.cave-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.cave-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.cave-btn:hover {
    transform: translateY(-2px);
}

.cave-btn.primary {
    background: #049bce;
    color: #ffffff;
    border: 1px solid #049bce;
}

.cave-btn.secondary {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.3);
}

.cave-btn.dark {
    background: #071827;
    color: #ffffff;
    border: 1px solid #071827;
}

.cave-hero-card {
    padding: 32px;
    border-radius: 30px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(14px);
    box-shadow: 0 26px 80px rgba(0,0,0,0.2);
}

.cave-hero-card span {
    display: block;
    margin-bottom: 12px;
    color: #7ddcff;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.cave-hero-card h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 1.7rem;
    line-height: 1.15;
}

.cave-hero-card p {
    margin: 0;
    color: rgba(255,255,255,0.82);
}

/* INTRO */

.cave-intro {
    background: #ffffff;
}

.cave-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 36px;
    align-items: stretch;
}

.cave-intro h2,
.cave-pillars h2,
.cave-media-section h2,
.cave-gallery-section h2,
.cave-diagrams-section h2,
.cave-cta-box h2 {
    max-width: 850px;
    margin: 0 0 22px;
    font-size: clamp(1.85rem, 3.2vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.cave-intro p {
    margin: 0 0 18px;
    font-size: 1rem;
}

.cave-side-note {
    padding: 32px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(4,155,206,0.15), transparent 35%),
        #f6fbfd;
    border: 1px solid rgba(7,24,39,0.08);
    box-shadow: 0 20px 60px rgba(7,24,39,0.06);
}

.cave-side-note h3 {
    margin: 0 0 12px;
    font-size: 1.35rem;
}

.cave-side-note p {
    margin: 0;
}

/* PILLARS */

.cave-pillars {
    background: #f5f8fb;
}

.cave-pillar-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin-top: 36px;
}

.cave-pillar-card {
    padding: 28px;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid rgba(7,24,39,0.08);
    box-shadow: 0 18px 50px rgba(7,24,39,0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.cave-pillar-card:hover {
    transform: translateY(-4px);
    border-color: rgba(4,155,206,0.35);
    box-shadow: 0 26px 60px rgba(7,24,39,0.08);
}

.cave-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 18px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: rgba(4,155,206,0.12);
    color: #049bce;
    font-size: 1.2rem;
}

.cave-pillar-card h3 {
    margin: 0 0 12px;
    font-size: 1.13rem;
}

.cave-pillar-card p {
    margin: 0;
    font-size: 0.94rem;
}

/* MEDIA HUB */

.cave-media-section {
    background: #ffffff;
}

.section-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 34px;
}

.small-link {
    display: inline-flex;
    color: #049bce;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.small-link:hover {
    text-decoration: underline;
}

.cave-media-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 28px;
}

.cave-articles-panel,
.cave-videos-panel {
    padding: 30px;
    border-radius: 30px;
    background: #f7fbfd;
    border: 1px solid rgba(7,24,39,0.08);
}

.cave-articles-panel h3,
.cave-videos-panel h3 {
    margin: 0 0 22px;
    font-size: 1.45rem;
}

.cave-article-card {
    padding: 22px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(7,24,39,0.08);
}

.cave-article-card + .cave-article-card {
    margin-top: 16px;
}

.cave-article-card span {
    display: inline-flex;
    margin-bottom: 8px;
    color: #049bce;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cave-article-card h4 {
    margin: 0 0 8px;
    font-size: 1.16rem;
}

.cave-article-card p {
    margin: 0 0 12px;
    font-size: 0.95rem;
}

.cave-article-card a,
.diagram-card a {
    color: #049bce;
    font-weight: 800;
    text-decoration: none;
}

.cave-article-card a:hover,
.diagram-card a:hover {
    text-decoration: underline;
}

.video-placeholder {
    min-height: 280px;
    padding: 28px;
    display: flex;
    align-items: flex-end;
    gap: 18px;
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(7,24,39,0.82), rgba(4,83,112,0.78)),
        radial-gradient(circle at top right, rgba(125,220,255,0.24), transparent 34%),
        #071827;
    color: #ffffff;
    overflow: hidden;
}

.play-circle {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #049bce;
    color: #ffffff;
}

.video-placeholder span {
    display: block;
    margin-bottom: 6px;
    color: #7ddcff;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.video-placeholder h4 {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: 1.35rem;
}

.video-placeholder p {
    margin: 0;
    color: rgba(255,255,255,0.82);
}

.video-list {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.video-list div {
    padding: 16px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(7,24,39,0.08);
}

.video-list strong {
    display: block;
    margin-bottom: 4px;
    color: #071827;
}

.video-list span {
    color: #5d6e80;
    font-size: 0.92rem;
}

/* GALLERY */

.cave-gallery-section {
    background: #f5f8fb;
}

.cave-gallery-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
    gap: 22px;
    margin-top: 34px;
}

.gallery-card {
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(7,24,39,0.08);
    box-shadow: 0 18px 50px rgba(7,24,39,0.06);
}

.gallery-card.large {
    grid-row: span 1;
}

.gallery-image {
    min-height: 220px;
}

.gallery-card.large .gallery-image {
    min-height: 300px;
}

.placeholder-image {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 25% 20%, rgba(4,155,206,0.25), transparent 28%),
        linear-gradient(135deg, #071827, #0b4a63);
    color: rgba(255,255,255,0.92);
    font-size: 3.4rem;
}

.gallery-content {
    padding: 24px;
}

.gallery-content h3 {
    margin: 0 0 10px;
    font-size: 1.18rem;
}

.gallery-content p {
    margin: 0;
    font-size: 0.94rem;
}

/* DIAGRAMS */

.cave-diagrams-section {
    background: #ffffff;
}

.diagram-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.diagram-card {
    padding: 26px;
    border-radius: 28px;
    background: #f7fbfd;
    border: 1px solid rgba(7,24,39,0.08);
}

.diagram-card h3 {
    margin: 20px 0 10px;
    font-size: 1.18rem;
}

.diagram-card p {
    margin: 0 0 14px;
    font-size: 0.95rem;
}

.diagram-visual {
    min-height: 180px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(7,24,39,0.08);
    overflow: hidden;
}

.diagram-layer {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    font-weight: 800;
    color: #ffffff;
}

.diagram-layer.top {
    background: #4a7c59;
}

.diagram-layer.middle {
    background: #b48a58;
}

.diagram-layer.bottom {
    background: #049bce;
}

.cave-line {
    position: relative;
    background:
        linear-gradient(180deg, #ffffff, #eaf6fb);
}

.cave-line span {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 82px;
    height: 18px;
    border-radius: 999px;
    background: #049bce;
    box-shadow:
        70px -28px 0 4px rgba(4,155,206,0.45),
        150px 22px 0 6px rgba(4,155,206,0.25);
}

.water-cycle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    color: #049bce;
    font-size: 2.1rem;
}

/* CTA */

.cave-cta-section {
    padding: 86px 0;
    background:
        radial-gradient(circle at top left, rgba(4,155,206,0.16), transparent 36%),
        linear-gradient(135deg, #eef8fc, #ffffff);
}

.cave-cta-box {
    padding: 48px;
    border-radius: 34px;
    background: #ffffff;
    border: 1px solid rgba(7,24,39,0.08);
    box-shadow: 0 26px 80px rgba(7,24,39,0.08);
}

.cave-cta-box p {
    max-width: 820px;
    margin: 0;
    font-size: 1rem;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .cave-pillar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cave-gallery-grid,
    .diagram-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-card.large {
        grid-column: span 2;
    }
}

@media (max-width: 900px) {
    .cave-hero-inner,
    .cave-intro-grid,
    .cave-media-grid {
        grid-template-columns: 1fr;
    }

    .section-header-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .cave-hero {
        padding: 82px 0 72px;
    }

    .cave-section {
        padding: 64px 0;
    }

    .cave-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cave-btn {
        width: 100%;
    }

    .cave-pillar-grid,
    .cave-gallery-grid,
    .diagram-grid {
        grid-template-columns: 1fr;
    }

    .gallery-card.large {
        grid-column: auto;
    }

    .cave-hero-card,
    .cave-side-note,
    .cave-articles-panel,
    .cave-videos-panel,
    .cave-cta-box {
        padding: 26px;
        border-radius: 24px;
    }

    .video-placeholder {
        align-items: flex-start;
        flex-direction: column;
        min-height: 240px;
    }
}