/* ---------------------------------------------------------
   GLOBAL TYPOGRAPHY & BASE
--------------------------------------------------------- */
body {
    background: #F7F1E3; /* Light parchment */
    font-family: 'Crimson Text', 'EB Garamond', Georgia, serif;
    color: #1C2A39;
    margin: 0;
    padding: 0;
}

/* ---------------------------------------------------------
   SEARCH FORM (used on state pages)
--------------------------------------------------------- */
.search-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.search-mascot {
    width: 48px;
    height: auto;
    flex-shrink: 0;
    transition: transform 0.25s ease;
    cursor: pointer;
}

.search-mascot:hover {
    transform: scale(1.12) rotate(-3deg);
}

.search-form,
.search-container input {
    width: 100%;
    max-width: 420px;
}

.search-form input,
.search-form select,
.search-container input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 12px;
    background: #FAF3E0;
    border: 1px solid #C7B9A4;
    border-radius: 6px;
    font-size: 16px;
    color: #1C2A39;
    box-sizing: border-box;
}

.search-btn {
    width: 100%;
    padding: 12px;
    background: #1C2A39;
    color: #FAF3E0;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
}

.search-btn:hover {
    background: #16202C;
}

/* ---------------------------------------------------------
   CORRECTION BOX (state pages)
--------------------------------------------------------- */
.correction-box {
    background: #FAF3E0;
    border: 1px solid #C7B9A4;
    padding: 10px 16px;
    border-radius: 6px;
    font-family: 'Crimson Text', serif;
    font-size: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: inline-block;
}

.correction-box a {
    color: #1C2A39;
    text-decoration: none;
    font-weight: 600;
}

.correction-box a:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------------
   LANDING PAGE — TWO-COLUMN LAYOUT
--------------------------------------------------------- */
.landing-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    padding: 40px;
    background: #F7F1E3;
}

/* LEFT SIDE — DIRECTORY COVER */
.landing-left {
    flex: 0 0 auto;
}

.landing-cover {
    height: 380px; /* Your chosen size */
    width: auto;
    margin-top: 80px;

    border: none !important;
    outline: none !important;
    background: transparent !important;

    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.landing-left img {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: inherit;
}

/* RIGHT SIDE — TITLE + STATE GRID */
.landing-right {
    flex: 1;
    max-width: 600px;
}

.landing-title {
    font-size: 32px;
    margin-bottom: 20px;
    color: #1C2A39;
    font-family: 'Crimson Text', serif;
}

/* ---------------------------------------------------------
   LANDING PAGE — STATE GRID BUTTONS
--------------------------------------------------------- */
.state-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
    gap: 14px;
}

.state-grid a {
    display: block;
    background: #fdfbf4;
    border: 1px solid #d8c9a7;
    padding: 10px 12px;
    text-align: center;
    font-size: 16px;
    border-radius: 6px;
    transition: 0.2s ease;
    color: #333;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.state-grid a:hover {
    background: #f4ecd4;
    transform: scale(1.04);
}

/* ---------------------------------------------------------
   STATE PAGE HEADER
--------------------------------------------------------- */
.state-header {
    text-align: center;
    margin-bottom: 10px;
}

.state-logo {
    height: 120px;
    margin-bottom: 10px;
}

.correction-link,
.correction-inline {
    text-align: right;
    font-size: 14px;
    color: #444;
    text-decoration: none;
}

.correction-inline:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------------
   CHURCH CARDS (state pages)
--------------------------------------------------------- */
.church-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #d8c9a7;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.church-name {
    font-size: 1.4rem;
    font-weight: bold;
    color: #2c3e50;
}

.church-location {
    color: #555;
}

.gps-icon {
    font-size: 1.2rem;
    margin-left: 8px;
    vertical-align: middle;
}

/* ---------------------------------------------------------
   UTILITY
--------------------------------------------------------- */
.custom-row-gap {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.row input,
.row select {
    flex: 1;
}

/* ---------------------------------------------------------
   MOBILE RESPONSIVE
--------------------------------------------------------- */
@media (max-width: 900px) {
    .landing-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .landing-left {
        margin-bottom: 20px;
    }

    .landing-cover {
        height: 300px; /* Mobile size */
    }

    .landing-right {
        max-width: 100%;
    }
}
