/* =============================================
   RESET & ROOT VARIABLES
   ============================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary:     #5d4e8a;
    --secondary:   #7d8f9f;
    --accent:      #c9903d;
    --gold:        #d4a84b;
    --text:        #3d3d3d;
    --text-light:  #8a9aa6;
    --bg:          #faf9f7;
    --bg-alt:      #f1ede7;
    --white:       #ffffff;
    --dark:        #1a1a1f;
    --border:      #e8e4dd;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'Outfit', system-ui, sans-serif;

    --radius:    12px;
    --radius-sm: 6px;
    --shadow:    0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.14);
    --transition: 0.3s ease;
}

/* =============================================
   BASE
   ============================================= */
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =============================================
   TYPOGRAPHY HELPERS
   ============================================= */
.section-label {
    display: block;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.15;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
}

.btn--primary {
    background: var(--gold);
    color: var(--primary);
    border-color: var(--gold);
}
.btn--primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201,144,61,0.35);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.6);
}
.btn--outline:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* =============================================
   FLASH MESSAGES
   ============================================= */
.flash-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 380px;
}

.flash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow);
    animation: slideIn 0.3s ease;
}
.flash--success { background: #d1fae5; color: #065f46; border-left: 4px solid #10b981; }
.flash--error   { background: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; }

.flash-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.6;
    line-height: 1;
}
.flash-close:hover { opacity: 1; }

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
}

.nav-menu a {
    display: block;
    padding: 0.4rem 0.9rem;
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 50px;
    transition: all var(--transition);
}
.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary);
    background: rgba(44,110,138,0.08);
}

.nav-cta {
    background: var(--primary) !important;
    color: var(--white) !important;
    margin-left: 0.5rem;
}
.nav-cta:hover, .nav-cta.active {
    background: var(--secondary) !important;
    color: var(--white) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all var(--transition);
}

/* =============================================
   HERO
   ============================================= */
.hero {
    position: relative;
    background: linear-gradient(145deg, var(--primary) 0%, #2a4a62 60%, var(--secondary) 100%);
    color: var(--white);
    padding: 9rem 2rem 8rem;
    text-align: center;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(212,168,75,0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(44,110,138,0.25) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 2 L32 28 L58 30 L32 32 L30 58 L28 32 L2 30 L28 28 Z' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.hero-eyebrow {
    display: inline-block;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.4s forwards;
}
.hero-title em {
    font-style: italic;
    color: var(--gold);
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3vw, 1.9rem);
    font-weight: 400;
    margin-bottom: 1.5rem;
    opacity: 0.85;
    animation: fadeUp 0.8s ease 0.55s forwards;
    opacity: 0;
}

.hero-text {
    font-size: 1.1rem;
    max-width: 520px;
    margin: 0 auto 2.5rem;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.7s forwards;
    color: rgba(255,255,255,0.85);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.85s forwards;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 2;
}
.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.5; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* =============================================
   FEATURES
   ============================================= */
.features {
    padding: 6rem 0;
    background: var(--bg);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    display: block;
}
.feature-card h3 {
    color: var(--secondary);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 0.4rem;
    font-weight: 600;
}
.feature-card h4 {
    font-family: var(--font-display);
    color: var(--primary);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.feature-card p { color: var(--text-light); line-height: 1.8; }

/* =============================================
   PROCLAMATION
   ============================================= */
.proclamation {
    padding: 7rem 0;
    background: var(--white);
}

.proclamation-content {
    max-width: 860px;
    margin: 0 auto;
}

.quote {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-style: italic;
    color: var(--primary);
    text-align: center;
    margin: 2.5rem 0;
    padding: 2.5rem 2rem;
    background: var(--bg);
    border-left: 4px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    line-height: 1.7;
}
.quote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--secondary);
    font-style: normal;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.proclamation-text {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.commitments {
    margin-top: 3rem;
    padding: 2.5rem;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.commitments h3 {
    font-family: var(--font-display);
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.commitment-list { list-style: none; }
.commitment-list li {
    padding: 0.7rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid var(--border);
    line-height: 1.7;
}
.commitment-list li:last-child { border-bottom: none; }
.commitment-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: 700;
}

/* =============================================
   SERVICES
   ============================================= */
.services {
    padding: 6rem 0;
    background: var(--bg-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.service-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.service-card h3 {
    font-family: var(--font-display);
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}
.service-card p { color: var(--text-light); line-height: 1.8; }

/* =============================================
   MISSION
   ============================================= */
.mission {
    padding: 6rem 0;
    background: var(--white);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.mission-item {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: linear-gradient(145deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    border-radius: var(--radius);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}
.mission-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.06), transparent 60%);
}
.mission-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 16px 40px rgba(30,45,61,0.25);
}
.mission-item h3 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--gold);
    position: relative;
}
.mission-item p { font-size: 0.95rem; line-height: 1.8; opacity: 0.9; position: relative; }

/* =============================================
   STORY
   ============================================= */
.story {
    padding: 6rem 0;
    background: var(--bg-alt);
}

.story-content {
    max-width: 1000px;
    margin: 0 auto;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.story-item {
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    border-left: 4px solid var(--accent);
}

.story-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.story-item h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.story-item p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 1rem;
}

.story-item p:last-child {
    margin-bottom: 0;
}

/* =============================================
   MESSAGE
   ============================================= */
.message {
    padding: 6rem 0;
    background: var(--white);
}

.message-content {
    max-width: 1000px;
    margin: 0 auto;
}

.message-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.message-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.message-text p:last-child {
    margin-bottom: 0;
}

.message-image {
    text-align: center;
}

.message-image img {
    width: 100%;
    max-width: 200px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.message-title2 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.message-title2 h6 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--secondary);
    margin: 0.5rem 0 0 0;
}

