

/* ---------- 1. TOKENS ---------- */
:root {
  --c-darkest: #162F6A;
  --c-dark: #214AAB;
  --c-mid: #5279D7;
  --c-light: #A3BBF3;
  --c-lightest: #D2DFFF;
  --c-tint: #FFFFFF;            /* #EEF3FF is NOT in the colour group */
  --c-overlay: #162F6A;         /* flat, no transparency gradient */

  --ink: #150202;
  --muted: #606060;
  --bg: #FFFFFF;
  --bg-page: #FFFFFF;

  /* Gradients -> flat colours (variables reused in style.css) */
  --grad-dark: #162F6A;
  --grad-brand: #214AAB;
  --grad-wide: #162F6A;
  --grad-soft: #D2DFFF;

  --a11y-ok: #198754;           /* functional success colour, a11y panel only */
}

/* ---------- 2. FLAT BACKGROUNDS ---------- */
.site-header {
  border-image: none;
  border-top: 5px solid var(--c-darkest);
}
.logo-box:focus{outline: none !important; box-shadow: none;}
.main-nav,
.list-card,
.personas,
.lang-dialog,
.external-modal-content,
.cookie-banner {
  background: #FFFFFF;
}

.announce-bar {
  background: var(--c-lightest);
  border-top: 1px solid var(--c-mid);
  border-bottom: 1px solid var(--c-mid);
}

.partners {
  background: #FFFFFF;
  border-top: 3px solid var(--c-mid);
}

.home-info .list-card .item-list{min-height: 383px;}
#whatsNew .list-links{min-height: 367px;}
.banner-slider,
.home-info {
  background: var(--c-lightest);
}

.events-section {
  --events-bg: #FFFFFF;
  --events-muted: #606060;
  --events-primary: #162F6A;
  --events-dark: #162F6A;
  --events-accent: #5279D7;
  background: #FFFFFF;
}

@media (max-width: 520px) {
  .events-section {
    background: #FFFFFF;
  }
}

.semicon-event {
  background: #FFFFFF;
  border-top: 4px solid var(--c-light);
}

/* Banner caption: gradient overlay removed -> flat caption bar */
.bn-card::after {
  display: none;
}

.bn-caption {
  background: var(--c-darkest);
  color: #FFFFFF;
}

/* ---------- 3. OFF-PALETTE COLOURS ---------- */
.hero-arrow:hover {
  background: var(--c-dark);
  color: #fff;
}

.hero-dot {
  background: var(--c-darkest);
  border-color: #fff;
}

.hero-dot.active {
  background: #fff;
  border-color: var(--c-darkest);
}

.social-links li a:hover {
  color: var(--c-lightest);
}

.events-section .event-detail-icon {
  color: var(--c-darkest);
}

/* ---------- 4. FOCUS: palette colour, visible on light and dark ---------- */
:focus-visible,
.view-more:focus-visible,
.semicon-view-btn:focus-visible,
.lang-option:focus-visible,
.a11y-btn:focus-visible,
.side-arrow:focus-visible,
.header-tools button:focus-visible,
.header-tools a:focus-visible,
.cookie-banner .ck-actions button:focus-visible,
.cookie-banner .ck-opt input:focus-visible,
#skipBtn:focus-visible,
.skipBtn:focus-visible {
  outline: 3px solid var(--c-darkest);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #FFFFFF;
}

.site-footer :focus-visible,
.persona-tile.active:focus-visible,
.social-links li a:focus-visible {
  outline: 3px solid #FFFFFF;
  box-shadow: 0 0 0 5px var(--c-darkest);
}

/* ---------- 5. TEXT COLOURS: only #150202 / #606060 ---------- */
.pt-name,
.event-detail,
.events-section .event-detail,
.external-modal-content,
.external-modal-content p,
.prgi-about-section,
.prgi-about-link,
.prgi-officer-card h3,
.prgi-officer-card p,
.cookie-banner .ck-opt span,
.a11y-btn,
.a11y-panel,
.lang-org-2,
.govt-text {
  color: var(--ink);
}

