/* Masjids in Udaipur — heritage photo cards */

.hp-masjids {
    position: relative;
    padding: clamp(3.5rem, 6vw, 5rem) 0;
    background: linear-gradient(180deg, #fff 0%, #f4fbf7 100%);
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.hp-masjids__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    pointer-events: none;
    background-image: 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 4 L34 14 L44 14 L36 20 L39 30 L30 24 L21 30 L24 20 L16 14 L26 14 Z' fill='%2300a855'/%3E%3C/svg%3E");
}

.hp-masjids .container {
    position: relative;
    z-index: 2;
}

.hp-masjids__head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem 2rem;
    align-items: end;
    margin-bottom: 2rem;
}

.hp-masjids__head span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #087a42;
    background: rgba(0, 168, 85, 0.08);
    border: 1px solid rgba(0, 168, 85, 0.2);
    margin-bottom: 0.75rem;
}

.hp-masjids__head h2 {
    margin: 0;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 900;
    line-height: 1.1;
    color: #0f172a !important;
}

.hp-masjids__head p {
    grid-column: 1;
    margin: 0;
    max-width: 520px;
    font-size: 1rem;
    line-height: 1.7;
    color: #64748b !important;
}

.hp-masjids__cta {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: end;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    color: #087a42 !important;
    border: 1px solid rgba(0, 168, 85, 0.35);
    background: #fff;
    white-space: nowrap;
}

.hp-masjids__cta:hover {
    background: #00a855;
    border-color: #00a855;
    color: #fff !important;
}

.hp-scroll--masjids .hp-scroll__track {
    padding-left: max(1.25rem, calc((100vw - 1320px) / 2 + 1.25rem));
    padding-right: 1.25rem;
    gap: 18px;
    align-items: stretch;
}

.hp-masjid-card {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #0f172a !important;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.hp-masjid-card:hover {
    color: #0f172a !important;
    transform: translateY(-6px);
    border-color: rgba(0, 168, 85, 0.35);
    box-shadow: 0 16px 36px rgba(0, 168, 85, 0.12);
}

.hp-masjid-card__visual {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #e2e8f0;
    position: relative;
}

.hp-masjid-card__icon {
    position: absolute;
    bottom: 14px;
    left: 14px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 18px;
    color: #087a42;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 168, 85, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hp-masjid-card__body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.hp-masjid-card__tag {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #9a7209 !important;
}

.hp-masjid-card__body h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1.25;
    color: #0f172a !important;
}

.hp-masjid-card__body p {
    margin: 0;
    flex: 1;
    font-size: 13px;
    line-height: 1.55;
    color: #64748b !important;
}

.hp-masjid-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #087a42 !important;
}

@media (max-width: 991px) {
    .hp-masjids__head {
        grid-template-columns: 1fr;
    }

    .hp-masjids__cta {
        grid-column: 1;
        grid-row: auto;
    }
}

@media (max-width: 575px) {
    .hp-masjid-card {
        flex-basis: min(280px, 88vw);
    }
}