.message-button {
    text-align: center;
    margin-top: 2rem;
}

/* =============================================
   NEWS
   ============================================= */
.news {
    padding: 6rem 0;
    background: var(--bg);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform var(--transition);
}
.news-card:hover { transform: translateY(-4px); }
.news-date {
    color: var(--secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.news-card h3 {
    font-family: var(--font-display);
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.news-card ul { list-style: none; }
.news-card ul li { padding: 0.4rem 0; }
.news-card a { color: var(--secondary); font-weight: 500; }
.news-card a:hover { color: var(--primary); text-decoration: underline; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    padding: 4rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-section h4 {
    font-family: var(--font-display);
    color: var(--gold);
    margin-bottom: 1.25rem;
    font-size: 1.15rem;
    font-weight: 600;
}
.footer-section ul { list-style: none; }
.footer-section ul li { padding: 0.35rem 0; }
.footer-section a { color: rgba(255,255,255,0.7); transition: color var(--transition); }
.footer-section a:hover { color: var(--gold); }
.footer-section p { color: rgba(255,255,255,0.65); margin: 0.4rem 0; font-size: 0.9rem; }

.footer-bottom {
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero {
    background: linear-gradient(145deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 6rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(212,168,75,0.15) 0%, transparent 60%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
}
.page-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    max-width: 560px;
    margin: 0 auto;
}

/* =============================================
   GALLERY
   ============================================= */
.gallery-section { padding: 5rem 0 6rem; background: var(--bg); }

.gallery-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    border: 2px solid var(--border);
    background: var(--white);
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--secondary); color: var(--secondary); }
.filter-btn--active {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item { border-radius: var(--radius); overflow: hidden; }

.gallery-thumb {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    cursor: pointer;
}

/* Colorful placeholder styles */
.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition);
}
.gallery-placeholder--0 { background: linear-gradient(135deg, #1e2d3d, #2c6e8a); }
.gallery-placeholder--1 { background: linear-gradient(135deg, #2c6e8a, #3a8fa5); }
.gallery-placeholder--2 { background: linear-gradient(135deg, #c9903d, #d4a84b); }
.gallery-placeholder--3 { background: linear-gradient(135deg, #2a4a62, #1e2d3d); }
.gallery-placeholder--4 { background: linear-gradient(135deg, #3a8fa5, #2c6e8a); }
.gallery-placeholder--5 { background: linear-gradient(135deg, #d4a84b, #c9903d); }

.gallery-placeholder-icon { font-size: 3rem; opacity: 0.7; }

.gallery-thumb:hover .gallery-placeholder { transform: scale(1.06); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30,45,61,0.9) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: opacity var(--transition);
}
.gallery-thumb:hover .gallery-overlay { opacity: 1; }

.gallery-info { padding: 1.5rem; }
.gallery-category {
    display: inline-block;
    background: var(--gold);
    color: var(--primary);
    padding: 0.2rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}
.gallery-title {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.gallery-desc { color: rgba(255,255,255,0.75); font-size: 0.82rem; }

.gallery-empty {
    grid-column: 1/-1;
    text-align: center;
    padding: 4rem;
    color: var(--text-light);
}
.gallery-cta {
    text-align: center;
    margin-top: 3rem;
    color: var(--text-light);
    font-size: 0.95rem;
}
.gallery-cta a { color: var(--secondary); font-weight: 600; }
.gallery-cta a:hover { text-decoration: underline; }

/* =============================================
   CONTACT
   ============================================= */
.contact-section { padding: 5rem 0 6rem; background: var(--bg); }

.contact-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.info-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform var(--transition);
}
.info-card:hover { transform: translateY(-3px); }
.info-icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.info-card h3 {
    font-family: var(--font-display);
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.info-card p, .info-card a {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}
.info-card a:hover { color: var(--secondary); }

/* Form */
.contact-form-wrap {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.3px;
}
.required { color: var(--accent); }

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(44,110,138,0.12);
    background: var(--white);
}
.input--error { border-color: #ef4444 !important; }

.form-group textarea { resize: vertical; min-height: 140px; }

.form-error {
    font-size: 0.78rem;
    color: #ef4444;
    min-height: 1em;
}

.recaptcha-wrap { margin-bottom: 0.5rem; }

.btn--submit {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-sm);
    margin-top: 0.5rem;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
[data-animate].in-view {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 1px solid var(--border);
        box-shadow: var(--shadow);
        padding: 1rem 0;
    }
    .nav-menu.open { display: flex; }
    .nav-menu a {
        border-radius: 0;
        padding: 0.75rem 1.5rem;
    }
    .nav-cta { margin: 0.5rem 1rem 0; border-radius: var(--radius-sm) !important; }

    .hero { min-height: 80vh; padding: 6rem 1.5rem 5rem; }
    .hero-actions { flex-direction: column; align-items: center; }

    .form-row { grid-template-columns: 1fr; }
    .contact-form-wrap { padding: 2rem 1.5rem; }

    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .features .feature-grid,
    .services-grid,
    .mission-grid,
    .news-grid { grid-template-columns: 1fr; }
}

/* =============================================
   BLOG
   ============================================= */
.blog-section { padding: 5rem 0 6rem; background: var(--bg); }

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    align-items: start;
}

.blog-main { display: flex; flex-direction: column; gap: 1.5rem; }

.blog-search {
    display: flex;
    gap: 0;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
}
.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: transparent;
}
.search-btn {
    padding: 0.75rem 1.1rem;
    background: var(--primary);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background var(--transition);
}
.search-btn:hover { background: var(--secondary); }

.active-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--text-light);
}
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.2rem 0.7rem;
    font-size: 0.78rem;
}
.filter-chip a { color: var(--accent); font-weight: 700; }

/* Post card */
.post-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.post-card--pinned {
    border-left: 4px solid var(--gold);
}
.post-pin-badge {
    display: inline-block;
    font-size: 0.72rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}
.post-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.post-category {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    background: rgba(44,110,138,0.1);
    color: var(--secondary);
    transition: background var(--transition);
}
.post-category:hover { background: rgba(44,110,138,0.2); }
.post-category--announcement { background: rgba(212,168,75,0.15); color: #8a6a00; }
.post-category--event        { background: rgba(201,144,61,0.15); color: #7a4a00; }
.post-category--blog         { background: rgba(44,110,138,0.1); color: var(--secondary); }
.post-category--ministry     { background: rgba(30,45,61,0.1);   color: var(--primary); }
.post-category--news         { background: rgba(16,185,129,0.1); color: #065f46; }

.post-date { font-size: 0.8rem; color: var(--text-light); }

.post-card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}
.post-card-title a { color: var(--primary); text-decoration: none; }
.post-card-title a:hover { color: var(--secondary); }

.post-card-summary { color: var(--text-light); line-height: 1.7; font-size: 0.95rem; margin-bottom: 1.25rem; }

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.post-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 50px;
    border: 1px solid var(--border);
    font-size: 0.72rem;
    color: var(--text-light);
    text-decoration: none;
    background: var(--bg);
    transition: all var(--transition);
}
.tag:hover, .tag--active {
    border-color: var(--secondary);
    color: var(--secondary);
    background: rgba(44,110,138,0.06);
}

.read-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    text-decoration: none;
    white-space: nowrap;
}
.read-more:hover { text-decoration: underline; }

.blog-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

/* Sidebar */
.blog-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.sidebar-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.5rem;
}

.sidebar-list { list-style: none; }
.sidebar-list li { border-bottom: 1px solid var(--border); }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.3rem;
    font-size: 0.88rem;
    color: var(--text);
    text-decoration: none;
    transition: color var(--transition);
}
.sidebar-link:hover, .sidebar-link--active { color: var(--secondary); font-weight: 600; }
.sidebar-count {
    background: var(--bg);
    border-radius: 50px;
    padding: 0.1rem 0.5rem;
    font-size: 0.72rem;
    color: var(--text-light);
    font-weight: 600;
}

.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.post-meta-list { list-style: none; font-size: 0.88rem; }
.post-meta-list li { padding: 0.4rem 0; border-bottom: 1px solid var(--border); color: var(--text-light); }
.post-meta-list li:last-child { border-bottom: none; }
.post-meta-list strong { color: var(--text); }
.post-meta-list a { color: var(--secondary); }

.related-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.related-link {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.88rem;
    color: var(--text);
    text-decoration: none;
    transition: color var(--transition);
}
.related-link:hover { color: var(--secondary); }
.related-cat { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1px; color: var(--secondary); font-weight: 700; }

/* ── Single post ─────────────────────────────────────────────────────────── */
.post-hero {
    background: linear-gradient(145deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.post-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(212,168,75,0.15) 0%, transparent 60%);
}
.post-hero .container { position: relative; z-index: 2; max-width: 800px; }

.post-hero-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.post-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
}
.post-hero-summary { font-size: 1.1rem; color: rgba(255,255,255,0.82); max-width: 640px; margin-bottom: 1.5rem; }
.post-hero-author { display: flex; align-items: center; gap: 0.6rem; font-size: 0.88rem; color: rgba(255,255,255,0.75); }
.author-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.post-section { padding: 4rem 0 6rem; background: var(--bg); }
.post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    align-items: start;
    max-width: 1100px;
}

.post-body {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.post-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text);
    margin-bottom: 2rem;
}

.post-tags--bottom {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-light);
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    margin-bottom: 2rem;
}

.post-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ── Recent posts on homepage ─────────────────────────────────────────────── */
.recent-posts { padding: 6rem 0; background: var(--white); }
.recent-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.recent-post-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 1.75rem;
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all var(--transition);
}
.recent-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: var(--white);
}
.recent-post-cat {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--secondary);
    font-weight: 700;
}
.recent-post-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}
.recent-post-summary { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; flex: 1; }
.recent-post-date { font-size: 0.75rem; color: var(--text-light); margin-top: 0.25rem; }

