@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&family=Roboto:wght@300;400;500;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-color: #f8fafc;
    --surface-color: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --accent: #b2541a;
    --border: #e2e8f0;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    line-height: 1.8;
    background-color: var(--bg-color);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Allow text selection only on links */
a {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

/* Navigation & UI elements use Inter */
.navbar,
.navbar a,
.dropdown-menu,
h1,
h2,
h4,
h5,
h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

h3 {
    font-family: 'Roboto Condensed', serif;
    font-weight: 400;
}

/* Hide outdated decor images globally */
img[src*="bg_top"],
img[src*="bg_bottom"] {
    display: none !important;
}

/* (Local search styles are at end of file) */


/* Modern Navbar Enhancements */
.navbar {
    margin-bottom: 2.5rem;
    border: none;
    background: linear-gradient(135deg, rgba(162, 75, 22, 0.98), rgba(128, 55, 15, 0.98));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.8rem 0;
    box-shadow: 0 4px 30px rgba(178, 84, 26, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(178, 84, 26, 0.4);
}

.navbar-default {
    background-color: transparent;
    border: none;
}

.navbar-default .navbar-nav>li>a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.02em;
    padding: 12px 16px;
    margin: 0 4px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}

.navbar-default .navbar-nav>li>a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-default .navbar-nav>li>a:hover::before,
.navbar-default .navbar-nav>li>a:focus::before {
    width: 70%;
}

.navbar-default .navbar-nav>li>a:hover,
.navbar-default .navbar-nav>li>a:focus,
.navbar-default .navbar-nav>.open>a,
.navbar-default .navbar-nav>.open>a:hover,
.navbar-default .navbar-nav>.open>a:focus {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Modern Dropdown Menu */
.dropdown-menu {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 1rem 0.5rem;
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.99);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: menuSlideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transform-origin: top center;
    min-width: 220px;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 30px;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.99);
    transform: rotate(45deg);
    border-radius: 2px;
}

