:root {
    --bg-dark: #081711;
    --gold-primary: #d4af37;
    --gold-light: #f3e5ab;
    --gold-dark: #aa7c11;
    --text-light: #e0e0e0;
    --font-heading: 'Maitree', serif;
    --font-body: 'Sarabun', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    background-image: radial-gradient(circle at center, #112d22 0%, #081711 100%);
    line-height: 1.6;
}

h1, h2, h3, h4, .section-title {
    font-family: var(--font-heading);
    color: var(--gold-primary);
    font-weight: 500;
}

/* Navbar */
.navbar {
    background: rgba(8, 23, 17, 0.9);
    border-bottom: 1px solid var(--gold-dark);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}
.logo-text {
    font-family: var(--font-heading);
    color: var(--gold-primary);
    font-size: 1.4rem;
    line-height: 1.2;
}
.logo-text span {
    font-size: 1rem;
    color: var(--text-light);
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}
.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--gold-primary);
}
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--gold-primary);
}

/* Common Section */
.section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.section-title {
    font-size: 2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.text-center {
    justify-content: center;
    text-align: center;
}
.gold-border {
    border: 1px solid var(--gold-dark);
    padding: 30px;
    border-radius: 5px;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
}
/* Corner Ornaments pseudo elements could be added here */

/* Placeholders */
.placeholder-img {
    background: rgba(212, 175, 55, 0.1);
    border: 1px dashed var(--gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    font-size: 0.8rem;
    position: relative;
    overflow: hidden;
}
.placeholder-img::after {
    content: attr(data-text);
    position: absolute;
    text-align: center;
    padding: 10px;
}

/* Hero Section */
.hero {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.hero-left, .hero-right {
    flex: 1;
}
.amulet-images, .monk-image {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    display: block;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.hero-center {
    flex: 1.5;
    text-align: center;
}
.hero-center h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    margin: 20px 0;
}
.hero-center h2 {
    font-size: 2rem;
    color: var(--text-light);
}
.slogan {
    margin-top: 20px;
    font-size: 1.1rem;
    color: var(--gold-light);
    letter-spacing: 1px;
}

/* History */
.history-content {
    display: block;
}
.history-content::after {
    content: "";
    display: table;
    clear: both;
}
.history-content .text-side {
    /* Let text flow naturally */
}
.history-content .image-side {
    float: right;
    width: 45%;
    margin-left: 30px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}
.img-main {
    flex: 2;
    width: 0;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 5px;
}
.img-sub {
    flex: 1;
    width: 0;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 5px;
}

/* Details */
.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}
.detail-item h3 {
    margin-bottom: 15px;
}
.detail-img {
    width: 100%;
    height: auto;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 5px;
}

/* Ceremony */
.ceremony-content {
    display: flex;
    gap: 30px;
    align-items: center;
}
.ceremony-content .text-side {
    flex: 1;
}
.ceremony-info {
    list-style: none;
    margin-top: 20px;
}
.ceremony-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 1.1rem;
}
.ceremony-content .image-side.grid-4 {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.grid-4 .img-item {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 5px;
}

/* Signs */
.signs-content {
    display: flex;
    gap: 30px;
    align-items: center;
}
.signs-content .text-side {
    flex: 1.5;
}
.signs-content .image-side {
    flex: 1;
}
.deity-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 5px;
}

/* Quantities */
.table-container {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--gold-dark);
    padding: 2px;
}
table {
    width: 100%;
    border-collapse: collapse;
}
td {
    padding: 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}
tr:last-child td {
    border-bottom: none;
}
.col-num {
    width: 10%;
    text-align: center;
    color: var(--gold-primary);
    font-family: var(--font-heading);
    font-size: 1.2rem;
}
.col-name {
    width: 60%;
}
.col-amt {
    width: 30%;
    text-align: right;
    color: var(--gold-light);
}