/* page-hero blog variant */
.page-hero--blog { background: linear-gradient(145deg, #1e3a4c 0%, var(--secondary) 100%); }

/* ── Blog responsive ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .blog-layout, .post-layout { grid-template-columns: 1fr; }
    .blog-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
}
@media (max-width: 600px) {
    .blog-sidebar { grid-template-columns: 1fr; }
    .post-body { padding: 1.5rem; }
}

/* =============================================
   GALLERY — REAL PHOTOS & NOTICE
   ============================================= */

/* Real photo thumbnails */
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition);
}
.gallery-thumb:hover img { transform: scale(1.06); }

/* Broken image fallback */
.gallery-thumb.img-error {
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.85rem;
}
.gallery-thumb.img-error::after { content: 'Image unavailable'; }

/* Zoom hint icon */
.gallery-zoom-icon {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0,0,0,0.45);
    color: #fff;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}
.gallery-thumb:hover .gallery-zoom-icon { opacity: 1; }

/* Notice banner */
.gallery-notice {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fffbeb;
    border: 1.5px solid #fcd34d;
    border-radius: var(--radius-sm);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #92400e;
}
.gallery-notice__icon { font-size: 1.5rem; flex-shrink: 0; }
.gallery-notice__text a {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: underline;
}

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(10,15,20,0.92);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.lightbox--open { display: flex; }