@keyframes menuSlideDown {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-menu>li>a {
    padding: 12px 20px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    margin: 4px 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-menu>li>a:hover {
    background: linear-gradient(135deg, rgba(178, 84, 26, 0.1), rgba(178, 84, 26, 0.05));
    color: var(--accent);
    transform: translateX(5px);
}

/* Allow navbar to be wider so items don't wrap */
.navbar .container {
    max-width: 1100px;
    width: 100%;
}

/* Modern Mobile Toggle with Rounded Hamburger */
.navbar-default .navbar-toggle {
    border-color: transparent;
    border-radius: 12px;
    padding: 13px;
    margin-top: 6px;
    margin-right: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.25);
    width: 48px;
    height: 48px;
    position: relative;
    backdrop-filter: blur(4px);
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.navbar-default .navbar-toggle .icon-bar {
    background-color: #ffffff;
    height: 3px;
    border-radius: 3px;
    width: 20px;
    margin: 4px auto;
    transition: all 0.35s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    display: block;
    transform-origin: center;
}

/* Hamburger Animation - Morph to X */
.navbar-default .navbar-toggle[aria-expanded="true"] .icon-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar-default .navbar-toggle[aria-expanded="true"] .icon-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.navbar-default .navbar-toggle[aria-expanded="true"] .icon-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Container & Cards */
.container {
    max-width: 840px;
}

.message,
.prayers {
    background-color: var(--surface-color);
    padding: 3rem 4rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border);
    margin-bottom: 3rem;
}

@media (max-width: 767px) {

    .message,
    .prayers {
        padding: 2rem 1.5rem;
    }
}

/* Typography */
h1,
h2,
h4,
h5,
h6 {
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.3;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
    text-align: left;
}

h3 {
    font-family: "Roboto Condensed", serif;
    font-weight: 360;
    color: #b2541a;
    line-height: 0.7;
    font-size: clamp(1.7rem, 5vw, 2.7rem);
    text-transform: uppercase;
    padding-bottom: .5rem;
    margin: 25px 0 5px;
    max-width: 100%;
    cursor: crosshair;
    transition: all;
    box-sizing: border-box;
}

a,
a:hover,
a:visited {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Utilities */
.m-b {
    margin-bottom: 1em;
}

footer h4 {
    margin-bottom: 20px;
}

footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

footer ul li {
    margin-bottom: 8px;
    line-height: 0.7;
}

/* Forms & Inputs */
input[type="radio"]:checked:after,
.radio input[type="radio"]:checked:after,
.radio-inline input[type="radio"]:checked:after {
    border-color: var(--accent);
}

input[type="radio"]:before,
.radio input[type="radio"]:before,
.radio-inline input[type="radio"]:before {
    background-color: var(--accent);
}

/* Specific message logic overrides */
.message nav {
    margin-top: 2rem;
}

.message nav a {
    font-size: 1.3rem;
}

.message h6 {
    text-align: right;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
    font-weight: 400;
}

.message section {
    text-align: left;
    /* Avoid justify for better modern readability */
}

/* Bigger body text inside article content */
.message article {
    font-size: 1.8rem;
    line-height: 1.9;
}

/* Hide the old background image */
.message .message-text:first-child .text,
.message nav {
    padding-left: 0;
    background-image: none !important;
}

.message .message-text:nth-child(2) {
    display: none;
}

.message .fa-check-circle {
    display: none;
}

.message.source .message-text:first-child .text,
.message.source nav {
    padding-left: 0;
}

.message.source .message-text:nth-child(2) {
    display: block;
}

.message.source .fa-check-circle {
    display: inline;
}

.message.source .fa-circle-o {
    display: none;
}

/* Prayers */
.prayers article {
    clear: both;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
}

.prayers article:last-child {
    border-bottom: none;
}

.prayers article h5:first-child {
    text-align: center;
    color: var(--accent);
    font-size: 1.8rem;
}

.prayers article h5:nth-child(2),
.prayers article h5.second:first-child {
    text-align: left;
    font-weight: 600;
    font-size: 1.8rem;
}

.prayers article section {
    clear: both;
    text-align: left;
    margin-bottom: 1rem;
}

.prayers article section.intro {
    font-size: 1.7rem;
    color: var(--text-secondary);
    padding: 1rem 1.25rem;
    background: var(--bg-color);
    border-left: 3px solid var(--accent);
    border-radius: 0 6px 6px 0;
    line-height: 1.6;
}

.prayers article section.content p {
    display: inline;
    font-size: 1.8rem;
    line-height: 1.8;
}

/* Universal images */
img.img-responsive {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Header image refinement */
h1>a>img {
    max-height: 180px;
    object-fit: contain;
    margin: 0 auto;
    padding-bottom: 1rem;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 767px) {
    body {
        font-size: 14px;
        /* Slightly smaller base font for mobile */
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        overflow-x: hidden;
    }

    .message,
    .prayers {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
        border-radius: 8px;
        border: none;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        /* Softer shadow for mobile */
    }

    /* Adjust typography for mobile */
    h1>a>img {
        max-height: 100px;
        /* Smaller logo */
        padding-bottom: 0.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    /* Make text break properly so it doesn't overflow */
    p,
    section,
    article {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Modern Mobile Navbar */
    .navbar {
        margin-bottom: 1rem;
        padding: 0.6rem 0;
    }

    /* Animated Mobile Menu Panel */
    .navbar-collapse {
        background: linear-gradient(180deg, rgba(162, 75, 22, 0.98), rgba(128, 55, 15, 0.98));
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 16px;
        margin-top: 15px;
        margin-left: 10px;
        margin-right: 10px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        padding: 1rem;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .navbar-default .navbar-nav {
        margin: 0;
    }

    .navbar-default .navbar-nav>li {
        margin: 4px 0;
    }

    .navbar-default .navbar-nav>li>a {
        padding: 14px 18px;
        border-radius: 12px;
        border-bottom: none;
        color: rgba(255, 255, 255, 0.95);
        font-size: 15px;
        font-weight: 500;
        transition: all 0.25s ease;
        background: rgba(255, 255, 255, 0.05);
        margin: 4px 0;
    }

    .navbar-default .navbar-nav>li>a:hover,
    .navbar-default .navbar-nav>li>a:focus {
        background: rgba(255, 255, 255, 0.15);
        transform: translateX(5px);
        color: #ffffff;
    }

    /* Mobile Dropdown Styling - Let Bootstrap handle show/hide */
    .navbar-default .navbar-nav .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        background: rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
        margin: 8px 0;
        padding: 8px;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .navbar-default .navbar-nav .open .dropdown-menu>li>a {
        color: rgba(255, 255, 255, 0.9);
        padding: 12px 18px;
        border-radius: 8px;
        border-bottom: none;
        font-size: 14px;
        transition: all 0.2s ease;
    }

    .navbar-default .navbar-nav .open .dropdown-menu>li>a:hover {
        background: rgba(255, 255, 255, 0.15);
        color: #fff;
        transform: translateX(5px);
    }

    /* Dropdown arrow indicator */
    .dropdown-toggle .caret {
        border-top-color: rgba(255, 255, 255, 0.8);
        margin-left: 8px;
        transition: transform 0.3s ease;
    }

    .dropdown.open .dropdown-toggle .caret {
        transform: rotate(180deg);
    }

    /* Mobile-friendly article text */
    .message article {
        font-size: 1.7rem;
        line-height: 1.8;
    }

    .prayers article section.content p {
        font-size: 1.8rem;
    }

    /* Ensure images don't overflow */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Touch-friendly buttons and links */
    a, button {
        min-height: 44px;
        min-width: 44px;
    }
}

@media (max-width: 480px) {

    .message,
    .prayers {
        padding: 1rem 0.5rem;
    }

    body {
        font-size: 14px;
        /* Even smaller font for very small screens */
    }

    .message article h3 {
        font-size: 2.2rem !important;
    }

    .message article {
        font-size: 1.7rem;
    }

    .prayers article section.content p {
        font-size: 1.8rem;
    }
}

/* Tablet styles */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        max-width: 95%;
    }

    h3 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    .prayers article section.content p {
        font-size: 1.8rem;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .navbar {
        margin-bottom: 1rem;
    }

    h1>a>img {
        max-height: 60px;
    }
}

/* =============================================
   Lista.php — Message List Styling
   ============================================= */

/* Year jump-links at the top of the list */
.message article>a[href^="#20"] {
    display: inline-block;
    margin: 0 8px 8px 0;
    padding: 8px 22px;
    background: var(--bg-color);
    border: 1px solid var(--border);
    border-radius: 24px;
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}

.message article>a[href^="#20"]:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    text-decoration: none;
    opacity: 1;
}

/* Year heading (h4) with month sub-links */
h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 3rem;
    margin-bottom: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--bg-color);
    border-left: 4px solid var(--accent);
    border-radius: 0 8px 8px 0;
    line-height: 2;
}

/* Month sub-links inside h4 */
h4 a {
    display: inline-block;
    margin: 3px 5px;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 5px 16px;
    border-radius: 12px;
    background: var(--surface-color);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    white-space: nowrap;
}

h4 a:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    text-decoration: none;
    opacity: 1;
}

/* Month heading (h3) inside the list */
.message article h3 {
    font-family: "Roboto Condensed", serif;
    font-size: clamp(1.7rem, 5vw, 2.7rem);
    font-weight: 460;
    margin: 25px 0 5px;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--accent);
    color: var(--accent);
    line-height: 1.1;
    max-width: 100%;
    text-transform: uppercase;
}