.events-section .events-heading p,
.events-section .event-information>p,
.cookie-banner .ck-main p,
.cookie-banner .ck-opt small,
.lang-org-1,
.lang-description,
.lang-note,
.wn-date,
.item-date,
.filter-note {
  color: var(--muted);
}

.events-section .event-detail strong {
  color: var(--c-darkest);
}

.events-section .event-detail {
  color: var(--ink);
}

/* ---------- 6. ICONS: one style (line), key colour or white ---------- */
.persona-tile .material-symbols-outlined,
.events-section .event-detail-icon {
  color: var(--c-darkest);
}

.persona-tile.active .material-symbols-outlined {
  color: #fff;
}

.pt-pause .material-symbols-outlined {
  font-variation-settings: 'FILL' 0;
}

/* ---------- 7. TYPOGRAPHY: Noto Sans, min 14px, H2 24 / mobile 20 ---------- */
.semicon-event,
.prgi-about-section {
  font-family: 'Noto Sans', Arial, sans-serif;
}

html[lang="hi"] .semicon-event,
html[lang="hi"] .prgi-about-section {
  font-family: 'Noto Sans Devanagari', 'Noto Sans', Arial, sans-serif;
}

.events-section .events-heading h2,
.sec-title,
.bn-title,
.lang-title,
.prgi-about-heading {
  font-size: 24px;
}

.list-title {
  font-size: 20px;
  color: var(--c-darkest) !important;
}

.events-section .event-information h3 {
  font-size: 20px;
}
.events-section .event-information h3 a{
  color: var(--c-darkest) !important;
  text-decoration: none;
}

.prgi-officer-card h3 {
  font-size: 16px;
}

.semicon-content {
  font-size: 24px;
  line-height: 1.4;
}

.semicon-open-quote {
  font-size: 36px;
}

/* small text raised to 14px minimum */
.events-section .event-category,
.events-section .event-image-label,
.events-section .events-counter,
/* .events-section .events-eyebrow, */
.wn-date,
.item-date,
.pt-name,
.filter-note,
.events-section .event-detail,
.cookie-banner .ck-opt small,
.contact-card .cc-note,
.lang-note,
.lang-description,
.semicon-view-btn,
.hp-carousel .hp-caption {
  font-size: 14px;
}

.pt-name {
  line-height: 1.5;
}

.list-links li {
  font-size: 16px;
}

.prgi-officer-card p {
  font-size: 14px;
}

.a11y-btn {
  font-size: 14px;
}

.semicon-event-info {
  font-size: 16px;
}

/* line height 1.2 - 1.5 */
.events-section .event-information>p,
.events-section .events-heading p,
.events-section .event-detail,
.cookie-banner,
.list-links li,
.prgi-about-description {
  line-height: 1.5;
}
.event-detail-text{display: flex; gap: 5px;}


@media (max-width: 575px) {

  .events-section .events-heading h2,
  .sec-title,
  .bn-title,
  .lang-title,
  .list-title,
  .prgi-about-heading,
  .semicon-content {
    font-size: 20px;
  }

  .events-section .event-information h3 {
    font-size: 18px;
  }

  .events-section .event-information>p,
  .events-section .event-detail,
  .announce-track p,
  .footer-links a,
  .footer-note,
  .govt-text,
  .ministry-name,
  .bn-caption,
  .list-links li {
    font-size: 14px;
  }

  .events-section .events-heading p {
    font-size: 14px;
  }

  .a11y-btn {
    font-size: 14px;
  }
}

/* ---------- 8. CTA BUTTONS: uniform size, clear states ---------- */
.view-more,
.semicon-view-btn,
.cookie-banner .ck-actions button,
.external-modal-actions button,
.lang-option {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  text-transform: none; text-decoration: none;
}

.view-more:hover,
.semicon-view-btn:hover {
  background: var(--c-darkest);
  color: #fff;
}

.view-more:disabled,
.semicon-view-btn:disabled,
.cookie-banner .ck-actions button:disabled,
.external-modal-actions button:disabled,
.lang-option:disabled,
.view-more[aria-disabled="true"] {
  background: #C6C6C6;
  border-color: #8E8E8E;
  color: #606060;
  cursor: not-allowed;
}

