:root {
  --primary: #1A472A;
  --primary-dark: #123020;
  --primary-light: #2A6B41;
  --gold: #FFCC00;
  --gold-dark: #D4A600;
  --cream: #FFF8DC;
  --brown: #333300;
  --white: #FFFFFF;
  --shadow: 0 4px 12px rgba(26, 71, 42, 0.15);
  --radius: 8px;
  --font-heading: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--brown);
  background-color: var(--cream);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
}

h1 { font-size: 48px; text-transform: uppercase; }
h2 { font-size: 36px; text-transform: uppercase; }
h3 { font-size: 26px; }
h4 { font-size: 20px; }

img { max-width: 100%; display: block; }

a { color: var(--primary); }
a:hover { color: var(--gold-dark); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--brown);
  padding: 10px 20px;
  z-index: 2000;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Header / Navigation ---------- */
.site-header {
  background: var(--primary);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 12px 20px;
  max-width: 1240px;
  margin: 0 auto;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { height: 52px; width: auto; }
.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.brand-sub { display: block; font-size: 11px; color: var(--cream); font-weight: 400; text-transform: none; letter-spacing: 0.5px; }

.main-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; }
.main-nav a {
  display: block;
  padding: 10px 12px;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav a:focus { background: var(--primary-light); color: var(--gold); }
.main-nav a.active { background: var(--gold); color: var(--brown); }

.nav-toggle {
  display: none;
  background: var(--gold);
  color: var(--brown);
  border: none;
  font-size: 22px;
  padding: 8px 14px;
  border-radius: var(--radius);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #0D2417 100%);
  color: var(--cream);
  text-align: center;
  padding: 80px 20px;
}
.hero h1 { color: var(--gold); margin-bottom: 16px; }
.hero p { max-width: 780px; margin: 0 auto 24px; font-size: 18px; }

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--brown);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  padding: 14px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--gold-dark); color: var(--white); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}
.btn-outline:hover { background: var(--gold); color: var(--brown); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--white); }
.section-title { text-align: center; margin-bottom: 12px; }
.section-sub {
  text-align: center;
  font-style: italic;
  font-size: 14px;
  max-width: 700px;
  margin: 0 auto 40px;
}

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  border-top: 4px solid var(--gold);
  transition: transform 0.2s;
}
.card:hover { transform: translateY(-4px); }
.card h3, .card h4 { margin-bottom: 10px; }
.card-icon { font-size: 34px; margin-bottom: 12px; }

.page-header {
  background: var(--primary);
  color: var(--cream);
  text-align: center;
  padding: 56px 20px;
}
.page-header h1 { color: var(--gold); font-size: 40px; margin-bottom: 8px; }
.page-header p { max-width: 760px; margin: 0 auto; }

.text-list { padding-left: 22px; margin: 12px 0; }
.text-list li { margin-bottom: 8px; }

.value-list { counter-reset: value; list-style: none; }
.value-list li {
  counter-increment: value;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 5px solid var(--gold);
  padding: 20px 24px;
  margin-bottom: 16px;
}
.value-list li::before {
  content: counter(value);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--primary);
  color: var(--gold);
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: 50%;
  margin-right: 12px;
}

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding-left: 30px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gold);
  border-radius: 2px;
}
.timeline-item { position: relative; margin-bottom: 20px; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 22px;
  width: 16px;
  height: 16px;
  background: var(--primary);
  border: 3px solid var(--gold);
  border-radius: 50%;
}
.timeline-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.timeline-head {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.timeline-head .year { color: var(--gold-dark); margin-right: 12px; }
.timeline-head .arrow { transition: transform 0.2s; }
.timeline-card.open .timeline-head .arrow { transform: rotate(180deg); }
.timeline-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 22px;
}
.timeline-card.open .timeline-body { max-height: 400px; padding-bottom: 18px; }

