.home-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .home-layout {
        gap: 1.25rem;
    }

    .home-map {
        height: 320px;
    }
}

@media (min-width: 1024px) {
    .home-layout {
        grid-template-columns: minmax(0, 7fr) minmax(300px, 3fr);
        align-items: start;
        gap: 1.5rem;
    }

    .home-calendar-card {
        position: sticky;
        top: 1rem;
    }
}

.home-main-col {
    min-width: 0;
}

.home-map-card,
.home-latest-card,
.home-calendar-card {
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.home-map-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.home-map {
    height: 250px;
    width: 100%;
    background: #f1f5f9;
}

.home-map-foot {
    border-top: 1px solid #f1f5f9;
    padding: 0.65rem 1.25rem;
    font-size: 0.75rem;
    color: #64748b;
}

.home-latest-card,
.home-calendar-card {
    padding: 1rem;
}

.home-latest-list {
    margin-top: 1rem;
    display: grid;
    gap: 0.65rem;
}

.home-latest-item {
    display: block;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    padding: 0.75rem 0.9rem;
    text-decoration: none;
    transition: all 0.18s ease;
}

.home-latest-item:hover {
    border-color: #7dd3fc;
    background: #f0f9ff;
}

.home-latest-item-title {
    margin: 0;
    font-weight: 600;
    color: #0f172a;
}

.home-latest-item-address {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: #475569;
}

.home-latest-link-wrap {
    margin-top: 1rem;
    text-align: right;
}

.home-calendar-sub {
    margin: 0.2rem 0 0;
    font-size: 0.9rem;
    color: #64748b;
}

.home-calendar-box {
    margin-top: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    padding: 0.9rem;
}

.home-calendar-month {
    margin: 0 0 0.7rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
}

.home-calendar-weekdays,
.home-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.25rem;
}

.home-calendar-weekday {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    padding: 0.25rem 0;
}

.home-calendar-day,
.home-calendar-empty {
    min-height: 30px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.home-calendar-day {
    background: #ffffff;
    color: #334155;
}

.home-calendar-day.is-today {
    background: #0284c7;
    color: #ffffff;
    font-weight: 700;
}

.home-calendar-empty {
    background: transparent;
}

.home-events-placeholder {
    margin-top: 0.95rem;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    padding: 0.75rem 0.85rem;
    font-size: 0.9rem;
    color: #475569;
}

.home-news-card {
    margin-top: 1rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
}

.home-news-list {
    margin-top: 0.75rem;
    display: grid;
    gap: 0.65rem;
}

.home-news-item {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 0.65rem;
    padding: 0.65rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    text-decoration: none;
}

.home-news-item:hover {
    border-color: #7dd3fc;
    background: #f0f9ff;
}

.home-news-item-image {
    width: 84px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
}

.home-news-item-body {
    min-width: 0;
}

.home-news-date {
    margin: 0;
    font-size: 0.72rem;
    color: #64748b;
}

.home-news-title {
    margin: 0.2rem 0 0;
    font-size: 0.95rem;
    line-height: 1.3;
    color: #0f172a;
    font-weight: 700;
}

.home-news-summary {
    margin: 0.3rem 0 0;
    font-size: 0.85rem;
    color: #475569;
}

.home-news-more-wrap {
    margin-top: 0.8rem;
}

.home-news-overview-link {
    display: inline-flex;
    align-items: center;
    border: 1px solid #bae6fd;
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #075985;
    text-decoration: none;
    background: #f0f9ff;
}

.home-news-overview-link:hover {
    background: #e0f2fe;
}

.home-news-headline-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.home-news-overview-grid {
    display: grid;
    gap: 1rem;
}

.home-news-overview-item {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.home-news-overview-item--no-image {
    grid-template-columns: 1fr;
}

.home-news-overview-image-link {
    display: block;
    padding: 0.9rem 0 0.9rem 0.9rem;
}

.home-news-overview-item--no-image .home-news-overview-image-link {
    display: none;
}

.home-news-overview-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

.home-news-overview-body {
    padding: 0.9rem 0.9rem 0.9rem 0;
}

.home-news-overview-item--no-image .home-news-overview-body {
    padding-left: 0.9rem;
}

.home-news-overview-body .home-news-title {
    font-size: 1.2rem;
}

.home-news-overview-body .home-news-title a {
    color: inherit;
    text-decoration: none;
}

.home-news-overview-body .home-news-title a:hover {
    color: #0369a1;
}

.home-news-detail-card {
    max-width: 900px;
    margin: 0 auto;
}

.news-detail-topbar {
    margin-bottom: 10px;
}

.news-detail-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
    border-radius: 24px;
}

.news-detail-heading {
    margin-bottom: 0.4rem;
}

.news-detail-title {
    margin: 0 0 0.6rem;
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    line-height: 1.2;
    font-weight: 700;
    color: #0f172a;
}

.news-detail-meta-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.9rem;
    margin-bottom: 1rem;
    font-size: 0.86rem;
    color: #64748b;
}

