/* Cohesive homepage design system. Loaded last; backend/admin contracts remain untouched. */
:root {
    --home-primary: #0f4c81;
    --home-primary-dark: #0a3861;
    --home-secondary: #1f7ae0;
    --home-accent: #f4b400;
    --home-bg: #f8fafc;
    --home-surface: #fff;
    --home-soft-blue: #f1f7fd;
    --home-text: #1f2937;
    --home-muted: #6b7280;
    --home-border: #e5e7eb;
    --home-radius: 18px;
    --home-radius-sm: 10px;
    --home-shadow: 0 12px 34px rgba(15, 76, 129, .09);
    --home-shadow-hover: 0 20px 46px rgba(15, 76, 129, .15);
    --home-container: 1320px;
    --home-section-space: 80px;
    --home-transition: .3s cubic-bezier(.2, .8, .2, 1);
}

.campaign-home-page,
.campaign-home-page button,
.campaign-home-page input,
.campaign-home-page select,
.campaign-home-page textarea,
.campaign-footer {
    font-family: Inter, "Noto Sans Devanagari", Arial, sans-serif;
}

.campaign-home-page {
    overflow: clip;
    color: var(--home-text);
    background: var(--home-bg);
}

.campaign-home-page > .managed-home-section {
    position: relative;
    width: 100%;
    margin: 0;
}

.campaign-home-page > .managed-content-section {
    padding-top: var(--home-section-space);
    padding-bottom: var(--home-section-space);
}

.campaign-home-page > [data-managed-section="PhotoGallery"],
.campaign-home-page > [data-managed-section="LatestNews"],
.campaign-home-page > [data-managed-section="HomeMembers"],
.campaign-home-page > [data-managed-section="PeopleSay"] {
    background: var(--home-surface);
}

.campaign-home-page > [data-managed-section="VideoGallery"],
.campaign-home-page > [data-managed-section="MediaCoverage"],
.campaign-home-page > [data-managed-section="CitizenConnect"] {
    background: var(--home-bg);
}

.campaign-home-page > [data-managed-section="Reels"],
.campaign-home-page > [data-managed-section="UpcomingEvents"] {
    background: var(--home-soft-blue);
}

.campaign-home-page .container,
.campaign-home-page .campaign-showcase-head,
.campaign-home-page .campaign-showcase-track,
.campaign-home-page .campaign-video-grid,
.campaign-home-page .campaign-reels-shell,
.campaign-home-page .campaign-engagement-grid,
.campaign-home-page .campaign-poll-shell,
.campaign-home-page .home-connect-grid,
.campaign-home-page .home-connect-heading,
.campaign-home-page .home-members-section,
.campaign-home-page .press-desk-shell,
.campaign-home-page .data-image-slider__viewport {
    width: min(var(--home-container), calc(100% - 48px)) !important;
    max-width: var(--home-container) !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

.campaign-home-page h1,
.campaign-home-page h2,
.campaign-home-page h3,
.campaign-home-page h4 {
    color: var(--home-text);
    font-family: Inter, "Noto Sans Devanagari", Arial, sans-serif;
    letter-spacing: -.025em;
}

.campaign-home-page h2,
.campaign-home-page .section-title,
.campaign-home-page .editorial-section-title,
.campaign-home-page .campaign-showcase-head h2,
.campaign-home-page .press-desk-head h2,
.campaign-home-page .home-connect-heading h2 {
    margin: 8px 0 12px !important;
    color: var(--home-text) !important;
    font-size: clamp(28px, 2.4vw, 36px) !important;
    font-weight: 700 !important;
    line-height: 1.18 !important;
}

.campaign-home-page h3 { font-size: clamp(20px, 1.6vw, 24px); font-weight: 600; }

.campaign-home-page p,
.campaign-home-page .section-description,
.campaign-home-page .campaign-showcase-head p,
.campaign-home-page .home-connect-heading p {
    color: var(--home-muted) !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
}

.campaign-home-page .campaign-kicker,
.campaign-home-page .section-subtitle,
.campaign-home-page .section-eyebrow,
.campaign-home-page .press-desk-head span,
.campaign-home-page .home-connect-heading > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--home-primary) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: .14em !important;
    text-transform: uppercase;
}

