/* =========================
   GENERAL SETTINGS
========================= */

:root {
    --cream: #f8f7f2;
    --white: #ffffff;
    --green: #254b3f;
    --green-light: #e8eee9;
    --dark: #202b26;
    --gray: #777e78;
    --border: #e5e5dc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--cream);
    color: var(--dark);
    font-family: "DM Sans", sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================
   NAVIGATION
========================= */

.navbar {
    width: 100%;
    min-height: 86px;
    padding: 0 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: var(--cream);
}

.logo {
    display: flex;
    align-items: center;
    gap: 11px;
    font-weight: 700;
    font-size: 15px;
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: var(--green);
    color: white;
    border-radius: 50%;
    font-family: "Playfair Display", serif;
    font-size: 20px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-links a {
    position: relative;
    display: inline-block;
    padding: 10px 0;
    text-decoration: none;
    color: var(--dark);
    font-size: 13px;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-links a:hover {
    color: var(--green);
    transform: scale(1.08);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 2px;
    background: var(--green);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav-links a:hover {
    color: var(--green);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.nav-links:hover a.active:not(:hover)::after {
    transform: scaleX(0);
}

.nav-links a.active {
    color: var(--green);
    font-weight: 700;
}

.nav-links a.active {
    color: var(--green);
    font-weight: 700;
}

.nav-links a.active::after {
    transform: scaleX(1);
}

.nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 190px;
    height: 40px;
    padding: 0 20px;
    box-sizing: border-box;

    background: var(--green);
    color: #ffffff !important;

    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;

    border: 1px solid var(--green);
    border-radius: 4px;

    transition: all 0.3s ease;
}

.nav-button span {
    display: inline-block;
    margin-left: 8px;

.nav-button span {
    position: relatie;
    top: 10px;
}
}

.nav-button:hover {
    background: #18372e;
    border-color: #18372e;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* =========================
   HERO SECTION
========================= */

.hero {
    min-height: 620px;
    padding: 90px 10%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 65px;
}

.eyebrow {
    color: var(--green);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
}

.hero h1 {
    margin-top: 25px;
    font-family: "Playfair Display", serif;
    font-size: clamp(42px, 5vw, 65px);
    line-height: 1.15;
    font-weight: 500;
    letter-spacing: -2px;
}

.hero h1 span,
.section-heading h2 span {
    color: var(--green);
}

.hero-content > p {
    max-width: 490px;
    margin-top: 25px;
    color: var(--gray);
    font-size: 14px;
    line-height: 1.9;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-top: 35px;
}

.primary-button {
    padding: 16px 23px;
    background: var(--green);
    color: white;
    font-size: 12px;
    border-radius: 4px;
    transition: 0.3s;
}

.secondary-button {
    padding: 16px 23px;
    border: 1px solid var(--border);
    font-size: 12px;
    border-radius: 4px;
}

.secondary-button:hover {
    border-color: var(--green);
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 55px;
    color: var(--gray);
    font-size: 10px;
}

.note-line {
    width: 30px;
    height: 1px;
    background: var(--green);
}

/* =========================
   HERO VISUAL
========================= */

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-card {
    width: 100%;
    max-width: 400px;
    min-height: 430px;
    padding: 35px;
    background: var(--green);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.visual-card::after {
    content: "";
    position: absolute;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    top: 70px;
    left: 35px;
}

.card-label {
    font-size: 9px;
    letter-spacing: 2px;
    color: #c5d3ca;
}

.decorative-letter {
    font-family: "Playfair Display", serif;
    font-size: 220px;
    font-weight: 500;
    text-align: center;
    color: #e5e9df;
    line-height: 1;
}

.visual-caption {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 9px;
    letter-spacing: 1px;
    color: #c5d3ca;
}

.floating-tag {
    position: absolute;
    bottom: 35px;
    left: -30px;
    padding: 15px 18px;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tag-dot {
    width: 8px;
    height: 8px;
    background: #83a58e;
    border-radius: 50%;
}

/* =========================
   ABOUT SECTION
========================= */

.about-section {
    padding: 100px 12%;
    background: white;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-heading h2 {
    margin-top: 20px;
    font-family: "Playfair Display", serif;
    font-size: 39px;
    line-height: 1.3;
    font-weight: 500;
}

.about-description {
    color: var(--gray);
    font-size: 14px;
    line-height: 2;
}

/* =========================
   MISSION SECTION
========================= */

.mission-section {
    padding: 100px 10%;
    text-align: center;
}

.mission-section h2 {
    margin-top: 20px;
    font-family: "Playfair Display", serif;
    font-size: 38px;
    font-weight: 500;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 55px;
    text-align: left;
}

.mission-card {
    padding: 35px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 3px;
}

.mission-number {
    color: #91a798;
    font-size: 12px;
    letter-spacing: 2px;
}

.mission-card h3 {
    margin-top: 30px;
    font-family: "Playfair Display", serif;
    font-size: 23px;
    font-weight: 500;
}

.mission-card p {
    margin-top: 15px;
    color: var(--gray);
    font-size: 12px;
    line-height: 1.9;
}

/* =========================
   FOOTER
========================= */

.footer {
    padding: 45px 10%;
    background: #203e34;
    color: white;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer .logo-mark {
    background: white;
    color: var(--green);
}

.footer p,
.copyright {
    font-size: 10px;
    color: #c1cec5;
}

/* =========================
   RESPONSIVE DESIGN
========================= */

@media (max-width: 850px) {
    .navbar {
        padding: 20px 5%;
        flex-wrap: wrap;
        gap: 20px;
    }

    .nav-links {
        gap: 15px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 70px 7%;
    }

    .hero-visual {
        margin-top: 20px;
    }

    .about-section {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 75px 7%;
    }

    .mission-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .navbar {
        justify-content: center;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
    }

    .hero {
        padding: 55px 6%;
    }

    .visual-card {
        min-height: 330px;
    }

    .decorative-letter {
        font-size: 170px;
    }

    .floating-tag {
        left: -5px;
    }

    .section-heading h2,
    .mission-section h2 {
        font-size: 30px;
    }

    .footer {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================
   DICTIONARY PAGE
========================= */

.dictionary-page {
    min-height: 750px;
}

.dictionary-hero {
    padding: 85px 10% 55px;
    text-align: center;
}

.dictionary-hero h1 {
    margin-top: 20px;
    font-family: "Playfair Display", serif;
    font-size: clamp(40px, 5vw, 58px);
    font-weight: 500;
}

.dictionary-hero h1 span {
    color: var(--green);
}

.dictionary-hero p {
    max-width: 550px;
    margin: 20px auto 0;
    color: var(--gray);
    font-size: 14px;
    line-height: 1.8;
}

/* SEARCH */

.dictionary-search {
    max-width: 850px;
    margin: 0 auto;
    padding: 35px;
    background: white;
    border: 1px solid var(--border);
}

.search-heading h2 {
    font-family: "Playfair Display", serif;
    font-size: 25px;
    font-weight: 500;
}

.search-heading p {
    margin-top: 8px;
    color: var(--gray);
    font-size: 12px;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.search-icon {
    padding-left: 10px;
    font-size: 25px;
    color: var(--green);
}

.search-container input {
    flex: 1;
    min-width: 0;
    padding: 12px 5px;
    border: none;
    outline: none;
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
}

.search-container button {
    padding: 14px 25px;
    background: var(--green);
    color: white;
    border: none;
    border-radius: 3px;
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.search-container button:hover {
    background: #18372e;
}

.search-note {
    margin-top: 12px;
    color: var(--gray);
    font-size: 10px;
}

/* RESULTS */

.dictionary-results {
    max-width: 850px;
    margin: 75px auto 100px;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
}

.results-header h2 {
    margin-top: 10px;
    font-family: "Playfair Display", serif;
    font-size: 30px;
    font-weight: 500;
}

.entry-count {
    color: var(--gray);
    font-size: 11px;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.empty-state {
    padding: 65px 20px;
    background: white;
    border: 1px solid var(--border);
    text-align: center;
}

.empty-icon {
    color: var(--green);
    font-size: 40px;
}

.empty-state h3 {
    margin-top: 15px;
    font-family: "Playfair Display", serif;
    font-size: 22px;
    font-weight: 500;
}

.empty-state p {
    margin-top: 10px;
    color: var(--gray);
    font-size: 12px;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .dictionary-results,
    .dictionary-search {
        margin-left: 6%;
        margin-right: 6%;
    }
}

@media (max-width: 500px) {
    .dictionary-hero {
        padding: 65px 6% 40px;
    }

    .dictionary-search {
        padding: 22px;
    }

    .search-container {
        flex-wrap: wrap;
    }

    .search-container input {
        width: 60%;
    }

    .search-container button {
        width: 100%;
    }

    .dictionary-results {
        margin-top: 55px;
    }

    .results-header h2 {
        font-size: 24px;
    }
}


/* =========================
   DICTIONARY ENTRY CARDS
========================= */

.dictionary-entry {
    padding: 30px;
    background: white;
    border: 1px solid var(--border);
    border-left: 4px solid var(--green);
    transition: 0.25s ease;
}

.dictionary-entry:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
}

.dictionary-entry h3 {
    margin-bottom: 18px;
    color: var(--green);
    font-family: "Playfair Display", serif;
    font-size: 25px;
    font-weight: 500;
}

.dictionary-entry p {
    margin-top: 9px;
    color: var(--gray);
    font-size: 13px;
    line-height: 1.6;
}

/* DICTIONARY ENTRY CARD */

.dictionary-entry {
    background: #ffffff;
    border: 1px solid #e5e8e1;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.entry-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.entry-label {
    color: #254b3f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.verification-status {
    background: #f5f0df;
    color: #806b36;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.entry-word {
    color: #254b3f;
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    margin-bottom: 18px;
}

.entry-translations {
    border-top: 1px solid #eeeeea;
    border-bottom: 1px solid #eeeeea;
    padding: 15px 0;
    margin-bottom: 18px;
}

.entry-translations p {
    color: #555;
    margin: 8px 0;
}

.entry-definition h4 {
    color: #254b3f;
    margin-bottom: 8px;
}

.entry-definition p {
    color: #666;
    line-height: 1.7;
}

.entry-audio {
    margin-top: 20px;
}

.entry-audio button {
    background: #f1f3ef;
    color: #777;
    border: none;
    border-radius: 8px;
    padding: 11px 16px;
    font-size: 13px;
    cursor: not-allowed;
    opacity: 0.8;
}

/* DICTIONARY TABLE */

.dictionary-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
}

.dictionary-table th {
    background: #254b3f;
    color: #ffffff;
    padding: 18px 15px;
    font-size: 13px;
    font-weight: 600;
}

.dictionary-table td {
    padding: 18px 15px;
    border-bottom: 1px solid #e5e8e1;
    color: #444444;
    font-size: 14px;
}

.dictionary-table tbody tr:hover {
    background: #f8f7f2;
}

.dictionary-table tbody tr:last-child td {
    border-bottom: none;
}

.audio-button {
    background: #f1f3ef;
    color: #777777;
    border: none;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 12px;
    cursor: not-allowed;
}

/* MOBILE TABLE SUPPORT */

.dictionary-results {
    overflow-x: auto;
}

.dictionary-table {
    min-width: 650px;
}

/* =========================
   DICTIONARY DESIGN UPGRADE
========================= */

/* SEARCH PANEL */

.dictionary-search {
    max-width: 900px;
    padding: 40px;
    border: 1px solid #e5e8e1;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(37, 75, 63, 0.05);
}

.search-heading h2 {
    color: var(--green);
    font-size: 28px;
}

.search-heading p {
    font-size: 13px;
    line-height: 1.7;
}

/* SEARCH BAR */

.search-container {
    margin-top: 28px;
    padding: 9px 10px;
    border: 1px solid #dfe5df;
    border-radius: 8px;
    background: #fcfcfa;
    transition: 0.25s ease;
}

.search-container:focus-within {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(37, 75, 63, 0.08);
}

.search-container input {
    font-size: 14px;
}

.search-container input::placeholder {
    color: #a0a59f;
}

.search-container button {
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
}

/* CATEGORY FILTER */

.category-filter {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 22px;
}

.category-filter label {
    color: var(--green);
    font-size: 12px;
    font-weight: 700;
}

.category-filter select {
    width: 100%;
    padding: 14px 16px;
    background: #fcfcfa;
    color: var(--dark);
    border: 1px solid #dfe5df;
    border-radius: 7px;
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    cursor: pointer;
    outline: none;
    transition: 0.25s ease;
}

.category-filter select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(37, 75, 63, 0.08);
}

/* SEARCH NOTE */

.search-note {
    margin-top: 14px;
    line-height: 1.6;
}

/* RESULTS SECTION */

.dictionary-results {
    max-width: 900px;
    margin-top: 65px;
    margin-bottom: 110px;
}

.results-header {
    margin-bottom: 22px;
}

.results-header h2 {
    color: var(--green);
}

.entry-count {
    padding: 8px 14px;
    background: var(--green-light);
    color: var(--green);
    border-radius: 20px;
    font-weight: 600;
}

/* VOCABULARY TABLE */

.dictionary-table {
    min-width: 700px;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e5e8e1;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(37, 75, 63, 0.04);
}

.dictionary-table th {
    padding: 20px 18px;
    background: var(--green);
    color: white;
    font-size: 12px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.dictionary-table td {
    padding: 19px 18px;
    color: #4d5750;
    font-size: 13px;
    line-height: 1.6;
}

.dictionary-table tbody tr {
    transition: background 0.2s ease;
}

.dictionary-table tbody tr:hover {
    background: #f2f5f0;
}

.dictionary-table tbody tr:last-child td {
    border-bottom: none;
}

/* AUDIO BUTTON */

.audio-button {
    padding: 9px 13px;
    background: #edf1ec;
    color: #68756b;
    border-radius: 6px;
    font-family: "DM Sans", sans-serif;
    font-size: 11px;
    font-weight: 600;
}

/* EMPTY SEARCH STATE */

.empty-state {
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(37, 75, 63, 0.04);
}

/* MOBILE IMPROVEMENTS */

@media (max-width: 600px) {
    .dictionary-search {
        padding: 24px 20px;
        border-radius: 10px;
    }

    .search-heading h2 {
        font-size: 24px;
    }

    .search-container {
        gap: 8px;
    }

    .search-container input {
        font-size: 12px;
    }

    .category-filter select {
        font-size: 12px;
    }

    .dictionary-results {
        margin-top: 45px;
        margin-bottom: 75px;
    }

    .dictionary-table th,
    .dictionary-table td {
        padding: 15px 13px;
    }

    .entry-count {
        font-size: 10px;
    }
}

/* =================================
   EXPANDED DICTIONARY ENTRY DETAILS
================================= */

.details-row td {
    background-color: #f8f7f2;
    padding: 0;
    border-bottom: 1px solid #e5e5dc;
}

.entry-details {
    padding: 28px 32px;
    background: #f8f7f2;
    border-left: 4px solid #254b3f;
}

.entry-details h3 {
    color: #254b3f;
    font-family: "Playfair Display", serif;
    font-size: 21px;
    margin-bottom: 20px;
}

.entry-details p {
    color: #202b26;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.entry-details strong {
    color: #254b3f;
    font-weight: 700;
}

.details-button {
    background: #e8eee9;
    color: #254b3f;
    border: 1px solid #d5e0d8;
    border-radius: 6px;
    padding: 8px 13px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.details-button:hover {
    background: #254b3f;
    color: #ffffff;
}

@media (max-width: 600px) {
    .entry-details {
        padding: 22px 18px;
    }

    .entry-details h3 {
        font-size: 19px;
    }
}

/* =================================
   VERIFICATION STATUS BADGES
================================= */

.verification-badge {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 6px;
}

.status-pending {
    background-color: #fff3d6;
    color: #946200;
}

.status-review {
    background-color: #e5efff;
    color: #285b9a;
}

.status-verified {
    background-color: #e3f3e8;
    color: #27643b;
}

/* AUDIO PLAYER IN WORD DETAILS */

.details-audio {
    margin: 10px 0 18px;
}

.details-audio audio {
    width: 100%;
    max-width: 350px;
}

.audio-pending {
    display: inline-block;
    color: #777e78;
    font-size: 13px;
    font-style: italic;
}

/* PAGINATION */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 30px 0;
}

.pagination button {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #e5e5dc;
    border-radius: 6px;
    background-color: #ffffff;
    color: #254b3f;
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.pagination button:hover:not(:disabled) {
    background-color: #e8eee9;
    border-color: #254b3f;
}

.pagination button.active {
    background-color: #254b3f;
    color: #ffffff;
    border-color: #254b3f;
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .pagination {
        gap: 5px;
    }

    .pagination button {
        min-width: 34px;
        height: 34px;
        padding: 0 9px;
        font-size: 12px;
    }
}

/* =================================
   WORD DETAILS PAGE
================================= */

#wordDetails {
    max-width: 900px;
    margin: 0 auto;
    padding: 65px 25px 100px;
}

.word-detail-card {
    width: 100%;
}

.back-link {
    display: inline-block;
    margin-bottom: 45px;
    color: var(--green);
    font-size: 13px;
    font-weight: 600;
    transition: 0.2s ease;
}

.back-link:hover {
    transform: translateX(-4px);
}

.word-detail-title {
    margin: 18px 0;
    color: var(--green);
    font-family: "Playfair Display", serif;
    font-size: clamp(38px, 5vw, 55px);
    font-weight: 500;
    line-height: 1.2;
}

.word-detail-card > .verification-badge {
    margin-left: 0;
}

.word-information {
    margin-top: 28px;
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 5px 22px rgba(37, 75, 63, 0.035);
}

.word-information h2 {
    margin-bottom: 22px;
    color: var(--green);
    font-family: "Playfair Display", serif;
    font-size: 23px;
    font-weight: 500;
}

.word-information p {
    margin-bottom: 15px;
    color: var(--gray);
    font-size: 13px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.word-information p:last-child {
    margin-bottom: 0;
}

.word-information strong {
    color: var(--dark);
    font-weight: 700;
}

.word-information .details-audio {
    margin-top: 12px;
}

.word-information .details-audio audio {
    width: 100%;
    max-width: 400px;
}

.word-information .audio-pending {
    padding: 12px 15px;
    background: var(--green-light);
    border-radius: 6px;
    line-height: 1.6;
}

#wordDetails .empty-state {
    margin-top: 40px;
    border-radius: 10px;
}

#wordDetails .empty-state a {
    display: inline-block;
    margin-top: 20px;
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
}

/* WORD DETAILS RESPONSIVE DESIGN */

@media (max-width: 600px) {
    #wordDetails {
        padding: 45px 20px 70px;
    }

    .back-link {
        margin-bottom: 35px;
    }

    .word-detail-title {
        font-size: 38px;
    }

    .word-information {
        padding: 23px 20px;
        margin-top: 20px;
    }

    .word-information h2 {
        font-size: 21px;
    }
}

.hero-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(45px, 6vw, 72px);
    font-weight: 600;
    line-height: 1.1;
    color: var(--green);
}

.hero-subtitle {
    display: block;
    margin-top: 12px;
    font-family: "DM Sans", sans-serif;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray);
}

/* =================================
   PROJECT INTRODUCTION
================================= */

.project-intro {
    padding: 100px 8%;
    background: var(--white);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
}

.project-intro-content {
    max-width: 600px;
    margin: 0;
}

.project-intro h2,
.objectives-heading h2 {
    margin: 20px 0;
    color: var(--green);
    font-family: "Playfair Display", serif;
    font-size: clamp(34px, 5vw, 48px);
    font-weight: 500;
    line-height: 1.2;
}

.project-intro h2 span,
.objectives-heading h2 span {
    color: #82978a;
}

.project-intro p {
    max-width: 780px;
    margin-top: 18px;
    color: var(--gray);
    font-size: 15px;
    line-height: 1.9;

    .project-intro {
    padding: 100px 8%;
    background: var(--white);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
}

.project-intro-content {
    max-width: 600px;
    margin: 0;
}
}

/* =================================
   RESEARCH OBJECTIVES
================================= */

.objectives-section {
    padding: 100px 10%;
    background: var(--cream);
}

.objectives-heading {
    max-width: 700px;
    margin-bottom: 45px;
}

.objectives-heading > p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.8;
}

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.objective-card {
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: 0.25s ease;
}

.objective-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 75, 63, 0.07);
}

.objective-number {
    color: #82978a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.objective-card h3 {
    margin: 18px 0 10px;
    color: var(--green);
    font-family: "Playfair Display", serif;
    font-size: 24px;
    font-weight: 500;
}

.objective-card p {
    color: var(--gray);
    font-size: 13px;
    line-height: 1.8;
}

/* RESPONSIVE DESIGN */

@media (max-width: 600px) {
    .project-intro,
    .objectives-section {
        padding: 70px 7%;
    }

    .objectives-grid {
        grid-template-columns: 1fr;
    }

    .objective-card {
        padding: 25px;
    }
}

/* =================================
   ABOUT CHABACANO PAGE
================================= */

.about-hero {
    padding: 110px 10% 90px;
    text-align: center;
    background: var(--cream);
}

.about-hero h1 {
    max-width: 850px;
    margin: 22px auto;
    color: var(--green);
    font-family: "Playfair Display", serif;
    font-size: clamp(42px, 6vw, 68px);
    font-weight: 500;
    line-height: 1.15;
}

.about-hero h1 span {
    display: block;
    color: #82978a;
}

.about-hero p {
    max-width: 650px;
    margin: 20px auto 0;
    color: var(--gray);
    font-size: 15px;
    line-height: 1.9;
}

.about-content-section {
    padding: 85px 12%;
    background: var(--white);
}

.about-content-section h2 {
    max-width: 750px;
    margin: 18px 0 25px;
    color: var(--green);
    font-family: "Playfair Display", serif;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 500;
    line-height: 1.25;
}

.about-content-section p {
    max-width: 850px;
    margin-bottom: 18px;
    color: var(--gray);
    font-size: 15px;
    line-height: 2;
}

.alternate-section {
    background: var(--cream);
}

.about-cta {
    padding: 90px 5%;
    text-align: center;
    background: var(--green);
}

.about-cta .eyebrow {
    color: #c5d4ca;
}

.about-cta h2 {
    max-width: 700px;
    margin: 20px auto 35px;
    color: var(--white);
    font-family: "Playfair Display", serif;
    font-size: clamp(30px, 4vw, 43px);
    font-weight: 500;
    line-height: 1.3;
}

.about-cta .primary-button {
    display: inline-block;
}

/* MOBILE RESPONSIVENESS */

@media (max-width: 600px) {
    .about-hero {
        padding: 75px 7%;
    }

    .about-content-section {
        padding: 65px 7%;
    }

    .about-cta {
        padding: 70px 7%;
    }
}

/* =================================
   HOMEPAGE HERO PHOTOGRAPH
================================= */

.hero-image-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 15px 40px rgba(37, 75, 63, 0.12);
}

.hero-photo {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.hero-image-card figcaption {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 20px 23px;
    background: var(--white);
}

.hero-image-card figcaption span:first-child {
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.hero-image-card figcaption span:last-child {
    color: var(--gray);
    font-size: 13px;
}

/* =================================
   ABOUT PAGE PHOTOGRAPHS
================================= */

.about-photo-section {
    padding: 55px 10% 85px;
    background: var(--white);
}

.about-photo-card {
    max-width: 850px;
    margin: 0 auto;
}

.about-photo-card img {
    display: block;
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 10px;
}

.about-photo-card figcaption {
    margin-top: 12px;
    color: var(--gray);
    font-size: 12px;
    line-height: 1.7;
}

@media (max-width: 600px) {
    .hero-photo {
        height: 300px;
    }

    .about-photo-section {
        padding: 40px 7% 65px;
    }
}

/* DICTIONARY FEATURE */
.dictionary-feature {
    padding: 100px 10%;
    background: var(--green);
    text-align: center;
}

.dictionary-feature-content {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dictionary-feature .eyebrow {
    color: #d0ded4;
}

.dictionary-feature h2 {
    margin: 20px 0;
    color: var(--white);
    font-family: "Playfair Display", serif;
    font-size: clamp(34px, 5vw, 48px);
    font-weight: 500;
    line-height: 1.2;
}

.dictionary-feature p {
    max-width: 620px;
    margin-bottom: 30px;
    color: #e1e9e3;
    font-size: 15px;
    line-height: 1.9;
}

.dictionary-feature .primary-button {
    display: inline-block;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .dictionary-feature {
        padding: 75px 7%;
    }
}

/* HISTORICAL HERITAGE FEATURE */
.heritage-section {
    padding: 90px 10%;
    background: var(--cream);
}

.heritage-image {
    max-width: 1050px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
}

.heritage-image img {
    display: block;
    width: 100%;
    height: 430px;
    object-fit: cover;
    object-position: center;
}

.heritage-caption {
    display: block;
    max-width: 1050px;
    margin: 13px auto 0;
    color: var(--gray);
    font-size: 11px;
    letter-spacing: 1.5px;
}

.heritage-content {
    max-width: 760px;
    margin: 55px auto 0;
    text-align: center;
}

.heritage-content h2 {
    margin: 18px 0;
    color: var(--green);
    font-family: "Playfair Display", serif;
    font-size: clamp(32px, 5vw, 46px);
    font-weight: 500;
    line-height: 1.2;
}

.heritage-content p {
    max-width: 650px;
    margin: 0 auto 25px;
    color: var(--gray);
    font-size: 15px;
    line-height: 1.9;
}

.heritage-content .text-link {
    display: inline-block;
}

@media (max-width: 600px) {
    .heritage-section {
        padding: 65px 7%;
    }

    .heritage-image img {
        height: 260px;
    }

    .heritage-content {
        margin-top: 35px;
    }
}

/* HERITAGE IMAGE CAPTION */
.heritage-caption {
    display: table;
    margin: 16px auto 0;
    padding: 10px 20px;
    background: var(--green-light);
    color: var(--green);
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-align: center;
}

/* DISCOVER HISTORY BUTTON */
.heritage-content .text-link {
    display: inline-block;
    margin-top: 10px;
    padding: 13px 25px;
    background: var(--green);
    color: var(--white);
    border: 1px solid var(--green);
    border-radius: 5px;
    text-decoration: none;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.heritage-content .text-link:hover {
    background: transparent;
    color: var(--green);
    transform: translateY(-3px);
}

/* HERO COVER IMAGE SIZE */
.hero-image-card {
    height: 420px;
    overflow: hidden;
    border-radius: 12px;
}

.hero-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (max-width: 768px) {
    .hero-image-card {
        height: 280px;
    }
}

.beach-image-card {
    width: 100%;
    max-width: 1050px;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
}

.beach-image-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.beach-location {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
    padding: 25px 30px;
    background: var(--white);
    border-bottom: 2px solid var(--green);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.location-label {
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.beach-location h3 {
    margin: 0;
    color: var(--green);
    font-family: "Playfair Display", serif;
    font-size: 28px;
    font-weight: 500;
}

.beach-location p {
    margin: 0;
    color: var(--gray);
    font-size: 14px;
}

/* Stack the beach image and location vertically */
.beach-section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* HERO COVER PHOTO */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;

    background:
    linear-gradient(
        90deg,
        rgba(15, 30, 24, 0.90) 0%,
        rgba(15, 30, 24, 0.72) 50%,
        rgba(15, 30, 24, 0.20) 100%
    ),
    url("../assets/cavite-hero.webp");

    background-size: cover;
    background-position: center 15%;
    transform: none;
}

/* Keep the title and buttons above the photo */
.hero-content {
    position: relative;
    z-index: 1;
    transform: translateX(-125px);
    color: #ffffff;
}

.hero-content h1,  
.hero-content p,
.hero-content .eyebrow {   
    color: #ffffff;
}

.highlight-text {
    color: #d6b77a; 
}

