.home-page {
    background: #eef1f5;
}

.hero-strip {
    background:
        linear-gradient(rgba(21, 52, 95, 0.78), rgba(21, 52, 95, 0.78)),
        url('../img/hero-city.jpg');
    background-size: cover;
    background-position: center;
    padding: 18px 0 22px;
    border-bottom: 5px solid #f2c230;
}

.hero-strip-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 34px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 700;
}

.hero-stat-icon {
    font-size: 1.7rem;
}

.hero-stat-text strong {
    font-size: 1.15rem;
    margin-right: 4px;
}

.hero-stat-text span {
    font-size: 0.95rem;
}

.search-bar-section {
    margin-top: -14px;
    position: relative;
    z-index: 5;
}

.search-bar-box {
    background: #ffffff;
    border: 1px solid #d6dce6;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
    border-radius: 16px;
    padding: 18px 20px;
}

.search-grid {
    display: grid;
    grid-template-columns: 1.15fr 1.15fr 0.85fr;
    gap: 16px;
    align-items: end;
}

.search-field label {
    display: block;
    font-weight: 800;
    color: #344357;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.search-select {
    min-height: 52px;
    font-size: 1rem;
}

.search-btn {
    width: 100%;
    min-height: 52px;
    border: none;
    border-radius: 12px;
    background: #1656a6;
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
}

.search-btn:hover {
    background: #124686;
    color: #fff;
}

.home-locations-section {
    padding: 22px 0 10px;
}

.home-middle-ad-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 18px;
    border: 1px solid #dbe4f0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.home-middle-ad-box img,
.home-middle-ad-box iframe {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    display: block;
}

.featured-municipalities-box {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #dbe4f0;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.featured-municipalities-header {
    font-size: 1.2rem;
    font-weight: 900;
    color: #17335c;
    margin-bottom: 18px;
}

.featured-municipalities-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.featured-municipality-card {
    display: block;
    background: #f8fbff;
    border: 1px solid #dbe4f0;
    border-radius: 14px;
    padding: 16px;
    text-decoration: none;
    transition: all 0.18s ease;
}

.featured-municipality-card:hover {
    transform: translateY(-3px);
    border-color: #1f5cae;
    box-shadow: 0 10px 24px rgba(31, 92, 174, 0.12);
}

.featured-municipality-name {
    font-size: 1rem;
    font-weight: 900;
    color: #17335c;
    margin-bottom: 6px;
}

.featured-municipality-state {
    font-size: 0.88rem;
    color: #5f6f86;
    margin-bottom: 10px;
}

.featured-municipality-count {
    font-size: 0.88rem;
    font-weight: 800;
    color: #d62828;
}

.popular-posts-section {
    padding: 26px 0 22px;
}

.section-ribbon-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.section-line {
    flex: 1;
    height: 2px;
    background: #d9a9a9;
}

.section-ribbon {
    background: linear-gradient(180deg, #d93434 0%, #a91e1e 100%);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 900;
    padding: 11px 28px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.popular-card {
    background: #ffffff;
    border: 1px solid #d7dde7;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    padding: 14px;
}

.popular-card-title {
    font-size: 1.2rem;
    line-height: 1.25;
    margin-bottom: 10px;
    font-weight: 900;
}

.popular-card-title a {
    color: #22314a;
}

.popular-card-location {
    color: #6b7788;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 0.92rem;
}

.popular-card-image-link {
    display: block;
}

.popular-card-image,
.placeholder-image {
    width: 100%;
    height: 210px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    background: #dfe5ec;
    display: block;
    color: #6a7483;
    font-weight: 700;
}

.popular-card-text {
    color: #4d5a6d;
    font-size: 0.96rem;
    line-height: 1.55;
    margin: 12px 0;
    min-height: 66px;
}

.popular-card-footer {
    border-top: 1px solid #e2e7ef;
    padding-top: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    color: #334155;
    font-weight: 800;
    font-size: 0.9rem;
}

.popular-card-footer a {
    display: inline-flex;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    background: #1d4f91;
    color: #fff;
    font-weight: 900;
}

.popular-share-btn {
    display: inline-flex;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    flex: 0 0 34px;
}

.popular-share-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

.popular-share-facebook {
    background: #1d4f91;
}

.popular-share-whatsapp {
    background: #22c55e;
}

.middle-section {
    padding: 8px 0 24px;
}

.middle-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.95fr;
    gap: 18px;
}

.states-box,
.ad-box {
    background: #ffffff;
    border: 1px solid #d7dde7;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.states-box-header {
    background: linear-gradient(90deg, #17365f 0%, #1f497d 65%, #f2c230 100%);
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 900;
    padding: 15px 18px;
}

.states-box-header strong {
    color: #f2c230;
}

.states-list {
    padding: 0;
}

.state-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #24405d;
    font-weight: 800;
    padding: 12px 18px;
    border-top: 1px solid #e5e9f0;
    background: #fff;
}

.state-row:hover {
    background: #f7f9fc;
    color: #17365f;
}

.ad-box-header {
    background: linear-gradient(180deg, #d93434 0%, #b31f1f 100%);
    color: #fff;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 900;
    padding: 15px 18px;
}

.ad-box-body {
    padding: 18px;
}

.ad-placeholder {
    min-height: 220px;
    border: 1px solid #d7dde7;
    background: #f4f6f8;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #334155;
    font-weight: 900;
    font-size: 1.6rem;
    line-height: 1.2;
}

.latest-posts-section {
    padding: 8px 0 26px;
}

.latest-header {
    margin-bottom: 18px;
}

.latest-header h2 {
    font-size: 1.45rem;
    font-weight: 900;
    color: #1f2f47;
    margin-bottom: 6px;
}

.latest-header p {
    color: #64748b;
    font-size: 0.98rem;
}

.latest-feed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feed-card {
    background: #fff;
    border: 1px solid #d7dde7;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.feed-card-image-link {
    display: block;
}

.feed-card-image {
    width: 100%;
    height: 210px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.feed-card-body {
    padding: 14px;
}

.feed-card-location {
    font-size: 0.92rem;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 9px;
}

.feed-card-title {
    font-size: 1.15rem;
    line-height: 1.25;
    font-weight: 900;
    margin-bottom: 10px;
}

.feed-card-title a {
    color: #22314a;
}

.feed-card-text {
    color: #556274;
    line-height: 1.55;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.feed-card-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: #334155;
    font-weight: 800;
    font-size: 0.9rem;
}

.cta-section {
    padding: 18px 0 14px;
}

.cta-box {
    background: linear-gradient(135deg, #163a70 0%, #102c54 100%);
    color: #fff;
    text-align: center;
    border-radius: 14px;
    padding: 24px 18px 30px;
    position: relative;
    overflow: hidden;
}

.cta-ribbon {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 1.35rem;
    font-weight: 900;
    margin-bottom: 14px;
}

.cta-box p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.cta-btn {
    display: inline-block;
    background: linear-gradient(180deg, #ef4444 0%, #c81e1e 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    padding: 14px 24px;
    border-radius: 12px;
}

.cta-btn:hover {
    color: #fff;
    background: linear-gradient(180deg, #d83939 0%, #b51b1b 100%);
}