/* =============================================================
   MASJID SECTION — Landing Page
   Light theme, kompatibel dengan template Hilux
============================================================= */

/* -------------------------------------------------------
   SECTION WRAPPER
------------------------------------------------------- */
.masjid-section {
    padding: 80px 0;
    background: transparent;
}

/* -------------------------------------------------------
   SECTION HEADER
------------------------------------------------------- */
.masjid-sec-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
    font-family: 'Playfair Display', serif;
}

.masjid-sec-sub {
    font-size: 15px;
    color: #6c7380;
    max-width: 480px;
    margin: 0 auto 20px;
    line-height: 1.7;
}

.masjid-sec-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #1d9e75;
    font-size: 20px;
}

.masjid-sec-divider span {
    width: 50px;
    height: 2px;
    background: #1d9e75;
    opacity: 0.4;
    display: block;
}

/* -------------------------------------------------------
   CARD LINK WRAPPER
------------------------------------------------------- */
.masjid-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.masjid-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* -------------------------------------------------------
   MASJID CARD
------------------------------------------------------- */
.masjid-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e8ecf0;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.masjid-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
    border-color: #1d9e75;
}

/* Thumbnail */
.masjid-card-img {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #e8f4f0;
    flex-shrink: 0;
}

.masjid-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.masjid-card:hover .masjid-card-img img {
    transform: scale(1.06);
}

.masjid-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f4f0 0%, #d0ede5 100%);
    font-size: 52px;
    color: #1d9e75;
    opacity: 0.6;
}

/* Overlay hover */
.masjid-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 110, 86, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.masjid-card:hover .masjid-card-overlay {
    opacity: 1;
}

.masjid-card-cta {
    background: #fff;
    color: #0f6e56;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Body */
.masjid-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.masjid-card-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
    line-height: 1.3;
}

.masjid-card-addr {
    font-size: 12px;
    color: #6c7380;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 5px;
    line-height: 1.5;
}

.masjid-card-addr i {
    font-size: 13px;
    color: #1d9e75;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Rekening info */
.masjid-card-rek {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px 10px;
    background: #f4faf8;
    border-radius: 8px;
    border: 1px solid #dff0eb;
}

.rek-bank-badge {
    background: #1d9e75;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.rek-no {
    font-size: 12px;
    color: #3d6b5e;
    font-weight: 500;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Action buttons */
.masjid-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: auto;
}

.btn-card-zakat,
.btn-card-infaq {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    transition: opacity 0.15s;
}

.btn-card-zakat {
    background: #e8f4f0;
    color: #0f6e56;
}

.btn-card-infaq {
    background: #e6f1fb;
    color: #185fa5;
}

.masjid-card:hover .btn-card-zakat { background: #1d9e75; color: #fff; }
.masjid-card:hover .btn-card-infaq { background: #185fa5; color: #fff; }

/* -------------------------------------------------------
   EMPTY STATE
------------------------------------------------------- */
.masjid-empty {
    padding: 60px 20px;
    text-align: center;
}

.masjid-empty i {
    font-size: 56px;
    color: #c5d0d8;
    display: block;
    margin-bottom: 16px;
}

.masjid-empty p {
    font-size: 15px;
    color: #6c7380;
    margin-bottom: 20px;
}

/* -------------------------------------------------------
   DAFTARKAN MASJID CTA
------------------------------------------------------- */
.masjid-daftar-cta-text {
    font-size: 14px;
    color: #6c7380;
    margin-bottom: 14px;
}

.btn-daftar-masjid {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1d9e75;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
}

.btn-daftar-masjid:hover {
    background: #0f6e56;
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

/* -------------------------------------------------------
   RESPONSIVE
------------------------------------------------------- */
@media (max-width: 768px) {
    .masjid-section { padding: 50px 0; }
    .masjid-sec-title { font-size: 24px; }
    .masjid-card-img { height: 160px; }
}

@media (max-width: 480px) {
    .masjid-card-actions { grid-template-columns: 1fr 1fr; }
}

/* -------------------------------------------------------
   PAGINATION — masjid landing page
------------------------------------------------------- */
.masjid-pagination {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.mp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s;
    border: 1px solid #dce2e8;
    background: #fff;
    color: #444;
    cursor: pointer;
}

.mp-btn:hover {
    background: #1d9e75;
    border-color: #1d9e75;
    color: #fff;
    text-decoration: none;
}

.mp-btn-active {
    background: #1d9e75 !important;
    border-color: #1d9e75 !important;
    color: #fff !important;
    cursor: default;
    font-weight: 700;
}

.mp-btn-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: #f4f5f7;
    border-color: #e0e3e7;
    color: #999;
}