/*
Theme Name: 台西奉安宮 (Fengan Child)
Theme URI: https://www.fengan.tw
Description: 台西奉安宮 五聖恩主公 官方網站 — GeneratePress 子主題，統一宮廟古典風格。
Author: Fengan Temple
Author URI: https://www.fengan.tw
Template: generatepress
Version: 1.0.0
Text Domain: fengan-child
*/

:root {
    --primary-red: #9e2a2b;
    --dark-red: #7a0b0b;
    --primary-gold: #c9a961;
    --light-gold: #e0ba4a;
    --ink-black: #1a1a1a;
    --ink-gray: #333333;
    --beige: #f5e6c8;
    --beige-light: #fbf3df;
    --dark-overlay: rgba(26, 26, 26, 0.7);
    --shadow-classic: 0 4px 15px rgba(0,0,0,0.3);
    --shadow-gold: 0 0 15px rgba(201, 169, 97, 0.5);
    --paper-texture: url('https://www.transparenttextures.com/patterns/rice-paper-2.png');
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Serif TC', serif;
    background-color: var(--beige);
    background-image: var(--paper-texture);
    color: var(--ink-black);
    line-height: 1.8;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .title-font {
    font-family: 'Noto Serif TC', serif;
    font-weight: 900;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul { list-style: none; padding: 0; margin: 0; }

/* ===== Unified Header ===== */
.site-wrap-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--dark-red);
    background-image: linear-gradient(rgba(122,11,11,.92), rgba(122,11,11,.95)), var(--paper-texture);
    padding: 15px 30px;
    border-bottom: 4px solid var(--primary-gold);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.site-wrap-header .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-area img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid var(--primary-gold);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 12px rgba(201,169,97,.35);
}

.site-title {
    color: var(--light-gold);
    font-size: 2rem;
    margin: 0;
    letter-spacing: 4px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--beige);
    font-size: 1.1rem;
    padding: 8px 4px;
    font-weight: 500;
    letter-spacing: 2px;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active,
.nav-links a.current-menu-item {
    color: var(--light-gold);
    border-bottom-color: var(--light-gold);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--light-gold);
    transition: 0.3s;
}

.site-main {
    padding-top: 100px; /* header height */
    max-width: none !important;
    width: 100%;
    margin: 0 !important;
}

body.home .site-main { padding-top: 0; }

/* Override GeneratePress container constraints on one-page home */
body.fengan-onepage .inside-article,
body.fengan-onepage .entry-content,
body.fengan-onepage article,
body.fengan-onepage .site-content,
body.fengan-onepage .content-area {
    max-width: none !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

/* ===== Hero (home) ===== */
#home {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: 100vh;
    min-height: 600px;
    background-image: linear-gradient(rgba(20, 6, 6, 0.55), rgba(20, 6, 6, 0.65)), url('assets/bg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
    box-sizing: border-box;
}

.hero-content {
    border: 2px solid var(--primary-gold);
    padding: 3rem 4rem;
    background: rgba(122, 11, 11, 0.4);
    backdrop-filter: blur(5px);
    position: relative;
}

.hero-content::before,
.hero-content::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid var(--primary-gold);
}
.hero-content::before { top: -10px; left: -10px; border-right: none; border-bottom: none; }
.hero-content::after { bottom: -10px; right: -10px; border-left: none; border-top: none; }

.hero-content h2 {
    color: var(--light-gold);
    font-size: 4.5rem;
    font-weight: 900;
    margin: 0 0 1rem 0;
    text-shadow: 3px 3px 10px rgba(0,0,0,0.9), 0 0 20px rgba(201,169,97,0.3);
    letter-spacing: 10px;
    line-height: 1.3;
}

.hero-subtitle {
    color: var(--beige);
    font-size: 1.5rem;
    margin-bottom: 3rem;
    letter-spacing: 3px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-red);
    color: var(--light-gold);
    border: 2px solid var(--primary-gold);
    font-size: 1.2rem;
    font-family: inherit;
    letter-spacing: 2px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}
.btn:hover {
    background-color: var(--dark-red);
    box-shadow: var(--shadow-gold);
    color: #fff;
}
.btn-outline {
    background-color: transparent;
    color: var(--primary-gold);
}
.btn-outline:hover {
    background-color: var(--primary-gold);
    color: var(--ink-black);
}

