/**
 * Stylesheet: Medical Notices & Vaccine Schedule Cards
 * Cổng Thông Tin Cư Dân S5 Vinhomes Grand Park
 */

.med-notice-container {
    font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
    color: #1e293b;
    margin: 10px 0 40px;
    line-height: 1.6;
    box-sizing: border-box;
}

/* Xóa bỏ khoảng trống do p rỗng hoặc br */
.med-notice-container > p:empty,
.med-notice-container p:empty {
    display: none !important;
}

/* 1. Header Lead Banner */
.med-header-banner {
    background: linear-gradient(135deg, #042f2e 0%, #0f766e 45%, #0369a1 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 32px 26px;
    margin-bottom: 28px;
    box-shadow: 0 10px 25px -5px rgba(15, 118, 110, 0.25);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.med-header-banner::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.med-org-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.med-main-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 14px 0;
    color: #ffffff !important;
}

@media (min-width: 768px) {
    .med-main-title {
        font-size: 28px;
    }
}

.med-header-desc {
    font-size: 15px;
    color: #ccfbf1;
    margin: 0;
    line-height: 1.7;
}

/* 2. Section Headings */
.med-sec-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    margin: 36px 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.med-sec-heading .med-icon-wrap {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 18px;
    flex-shrink: 0;
}

.med-sec-heading.blue .med-icon-wrap {
    background: #e0f2fe;
    color: #0284c7;
}

.med-sec-heading.teal .med-icon-wrap {
    background: #ccfbf1;
    color: #0d9488;
}

.med-sec-heading.rose .med-icon-wrap {
    background: #ffe4e6;
    color: #e11d48;
}

.med-sec-heading.amber .med-icon-wrap {
    background: #fef3c7;
    color: #d97706;
}

/* 3. Location Cards Grid - ĐẢM BẢO CHIA 2 CỘT CHUẨN */
.med-loc-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    gap: 22px !important;
    margin: 20px 0 30px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.med-loc-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 22px 20px;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.med-loc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.med-loc-card.highlight {
    border-color: #0d9488;
    background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 40%);
}

.med-loc-tag {
    position: absolute;
    top: -11px;
    right: 20px;
    background: #0d9488;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.35);
}

.med-loc-header {
    margin-bottom: 14px;
}

.med-loc-name {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
    line-height: 1.35;
}

.med-loc-addr {
    font-size: 14px;
    color: #475569;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.med-time-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 14px 0 18px;
}

.med-time-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.med-date-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.med-date-tag {
    background: #0284c7;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.med-loc-card.highlight .med-date-tag {
    background: #0d9488;
}

/* 4. Click-to-Call Buttons */
.med-call-row {
    margin-top: 14px;
    width: 100%;
}

.med-call-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #0d9488, #0284c7) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 12px 20px !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.25) !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.med-call-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(13, 148, 136, 0.35) !important;
    color: #ffffff !important;
}

.med-call-btn.rose {
    background: linear-gradient(135deg, #e11d48, #be123c) !important;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.25) !important;
}

.med-call-btn.rose:hover {
    box-shadow: 0 6px 18px rgba(225, 29, 72, 0.35) !important;
}

/* 5. Vaccine Matrix Grid */
.med-vaccine-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 16px !important;
    margin: 20px 0 32px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.med-vac-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.med-vac-card:hover {
    border-color: #0d9488;
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.08);
}

.med-vac-badge {
    padding: 6px 10px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 13.5px;
    min-width: 68px;
    text-align: center;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.med-vac-badge.green { background: #dcfce7; color: #15803d; }
.med-vac-badge.blue { background: #e0f2fe; color: #0284c7; }
.med-vac-badge.teal { background: #ccfbf1; color: #0f766e; }
.med-vac-badge.purple { background: #f3e8ff; color: #7e22ce; }
.med-vac-badge.amber { background: #fef3c7; color: #b45309; }
.med-vac-badge.rose { background: #ffe4e6; color: #be123c; }

.med-vac-body {
    flex: 1;
}

.med-vac-body h4 {
    margin: 0 0 6px 0 !important;
    font-size: 15.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.35 !important;
}

.med-vac-body .vac-age {
    display: inline-block;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 6px;
}

.med-vac-body p {
    margin: 0 !important;
    font-size: 13.5px !important;
    color: #475569 !important;
    line-height: 1.55 !important;
}

/* 6. Maternity & VAT Section */
.med-maternity-card {
    background: linear-gradient(135deg, #fff1f2 0%, #ffffff 50%, #fdf4ff 100%);
    border: 1.5px solid #fecdd3;
    border-radius: 16px;
    padding: 26px 24px;
    margin: 25px 0 35px;
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.05);
    box-sizing: border-box;
}

.med-mat-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 18px !important;
    margin: 20px 0 16px !important;
    box-sizing: border-box !important;
}

.med-mat-item {
    background: #ffffff;
    border: 1px solid #ffe4e6;
    border-radius: 14px;
    padding: 18px 20px;
    box-sizing: border-box;
}

.med-mat-item h4 {
    margin: 0 0 8px 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #9f1239 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4 !important;
}

.med-mat-item p {
    margin: 0 !important;
    font-size: 14px !important;
    color: #4c0519 !important;
    line-height: 1.6 !important;
}

/* 7. Checklist Box */
.med-alert-box {
    background: #fffbeb;
    border: 1.5px solid #fef3c7;
    border-left: 5px solid #f59e0b;
    border-radius: 14px;
    padding: 22px 24px;
    margin: 30px 0;
    box-sizing: border-box;
}

.med-alert-box h4 {
    margin: 0 0 12px 0 !important;
    font-size: 16.5px !important;
    font-weight: 800 !important;
    color: #92400e !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.med-check-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.med-check-list li {
    position: relative;
    padding-left: 28px !important;
    margin-bottom: 12px !important;
    font-size: 14.5px !important;
    color: #78350f !important;
    line-height: 1.65 !important;
}

.med-check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #d97706;
    font-weight: 900;
    font-size: 17px;
}

/* 8. Poster Gallery Grid */
.med-posters-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    gap: 22px !important;
    margin: 22px 0 35px !important;
    box-sizing: border-box !important;
}

.med-poster-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.med-poster-card img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border-bottom: 1px solid #e2e8f0;
}

.med-poster-caption {
    padding: 14px 18px;
    font-size: 13.5px;
    color: #475569;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.med-poster-caption a {
    color: #0284c7 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.med-poster-caption a:hover {
    text-decoration: underline !important;
}