/* solid primary / outlined secondary */
.cookie-banner #ckAccept,
.cookie-banner #ckSave,
.external-ok,
.lang-option[data-lang="en"],
.lang-option[data-lang="hi"] {
  background: var(--c-darkest);
  border: 1px solid var(--c-darkest);
  color: #fff;
}

.cookie-banner #ckAccept:hover,
.cookie-banner #ckSave:hover,
.external-ok:hover,
.lang-option[data-lang="en"]:hover,
.lang-option[data-lang="hi"]:hover {
  background: var(--c-dark);
  border-color: var(--c-dark);
}

.lang-option.active {
  background: #fff;
  color: var(--c-darkest);
  border-color: var(--c-darkest);
}

.external-cancel {
  background: #fff;
  color: var(--c-darkest);
  border: 1px solid var(--c-darkest);
}

.external-cancel:hover {
  background: var(--c-lightest);
}

/* arrows / back-to-top: solid, AA contrast with white icon */
.bn-arrow,
.back-top {
  background: var(--c-dark);
  border: 2px solid #fff;
  color: #fff;
}

.bn-arrow:hover,
.back-top:hover {
  background: var(--c-darkest);
}

.pt-arrow:hover {
  background: var(--c-dark);
  color: #fff;
}

.persona-tile.active {
  background: var(--c-darkest);
}

/* ---------- 9. HEADER BANNER: CCPS ratio 1800 x 500 ---------- */
.inner-banner {
  height: auto;
  aspect-ratio: 1800 / 504;
  min-height: 0;
  max-height: none;
  border-radius: 0;
}

/* ---------- 10. HEADSHOTS: 1:1, white bg ---------- */
.prgi-officer-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
}

/* ---------- 11. FOOTER ---------- */
.site-footer {
  background: var(--c-darkest) !important;
}

.footer-links {
  grid-template-rows: repeat(3, auto);
}

.footer-links a {
  font-size: 16px;
}

.footer-lineage {
  margin: 28px 0 0 6px;
  font-size: 16px;
}

/* contact card: fixed desktop-only width/margins broke tablet + mobile */
/* .contact-card {
  width: 100%;
  max-width: 420px;
  margin: 0 0 20px auto;
} */

@media (max-width: 991px) {
  .contact-card {
    margin: 0 0 20px 0;
    max-width: 100%;
  }
}

/* ---------- 12. CCPS PLACEHOLDERS (fill from API) ---------- */
.ccps-posts {
  padding: 28px 4vw;
  background: #fff;
}

.ccps-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ccps-posts-grid img {
  width: 100%;
  aspect-ratio: 960 / 245;
  object-fit: cover;
}

@media (max-width: 767px) {
  .ccps-posts-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 13. ACCESSIBILITY PANEL: keep on-brand ---------- */
.a11y-panel {
  border-top-color: var(--c-darkest);
}

.a11y-btn svg {
  color: var(--c-darkest);
}

/* ---------- 14. FOCUS: override style.css specific rules ---------- */
.header-search button:focus-visible {
  outline: 3px solid var(--c-darkest);
  outline-offset: -3px;
  box-shadow: none;
}

.events-section .side-arrow:focus-visible,
.pt-arrow:focus-visible,
.pt-pause:focus-visible {
  outline: 3px solid var(--c-darkest);
  outline-offset: 2px;
}

.external-modal-actions button:focus-visible,
#externalOkBtn:focus {
  outline: 3px solid var(--c-darkest);
  outline-offset: 3px;
}

/* ---------- 15. PAUSE BUTTONS (hero + key offerings) ---------- */
.inner-banner,
.banner-slider {
  position: relative;
}

.hero-pause,
.bn-pause {
  position: absolute;
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--c-darkest);
  color: #fff;
}

.hero-pause {
  right: 18px;
  bottom: 14px;
}

.bn-pause {
  right: 4vw;
  bottom: 0;
}

.hero-pause:hover,
.bn-pause:hover {
  background: var(--c-dark);
}

@media (max-width: 575px) {
  .hero-pause {
    width: 36px;
    height: 36px;
    right: 8px;
    bottom: 6px;
  }

  .bn-pause {
    right: 24px;
  }
}