.news-detail-meta-inline span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.news-detail-flow {
    display: block;
}

.news-detail-flow::after {
    content: '';
    display: table;
    clear: both;
}

.news-detail-image-trigger--float {
    float: left;
    width: clamp(180px, 36%, 320px);
    max-width: 100%;
    margin: 0.15rem 1rem 0.75rem 0;
    cursor: zoom-in;
}

.news-detail-image-trigger--float .news-detail-image {
    display: block;
    width: 100%;
}

.news-detail-lead {
    margin: 0 0 0.9rem;
    font-size: 1.02rem;
    line-height: 1.7;
    color: #0f172a;
    font-weight: 500;
}

.news-detail-footer-link {
    clear: both;
    margin-top: 1.1rem;
}

.news-detail-footer-link a {
    color: #0369a1;
    text-decoration: none;
    font-weight: 700;
}

.news-detail-footer-link a:hover {
    text-decoration: underline;
}

.news-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.75fr);
    gap: 1rem;
    align-items: start;
}

.news-detail-image-card,
.news-detail-meta,
.news-detail-content-panel {
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.news-detail-image-card {
    padding: 0.8rem;
}

.news-detail-image-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
}

.news-detail-image {
    width: 100%;
    display: block;
    border-radius: 18px;
    object-fit: cover;
}

.news-image--sm {
    max-height: 220px;
}

.news-image--md {
    max-height: 320px;
}

.news-image--lg {
    max-height: 420px;
}

.news-detail-meta {
    padding: 1rem;
}

.news-detail-meta-row {
    display: grid;
    gap: 0.25rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid #eef2f7;
}

.news-detail-meta-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.news-detail-meta-value {
    color: #0f172a;
    font-size: 0.95rem;
    line-height: 1.5;
}

.news-detail-content-panel {
    padding: 1rem;
    margin-top: 1rem;
}

.home-news-detail-image {
    width: 100%;
    max-height: none;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}

.home-news-detail-body {
    margin-top: 1rem;
    color: #1e293b;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.news-detail-flow .home-news-detail-body {
    margin-top: 0;
}

.home-news-detail-body img {
    max-width: 100%;
    height: auto;
}

.home-news-detail-body p {
    margin: 0 0 0.9rem;
}

.home-news-detail-body ul,
.home-news-detail-body ol {
    padding-left: 1.2rem;
    margin: 0 0 1rem;
}

.home-news-detail-body h3,
.home-news-detail-body h4 {
    margin: 0.85rem 0 0.5rem;
    color: #0f172a;
}

.news-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
}

.news-lightbox.is-open {
    display: block;
}

.news-lightbox-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.85);
}

.news-lightbox-content {
    position: relative;
    z-index: 1;
    max-width: min(92vw, 1100px);
    max-height: 90vh;
    margin: 5vh auto 0;
    padding: 0.75rem;
}

.news-lightbox-close {
    position: absolute;
    top: -0.1rem;
    right: 0.1rem;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #0f172a;
    font-size: 1.4rem;
    cursor: pointer;
}

.news-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    margin: 2rem auto 0;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

@media (max-width: 767px) {
    .home-map-card,
    .home-latest-card,
    .home-calendar-card {
        border-radius: 20px;
    }

    .home-map-head,
    .home-latest-card,
    .home-calendar-card {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .home-map-foot {
        padding: 0.55rem 0.9rem;
    }

    .home-latest-link-wrap {
        text-align: left;
    }

    .home-news-item {
        grid-template-columns: 1fr;
    }

    .home-news-item-image {
        width: 100%;
        height: 150px;
    }

    .home-news-overview-item {
        grid-template-columns: 1fr;
    }

    .home-news-overview-image-link {
        padding: 0.9rem 0.9rem 0 0.9rem;
    }

    .home-news-overview-image {
        width: 100%;
        height: 150px;
    }

    .home-news-overview-body {
        padding: 0.1rem 0.9rem 0.9rem;
    }

    .news-detail-grid {
        grid-template-columns: 1fr;
    }

    .news-detail-image-trigger--float {
        float: none;
        width: 100%;
        margin: 0 0 0.9rem;
    }

    .news-detail-title {
        font-size: 1.35rem;
    }

    .home-calendar-weekday {
        font-size: 0.7rem;
    }
}