/* Footer */
.footer {
    text-align: center;
    padding: 50px 20px;
    border-top: 1px solid var(--gold-dark);
    margin-top: 50px;
}
.footer-logo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 20px;
}
.footer-text {
    color: var(--gold-primary);
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

/* Removed Responsive block to force desktop layout on all devices */
/* Book Page Styling (Monk History) - Dark Theme Integration */
.book-page-dark {
    padding: 30px;
    position: relative;
    /* Removed max-width to allow full 1200px width like other sections */
}
.book-images {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}
.book-images img, .img-book {
    width: 30%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    background: rgba(212, 175, 55, 0.1);
}
.img-monk-history {
    width: 100%;
    max-width: 800px;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border: 2px solid var(--gold-dark);
    border-radius: 5px;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.6);
}
.img-history {
    height: 350px;
    width: auto;
    max-width: 100%;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    background: rgba(212, 175, 55, 0.1);
}
.book-text p {
    text-align: justify;
    text-indent: 2.5em; /* Thai paragraph indent */
    margin-bottom: 15px;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* Rental Section */
.rental-container {
    display: flex;
    gap: 30px;
    align-items: center;
    background: rgba(0,0,0,0.3);
    padding: 30px;
    border: 1px solid var(--gold-primary);
    border-radius: 5px;
}
.rental-image {
    flex: 1;
}
.rental-image img, .rental-img-placeholder {
    width: 100%;
    max-width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 5px;
    border: 2px solid var(--gold-dark);
}
.rental-info {
    flex: 1.5;
}
.rental-info h3 {
    font-size: 1.8rem;
    color: var(--gold-light);
    margin-bottom: 15px;
}
.rental-info p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}
.btn-rent {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gold-primary);
    color: #081711;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 30px;
    transition: all 0.3s;
    border: 2px solid var(--gold-light);
}
.btn-rent:hover {
    background: var(--gold-light);
    transform: scale(1.05);
}

/* Removed responsive adjustments for book page and rental section */

/* Footer Redesign */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
}
.contact-box-modern {
    border: 2px solid var(--gold-primary);
    padding: 15px 30px;
    border-radius: 10px;
    text-align: center;
    background: rgba(20, 20, 20, 0.8);
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}
.contact-box-modern:hover {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}
.contact-title {
    color: var(--gold-light);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: bold;
}
.qr-buttons-modern {
    display: flex;
    gap: 15px;
    justify-content: center;
}
.qr-btn-modern {
    background: #2a2a2a;
    border: 1px solid var(--gold-dark);
    padding: 10px 20px;
    border-radius: 25px;
    color: var(--gold-primary);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-size: 1rem;
}
.qr-btn-modern:hover {
    background: var(--gold-dark);
    color: #111;
}

/* Contact Modal Styles */
.contact-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}
.contact-modal-content {
    background: #111;
    margin: 10% auto;
    padding: 30px;
    border: 2px solid var(--gold-primary);
    width: 90%;
    max-width: 400px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
    animation: zoom 0.3s ease;
}
.contact-modal-close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}
.contact-modal-close:hover,
.contact-modal-close:focus {
    color: var(--gold-primary);
    text-decoration: none;
    cursor: pointer;
}
.contact-modal-img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border: 3px solid var(--gold-light);
    border-radius: 10px;
    margin: 15px auto;
    background: #fff;
}
.contact-modal-id {
    color: var(--gold-light);
    font-size: 1.5rem;
    font-weight: bold;
    margin: 15px 0;
    letter-spacing: 1px;
}
.contact-modal-link {
    display: inline-block;
    background: var(--gold-primary);
    color: #111;
    padding: 10px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 25px;
    margin-top: 10px;
    transition: transform 0.3s;
}
.contact-modal-link:hover {
    transform: scale(1.05);
    background: var(--gold-light);
}
.footer-credit {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.credit-text {
    color: #888;
    font-size: 0.9rem;
    text-align: right;
}

/* Lightbox Styles */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}
.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    margin-top: 5vh;
    border: 3px solid var(--gold-primary);
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    animation: zoom 0.3s ease;
}
@keyframes zoom {
    from {transform:scale(0.8)} 
    to {transform:scale(1)}
}
.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: var(--gold-primary);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
.lightbox-close:hover,
.lightbox-close:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}
.zoomable-img {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}
.zoomable-img:hover {
    transform: scale(1.02);
}
