/* ========================================
   Home Page Styles
   ======================================== */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    min-height: 100vh;
}

/* ---- Navbar ---- */
.hp-navbar {
    background: var(--navbar-bg, #1b4332);
    color: var(--navbar-text, #ffffff);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.hp-navbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 2rem;
}

.hp-navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hp-navbar-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.hp-navbar-title {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hp-navbar-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.hp-navbar-link {
    color: var(--navbar-text, #ffffff);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: background 0.2s ease, opacity 0.2s ease;
    opacity: 0.85;
}

.hp-navbar-link:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.12);
}

/* ---- Layout ---- */
.hp-layout {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    min-height: calc(100vh - 160px);
}

.hp-layout.has-sidebar.sidebar-left {
    flex-direction: row;
}

.hp-layout.has-sidebar.sidebar-right {
    flex-direction: row-reverse;
}

.hp-main {
    flex: 1;
    padding: 2rem;
}

/* ---- Sidebar ---- */
.hp-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: var(--sidebar-bg, #f5f7fa);
    color: var(--sidebar-text, #333);
    padding: 2rem 1.5rem;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.sidebar-right .hp-sidebar {
    border-right: none;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
}

.hp-sidebar-widget {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.hp-sidebar-widget:last-child {
    border-bottom: none;
}

.hp-sidebar-widget-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.hp-sidebar-widget-text {
    font-size: 0.95rem;
    line-height: 1.6;
}

.hp-sidebar-widget-link {
    color: var(--hp-primary, #1b4332);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.hp-sidebar-widget-link:hover {
    text-decoration: underline;
}

/* ---- Content Blocks ---- */
.hp-block {
    margin-bottom: 2rem;
}

.hp-block:last-child {
    margin-bottom: 0;
}

/* Rich Text */
.hp-block-rich_text {
    line-height: 1.7;
    font-size: 1.05rem;
}

.hp-block-rich_text h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.8rem; }
.hp-block-rich_text h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 0.6rem; }
.hp-block-rich_text p { margin-bottom: 1rem; }
.hp-block-rich_text a { color: var(--hp-primary, #1b4332); }
.hp-block-rich_text ul, .hp-block-rich_text ol { padding-left: 1.5rem; margin-bottom: 1rem; }

/* Image */
.hp-block-image img {
    width: 100%;
    max-width: 900px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Banner */
.hp-banner {
    background: linear-gradient(135deg, var(--hp-primary, #1b4332), var(--hp-secondary, #000));
    color: white;
    padding: 4rem 3rem;
    border-radius: 16px;
    text-align: center;
    background-size: cover;
    background-position: center;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-banner-heading {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    letter-spacing: -0.01em;
}

.hp-banner-subheading {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hp-banner-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.hp-banner-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* Announcement */
.hp-announcement {
    background: white;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-left: 4px solid var(--hp-primary, #1b4332);
}

.hp-announcement-important {
    border-left-color: #e9c176;
    background: #fffbf0;
}

.hp-announcement-urgent {
    border-left-color: #d32f2f;
    background: #fff5f5;
}

.hp-announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.8rem;
}

.hp-announcement-title {
    font-size: 1.3rem;
    font-weight: 700;
}

.hp-announcement-date {
    font-size: 0.85rem;
    color: #888;
}

.hp-announcement-body {
    line-height: 1.6;
    font-size: 1rem;
}

/* Call to Action */
.hp-cta {
    background: linear-gradient(135deg, var(--hp-primary, #1b4332), var(--hp-secondary, #000));
    color: white;
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
}

.hp-cta-heading {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.hp-cta-description {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hp-cta-btn {
    display: inline-block;
    background: white;
    color: var(--hp-primary, #1b4332);
    text-decoration: none;
    padding: 0.75rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hp-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Prayer Widget */
.hp-prayer-widget {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.hp-prayer-widget-heading {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--hp-primary, #1b4332);
}

.hp-prayer-widget-text {
    font-size: 1rem;
    color: #666;
}

/* Gallery */
.hp-gallery-heading {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

.hp-gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.hp-gallery-item:hover {
    transform: scale(1.03);
}

.hp-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Card Row */
.hp-block-card_row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.hp-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.hp-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.hp-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-card-body {
    padding: 1.25rem;
}

.hp-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hp-card-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.hp-card-link {
    color: var(--hp-primary, #1b4332);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.hp-card-link:hover {
    text-decoration: underline;
}

/* Empty State */
.hp-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #888;
}

.hp-empty h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #555;
    margin-bottom: 0.8rem;
}

/* ---- Footer ---- */
.hp-footer {
    background: var(--footer-bg, #1b4332);
    color: var(--footer-text, #ffffff);
    padding: 2rem 0;
    margin-top: auto;
}

.hp-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.hp-footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.hp-footer-link {
    color: var(--footer-text, #ffffff);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.hp-footer-link:hover {
    opacity: 1;
}

.hp-footer-text {
    font-size: 0.85rem;
    opacity: 0.6;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hp-navbar-inner {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1rem;
    }

    .hp-navbar-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }

    .hp-layout {
        flex-direction: column !important;
    }

    .hp-sidebar {
        width: 100%;
        border-right: none;
        border-left: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .hp-main {
        padding: 1.5rem 1rem;
    }

    .hp-banner {
        padding: 2.5rem 1.5rem;
        min-height: 180px;
    }

    .hp-banner-heading {
        font-size: 1.6rem;
    }

    .hp-block-card_row {
        grid-template-columns: 1fr;
    }

    .hp-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