/* ---------- Nusantara Map ---------- */
.map-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.map-region-embed { height: 460px; }
.map-region-embed iframe { display: block; min-height: 0; }
.map-source { margin-top: 10px; font-size: 12px; color: #68756c; }
.map-source a { color: var(--primary); text-decoration: underline; }
.map-region-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.map-region-button {
  border: 1px solid #dce1d8;
  border-radius: 999px;
  background: var(--white);
  color: var(--primary);
  padding: 8px 13px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.map-region-button:hover, .map-region-button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.map-region-button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.map-info {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
  padding: 26px;
  min-height: 260px;
}
.map-info h3 { color: var(--gold-dark); text-transform: uppercase; font-size: 18px; margin-bottom: 6px; }

/* ---------- Gallery ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 32px; }
.filter-btn {
  background: var(--white);
  border: 1px solid var(--primary);
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: var(--radius);
  cursor: pointer;
}
.filter-btn.active, .filter-btn:hover { background: var(--primary); color: var(--gold); }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 71, 42, 0.85);
  color: var(--cream);
  font-size: 13px;
  padding: 10px 14px;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal img { max-height: 80vh; max-width: 90vw; border-radius: var(--radius); }
.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: var(--gold);
  border: none;
  font-size: 26px;
  color: var(--brown);
  padding: 6px 16px;
  border-radius: var(--radius);
  cursor: pointer;
}
.modal-caption { color: var(--cream); text-align: center; margin-top: 12px; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  max-width: 720px;
  margin: 0 auto;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--primary);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #C9C4A0;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--cream);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: 2px solid var(--gold);
  border-color: var(--primary);
}
.form-error { color: #A61B1B; font-size: 13px; margin-top: 4px; display: none; }
.form-group.invalid .form-error { display: block; }
.form-group.invalid input, .form-group.invalid textarea, .form-group.invalid select { border-color: #A61B1B; }
.form-success {
  display: none;
  background: var(--primary);
  color: var(--cream);
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  border-left: 5px solid var(--gold);
}
.form-success.show { display: block; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; }
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 20px;
  border-left: 5px solid var(--gold);
}
.contact-info-card h3 { font-size: 18px; margin-bottom: 10px; }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 320px; }
.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ---------- Calendar table ---------- */
.table-wrap { overflow-x: auto; }
.calendar-table { width: 100%; border-collapse: collapse; background: var(--white); box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.calendar-table th {
  background: var(--primary);
  color: var(--gold);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 14px;
  padding: 14px 16px;
  text-align: left;
}
.calendar-table td { padding: 14px 16px; border-bottom: 1px solid #EDE8CE; font-size: 15px; }
.calendar-table tr:nth-child(even) td { background: var(--cream); }

/* ---------- News ---------- */
.news-card { display: flex; flex-direction: column; }
.news-meta { font-size: 13px; font-style: italic; color: #6B6B2A; margin-bottom: 8px; }
.event-item { display: flex; gap: 18px; align-items: flex-start; }
.event-date {
  flex-shrink: 0;
  width: 74px;
  background: var(--primary);
  color: var(--gold);
  text-align: center;
  border-radius: var(--radius);
  padding: 10px 4px;
  font-family: var(--font-heading);
  font-weight: 700;
}
.event-date .day { font-size: 26px; display: block; }
.event-date .month { font-size: 12px; text-transform: uppercase; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-dark); color: var(--cream); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px; padding-bottom: 40px; }
.site-footer h4 { color: var(--gold); text-transform: uppercase; font-size: 15px; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer a { color: var(--cream); text-decoration: none; font-size: 14px; }
.site-footer a:hover { color: var(--gold); }
.footer-address { font-size: 14px; margin-bottom: 10px; }
.social-links { display: flex; gap: 10px; margin-top: 14px; }
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--primary-light);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  color: var(--gold);
}
.social-links a:hover { background: var(--gold); color: var(--brown); }
.newsletter-form { display: flex; gap: 8px; margin-top: 12px; }
.newsletter-form input { flex: 1; padding: 11px 14px; border: none; border-radius: var(--radius); font-family: var(--font-body); font-size: 14px; }
.newsletter-note { font-size: 12px; margin-top: 8px; color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255, 248, 220, 0.2);
  text-align: center;
  padding: 18px 20px;
  font-size: 13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  h1 { font-size: 38px; }
  h2 { font-size: 30px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .map-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  h1 { font-size: 30px; }
  h2 { font-size: 25px; }
  .page-header h1 { font-size: 28px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item img { height: 150px; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .main-nav { display: none; width: 100%; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 10px 0; }
  .hero { padding: 56px 20px; }
  .section { padding: 44px 0; }
}

/* Tailwind-powered editorial theme */
:root {
  --primary: #183a31;
  --primary-dark: #102a25;
  --primary-light: #315a4b;
  --gold: #d3ae70;
  --gold-dark: #b48c50;
  --cream: #faf8f2;
  --brown: #26332d;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(24, 58, 49, 0.08);
  --radius: 16px;
}

html { scroll-padding-top: 116px; }

body {
  background: #faf8f2;
  color: #536159;
  line-height: 1.75;
}

h1, h2, h3, h4, h5, h6 {
  color: #183a31;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: -0.035em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

a { text-underline-offset: 3px; }
a:hover { color: #b48c50; }

.container {
  width: min(100% - 48px, 1180px);
  max-width: 1180px;
  padding: 0;
}

.skip-link {
  background: #d3ae70;
  color: #102a25;
  border-radius: 0 0 10px 0;
  left: -999px;
  padding: 12px 18px;
}

.skip-link:focus { left: 12px; top: 12px; }

.site-header {
  position: sticky;
  background: rgba(250, 248, 242, 0.96);
  border-bottom: 1px solid rgba(24, 58, 49, 0.09);
  box-shadow: 0 5px 24px rgba(24, 58, 49, 0.04);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 24px;
  max-width: 1320px;
  padding: 12px 28px 0;
}

.brand { grid-column: 1; grid-row: 1; gap: 10px; }
.brand-logo { width: 48px; height: 48px; }
.brand-name {
  color: #183a31;
  font-size: 18px;
  letter-spacing: 0.06em;
}
.brand-sub { color: #69766d; font-size: 10px; letter-spacing: 0; }

.main-nav {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
  width: 100%;
}

.main-nav ul {
  justify-content: center;
  gap: 2px;
  padding: 5px 0 10px;
}

.main-nav a {
  color: #43564a;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 8px 13px;
  text-transform: none;
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav a.active {
  background: #e9eee7;
  color: #183a31;
}

.main-nav a.active { box-shadow: inset 0 -2px #b48c50; }
.nav-toggle { display: none; }

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 560px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(13, 36, 31, 0.9) 0%, rgba(13, 36, 31, 0.62) 48%, rgba(13, 36, 31, 0.1) 100%),
    url("../images/heritage/rumah-gadang-sumpu.jpg") center 48% / cover no-repeat,
    #102a25;
  color: #f7f4e9;
  padding: 100px 24px;
  text-align: left;
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-bottom: 1px solid rgba(211, 174, 112, 0.38);
  background: linear-gradient(0deg, rgba(16, 42, 37, 0.35), transparent 35%);
  content: "";
}

.hero-photo-credit {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 14px;
  z-index: 1;
  color: rgba(255, 250, 240, 0.9);
  font-size: 10px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
}

.hero-photo-credit a { color: #fffaf0; text-decoration: underline; }

.hero .container { width: min(100%, 1180px); padding: 0 24px; }
.hero h1 {
  max-width: 760px;
  color: #fffaf0;
  font-size: clamp(3.2rem, 7vw, 6.1rem);
  letter-spacing: -0.055em;
  line-height: 1.02;
  margin-bottom: 22px;
  text-transform: none;
}

.hero p {
  max-width: 680px;
  color: rgba(250, 248, 242, 0.84);
  font-size: 18px;
  line-height: 1.8;
  margin: 0 0 30px;
}

.hero .btn { margin: 0 10px 10px 0; }

.btn {
  background: #d3ae70;
  border-radius: 999px;
  color: #1d3129;
  font-size: 12px;
  letter-spacing: 0.07em;
  padding: 14px 24px;
  text-transform: uppercase;
}

.btn:hover {
  background: #e2c48f;
  color: #183a31;
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid rgba(250, 248, 242, 0.7);
  color: #faf8f2;
}

.btn-outline:hover { background: #faf8f2; color: #183a31; }

.section { padding: 84px 0; }
.section-alt { background: #f0f1eb; }

.section-title {
  margin-bottom: 12px;
  text-align: left;
}

.section-title::after {
  display: block;
  width: 42px;
  height: 3px;
  background: #c59b56;
  border-radius: 2px;
  content: "";
  margin-top: 17px;
}

.section-sub {
  color: #778177;
  font-size: 15px;
  font-style: normal;
  margin: 0 0 32px;
  text-align: left;
}

.section-title + .section-sub { margin-top: 0; }
.grid { gap: 22px; }

.card,
.contact-info-card,
.form-card,
.map-info,
.timeline-card {
  background: #fff;
  border: 1px solid rgba(24, 58, 49, 0.08);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(24, 58, 49, 0.045);
}

.card {
  border-top: 1px solid rgba(24, 58, 49, 0.08);
  padding: 28px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
  box-shadow: 0 20px 42px rgba(24, 58, 49, 0.11);
  transform: translateY(-4px);
}

.card h3, .card h4 { margin-bottom: 12px; }
.card p { color: #68756c; }
.card-icon { color: #b48c50; font-size: 30px; }

.leader-card { overflow: hidden; padding-top: 0; text-align: center; }
.leader-photo {
  display: block;
  width: calc(100% + 56px);
  height: auto;
  margin: 0 -28px 20px;
}
.leader-role {
  color: #a17b43 !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.leader-card h3 { font-size: 17px; }

.page-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 86% 20%, rgba(211, 174, 112, 0.18), transparent 30%),
    linear-gradient(125deg, #183a31, #102a25);
  color: #e8eee8;
  padding: 74px 24px 78px;
  text-align: left;
}

.page-header::after {
  position: absolute;
  z-index: -1;
  top: -90px;
  right: max(4%, calc((100vw - 1180px) / 2));
  width: 300px;
  height: 300px;
  border: 1px solid rgba(211, 174, 112, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(211, 174, 112, 0.035), 0 0 0 62px rgba(211, 174, 112, 0.025);
  content: "";
}

.page-header h1 {
  max-width: 900px;
  color: #fffaf0;
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin: 0 auto 14px;
}

.page-header p {
  max-width: 760px;
  color: rgba(250, 248, 242, 0.78);
  margin: 0 auto;
}

.page-header h1,
.page-header p { position: relative; z-index: 1; }

.text-list { padding-left: 22px; margin: 18px 0; }
.text-list li { padding-left: 4px; margin-bottom: 10px; }
.text-list li::marker { color: #b48c50; }

.value-list li {
  background: #fff;
  border: 1px solid rgba(24, 58, 49, 0.08);
  border-left: 3px solid #c59b56;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(24, 58, 49, 0.04);
}

.value-list li::before {
  background: #183a31;
  color: #f0d7a8;
}

.timeline::before { background: #d8c6a5; width: 2px; }
.timeline-item::before { background: #183a31; border-color: #d3ae70; }
.timeline-head { font-size: 15px; padding: 20px 24px; }
.timeline-head .year { color: #a87d3d; }
.timeline-card.open { border-color: rgba(180, 140, 80, 0.3); }
.timeline-body { color: #68756c; }

.map-wrap { gap: 24px; }
.map-region-embed { border-radius: 18px; box-shadow: 0 18px 40px rgba(24, 58, 49, 0.12); }
.map-info { min-height: 220px; padding: 28px; }
.map-info h3 { color: #a87d3d; font-size: 16px; }
.map-info h4 { margin-bottom: 10px; }

.gallery-filters { justify-content: flex-start; }
.filter-btn {
  background: #fff;
  border-color: #dce1d8;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 10px 17px;
}
.filter-btn.active, .filter-btn:hover { background: #183a31; border-color: #183a31; color: #f0d7a8; }
.gallery-grid { gap: 18px; }
.gallery-item { border-radius: 16px; box-shadow: 0 12px 30px rgba(24, 58, 49, 0.09); }
.gallery-item img { height: 240px; }
.gallery-item figcaption { background: linear-gradient(0deg, rgba(16, 42, 37, 0.94), rgba(16, 42, 37, 0.15)); padding: 30px 14px 13px; }

.form-card { padding: 34px; }
.form-group label { color: #30493b; }
.form-group input,
.form-group select,
.form-group textarea {
  background: #fbfaf6;
  border: 1px solid #e1e4dc;
  border-radius: 10px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline-color: #d3ae70; }
.form-success { background: #183a31; border-radius: 12px; }

.contact-layout { gap: 28px; }
.contact-info-card { border-left: 3px solid #c59b56; padding: 26px; }
.contact-info-card h3 { font-size: 17px; }
.map-embed { border-radius: 18px; box-shadow: 0 16px 38px rgba(24, 58, 49, 0.1); }

.calendar-table { border-radius: 14px; }
.calendar-table th { background: #183a31; color: #f0d7a8; letter-spacing: 0.04em; }
.calendar-table td { border-color: #eceee8; }
.calendar-table tr:nth-child(even) td { background: #f6f7f2; }

.news-meta { color: #a17b43; font-style: normal; font-weight: 700; }
.event-item { align-items: center; }
.event-date { background: #183a31; border-radius: 13px; color: #f0d7a8; }

.site-footer {
  background:
    radial-gradient(ellipse at 92% 0%, rgba(211, 174, 112, 0.1), transparent 32%),
    #102a25;
  padding-top: 68px;
}

.footer-grid { gap: 38px; }
.site-footer h4 { color: #e4c58e; font-size: 13px; letter-spacing: 0.08em; }
.site-footer p, .footer-address { color: rgba(250, 248, 242, 0.7); }
.site-footer a { color: rgba(250, 248, 242, 0.78); }
.site-footer a:hover { color: #e4c58e; }
.social-links a { background: rgba(255, 255, 255, 0.1); color: #e4c58e; }
.newsletter-form input { border-radius: 999px; padding: 12px 15px; }
.newsletter-form .btn { padding: 12px 16px; }
.newsletter-note { color: #d3ae70; }
.footer-bottom { border-color: rgba(250, 248, 242, 0.14); color: rgba(250, 248, 242, 0.55); }

@media (max-width: 1024px) {
  .header-inner { padding-right: 22px; padding-left: 22px; }
  .main-nav a { font-size: 11px; padding: 8px 10px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 80px; }
  .container { width: min(100% - 36px, 560px); }
  .map-region-embed { height: 320px; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; padding: 10px 18px; }
  .brand { grid-column: 1; grid-row: 1; }
  .brand-logo { width: 42px; height: 42px; }
  .brand-name { font-size: 16px; }
  .brand-sub { font-size: 9px; }
  .nav-toggle {
    display: block;
    grid-column: 2;
    grid-row: 1;
    padding: 5px 12px;
  }
  .main-nav { grid-column: 1 / -1; grid-row: 2; }
  .main-nav ul { align-items: stretch; gap: 2px; padding: 4px 0; }
  .main-nav a { font-size: 13px; padding: 10px 12px; }
  .hero {
    min-height: 500px;
    background-position: 62% center;
    padding: 76px 0;
    text-align: left;
  }
  .hero-photo-credit { right: 16px; bottom: 10px; font-size: 9px; }
  .hero .container { padding: 0 18px; }
  .hero h1 { font-size: clamp(2.8rem, 13vw, 4.4rem); }
  .hero p { font-size: 16px; }
  .page-header { padding: 58px 18px 62px; }
  .page-header h1 { font-size: clamp(2.35rem, 10vw, 3.2rem); }
  .section { padding: 60px 0; }
  .section-title { text-align: left; }
  .section-sub { margin-bottom: 26px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .gallery-item img { height: 160px; }
  .contact-layout, .map-wrap { grid-template-columns: 1fr; }
  .form-card { padding: 24px 19px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .newsletter-form { flex-wrap: wrap; }
  .newsletter-form input { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Heritage photography and page-specific storytelling */
.eyebrow {
  display: inline-block;
  color: #a17b43;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.activities-showcase {
  background:
    radial-gradient(ellipse at 2% 12%, rgba(201, 165, 104, 0.13), transparent 28%),
    #f0f1eb;
  overflow: hidden;
}

.showcase-heading {
  max-width: 700px;
  margin: 0 auto 34px;
  text-align: center;
}

.showcase-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 12px;
}

.showcase-heading p { color: #68756c; }

.photo-story-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: repeat(2, minmax(220px, 1fr));
  gap: 18px;
}

.photo-story {
  position: relative;
  min-height: 225px;
  overflow: hidden;
  border-radius: 20px;
  background: #183a31;
  box-shadow: 0 18px 38px rgba(24, 58, 49, 0.13);
}

.photo-story-large { grid-row: span 2; }

.photo-story::after {
  position: absolute;
  inset: 30% 0 0;
  background: linear-gradient(0deg, rgba(13, 33, 28, 0.94), transparent);
  content: "";
  pointer-events: none;
}

.photo-story img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.photo-story-large img { min-height: 468px; }
.photo-story:hover img { transform: scale(1.045); }

.photo-story figcaption {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 20px;
  left: 22px;
  display: grid;
  gap: 5px;
  color: #fffaf0;
}

.photo-story-label {
  color: #e4c58e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.photo-story figcaption strong { font-size: 20px; }
.photo-story figcaption small,
.photo-story figcaption a { color: rgba(255, 250, 240, 0.76); font-size: 10px; }
.photo-story figcaption a { text-decoration: underline; }

.activity-card-grid { margin-top: 24px; }
.activity-card {
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid #d6bd91;
}

.activity-card::after {
  position: absolute;
  top: -38px;
  right: -38px;
  width: 100px;
  height: 100px;
  border: 1px solid rgba(180, 140, 80, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 14px rgba(180, 140, 80, 0.04);
  content: "";
  pointer-events: none;
}

.activity-card .card-icon {
  display: inline-grid;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-items: center;
  background: #f1eee4;
  border-radius: 16px;
  margin-bottom: 17px;
}

.membership-welcome { padding-top: 54px; }

.membership-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(24, 58, 49, 0.08);
  border-radius: 24px;
  box-shadow: 0 20px 55px rgba(24, 58, 49, 0.1);
}

.membership-feature-image {
  position: relative;
  min-height: 390px;
  background: #183a31;
}

.membership-feature-image::after {
  position: absolute;
  inset: 50% 0 0;
  background: linear-gradient(0deg, rgba(13, 33, 28, 0.75), transparent);
  content: "";
  pointer-events: none;
}

.membership-feature-image img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  object-position: center 38%;
}

.photo-credit {
  color: #778177;
  font-size: 10px;
  line-height: 1.5;
}

.photo-credit a { color: #8d6a36; text-decoration: underline; }
.membership-feature-image .photo-credit {
  position: absolute;
  z-index: 1;
  bottom: 16px;
  left: 20px;
  color: rgba(255, 250, 240, 0.84);
}

.membership-feature-image .photo-credit a { color: #fffaf0; }

.membership-feature-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(28px, 5vw, 62px);
}

.membership-feature-copy h2 {
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  margin-bottom: 16px;
}

.membership-feature-copy p { margin-bottom: 25px; }
.membership-feature-copy .btn { white-space: normal; }

#membership-application { scroll-margin-top: 120px; }

.news-card {
  overflow: hidden;
  border-bottom: 3px solid #d6bd91;
}

.news-image {
  width: calc(100% + 56px);
  height: 205px;
  object-fit: cover;
  margin: -28px -28px 20px;
}

.news-card h3 { font-size: 20px; }
.news-card > p:not(.news-meta):not(.photo-credit) { margin-bottom: 12px; }
.news-card .photo-credit { margin-top: auto; }
.event-item { border-left: 3px solid #c59b56; }
.gallery-item { background: #183a31; }
.gallery-item img { min-height: 180px; }

.activities-header,
.membership-header,
.news-header,
.about-header,
.mission-header,
.kebudayaan-header,
.contact-header {
  background-position: center;
  background-size: cover;
}

.activities-header {
  background-image: linear-gradient(90deg, rgba(13, 36, 31, 0.94), rgba(13, 36, 31, 0.42)), url("../images/heritage/istana-negara.jpg");
}

.membership-header {
  background-image: linear-gradient(90deg, rgba(13, 36, 31, 0.92), rgba(13, 36, 31, 0.43)), url("../images/heritage/busana-melayu.jpg");
  background-position: center 38%;
}

.news-header {
  background-image: linear-gradient(90deg, rgba(13, 36, 31, 0.93), rgba(13, 36, 31, 0.38)), url("../images/heritage/zapin-performance.jpg");
}

.about-header {
  background-image: linear-gradient(90deg, rgba(13, 36, 31, 0.94), rgba(13, 36, 31, 0.42)), url("../images/heritage/istana-negara.jpg");
}

.mission-header {
  background-image: linear-gradient(90deg, rgba(13, 36, 31, 0.94), rgba(13, 36, 31, 0.4)), url("../images/heritage/zapin-performance.jpg");
}

.kebudayaan-header {
  background-image: linear-gradient(90deg, rgba(13, 36, 31, 0.94), rgba(13, 36, 31, 0.38)), url("../images/heritage/batik-workshop.jpg");
}

.contact-header {
  background-image: linear-gradient(90deg, rgba(13, 36, 31, 0.94), rgba(13, 36, 31, 0.42)), url("../images/heritage/istana-negara.jpg");
}

.activities-header::after,
.membership-header::after,
.news-header::after,
.about-header::after,
.mission-header::after,
.kebudayaan-header::after,
.contact-header::after { display: none; }

.home-heritage {
  background:
    radial-gradient(ellipse at 98% 20%, rgba(201, 165, 104, 0.16), transparent 28%),
    #f0f1eb;
}

.home-heritage-feature,
.about-story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(24, 58, 49, 0.08);
  border-radius: 24px;
  box-shadow: 0 20px 55px rgba(24, 58, 49, 0.09);
}

.home-heritage-image,
.about-story-image {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  background: #183a31;
}

.home-heritage-image::after,
.about-story-image::after {
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(0deg, rgba(13, 33, 28, 0.78), transparent);
  content: "";
  pointer-events: none;
}

.home-heritage-image img,
.about-story-image img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  object-position: center 38%;
  transition: transform 0.5s ease;
}

.home-heritage-feature:hover .home-heritage-image img,
.about-story-layout:hover .about-story-image img { transform: scale(1.035); }

.home-heritage-image .photo-credit,
.about-story-image figcaption {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 16px;
  left: 18px;
  color: rgba(255, 250, 240, 0.86);
  font-size: 10px;
}

.home-heritage-image .photo-credit a,
.about-story-image figcaption a { color: #fffaf0; }

.home-heritage-copy,
.about-story-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(30px, 5vw, 64px);
}

.home-heritage-copy h2,
.about-story-copy h2,
.mission-feature-copy h2,
.contact-welcome-card h2 {
  font-size: clamp(2rem, 3.5vw, 3.1rem);
  margin-bottom: 16px;
}

.home-heritage-copy p,
.about-story-copy p,
.mission-feature-copy p,
.contact-welcome-card p { color: #68756c; margin-bottom: 22px; }

.text-link {
  color: #8d6a36;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover { color: #183a31; }

.home-photo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.home-photo-strip figure {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-radius: 18px;
  background: #183a31;
}

.home-photo-strip figure::after,
.culture-photo-grid figure::after {
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(0deg, rgba(13, 33, 28, 0.86), transparent);
  content: "";
}

.home-photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.home-photo-strip figure:hover img { transform: scale(1.05); }

.home-photo-strip figcaption {
  position: absolute;
  z-index: 1;
  right: 16px;
  bottom: 15px;
  left: 16px;
  color: #fffaf0;
  font-weight: 700;
}

.about-story { padding-top: 54px; }
.about-story-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.about-story-image { min-height: 350px; }
.about-story-image img { min-height: 350px; }

.mission-feature-section {
  background:
    radial-gradient(ellipse at 8% 16%, rgba(201, 165, 104, 0.14), transparent 30%),
    #f0f1eb;
}

.mission-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 42px;
}

.mission-feature-copy { padding: 28px 0; }

.mission-feature figure {
  position: relative;
  height: 390px;
  overflow: hidden;
  border-radius: 22px;
  background: #183a31;
  box-shadow: 0 20px 44px rgba(24, 58, 49, 0.15);
}

.mission-feature figure::after {
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(0deg, rgba(13, 33, 28, 0.78), transparent);
  content: "";
}

.mission-feature img { width: 100%; height: 100%; object-fit: cover; }

.mission-feature figcaption {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 16px;
  left: 18px;
  color: rgba(255, 250, 240, 0.88);
  font-size: 10px;
}

.mission-feature figcaption a { color: #fffaf0; }

.kebudayaan-feature-section {
  background:
    radial-gradient(ellipse at 94% 10%, rgba(201, 165, 104, 0.15), transparent 28%),
    #f0f1eb;
}

.culture-photo-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
}

.culture-photo-grid figure {
  position: relative;
  height: 310px;
  overflow: hidden;
  border-radius: 18px;
  background: #183a31;
  box-shadow: 0 16px 36px rgba(24, 58, 49, 0.12);
}

.culture-photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.culture-photo-grid figure:hover img { transform: scale(1.05); }

.culture-photo-grid figcaption {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  gap: 4px;
  color: #fffaf0;
}

.culture-photo-grid figcaption strong { font-size: 20px; }
.culture-photo-grid figcaption span { color: rgba(255, 250, 240, 0.8); font-size: 12px; }
.culture-photo-credit { color: #778177; font-size: 10px; margin-top: 14px; }
.culture-photo-credit a { color: #8d6a36; text-decoration: underline; }

.contact-welcome {
  padding: 48px 0 0;
  background: #f0f1eb;
}

.contact-welcome-card {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 36px;
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(24, 58, 49, 0.08);
  border-radius: 22px;
  box-shadow: 0 16px 42px rgba(24, 58, 49, 0.08);
}

.contact-welcome-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 15px;
}

.contact-welcome-card h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.contact-welcome-card p { margin-bottom: 12px; }
.contact-welcome-card .photo-credit { margin: 0; }

@media (max-width: 700px) {
  .showcase-heading { margin-bottom: 24px; text-align: left; }
  .photo-story-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .photo-story, .photo-story-large { min-height: 250px; grid-row: auto; }
  .photo-story-large img { min-height: 250px; }
  .membership-feature { grid-template-columns: 1fr; }
  .membership-feature-image,
  .membership-feature-image img { min-height: 290px; }
  .membership-feature-copy { padding: 30px 24px; }
  .news-image { width: calc(100% + 40px); height: 205px; margin: -20px -20px 18px; }
  .home-heritage-feature,
  .about-story-layout,
  .mission-feature,
  .contact-welcome-card { grid-template-columns: 1fr; }
  .home-heritage-image,
  .home-heritage-image img,
  .about-story-image,
  .about-story-image img { min-height: 290px; }
  .home-heritage-copy,
  .about-story-copy { padding: 30px 24px; }
  .home-photo-strip { grid-template-columns: 1fr; }
  .home-photo-strip figure { height: 220px; }
  .mission-feature { gap: 20px; }
  .mission-feature-copy { padding: 0; }
  .mission-feature figure { height: 280px; }
  .culture-photo-grid { grid-template-columns: 1fr; }
  .culture-photo-grid figure { height: 240px; }
  .contact-welcome { padding-top: 28px; }
  .contact-welcome-card { gap: 22px; padding: 16px; }
  .contact-welcome-card img { height: 220px; }
}