/* Marquee */
.marquee-container {
    background-color: var(--dark-red);
    color: var(--light-gold);
    padding: 15px 0;
    border-top: 2px solid var(--primary-gold);
    border-bottom: 2px solid var(--primary-gold);
    overflow: hidden;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 2px;
}
.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 25s linear infinite;
}
@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Section title */
.section-title {
    text-align: center;
    font-size: 3rem;
    color: var(--dark-red);
    margin-bottom: 3rem;
    position: relative;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-gold);
    margin: 10px auto 0;
    border-radius: 2px;
}
.section-title::before {
    content: '☁';
    color: var(--primary-gold);
    font-size: 1.5rem;
    display: block;
    margin-bottom: -15px;
}

.fengan-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* History */
.history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.history-text {
    font-size: 1.1rem;
    text-align: justify;
    padding: 2rem;
    border: 1px solid var(--primary-gold);
    background-color: rgba(255,255,255,0.4);
    position: relative;
}
.history-text::before {
    content: '';
    position: absolute;
    top: 5px; left: 5px; right: 5px; bottom: 5px;
    border: 1px dashed var(--primary-gold);
    pointer-events: none;
}
.history-placeholder {
    text-align: center;
    font-size: 1.6rem;
    letter-spacing: 8px;
    color: var(--dark-red);
    padding: 3rem 0;
    font-weight: 700;
    margin: 0;
}
.history-image { text-align: center; }
.history-image img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: var(--shadow-classic);
    border: 4px solid var(--dark-red);
}
.history-caption {
    margin-top: 12px;
    font-size: 0.95rem;
    color: var(--ink-gray);
    letter-spacing: 2px;
    font-style: italic;
}

/* Deities section */
#deities {
    background-color: var(--dark-red);
    background-image: linear-gradient(rgba(122,11,11,0.9), rgba(122,11,11,0.9)), var(--paper-texture);
}
#deities .section-title { color: var(--light-gold); }
#deities .section-title::after { background: var(--primary-gold); }

.deities-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}
.deity-card {
    background: linear-gradient(135deg, #8a1313, #5c0707);
    border: 2px solid var(--primary-gold);
    padding: 2.5rem 1rem;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.deity-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-gold);
}
.deity-card::before {
    content: '';
    position: absolute;
    top: 10px; left: 10px; right: 10px; bottom: 10px;
    border: 1px dashed rgba(201,169,97,0.35);
    pointer-events: none;
}
.deity-name {
    font-size: 2.5rem;
    color: var(--light-gold);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.deity-title {
    font-size: 1.1rem;
    color: var(--beige);
    letter-spacing: 3px;
}

/* Deity Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-content {
    background: var(--beige);
    background-image: var(--paper-texture);
    max-width: 700px;
    width: 100%;
    padding: 3rem;
    border: 3px solid var(--primary-gold);
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}
.modal-close {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--dark-red);
}
.modal-title {
    color: var(--dark-red);
    font-size: 2rem;
    text-align: center;
    border-bottom: 2px solid var(--primary-gold);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}
.modal-desc {
    font-size: 1.1rem;
    text-align: justify;
    line-height: 2;
}

/* Service */
.service-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    background: linear-gradient(180deg, var(--dark-red), #5a0808);
    color: var(--light-gold);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 3px;
    padding: 18px 24px;
    border: 2px solid var(--primary-gold);
    border-radius: 4px;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 18px rgba(0,0,0,.18);
    text-align: center;
}
.service-banner .divider { color: var(--primary-gold); opacity: .7; }

.service-info {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 3rem;
    color: var(--dark-red);
    font-weight: 700;
    line-height: 1.8;
}
.service-info-sub {
    display: inline-block;
    margin-top: 8px;
    font-size: 1rem;
    font-weight: 400;
    color: var(--ink-gray);
    letter-spacing: 2px;
}

.service-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.service-card {
    background: #fff;
    border: 2px solid var(--primary-gold);
    padding: 2rem 2.2rem;
    box-shadow: var(--shadow-classic);
    position: relative;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 6px; left: 6px; right: 6px; bottom: 6px;
    border: 1px dashed rgba(201,169,97,.5);
    pointer-events: none;
}
.service-card .step-title {
    color: var(--dark-red);
    font-size: 1.6rem;
    text-align: center;
    margin: 0 0 1.2rem;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-gold);
    letter-spacing: 4px;
}
.service-card ul {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--ink-black);
}
.service-card ul li {
    position: relative;
    padding-left: 22px;
}
.service-card ul li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--primary-gold);
    font-size: .8rem;
    top: 2px;
}