/* "Back to top" link */
.message article b>a[href="#gora"] {
    display: inline-block;
    margin: 0.5rem 0 1.5rem;
    font-size: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 3px 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.2s ease;
}

.message article b>a[href="#gora"]:hover {
    background: var(--bg-color);
    text-decoration: none;
    opacity: 1;
}

/* Individual message entry links — clean block rows */
.message article a:not([href^="#"]):not([name]) {
    display: block;
    padding: 14px 8px;
    border-bottom: 1px solid var(--border);
    font-size: 1.85rem;
    color: var(--text-primary);
    line-height: 1.5;
    transition: background 0.15s ease, padding-left 0.15s ease, color 0.15s ease;
    text-decoration: none;
}

.message article a:not([href^="#"]):not([name]):hover {
    padding-left: 14px;
    background: rgba(178, 84, 26, 0.04);
    color: var(--accent);
    text-decoration: none;
    opacity: 1;
}

/* Hide the <br> separators that come AFTER links in lista.php (adjacent sibling) */
.message article a:not([href^="#"]):not([name]) + br {
    display: none;
}

/* Tighten invisible anchor targets */
a[name] {
    display: block;
    height: 0;
    overflow: hidden;
}

/* Mobile tweaks for the list */
@media (max-width: 767px) {
    h4 {
        font-size: 1.3rem;
        padding: 0.75rem 1rem;
    }

    h4 a {
        margin: 3px 3px;
        font-size: 1.1rem;
    }

    .message article a:not([href^="#"]):not([name]) {
        font-size: 1.9rem;
        padding: 12px 4px;
    }
}