/* ---------- 16. SEARCH DROPDOWN ---------- */
.search-results {
  position: fixed;
  z-index: 3000;
  background: #fff;
  border: 1px solid var(--c-darkest);
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(22, 47, 106, .25);
  max-height: 60vh;
  overflow-y: auto;
  padding: 4px 0;
}

.search-results[hidden] {
  display: none;
}

.search-results .sr-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 10px 14px;
  cursor: pointer;
  color: var(--ink);
  font: inherit;
}

.search-results .sr-item:hover,
.search-results .sr-item.active {
  background: var(--c-lightest);
}

.search-results .sr-item:focus-visible {
  outline-offset: -3px;
}

.search-results .sr-label {
  font-weight: 600;
  font-size: 16px;
}

.search-results .sr-meta {
  font-size: 14px;
  color: var(--muted);
}

.search-results .sr-empty {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 14px;
}

/* highlight after search jump */
.search-hit {
  outline: 3px solid var(--c-darkest) !important;
  outline-offset: 2px;
  border-radius: 4px;
}

.search-flash {
  animation: srFlash 2s ease;
}

@keyframes srFlash {

  0%,
  60% {
    background: var(--c-lightest);
  }

  100% {
    background: transparent;
  }
}

/* ---------- 17. ANNOUNCEMENT LINKS / BADGES ---------- */
.announce-track a.ann-item {
  color: inherit;
  text-decoration: underline;
}

.announce-track a.ann-item:hover {
  text-decoration-thickness: 2px;
}

.ann-new {
  background: var(--c-darkest);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 4px;
  margin-right: 6px;
}

.ann-tag {
  background: #fff;
  color: var(--c-darkest);
  border: 1px solid var(--c-darkest);
  font-size: 14px;
  font-weight: 600;
  padding: 0 8px;
  border-radius: 4px;
  margin-right: 6px;
}

.ann-sep {
  margin: 0 .75rem;
  color: var(--c-mid);
  opacity: 1;
}

@media (max-width: 360px) {
  .announce-title {
    font-size: 14px;
  }
}

/* ---------- 18. PARTNER LOGOS ---------- */
.partners .pt-item .pt-name {
  display: none;
}

.partners .pt-item.no-logo .pt-name {
  display: block;
}

.partners .pt-item img {
  max-width: 100%;
  object-fit: contain;
}

/* ---------- 19. MISC ---------- */
.badges a {
  border-color: var(--c-light);
}

.header-search {
  border-color: var(--c-mid);
}

.header-search button {
  border-left-color: var(--c-mid);
}

.cookie-banner {
  --ck-text: #150202;
  --ck-muted: #606060;
  --ck-border: #A3BBF3;
  --ck-primary: #162F6A;
  background: #fff;
  border-top: 4px solid var(--c-darkest);
}

.cookie-banner .ck-opt small {
  font-size: 14px;
}

.cookie-banner #ckAccept,
.cookie-banner #ckSave {
  background: var(--c-darkest);
  border-color: var(--c-darkest);
  color: #fff;
}

.cookie-banner #ckAccept:hover,
.cookie-banner #ckSave:hover {
  background: var(--c-dark);
  border-color: var(--c-dark);
}

.cookie-banner #ckReject,
.cookie-banner #ckCustom {
  background: #fff;
  color: var(--c-darkest);
  border: 1px solid var(--c-darkest);
}

.cookie-banner .ck-actions button {
  min-height: 44px;
  font-size: 14px;
}

.cookie-banner .ck-actions button:focus-visible,
.cookie-banner .ck-opt input:focus-visible {
  outline: 3px solid var(--c-darkest);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #fff;
}

/* ---------- 20. HERO SLIDESHOW: keep visibility in the cross-fade ---------- */
.inner-banner .hero-slides .hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}

.inner-banner .hero-slides .hero-slide.active {
  opacity: 1;
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .inner-banner .hero-slides .hero-slide {
    transition: none;
  }
}

em.placeholder{background-color: transparent; font-style: normal; color: #fff; opacity: 1; font-weight: 500;}