/* News */
#news {
    background-color: var(--beige-light);
    background-image: var(--paper-texture);
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.news-card {
    display: block;
    background: #fff;
    border: 1px solid #ddd;
    border-bottom: 4px solid var(--dark-red);
    padding: 1.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    color: inherit;
    text-decoration: none;
    position: relative;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-classic);
    border-bottom-color: var(--primary-gold);
}
.news-card:hover .news-title { color: var(--dark-red); }
.news-date {
    color: var(--primary-gold);
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.news-title {
    font-size: 1.3rem;
    color: var(--ink-black);
    margin: 0 0 1rem 0;
    font-weight: bold;
    line-height: 1.5;
}
.news-excerpt {
    font-size: 1rem;
    color: var(--ink-gray);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-more {
    display: inline-block;
    margin-top: 12px;
    color: var(--dark-red);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
}
.news-footer {
    text-align: center;
    margin-top: 3rem;
}
.btn-news-all {
    display: inline-block;
    padding: 14px 40px;
    color: var(--light-gold);
    background: linear-gradient(180deg, var(--dark-red), #5a0808);
    border: 2px solid var(--primary-gold);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,.2);
    transition: all .25s;
    position: relative;
}
.btn-news-all:hover {
    background: linear-gradient(180deg, #b4342f, var(--dark-red));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,0,0,.28);
}

/* Contact */
#contact { background-color: var(--ink-black); color: var(--beige); }
#contact .section-title { color: var(--light-gold); }
#contact .section-title::after { background: var(--primary-gold); }
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}
.contact-info h3 {
    font-size: 2rem;
    color: var(--light-gold);
    margin-bottom: 2rem;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-gold);
    min-width: 40px;
    text-align: center;
}
.contact-link {
    color: var(--beige);
    font-weight: bold;
}
.contact-link:hover { color: var(--light-gold); }

.map-container {
    width: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.map-container .nav-title {
    display: block;
    text-align: center;
    font-family: 'Noto Serif TC', serif;
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: 4px;
    padding: 18px 16px;
    color: var(--primary-red);
    background: linear-gradient(180deg, #fff8e6 0%, #f5e6c8 100%);
    border: 3px double var(--primary-gold);
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
    transition: all .2s;
}
.map-container .nav-title:hover {
    background: linear-gradient(180deg, #fff2cc 0%, #ecd595 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
}
.map-container .nav-steps {
    margin: 0;
    padding: 0 0 0 1.4em;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--beige);
    list-style: decimal;
}
.map-container .nav-steps li { margin-bottom: 4px; }
.map-container iframe {
    width: 100%;
    min-height: 320px;
    border: 2px solid var(--primary-gold);
    border-radius: 6px;
}

/* Footer */
.site-wrap-footer {
    background-color: var(--ink-black);
    color: var(--beige);
    padding: 3rem 2rem 1rem;
    text-align: center;
    border-top: 5px solid var(--dark-red);
    position: relative;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.footer-logo {
    width: 60px;
    height: 60px;
    opacity: 0.8;
    border-radius: 50%;
}
.copyright {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
    color: rgba(245, 230, 200, 0.7);
    width: 100%;
}
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--dark-red);
    color: var(--light-gold);
    border: 2px solid var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--primary-red); }

/* ===== Archive / Category / Single Post ===== */
.fengan-page-hero {
    background-color: var(--dark-red);
    background-image: linear-gradient(rgba(122,11,11,0.75), rgba(122,11,11,0.85)), url('assets/bg.png');
    background-size: cover;
    background-position: center;
    padding: 100px 2rem 60px;
    text-align: center;
    color: var(--light-gold);
    border-bottom: 4px solid var(--primary-gold);
}
.fengan-page-hero h1 {
    font-size: 3rem;
    margin: 0 0 10px;
    letter-spacing: 8px;
    text-shadow: 2px 2px 8px rgba(0,0,0,.8);
}
.fengan-page-hero .sub {
    font-size: 1.1rem;
    color: var(--beige);
    letter-spacing: 3px;
}
.fengan-page-hero::before {
    content: '☁';
    display: block;
    font-size: 1.5rem;
    color: var(--primary-gold);
    margin-bottom: 10px;
}

.archive-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}
.archive-layout-full {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}
.archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.archive-sidebar {
    position: sticky;
    top: 120px;
    align-self: start;
}
.archive-sidebar .widget {
    background: rgba(255,255,255,.6);
    border: 1px solid var(--primary-gold);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.archive-sidebar .widget h3,
.archive-sidebar .widget .widget-title {
    font-size: 1.2rem;
    color: var(--dark-red);
    border-bottom: 2px solid var(--primary-gold);
    padding-bottom: 10px;
    margin: 0 0 1rem;
}

.pagination-wrap {
    text-align: center;
    margin-top: 3rem;
}
.pagination-wrap .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 4px;
    background: #fff;
    border: 1px solid var(--primary-gold);
    color: var(--dark-red);
    font-weight: 700;
    text-decoration: none;
}
.pagination-wrap .page-numbers.current,
.pagination-wrap .page-numbers:hover {
    background: var(--dark-red);
    color: var(--light-gold);
}