/* =============================================
   Wybrane.php & Global List Styling
   ============================================= */

/* Style h1 letters in wybrane.php exactly like h4 in lista.php */
.message article h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 3rem;
    margin-bottom: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--bg-color);
    border-left: 4px solid var(--accent);
    border-radius: 0 8px 8px 0;
    line-height: 2;
}

/* Some links are wrapped in <p> in wybrane.php and index.php. Let's style them as blocks too. */
.message article p>a:not([href^="#"]):not(.btn),
.message article>a:not([href^="#"]):not([name]):not(.btn) {
    display: block;
    padding: 14px 8px;
    border-bottom: 1px solid var(--border);
    font-size: 1.85rem;
    color: var(--text-primary);
    line-height: 1.5;
    transition: background 0.15s ease, padding-left 0.15s ease, color 0.15s ease;
    text-decoration: none;
}

.message article p>a:not([href^="#"]):not(.btn):hover,
.message article>a:not([href^="#"]):not([name]):not(.btn):hover {
    padding-left: 14px;
    background: rgba(178, 84, 26, 0.04);
    color: var(--accent);
    text-decoration: none;
    opacity: 1;
}

/* Remove margin from paragraphs that ONLY contain a block link to prevent double spacing */
.message article p:has(> a:only-child) {
    margin: 0;
}

/* Override old brs - only hide br after block links, not in message content */
.message article p>a:not([href^="#"]):not(.btn) + br {
    display: none;
}

/* =============================================
   Index.php — Home Page Cards
   ============================================= */

.index-content {
    margin-top: 1rem;
}

.intro-card {
    background: linear-gradient(135deg, rgba(178, 84, 26, 0.1) 0%, rgba(178, 84, 26, 0.02) 100%);
    border: 1px solid rgba(178, 84, 26, 0.2);
    border-radius: 12px;
    padding: 2.5rem 2rem;
}