.campaign-home-page .campaign-kicker::before,
.campaign-home-page .section-subtitle::before,
.campaign-home-page .section-eyebrow::before,
.campaign-home-page .home-connect-heading > span::before {
    width: 24px;
    height: 3px;
    border-radius: 3px;
    background: var(--home-accent);
    content: "";
}

.campaign-home-page .campaign-showcase-head,
.campaign-home-page .editorial-newsroom-header,
.campaign-home-page .press-desk-head,
.campaign-home-page .people-say-heading {
    margin-bottom: 32px !important;
}

.campaign-home-page a,
.campaign-home-page button {
    transition: color var(--home-transition), background var(--home-transition), border-color var(--home-transition), box-shadow var(--home-transition), transform var(--home-transition);
}

.campaign-home-page .btn,
.campaign-home-page .campaign-explore,
.campaign-home-page .editorial-view-all-btn,
.campaign-home-page .campaign-submit,
.campaign-home-page .campaign-vote,
.campaign-home-page .joinus-cta-btn,
.campaign-home-page button[type="submit"] {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--home-primary) !important;
    border-radius: var(--home-radius-sm) !important;
    padding: 0 28px !important;
    color: #fff !important;
    background: var(--home-primary) !important;
    box-shadow: 0 8px 20px rgba(15, 76, 129, .16);
    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.campaign-home-page .btn:hover,
.campaign-home-page .campaign-explore:hover,
.campaign-home-page .editorial-view-all-btn:hover,
.campaign-home-page .campaign-submit:hover,
.campaign-home-page .campaign-vote:hover,
.campaign-home-page button[type="submit"]:hover {
    border-color: var(--home-primary-dark) !important;
    background: var(--home-primary-dark) !important;
    box-shadow: 0 12px 28px rgba(15, 76, 129, .24);
    transform: translateY(-2px);
}

.campaign-home-page .campaign-explore-light {
    border-color: rgba(255,255,255,.85) !important;
    color: #fff !important;
    background: transparent !important;
}

.campaign-home-page .campaign-video-showcase .campaign-explore {
    border-color: var(--video-button, var(--home-primary)) !important;
    color: var(--video-button-text, #fff) !important;
    background: var(--video-button, var(--home-primary)) !important;
}

.campaign-video-showcase .campaign-video-tile {
    transition: opacity .35s ease, transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease !important;
}

.campaign-video-showcase.video-transition-fade .campaign-video-tile { opacity: .82; }
.campaign-video-showcase.video-transition-fade .campaign-video-tile:hover { opacity: 1; }
.campaign-video-showcase.video-transition-zoom .campaign-video-tile:hover { transform: translateY(-4px) scale(1.035); }
.campaign-video-showcase.video-transition-none .campaign-video-tile { transition: none !important; }

.campaign-home-page .campaign-media-card,
.campaign-home-page .campaign-video-card,
.campaign-home-page .campaign-event-card,
.campaign-home-page .home-connect-card,
.campaign-home-page .home-statistic-card,
.campaign-home-page .people-say-card,
.campaign-home-page .campaign-engagement-card,
.campaign-home-page .campaign-poll-card,
.campaign-home-page .campaign-poll-panel,
.campaign-home-page .news-magazine,
.campaign-home-page .press-desk-card,
.campaign-home-page .home-member-card,
.campaign-home-page .data-image-slider__item {
    border: 1px solid var(--home-border) !important;
    border-radius: var(--home-radius) !important;
    background: var(--home-surface) !important;
    box-shadow: var(--home-shadow) !important;
}

.campaign-home-page .campaign-media-card:hover,
.campaign-home-page .campaign-video-card:hover,
.campaign-home-page .campaign-event-card:hover,
.campaign-home-page .home-connect-card:hover,
.campaign-home-page .home-statistic-card:hover,
.campaign-home-page .people-say-card:hover,
.campaign-home-page .home-member-card:hover,
.campaign-home-page .data-image-slider__item:hover {
    border-color: rgba(31, 122, 224, .28) !important;
    box-shadow: var(--home-shadow-hover) !important;
    transform: translateY(-5px);
}

.campaign-home-page img:not(.campaign-brand-mark img),
.campaign-home-page video {
    max-width: 100%;
}

.campaign-home-page .campaign-media-card img,
.campaign-home-page .campaign-video-card img,
.campaign-home-page .campaign-event-card img,
.campaign-home-page .press-desk-card img,
.campaign-home-page .news-magazine img,
.campaign-home-page .home-member-card img,
.campaign-home-page .data-image-slider__item img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.2,.8,.2,1);
}