/* Single Post */
.single-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}
.single-post {
    background: #fff;
    padding: 3rem;
    border: 1px solid var(--primary-gold);
    box-shadow: var(--shadow-classic);
    position: relative;
}
.single-post::before {
    content: '';
    position: absolute;
    top: 8px; left: 8px; right: 8px; bottom: 8px;
    border: 1px dashed rgba(201,169,97,.4);
    pointer-events: none;
}
.single-post-header {
    text-align: center;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--primary-gold);
}
.single-post-title {
    font-size: 2.2rem;
    color: var(--dark-red);
    margin: 0 0 1rem;
    line-height: 1.5;
}
.single-post-meta {
    color: var(--ink-gray);
    font-size: .95rem;
    letter-spacing: 2px;
}
.single-post-meta span { margin: 0 8px; }
.single-post-content {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--ink-black);
}
.single-post-content p { margin: 1em 0; }
.single-post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border: 2px solid var(--primary-gold);
}
.single-post-content h1, .single-post-content h2,
.single-post-content h3, .single-post-content h4 {
    color: var(--dark-red);
    margin-top: 2rem;
}
.single-post-content a {
    color: var(--primary-red);
    border-bottom: 1px solid var(--primary-gold);
}
.single-post-content a:hover { color: var(--dark-red); }
.single-post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--primary-gold);
    text-align: center;
}
.single-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}
.single-nav a {
    flex: 1;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--primary-gold);
    color: var(--dark-red);
    text-decoration: none;
    font-weight: 700;
    transition: all .3s;
}
.single-nav a:hover {
    background: var(--dark-red);
    color: var(--light-gold);
}
.single-nav .prev { text-align: left; }
.single-nav .next { text-align: right; }

/* 404 / search */
.error-wrap {
    text-align: center;
    padding: 6rem 2rem;
    max-width: 700px;
    margin: 0 auto;
}
.error-wrap h1 {
    font-size: 5rem;
    color: var(--dark-red);
    margin: 0;
}
.error-wrap p {
    font-size: 1.2rem;
    color: var(--ink-gray);
    margin: 1rem 0 2rem;
}

/* Hide GeneratePress default header/footer to avoid double */
body .site-header,
body .main-navigation,
body .site-footer {
    display: none !important;
}

/* ===== Mobile ===== */
@media (max-width: 900px) {
    .deities-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }
    .deity-card {
        min-height: 140px;
        padding: 1rem 0.3rem;
    }
    .deity-card::before {
        top: 5px; left: 5px; right: 5px; bottom: 5px;
    }
    .deity-card .deity-name {
        font-size: 1.6rem;
        margin-bottom: .4rem;
    }
    .deity-card .deity-title {
        font-size: .75rem;
        letter-spacing: 1px;
        line-height: 1.4;
        writing-mode: vertical-rl;
        text-orientation: upright;
    }
    .news-grid { grid-template-columns: 1fr; }
    .service-cards { grid-template-columns: 1fr; }
    .history-grid, .contact-wrapper { grid-template-columns: 1fr; gap: 2rem; }
    .archive-layout { grid-template-columns: 1fr; }
    .archive-grid { grid-template-columns: 1fr; }
    .archive-sidebar { position: static; }
    .service-banner { font-size: 1rem; letter-spacing: 2px; }
    #home {
        height: 80vh;
        min-height: 500px;
        background-attachment: scroll;
        background-position: center center;
    }
    .hero-content h2 { font-size: 2.8rem; letter-spacing: 6px; }
    .hero-content { padding: 2rem 1.5rem; }
    .section-title { font-size: 2.2rem; }
    .site-title { font-size: 1.4rem; letter-spacing: 2px; }
    .logo-area img { width: 50px; height: 50px; }
    .single-post { padding: 1.5rem; }
    .single-post-title { font-size: 1.5rem; }
    .hamburger { display: flex; }
    .nav-links {
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        background: var(--dark-red);
        padding: 1rem;
        display: none;
        border-bottom: 3px solid var(--primary-gold);
    }
    .nav-links.active { display: flex; }
}