.intro-card .lead {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.btn-primary {
    background-color: var(--accent);
    border-color: var(--accent);
    padding: 10px 24px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #926618;
    border-color: #926618;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(178, 84, 26, 0.3);
}

.btn-outline {
    border: 1px solid var(--accent);
    color: var(--accent);
    background: transparent;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline:hover {
    background: var(--accent);
    color: #fff;
    text-decoration: none;
}

.btn-modlitwa {
    color: #8c4923;
    background-color: rgba(178, 84, 26, .027);
    font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
    font-size: 18.5px;
    font-weight: 500;
    line-height: 27.75px;
    padding: 5px 10px;
    border: 1px solid #b2541a;
    border-radius: 4px;
    cursor: pointer;
    transition: all .15s;
    display: inline-block;
    margin: 8px 0;
}

.btn-modlitwa:hover {
    color: var(--accent);
    text-decoration-line: underline;
    opacity: .8;
    background-color: rgba(178, 84, 26, .04);
}

.section-title {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    position: relative;
    border-bottom: none;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
}

.info-card {
    background: var(--surface-color);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.schedule-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
}

.schedule-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.schedule-list li:last-child {
    border-bottom: none;
}

.schedule-list li i {
    color: var(--accent);
    margin-right: 12px;
    font-size: 1.2em;
}

.features-grid {
    margin-bottom: 3rem;
}

.feature-card {
    background: var(--surface-color);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.feature-card h3 {
    margin-top: 0;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.audio-player {
    width: 100%;
    margin: 1.5rem 0;
    background: var(--bg-color);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.audio-player audio {
    width: 100%;
    height: 40px;
}

.radio-links .sub-link {
    font-size: 1.1rem;
    display: inline-block;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.radio-links .sub-link:hover {
    color: var(--accent);
}

.prophecies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.prophecy-card {
    background: var(--surface-color);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.prophecy-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(178, 84, 26, 0.08);
}

.prophecy-card h4 {
    margin-top: 0;
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-left: 0;
    border-left: none;
    background: transparent;
}

.prophecy-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    flex-grow: 1;
}

.read-more {
    font-weight: 500;
    display: inline-block;
    margin-top: 1rem;
}

.source-link a {
    font-size: 1rem;
    color: #888;
}

.prayer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.prayer-links a {
    font-size: 1.05rem;
    padding: 6px 10px;
    background: var(--bg-color);
    border-radius: 6px;
    transition: background 0.2s;
}

.prayer-links a:hover {
    background: rgba(178, 84, 26, 0.1);
    text-decoration: none;
}

.about-section {
    background: var(--surface-color);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
    margin-top: 3rem;
}

.message-quote {
    border-left: 4px solid var(--accent);
    padding: 1rem 1.5rem;
    background: rgba(178, 84, 26, 0.03);
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-style: italic;
}

.quote-source {
    margin-top: 1rem;
    font-size: 1rem;
    text-align: right;
    font-style: normal;
}

.text-accent {
    color: var(--accent);
}

@media (max-width: 767px) {
    .prophecies-grid {
        grid-template-columns: 1fr;
    }

    .intro-card,
    .info-card,
    .feature-card,
    .about-section {
        padding: 1.5rem;
    }
}

/* =============================================
   Local Search — Form & Results
   ============================================= */

/* Search container */
.search-container {
    max-width: 620px;
    margin: 0 auto 1.5rem;
    padding: 0 15px;
}

.search-label {
    margin: 1.5rem 0 0.6rem;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent);
    text-align: center;
    letter-spacing: 0.02em;
    font-family: 'Inter', sans-serif;
}

.search-form {
    width: 100%;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 50px;
    height: 52px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.search-input-wrapper:focus-within {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(178, 84, 26, 0.15);
}

.search-input-wrapper input[type="text"] {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 1.25rem;
    font-family: 'Inter', sans-serif;
    font-size: 1.7rem;
    color: var(--text-primary);
    background: transparent;
    height: 100%;
}

.search-input-wrapper input[type="text"]::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-right: 3px;
    background: var(--accent);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(178, 84, 26, 0.3);
}

.search-btn:hover {
    background: #964418;
    box-shadow: 0 4px 14px rgba(178, 84, 26, 0.4);
    transform: scale(1.05);
}

.search-btn:active {
    transform: scale(0.97);
}

/* Search Results Page */
.search-results-page {
    min-height: 400px;
}

.search-results-page .search-results-header {
    margin-bottom: 2rem;
}

.search-results-page .search-results-title {
    font-size: 2rem;
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 0.5rem;
    border-bottom: none;
    padding-bottom: 0;
    font-family: 'Inter', sans-serif;
}

.search-results-page .search-results-meta {
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
}

.search-results-page .search-results-meta strong {
    color: var(--accent);
}

/* Empty state */
.search-empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.search-empty-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.search-empty-state h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    border-bottom: none;
}

.search-empty-state p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
}

/* Individual result cards */
.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.search-result-item {
    padding: 1.5rem 0.5rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s ease;
}

.search-result-item:first-child {
    padding-top: 0.5rem;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(178, 84, 26, 0.02);
}

.search-result-link {
    display: block !important;
    text-decoration: none !important;
    padding: 0 !important;
    border-bottom: none !important;
    margin-bottom: 0.5rem;
}

.search-result-link:hover {
    text-decoration: none !important;
    background: transparent !important;
    padding-left: 0 !important;
}

.search-result-item-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--accent);
    line-height: 1.4;
    transition: color 0.15s ease;
}