.campaign-home-page [class*="card"]:hover img { transform: scale(1.035); }

.campaign-home-page input:not([type="radio"]):not([type="checkbox"]),
.campaign-home-page select,
.campaign-home-page textarea {
    min-height: 50px;
    border: 1px solid var(--home-border) !important;
    border-radius: var(--home-radius-sm) !important;
    padding: 11px 14px !important;
    color: var(--home-text);
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(15,23,42,.03);
    font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.campaign-home-page textarea { min-height: 112px; resize: vertical; }

.campaign-home-page input:focus,
.campaign-home-page select:focus,
.campaign-home-page textarea:focus {
    border-color: var(--home-secondary) !important;
    outline: 0;
    box-shadow: 0 0 0 4px rgba(31,122,224,.12) !important;
}

.campaign-home-page label { color: #374151; font-size: 14px; font-weight: 600; }

.campaign-home-page .home-connect-card {
    min-height: 220px;
    padding: 28px !important;
    text-align: left;
}

.campaign-home-page .home-connect-card > i {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
    color: #fff !important;
    background: var(--home-primary);
    font-size: 22px;
}

.campaign-home-page .home-connect-card-featured {
    border-color: transparent !important;
    background: linear-gradient(145deg, var(--home-primary), var(--home-secondary)) !important;
}

.campaign-home-page .home-connect-card-featured strong,
.campaign-home-page .home-connect-card-featured small,
.campaign-home-page .home-connect-card-featured span { color: #fff !important; }

.campaign-home-page .enterprise-hero {
    border-radius: 0 !important;
    box-shadow: inset 0 -1px rgba(255,255,255,.15);
}

.campaign-home-page .enterprise-hero h1 {
    color: var(--hero-title, #fff) !important;
    font-size: clamp(38px, 4vw, 58px) !important;
    font-weight: 700 !important;
    line-height: 1.04 !important;
}

.campaign-home-page .enterprise-hero__actions a {
    min-height: 50px;
    border-radius: var(--home-radius-sm);
    padding: 0 28px;
    font-size: 15px;
    font-weight: 600;
}

.campaign-home-page .design-reveal-ready {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .65s ease, transform .65s cubic-bezier(.2,.8,.2,1);
}

.campaign-home-page .design-reveal-ready.is-visible {
    opacity: 1;
    transform: none;
}

.campaign-footer {
    padding: 72px max(24px, calc((100% - var(--home-container)) / 2)) 24px !important;
    color: #cbd5e1 !important;
    background: #071a38 !important;
}

.campaign-footer-grid,
.campaign-footer-bottom {
    width: 100% !important;
    max-width: var(--home-container) !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

.campaign-footer-logo { color: #fff !important; font-family: Inter, sans-serif !important; font-weight: 700 !important; }
.campaign-footer-column h4 { color: #f8fafc !important; }
.campaign-footer a { color: #cbd5e1 !important; transition: color .2s ease, transform .2s ease; }
.campaign-footer a:hover { color: var(--home-accent) !important; transform: translateX(2px); }

@media (max-width: 991px) {
    :root { --home-section-space: 64px; }
    .campaign-home-page .container,
    .campaign-home-page .campaign-showcase-head,
    .campaign-home-page .campaign-showcase-track,
    .campaign-home-page .campaign-video-grid,
    .campaign-home-page .campaign-reels-shell,
    .campaign-home-page .campaign-engagement-grid,
    .campaign-home-page .campaign-poll-shell,
    .campaign-home-page .home-connect-grid,
    .campaign-home-page .home-connect-heading,
    .campaign-home-page .home-members-section,
    .campaign-home-page .press-desk-shell,
    .campaign-home-page .data-image-slider__viewport { width: calc(100% - 40px) !important; }
}

@media (max-width: 767px) {
    :root { --home-section-space: 60px; --home-radius: 14px; }
    .campaign-home-page .container,
    .campaign-home-page .campaign-showcase-head,
    .campaign-home-page .campaign-showcase-track,
    .campaign-home-page .campaign-video-grid,
    .campaign-home-page .campaign-reels-shell,
    .campaign-home-page .campaign-engagement-grid,
    .campaign-home-page .campaign-poll-shell,
    .campaign-home-page .home-connect-grid,
    .campaign-home-page .home-connect-heading,
    .campaign-home-page .home-members-section,
    .campaign-home-page .press-desk-shell,
    .campaign-home-page .data-image-slider__viewport { width: calc(100% - 32px) !important; }
    .campaign-home-page h2,
    .campaign-home-page .section-title,
    .campaign-home-page .editorial-section-title,
    .campaign-home-page .campaign-showcase-head h2,
    .campaign-home-page .press-desk-head h2,
    .campaign-home-page .home-connect-heading h2 { font-size: 28px !important; }
    .campaign-home-page p { font-size: 15px !important; }
    .campaign-home-page .campaign-showcase-head,
    .campaign-home-page .editorial-newsroom-header { gap: 20px; align-items: flex-start; }
    .campaign-home-page .home-connect-card { min-height: 190px; padding: 24px !important; }
    .campaign-footer { padding-top: 56px !important; }
}

@media (prefers-reduced-motion: reduce) {
    .campaign-home-page *, .campaign-footer * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
    .campaign-home-page .design-reveal-ready { opacity: 1; transform: none; }
}

/* Compact unified homepage rhythm: the partial itself owns vertical spacing. */
.public-home-layout .campaign-home-page { --home-section-space: 40px; }
.public-home-layout .campaign-home-page > .managed-content-section,
.public-home-layout .campaign-home-page > .managed-content-section[data-managed-section="HomeMembers"] {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.public-home-layout .campaign-home-page > .managed-content-section > section,
.public-home-layout .campaign-home-page > .managed-content-section > .home-members-section {
    box-sizing: border-box !important;
    width: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: var(--home-section-space) !important;
    padding-bottom: var(--home-section-space) !important;
}
.public-home-layout .campaign-home-page > .managed-content-section + .managed-content-section { margin-top: 0 !important; }
@media (max-width: 991.98px) { .public-home-layout .campaign-home-page { --home-section-space: 32px; } }
@media (max-width: 575.98px) { .public-home-layout .campaign-home-page { --home-section-space: 24px; } }

/* News & Media: match the shared left-title/right-action heading pattern. */
.public-home-layout .managed-content-section[data-managed-section="LatestNews"] > .editorial-newsroom-section {
    padding-top: 32px !important;
}
.public-home-layout .editorial-newsroom-header {
    display: flex !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
}
.public-home-layout .editorial-header-left { min-width: 0; }
.public-home-layout .editorial-header-right {
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-end;
    margin-left: auto;
}
.public-home-layout .editorial-view-all-btn {
    min-height: 44px !important;
    padding: 0 20px !important;
    border-color: var(--managed-button, var(--home-primary)) !important;
    border-radius: 10px !important;
    color: var(--managed-button-text, #fff) !important;
    background: var(--managed-button, var(--home-primary)) !important;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--managed-button, var(--home-primary)) 22%, transparent) !important;
}
.public-home-layout .editorial-view-all-btn:hover,
.public-home-layout .editorial-view-all-btn:focus-visible {
    color: var(--managed-button-text, #fff) !important;
    background: color-mix(in srgb, var(--managed-button, var(--home-primary)) 86%, #000) !important;
    transform: translateY(-2px);
}
@media (max-width: 991.98px) {
    .public-home-layout .managed-content-section[data-managed-section="LatestNews"] > .editorial-newsroom-section { padding-top: 24px !important; }
}
@media (max-width: 575.98px) {
    .public-home-layout .managed-content-section[data-managed-section="LatestNews"] > .editorial-newsroom-section { padding-top: 20px !important; }
    .public-home-layout .editorial-newsroom-header { align-items: center !important; gap: 14px !important; }
    .public-home-layout .editorial-section-title { font-size: 27px !important; }
    .public-home-layout .editorial-view-all-btn { min-height: 40px !important; padding: 0 14px !important; font-size: 13px !important; }
}