.lightbox__close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox__close:hover { background: rgba(255,255,255,0.25); }

.lightbox__inner {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.lightbox__img {
    max-width: 100%;
    max-height: 78vh;
    border-radius: var(--radius-sm);
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
    object-fit: contain;
}

.lightbox__caption {
    text-align: center;
}
.lightbox__title {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    margin-top: 0.4rem;
}

/* =============================================
   NEWSLETTER SUBSCRIPTION
   ============================================= */
.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    background: var(--white);
    color: var(--text);
    transition: border-color var(--transition);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(93, 78, 138, 0.1);
}

.btn--small {
    padding: 0.6rem 1.2rem !important;
    font-size: 0.9rem !important;
    white-space: nowrap;
}

/* =============================================
   MODAL
   ============================================= */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-width: 420px;
    width: 90%;
    animation: slideIn 0.3s ease;
    position: relative;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h3 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
}

.modal-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.modal-content input[type="email"] {
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--white);
    color: var(--text);
    transition: border-color var(--transition);
}

.modal-content input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(93, 78, 138, 0.1);
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-light);
    transition: color var(--transition);
}

.modal-close:hover {
    color: var(--primary);
}

.modal-content .btn {
    flex: 1;
    margin: 0;
}

.modal-content form > div {
    display: flex;
    gap: 0.5rem;
}

/* Responsive for modal buttons */
@media (max-width: 600px) {
    .modal-content {
        margin: 20% auto;
        padding: 1.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input[type="email"] {
        width: 100%;
    }
}