.search-result-link:hover .search-result-item-title {
    color: #964418;
}

.search-result-snippet {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.6rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.search-result-snippet mark {
    background: rgba(178, 84, 26, 0.15);
    color: var(--text-primary);
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.search-result-badge {
    display: inline-block;
}

.search-result-badge span {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--bg-color);
    border: 1px solid var(--border);
    padding: 3px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* Mobile tweaks for search */
@media (max-width: 767px) {
    .search-container {
        max-width: 100%;
    }

    .search-input-wrapper {
        height: 48px;
    }

    .search-btn {
        width: 40px;
        height: 40px;
    }

    .search-result-item-title {
        font-size: 1.6rem;
    }

    .search-result-snippet {
        font-size: 1rem;
    }

    .search-results-page .search-results-title {
        font-size: 1.5rem;
    }
}

/* =============================================
   Site Footer
   ============================================= */

.site-footer {
    background: rgb(58, 58, 58);
    padding: 0;
    margin-top: 3rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
    max-width: 100%;
    margin: 0 auto;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
}

.site-footer .copyright {
    color: rgba(255, 255, 255, 0.95);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    letter-spacing: 0.02em;
    padding-top: 2.25rem;
    margin-top: 0;
}

.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 0;
    flex-wrap: wrap;
    background-color: #b45723;
    padding: 1.6rem 1.5rem;
    border-radius: 0;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.footer-social a:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.footer-social a img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.footer-social a:hover img {
    transform: scale(1.1);
}

.footer-social a.social-icon-large img {
    width: 120px;
    height: 120px;
}

.footer-social a.social-icon-large:hover img {
    transform: scale(1.1);
}

@media (max-width: 767px) {
    .footer-social a img {
        width: 40px;
        height: 40px;
    }

    .footer-social a.social-icon-large img {
        width: 80px;
        height: 80px;
    }

    .footer-social {
        gap: 1rem;
    }
}

.footer-notice {
    border-top: 0;
    padding: 0 1.5rem 2.5rem;
    margin-top: 0;
}

.footer-notice p {
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.15rem;
    line-height: 1.7;
    margin: 0 0 1rem 0;
    text-align: center;
}

.footer-notice .footer-works {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.footer-notice .footer-english {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    font-style: italic;
    margin-bottom: 0;
    line-height: 1.8;
}

@media (max-width: 767px) {
    .site-footer {
        padding: 0;
        margin-top: 2rem;
    }

    .footer-social {
        padding: 1.2rem 1rem;
    }

    .site-footer .copyright {
        font-size: 1.2rem;
        padding: 1.75rem 1rem 0;
    }

    .footer-notice {
        padding: 0 1rem 2rem;
    }

    .footer-notice p {
        font-size: 1rem;
        text-align: center;
    }

    .footer-notice .footer-works {
        font-size: 1rem;
    }

    .footer-notice .footer-english {
        font-size: 0.95rem;
    }
}
