/* Homepage-only presentation; existing service routes and portal theme remain intact. */
.header__middle .container, .breaking .container, .government-success-stories .container, .application-search .container, .cat-area .container, .rcc-home-footer .container { max-width: 1170px; padding-left: 15px; padding-right: 15px; }
.breaking { padding-bottom: 14px; padding-top: 14px; }
.breaking__wrapper { margin-bottom: 0; }
.government-success-stories { padding-top: 0; padding-bottom: 18px; background: #fff; }
.government-success-stories__frame { padding: 14px; background: #f1f6f2; border: 1px solid #e1ebe3; border-radius: 20px; }
.government-success-stories__grid { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-color: #8fb39f #e1ebe3; scroll-snap-type: x mandatory; }
.success-story-card { display: flex; flex: 0 0 170px; flex-direction: column; min-width: 0; overflow: hidden; background: #fff; border: 1px solid #e0e9e1; border-radius: 14px; box-shadow: 0 4px 14px #163d2510; scroll-snap-align: start; transition: transform .2s ease, box-shadow .2s ease; }
.success-story-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px #163d2520; }
.success-story-card__image { display: block; height: 88px; background-image: url('../img/homepage/civic-stories.png'); background-size: 600% auto; background-repeat: no-repeat; }
.success-story-card--1 .success-story-card__image { background-position: 0% 28%; }
.success-story-card--2 .success-story-card__image { background-position: 20% 28%; }
.success-story-card--3 .success-story-card__image { background-position: 40% 28%; }
.success-story-card--4 .success-story-card__image { background-position: 60% 28%; }
.success-story-card--5 .success-story-card__image { background-position: 80% 28%; }
.success-story-card--6 .success-story-card__image { background-position: 100% 28%; }
.success-story-card__body { flex: 1; padding: 12px 13px 14px; }
.success-story-card h2 { margin: 0 0 6px; color: #174d35; font-size: 18px; font-weight: 700; line-height: 1.25; }
.success-story-card p { margin: 0; color: #526258; font-size: 13px; line-height: 1.55; }
.application-search { padding-bottom: 20px; }
.application-search__panel { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 18px 22px; background: linear-gradient(135deg,#f03d2d 0%,#ff8f1c 100%); border-radius: 12px; box-shadow: 0 8px 22px #d34a241c; }
.application-search h2 { margin: 0 0 4px; color: #fff; font-size: 25px; line-height: 1.25; }
.application-search p { margin: 0; color: #fff6ee; font-size: 15px; line-height: 1.5; }
.application-search__form { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) auto; gap: 10px; flex: 0 1 640px; }
.application-search__form input { height: 44px; margin: 0; border: 0; border-radius: 6px; color: #24352d; padding: 0 14px; }
.application-search__form button { height: 44px; min-width: 120px; border: 0; border-radius: 6px; background: #174d35; color: #fff; font-weight: 700; }
.application-search__form button:hover, .application-search__form button:focus { background: #0f3e2a; color: #fff; }
.cat-area { padding-bottom: 18px; }
.cat-area > .container > .row { margin-left: 0; margin-right: 0; }
.cat-area .section-title { margin-bottom: 16px; }
.cat-area .section-title h2 { font-size: 26px; line-height: 1.25; margin-bottom: 0; }
.cat-area .postbox { margin-bottom: 16px; }
.cat-area .widget-border { margin-bottom: 22px; padding: 20px 24px; }
.cat-area ul { margin-bottom: 0; }
.cat-area li { line-height: 1.7; margin-bottom: 6px; }
.post__features, .post__features-thumb, .post__features-thumb img { margin-bottom: 16px; }
.rcc-home-footer { margin-top: 18px; border-top: 4px solid #28734f; background: #f1f5f2; color: #294438; padding: 26px 0 0; }
.rcc-home-footer__main { display: flex; justify-content: space-between; gap: 28px; padding-bottom: 18px; }
.rcc-home-footer__identity { display: flex; align-items: center; gap: 20px; }
.rcc-home-footer__crest { width: 70px; height: 70px; object-fit: contain; }
.rcc-home-footer h2 { color: #174d35; font-size: 27px; line-height: 1.4; margin: 0 0 5px; }
.rcc-home-footer p { color: #526258; margin: 0; line-height: 1.7; }
.rcc-home-footer nav { display: flex; flex-wrap: wrap; align-content: center; gap: 12px 24px; max-width: 340px; }
.rcc-home-footer a { color: #294438; text-decoration: none; }
.rcc-home-footer nav a { font-size: 17px; padding: 5px 0; }
.rcc-home-footer a:hover { text-decoration: underline; }
.rcc-home-footer a:focus-visible { outline: 3px solid #28734f; outline-offset: 5px; }
.rcc-home-footer__bottom { border-top: 1px solid #d5e1d8; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 14px 0; }
.rcc-home-footer__app-link { display: inline-flex; align-items: center; flex: 0 0 auto; }
.rcc-home-footer__app-link img { display: block; height: 40px; width: auto; }
.rcc-home-footer__credit { display: flex; gap: 20px; align-items: center; }
.rcc-home-footer__credit img { width: 130px; height: auto; }
.rcc-home-footer__credit span { display: block; font: 12px/1.8 Arial, sans-serif; }
.rcc-home-footer__credit small { display: block; color: #526258; font: 12px/1.8 Arial, sans-serif; }
@media (max-width: 991px) {
 .application-search__panel { align-items: stretch; flex-direction: column; }
 .application-search__form { flex-basis: auto; }
 .rcc-home-footer__main, .rcc-home-footer__bottom { align-items: flex-start; flex-direction: column; }
 .rcc-home-footer nav { max-width: none; }
}
@media (max-width: 575px) {
 .breaking { padding-bottom: 10px; padding-top: 10px; }
 .government-success-stories__frame { padding: 12px; border-radius: 18px; }
 .success-story-card { flex-basis: 220px; }
 .success-story-card__image { height: 118px; }
 .application-search__panel { padding: 16px; }
 .application-search__form { grid-template-columns: 1fr; }
 .application-search__form button { width: 100%; }
 .cat-area .section-title h2 { font-size: 22px; }
 .cat-area .widget-border { padding: 16px 18px; }
 .rcc-home-footer__identity { align-items: flex-start; gap: 14px; }
 .rcc-home-footer h2 { font-size: 23px; }
 .rcc-home-footer__crest { width: 54px; height: 54px; }
 .rcc-home-footer__credit { flex-wrap: wrap; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
 .success-story-card { transition: none; }
 .success-story-card:hover { transform: none; }
}
