/* =====================================================================
   Pragati site theme
   Loaded after style.css (css/css.php). It restyles the whole public
   site: colours, type, header, footer, home page sections and the
   Bootstrap parts every page uses (buttons, forms, cards, tables...).
   ===================================================================== */

/* Bengali letters in Anek Bangla (self-hosted, Bengali characters only):
   English text keeps the fonts that follow it in each font list */
@font-face {
  font-family: "Pragati Bangla";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/anek-bangla.woff2") format("woff2");
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+25CC, U+A8F1;
}

:root {
  --p-primary: #0e6b70;        /* peacock teal */
  --p-primary-dark: #0a4f53;
  --p-primary-soft: #e2f1f0;
  --p-accent: #f2a51a;         /* marigold */
  --p-accent-dark: #c98408;
  --p-accent-soft: #fdf1d6;
  --p-rose: #c8463d;           /* sindoor, used sparingly */
  --p-rose-soft: #fbe9e7;
  --p-green: #3f8f4a;
  --p-green-soft: #e7f4e8;
  --p-ink: #1d2430;
  --p-text: #3f4856;
  --p-muted: #6b7482;
  --p-line: #e7e1d4;
  --p-cream: #fffaf1;
  --p-sand: #f7efe0;
  --p-white: #ffffff;
  --p-night: #13222b;
  --p-radius: 16px;
  --p-radius-sm: 10px;
  --p-shadow: 0 1px 2px rgba(29, 36, 48, .05), 0 6px 20px rgba(29, 36, 48, .07);
  --p-shadow-lg: 0 18px 40px rgba(14, 50, 60, .16);
  --p-font: "Pragati Bangla", "Hind Siliguri", "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --p-font-head: "Baloo Da 2", "Hind Siliguri", system-ui, sans-serif;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--p-font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--p-text);
  background: var(--p-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--p-font-head);
  color: var(--p-ink);
  font-weight: 700;
  line-height: 1.25;
}
a { color: var(--p-primary); }
a:hover, a:focus { color: var(--p-primary-dark); }
::selection { background: var(--p-accent-soft); color: var(--p-ink); }
img { max-width: 100%; }
.text-primary { color: var(--p-primary) !important; }
.text-muted { color: var(--p-muted) !important; }
:focus-visible { outline: 3px solid rgba(242, 165, 26, .55) !important; outline-offset: 2px; }

/* Template colour helpers, mapped to the new palette */
.bg-primary { background: var(--p-primary) !important; }
.bg-secondary { background: var(--p-accent) !important; }
.bg-tertiary { background: var(--p-green) !important; }
.bg-quarternary { background: var(--p-rose) !important; }
.bg-fifth { background: #4b3f8f !important; }
.bg-light { background: var(--p-sand) !important; }
.bg-dark { background: var(--p-night) !important; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--p-font);
  font-weight: 600;
  letter-spacing: .01em;
  border-radius: 999px;
  padding: .6rem 1.35rem;
  line-height: 1.3;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .38rem .9rem; font-size: .875rem; }
.btn-lg { padding: .8rem 1.75rem; font-size: 1.05rem; }

.btn.btn-primary,
.btn-primary {
  background: var(--p-primary);
  border: 1px solid var(--p-primary);
  color: #fff;
}
.btn.btn-primary:hover, .btn.btn-primary:focus,
.btn-primary:hover, .btn-primary:focus {
  background: var(--p-primary-dark);
  border-color: var(--p-primary-dark);
  color: #fff;
}
.btn.btn-secondary, .btn-secondary,
.btn.btn-accent, .btn-accent {
  background: var(--p-accent);
  border: 1px solid var(--p-accent);
  color: var(--p-ink);
}
.btn.btn-secondary:hover, .btn.btn-secondary:focus, .btn.btn-secondary:active,
.btn.btn-accent:hover, .btn.btn-accent:focus, .btn.btn-accent:active {
  background: var(--p-accent-dark);
  border-color: var(--p-accent-dark);
  color: #fff;
}
.btn.btn-warning { background: var(--p-accent); border-color: var(--p-accent); color: var(--p-ink); }
.btn.btn-warning:hover, .btn.btn-warning:focus { background: var(--p-accent-dark); border-color: var(--p-accent-dark); color: #fff; }
.btn.btn-success { background: var(--p-green); border-color: var(--p-green); color: #fff; }
.btn.btn-success:hover, .btn.btn-success:focus { background: #2f7139; border-color: #2f7139; color: #fff; }
.btn.btn-info { background: #2a7fa8; border-color: #2a7fa8; color: #fff; }
.btn.btn-info:hover, .btn.btn-info:focus { background: #1f6488; border-color: #1f6488; color: #fff; }
.btn.btn-danger { background: var(--p-rose); border-color: var(--p-rose); color: #fff; }
.btn.btn-danger:hover, .btn.btn-danger:focus { background: #a5352d; border-color: #a5352d; color: #fff; }
.btn.btn-dark { background: var(--p-ink); border-color: var(--p-ink); color: #fff; }
.btn.btn-light { background: #fff; border-color: var(--p-line); color: var(--p-ink); }
.btn.btn-light:hover { background: var(--p-sand); }
.btn.btn-tertiary { background: var(--p-green); border-color: var(--p-green); }
.btn.btn-quarternary { background: var(--p-rose); border-color: var(--p-rose); }

.btn.btn-outline-primary, .btn.btn-primary.btn-outline-primary {
  background: transparent;
  border: 1.5px solid var(--p-primary);
  color: var(--p-primary);
}
.btn.btn-outline-primary:hover, .btn.btn-outline-primary:focus,
.btn.btn-outline-primary.active, .btn.btn-outline-primary.bg-primary {
  background: var(--p-primary) !important;
  border-color: var(--p-primary);
  color: #fff !important;
}
.btn.btn-outline-secondary { border: 1.5px solid var(--p-line); color: var(--p-text); background: #fff; }
.btn.btn-outline-secondary:hover { background: var(--p-sand); color: var(--p-ink); }
.btn.btn-outline-success { border-color: var(--p-green); color: var(--p-green); }
.btn.btn-outline-success:hover { background: var(--p-green); color: #fff; }
.btn.btn-outline-danger { border-color: var(--p-rose); color: var(--p-rose); }
.btn.btn-outline-danger:hover { background: var(--p-rose); color: #fff; }
.btn.btn-light-outline, .btn-light-outline {
  background: rgba(255, 255, 255, .08);
  border: 1.5px solid rgba(255, 255, 255, .75);
  color: #fff;
}
.btn.btn-light-outline:hover, .btn.btn-light-outline:focus { background: #fff; color: var(--p-ink); border-color: #fff; }
.btn.disabled, .btn:disabled { opacity: .55; }

/* ---------- Forms ---------- */
.form-control, .custom-select, select.form-control {
  font-family: var(--p-font);
  border: 1.5px solid var(--p-line);
  border-radius: var(--p-radius-sm) !important;
  background-color: #fff;
  color: var(--p-ink);
  min-height: 46px;
  height: auto;
  padding: .55rem .85rem;
  font-size: 16px; /* stops iOS zoom on focus */
  box-shadow: none !important;
  transition: border-color .2s ease, box-shadow .2s ease;
}
textarea.form-control { min-height: 90px; }
.form-control:focus, .custom-select:focus {
  border-color: var(--p-primary);
  box-shadow: 0 0 0 4px rgba(14, 107, 112, .14) !important;
  color: var(--p-ink);
}
.form-control::placeholder { color: #9aa1ab; opacity: 1; }
label { font-weight: 600; color: var(--p-ink); margin-bottom: .35rem; }
.form-group { margin-bottom: 1.1rem; }
.form-text, small.form-text { color: var(--p-muted); }
.site-req, .required, .text-danger { color: var(--p-rose) !important; }
.input-group-text { border: 1.5px solid var(--p-line); background: var(--p-sand); border-radius: var(--p-radius-sm); }
input[type=checkbox], input[type=radio] { accent-color: var(--p-primary); }
.custom-control-input:checked ~ .custom-control-label::before { background: var(--p-primary); border-color: var(--p-primary); }

/* ---------- Cards, tables, alerts, badges ---------- */
.card {
  border: 1px solid var(--p-line);
  border-radius: var(--p-radius);
  box-shadow: var(--p-shadow);
  background: #fff;
  overflow: hidden;
}
.card-header {
  background: var(--p-sand);
  border-bottom: 1px solid var(--p-line);
  font-family: var(--p-font-head);
  font-weight: 700;
  color: var(--p-ink);
}
.card-header.bg-primary, .card-header.bg-info, .card-header.bg-success,
.card-header.bg-dark, .card-header.bg-danger { color: #fff; }
.card-footer { background: var(--p-cream); border-top: 1px solid var(--p-line); }

.table { color: var(--p-text); background: #fff; }
.table th, .table td { border-color: var(--p-line); vertical-align: middle; }
.table thead th {
  background: var(--p-primary-soft);
  color: var(--p-primary-dark);
  border-bottom: 2px solid rgba(14, 107, 112, .25);
  font-weight: 700;
  font-size: .9rem;
}
.table thead.thead-dark th, .table-dark th { background: var(--p-night); color: #fff; }
.table-striped tbody tr:nth-of-type(odd) { background: #fcf8f0; }
.table-hover tbody tr:hover { background: var(--p-accent-soft); }
.table-responsive { border-radius: var(--p-radius-sm); }

.alert { border-radius: var(--p-radius-sm); border-width: 1px; }
.alert-info { background: var(--p-primary-soft); border-color: #bcdedc; color: var(--p-primary-dark); }
.alert-success { background: var(--p-green-soft); border-color: #c4e3c8; color: #24602d; }
.alert-warning { background: var(--p-accent-soft); border-color: #f6d999; color: #7a5000; }
.alert-danger { background: var(--p-rose-soft); border-color: #f2c4bf; color: #8d2a22; }

.badge { border-radius: 999px; padding: .35em .7em; font-weight: 600; }
.badge-primary { background: var(--p-primary); }
.badge-warning { background: var(--p-accent); color: var(--p-ink); }
.badge-success { background: var(--p-green); }
.badge-danger { background: var(--p-rose); }

.nav-tabs { border-bottom: 2px solid var(--p-line); }
.nav-tabs .nav-link { border: 0; color: var(--p-muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.nav-tabs .nav-link.active, .nav-tabs .nav-link:hover { color: var(--p-primary); border-bottom-color: var(--p-primary); background: transparent; }
.nav-pills .nav-link { border-radius: 999px; color: var(--p-text); font-weight: 600; }
.nav-pills .nav-link.active { background: var(--p-primary); }

.page-link { color: var(--p-primary); border-color: var(--p-line); }
.page-item.active .page-link { background: var(--p-primary); border-color: var(--p-primary); }
.modal-content { border: 0; border-radius: var(--p-radius); box-shadow: var(--p-shadow-lg); }
.modal-header { border-bottom-color: var(--p-line); }
.modal-footer { border-top-color: var(--p-line); }
.list-group-item { border-color: var(--p-line); }
.list-group-item.active { background: var(--p-primary); border-color: var(--p-primary); }
.dropdown-menu { border: 1px solid var(--p-line); border-radius: var(--p-radius-sm); box-shadow: var(--p-shadow); }
.dropdown-item.active, .dropdown-item:active { background: var(--p-primary); }

/* ---------- Loader ---------- */
#ftco-loader { background: rgba(255, 250, 241, .92); }

/* ---------- Top bar ---------- */
.site-topbar {
  background: var(--p-night);
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
}
.site-topbar-row {
  display: flex;
  align-items: center;
  gap: 8px 24px;
  min-height: 44px;
  padding: 4px 0;
}
.site-topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .8);
  white-space: nowrap;
}
.site-topbar-item:hover { color: var(--p-accent); }
.site-topbar-item span { color: var(--p-accent); }
.site-topbar-donate { margin-left: auto; line-height: 0; }
.site-topbar-donate form { margin: 0; }
@media (max-width: 575.98px) {
  .site-topbar { font-size: 13px; }
  .site-topbar-row { min-height: 48px; }
}

/* ---------- Header and menu ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--p-line);
  box-shadow: 0 2px 14px rgba(29, 36, 48, .05);
}
.site-nav { padding: 10px 0; }
.site-nav > .container { flex-wrap: wrap; padding-left: 15px; padding-right: 15px; }
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--p-ink);
}
.site-brand:hover { color: var(--p-ink); }
.site-brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px var(--p-accent-soft), 0 0 0 4px var(--p-accent);
}
.site-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.site-brand-name {
  font-family: var(--p-font-head);
  font-size: 26px;
  font-weight: 800;
  color: var(--p-primary);
  letter-spacing: .01em;
}
.site-brand-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--p-muted);
  margin-top: 2px;
}
.site-menu .nav-link {
  position: relative;
  color: var(--p-ink) !important;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 12px !important;
  border-radius: 999px;
}
.site-menu .nav-link:hover { color: var(--p-primary) !important; background: var(--p-primary-soft); }
.site-menu .nav-item.active > .nav-link { color: var(--p-primary) !important; }
.site-menu .nav-item.active > .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 18px;
  height: 3px;
  margin-left: -9px;
  border-radius: 3px;
  background: var(--p-accent);
}

.site-toggler {
  display: none;
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--p-line);
  border-radius: 12px;
  background: #fff;
  padding: 0 11px;
  margin-left: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.site-toggler-bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--p-ink);
  transition: transform .25s ease, opacity .25s ease;
}
.site-toggler[aria-expanded="true"] .site-toggler-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-toggler[aria-expanded="true"] .site-toggler-bar:nth-child(2) { opacity: 0; }
.site-toggler[aria-expanded="true"] .site-toggler-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1199.98px) and (min-width: 992px) {
  .site-menu .nav-link { padding: 10px 8px !important; font-size: 14px; }
  .site-brand-tag { display: none; }
}
@media (max-width: 991.98px) {
  .site-toggler { display: inline-flex; }
  .site-brand img { width: 44px; height: 44px; }
  .site-brand-name { font-size: 22px; }
  .site-brand-tag { font-size: 10.5px; }
  #ftco-nav { width: 100%; }
  .site-menu { padding: 10px 0 6px; margin-top: 10px; border-top: 1px solid var(--p-line); }
  .site-menu .nav-link { padding: 12px 14px !important; border-radius: 10px; font-size: 16px; }
  .site-menu .nav-item.active > .nav-link { background: var(--p-primary-soft); }
  .site-menu .nav-item.active > .nav-link::after { display: none; }
}
@media (max-width: 400px) {
  .site-brand { gap: 8px; }
  .site-brand-tag { display: none; }
}

/* ---------- Shared section parts ---------- */
.site-section { padding: 80px 0; }
.site-section-tint { background: var(--p-sand); }
.site-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--p-accent);
  margin-bottom: 10px;
}
.site-eyebrow-dark { color: var(--p-rose); }
.site-title { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 16px; }
.site-heading { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.site-heading p { color: var(--p-muted); margin: 0; }
.site-heading-actions { text-align: center; margin-top: 18px; }
.site-card-col { margin-bottom: 24px; display: flex; }
.site-card-col > * { width: 100%; }
@media (max-width: 767.98px) {
  .site-section { padding: 56px 0; }
  .site-heading { margin-bottom: 30px; }
}

/* ---------- Home hero ---------- */
.site-hero {
  position: relative;
  overflow: hidden;
  background: var(--p-night);
}
.site-hero .owl-carousel.home-slider,
.site-hero .owl-carousel.home-slider .slider-item { height: 620px; }
.site-hero .owl-carousel .owl-item { opacity: 1; }
.site-hero .slider-item { background-size: cover; background-position: center center; }
.site-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 30, 38, .88) 0%, rgba(10, 30, 38, .62) 45%, rgba(10, 30, 38, .15) 100%),
    linear-gradient(0deg, rgba(10, 30, 38, .55) 0%, rgba(10, 30, 38, 0) 40%);
  pointer-events: none;
}
.site-hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding-bottom: 70px;
}
.site-hero-content .container > * { max-width: 620px; }
.site-hero-title {
  color: #fff;
  font-size: clamp(34px, 5.2vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 18px;
}
.site-hero-title em {
  font-style: normal;
  color: var(--p-accent);
  position: relative;
  white-space: nowrap;
}
.site-hero-text { color: rgba(255, 255, 255, .86); font-size: 18px; margin-bottom: 28px; }
.site-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 767.98px) {
  .site-hero .owl-carousel.home-slider,
  .site-hero .owl-carousel.home-slider .slider-item { height: 560px; }
  .site-hero .slider-item { background-position: top center; }
  .site-hero-shade {
    background: linear-gradient(0deg, rgba(10, 30, 38, .95) 0%, rgba(10, 30, 38, .78) 45%, rgba(10, 30, 38, .1) 80%);
  }
  .site-hero-content { align-items: flex-end; padding-bottom: 64px; }
  .site-hero-text { font-size: 16px; margin-bottom: 22px; }
  .site-hero-actions .btn { flex: 1 1 auto; }
}

/* ---------- Home features (over the hero) ---------- */
.site-features { position: relative; z-index: 3; margin-top: -56px; }
.site-feature-col { display: flex; margin-bottom: 24px; }
.site-feature {
  width: 100%;
  background: #fff;
  border: 1px solid var(--p-line);
  border-radius: var(--p-radius);
  box-shadow: var(--p-shadow);
  padding: 26px 24px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.site-feature:hover { transform: translateY(-4px); box-shadow: var(--p-shadow-lg); }
.site-feature h3 { font-size: 20px; margin: 16px 0 8px; }
.site-feature p { color: var(--p-muted); font-size: 15px; margin-bottom: 0; }
.site-feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--p-primary-soft);
  color: var(--p-primary);
}
.site-feature-icon span:before { font-size: 34px; margin: 0; }
.site-feature-highlight {
  background: linear-gradient(150deg, var(--p-primary) 0%, var(--p-primary-dark) 100%);
  border-color: transparent;
}
.site-feature-highlight h3 { color: #fff; }
.site-feature-highlight p { color: rgba(255, 255, 255, .82); }
.site-feature-highlight .site-feature-icon { background: rgba(255, 255, 255, .14); color: var(--p-accent); }
.site-feature-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
@media (max-width: 767.98px) {
  .site-features { margin-top: -36px; }
  .site-feature-col { margin-bottom: 14px; }
  .site-feature { padding: 20px; display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; }
  .site-feature-icon { width: 52px; height: 52px; border-radius: 14px; grid-row: span 3; }
  .site-feature-icon span:before { font-size: 28px; }
  .site-feature h3 { margin: 0 0 4px; font-size: 18px; }
}

/* ---------- Welcome and offer ---------- */
.site-welcome { padding-right: 40px; }
.site-welcome p { margin-bottom: 18px; }
.site-checklist { list-style: none; padding: 0; margin: 0 0 22px; }
.site-checklist li {
  position: relative;
  padding: 6px 0 6px 34px;
  color: var(--p-text);
}
.site-checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 7px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--p-green-soft);
  color: var(--p-green);
  font-size: 13px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}
.site-quote {
  border-left: 4px solid var(--p-accent);
  background: var(--p-accent-soft);
  border-radius: 0 var(--p-radius-sm) var(--p-radius-sm) 0;
  padding: 16px 20px;
  color: var(--p-ink);
  font-size: 15.5px;
}
.site-offer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 26px; }
.site-offer-item {
  background: #fff;
  border: 1px solid var(--p-line);
  border-radius: var(--p-radius);
  padding: 20px;
  box-shadow: var(--p-shadow);
}
.site-offer-item h3 { font-size: 17px; margin: 12px 0 6px; }
.site-offer-item p { font-size: 14.5px; color: var(--p-muted); margin: 0; }
.site-offer-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--p-accent-soft);
  color: var(--p-accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-offer-icon span:before { font-size: 26px; margin: 0; }
@media (max-width: 991.98px) {
  .site-welcome { padding-right: 15px; margin-bottom: 44px; }
}
@media (max-width: 479.98px) {
  .site-offer-grid { gap: 12px; }
  .site-offer-item { padding: 16px; }
  .site-offer-item h3 { font-size: 16px; }
}

/* ---------- Image band ---------- */
.site-band {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 90px 0;
  color: #fff;
}
.site-band-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 79, 83, .93), rgba(10, 79, 83, .72)); }
.site-band .container { position: relative; }
.site-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.site-band h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin-bottom: 10px; }
.site-band p { color: rgba(255, 255, 255, .85); margin: 0; max-width: 680px; }
.site-band .btn { flex-shrink: 0; }
@media (max-width: 767.98px) {
  .site-band { padding: 60px 0; }
  .site-band-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Classes ---------- */
.site-class-card {
  background: #fff;
  border-radius: var(--p-radius);
  overflow: hidden;
  border: 1px solid var(--p-line);
  box-shadow: var(--p-shadow);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.site-class-card:hover { transform: translateY(-4px); box-shadow: var(--p-shadow-lg); }
.site-class-img { height: 180px; background-size: cover; background-position: center; }
.site-class-body { padding: 18px 20px 20px; }
.site-class-body h3 { font-size: 19px; margin-bottom: 8px; }
.site-class-body p { font-size: 14.5px; color: var(--p-muted); margin: 0; }
.site-class-body p.site-class-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--p-primary-soft);
  color: var(--p-primary-dark);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  margin-bottom: 12px;
}
@media (max-width: 575.98px) {
  .site-class-card { flex-direction: row; }
  .site-class-img { width: 110px; height: auto; min-height: 100%; flex-shrink: 0; }
  .site-class-body { padding: 14px 16px; }
  .site-class-body h3 { font-size: 17px; }
  .site-class-body p { font-size: 14px; }
}

/* ---------- People (teachers, team) ---------- */
.site-person {
  background: #fff;
  border: 1px solid var(--p-line);
  border-radius: var(--p-radius);
  box-shadow: var(--p-shadow);
  padding: 22px 16px 20px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.site-person:hover { transform: translateY(-4px); box-shadow: var(--p-shadow-lg); }
.site-person-img {
  width: 120px;
  height: 120px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background-size: cover;
  background-position: center top;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--p-accent);
}
.site-person h3 { font-size: 17px; margin-bottom: 4px; }
.site-person-role {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--p-primary);
}
.site-person p { font-size: 14px; color: var(--p-muted); margin: 10px 0 0; }
@media (max-width: 575.98px) {
  .site-card-col.col-6:nth-child(odd) { padding-right: 7px; }
  .site-card-col.col-6:nth-child(even) { padding-left: 7px; }
  .site-card-col.col-6 { margin-bottom: 14px; }
  .site-person { padding: 18px 10px 16px; }
  .site-person-img { width: 92px; height: 92px; }
  .site-person h3 { font-size: 15px; }
  .site-person-role { font-size: 11px; }
}

/* ---------- Counter ---------- */
.site-counter {
  background:
    radial-gradient(circle at 85% 20%, rgba(242, 165, 26, .18), transparent 40%),
    linear-gradient(135deg, var(--p-night) 0%, #17333b 100%);
  color: rgba(255, 255, 255, .82);
}
.site-counter .site-title { color: #fff; }
.site-counter p { margin-bottom: 0; }
.site-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.site-stat {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--p-radius);
  padding: 26px 12px;
  text-align: center;
}
.site-stat strong {
  display: block;
  font-family: var(--p-font-head);
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1;
  color: var(--p-accent);
}
.site-stat strong::after { content: "+"; }
.site-stat span { display: block; margin-top: 8px; font-weight: 600; color: #fff; }
@media (max-width: 991.98px) {
  .site-stats { margin-top: 30px; }
}
@media (max-width: 479.98px) {
  .site-stats { gap: 10px; }
  .site-stat { padding: 18px 6px; }
  .site-stat span { font-size: 14px; }
}

/* ---------- Join classes form ---------- */
.site-join-card {
  margin: 0;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--p-line);
  box-shadow: var(--p-shadow-lg);
}
.site-join-photo {
  position: relative;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 0;
}
.site-join-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 79, 83, .95) 0%, rgba(10, 79, 83, .35) 70%);
}
.site-join-photo-text { position: relative; padding: 32px; color: rgba(255, 255, 255, .88); }
.site-join-photo-text h2 { color: #fff; font-size: 34px; margin-bottom: 8px; }
.site-join-photo-text p { margin: 0; }
.site-join-form { padding: 34px 36px; }
.site-join-form label { font-size: 14px; }
.site-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.site-chip { margin: 0; cursor: pointer; font-weight: 500; }
.site-chip input { position: absolute; opacity: 0; pointer-events: none; }
.site-chip span {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--p-line);
  background: #fff;
  font-size: 14px;
  color: var(--p-text);
  transition: all .15s ease;
}
.site-chip input:checked + span { background: var(--p-primary); border-color: var(--p-primary); color: #fff; }
.site-chip input:focus-visible + span { outline: 3px solid rgba(242, 165, 26, .55); }
#interested_student_block > p { font-size: 17px; color: var(--p-ink); }
@media (max-width: 767.98px) {
  .site-join-photo { min-height: 220px; }
  .site-join-photo-text { padding: 24px; }
  .site-join-form { padding: 24px 20px; }
  #interested_student { width: 100%; }
}

/* ---------- Gallery ---------- */
.site-gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.site-gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--p-radius);
  background: var(--p-sand);
  aspect-ratio: 4 / 3;
}
.site-gallery-item i { display: none; }
.site-gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.site-gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 30, 38, .35), rgba(10, 30, 38, 0) 50%);
  opacity: 0;
  transition: opacity .25s ease;
}
.site-gallery-item:hover img { transform: scale(1.04); }
.site-gallery-item:hover::after { opacity: 1; }

/* Gallery page: whole photos in rows of equal height, each as wide as its shape needs */
.site-gallery-grid.is-justified { display: flex; flex-wrap: wrap; gap: 10px; }
.site-gallery-grid.is-justified::after { content: ""; flex-grow: 999; }
.is-justified .site-gallery-item {
  aspect-ratio: auto;
  flex-grow: var(--ratio);
  flex-basis: calc(var(--ratio) * 230px);
  border-radius: 12px;
}
.is-justified .site-gallery-item i { display: block; }
@media (max-width: 767.98px) {
  .site-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .site-gallery-item { border-radius: 12px; }
  .site-gallery-grid.is-justified { gap: 6px; }
  .is-justified .site-gallery-item { flex-basis: calc(var(--ratio) * 130px); border-radius: 8px; }
}

/* ---------- Inner page banner (hero-wrap-2) ---------- */
.hero-wrap.hero-wrap-2 {
  height: auto;
  min-height: 0;
  background-position: center 30%;
}
.hero-wrap .overlay {
  opacity: 1;
  background: linear-gradient(90deg, rgba(10, 30, 38, .88) 0%, rgba(10, 79, 83, .7) 100%);
}
.hero-wrap.hero-wrap-2 .slider-text {
  height: auto;
  min-height: 240px;
  padding: 56px 0;
}
.hero-wrap.hero-wrap-2 .slider-text > div { opacity: 1 !important; visibility: visible !important; }
.hero-wrap.hero-wrap-2 .slider-text .bread {
  font-family: var(--p-font-head);
  font-weight: 800;
  font-size: clamp(32px, 4.4vw, 50px);
  margin-bottom: 8px !important;
}
.hero-wrap.hero-wrap-2 .slider-text .breadcrumbs {
  display: inline-flex;
  gap: 6px;
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  text-transform: none;
  font-size: 14px;
  letter-spacing: 0;
}
.hero-wrap.hero-wrap-2 .slider-text .breadcrumbs span { border: 0; color: rgba(255, 255, 255, .85); }
.hero-wrap.hero-wrap-2 .slider-text .breadcrumbs span a { color: var(--p-accent); }
.hero-wrap.hero-wrap-2 .slider-text .breadcrumbs i { display: none; }
.hero-wrap.hero-wrap-2 .slider-text .breadcrumbs span + span::before { content: "/"; margin-right: 6px; opacity: .6; }
@media (max-width: 767.98px) {
  .hero-wrap.hero-wrap-2 .slider-text { min-height: 170px; padding: 40px 0; }
}

/* ---------- Template sections still used on inner pages ---------- */
.ftco-section { padding: 70px 0; }
@media (max-width: 767.98px) { .ftco-section { padding: 48px 0; } }
.heading-section h2 { font-family: var(--p-font-head); font-weight: 800; color: var(--p-ink); font-size: clamp(26px, 3.2vw, 38px); }
.heading-section h2 span { color: var(--p-primary); }
.heading-section .subheading { color: var(--p-accent-dark); }
.heading-section.heading-section-white h2 { color: #fff; }
.text-white h2, .text-white h3 { color: #fff; }

/* Contact page blocks */
.contact-section .info,
.contact-info .info,
.contact-section .d-flex.contact-info > div > p,
.block-9 { border-radius: var(--p-radius); }
.contact-section .dbox,
.contact-section .info {
  background: #fff;
  border: 1px solid var(--p-line);
  box-shadow: var(--p-shadow);
}
.block-9 .form-control { background: #fff !important; color: var(--p-ink) !important; border: 1.5px solid var(--p-line) !important; }

/* Generic page wrappers used by the member, judge and participant pages */
.pragati-container,
.container.mt-5,
.container.my-5 {
  position: relative;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--p-night);
  color: rgba(255, 255, 255, .72);
  padding: 70px 0 0;
  font-size: 15px;
}
.site-footer a { color: rgba(255, 255, 255, .82); }
.site-footer a:hover { color: var(--p-accent); }
.site-footer-col { margin-bottom: 36px; }
.site-brand-light .site-brand-name { color: #fff; }
.site-brand-light .site-brand-tag { color: rgba(255, 255, 255, .6); }
.site-footer-about { margin: 18px 0 18px; max-width: 340px; }
.site-footer-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: .02em;
}
.site-footer-links li { margin-bottom: 8px; }
.site-footer-contact li { display: flex; gap: 12px; margin-bottom: 12px; }
.site-footer-contact span[class^="icon-"] { color: var(--p-accent); margin-top: 5px; }
.site-footer-social { display: flex; gap: 10px; margin: 0; }
.site-footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .08);
  font-size: 18px;
}
.site-footer-social a:hover { background: var(--p-accent); color: var(--p-ink); }
.site-subscribe { display: flex; gap: 8px; }
.site-subscribe .form-control {
  background: rgba(255, 255, 255, .07) !important;
  border-color: rgba(255, 255, 255, .18);
  color: #fff !important;
}
.site-subscribe .form-control::placeholder { color: rgba(255, 255, 255, .5); }
.site-subscribe .form-control:focus { background: rgba(255, 255, 255, .1) !important; }
.site-subscribe .btn { flex-shrink: 0; }
.site-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 20px 0 26px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .55);
}
.site-footer-bottom a { color: rgba(255, 255, 255, .7); }
@media (max-width: 767.98px) {
  .site-footer { padding-top: 50px; }
  .site-footer-col { margin-bottom: 28px; }
  .site-footer-bottom { flex-direction: column; text-align: center; padding-bottom: 32px; }
}
@media (max-width: 399.98px) {
  .site-subscribe { flex-direction: column; }
}

/* ---------- Login pages ---------- */
.site-auth {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 64px;
  background:
    radial-gradient(circle at 10% 10%, rgba(242, 165, 26, .16), transparent 35%),
    radial-gradient(circle at 90% 80%, rgba(14, 107, 112, .14), transparent 40%),
    var(--p-cream);
}
.site-auth-card {
  width: 100%;
  max-width: 430px;
  background: #fff;
  border: 1px solid var(--p-line);
  border-radius: 22px;
  box-shadow: var(--p-shadow-lg);
  padding: 32px 30px 26px;
}
.site-auth-head { text-align: center; margin-bottom: 22px; }
.site-auth-head img { border-radius: 50%; box-shadow: 0 0 0 3px var(--p-accent-soft), 0 0 0 4px var(--p-accent); margin-bottom: 14px; }
.site-auth-head h1 { font-size: 28px; margin-bottom: 4px; }
.site-auth-head p { color: var(--p-muted); margin: 0; font-size: 15px; }
.site-auth-card .btn-block { margin-top: 8px; }
.site-auth-foot { text-align: center; margin: 18px 0 0; font-size: 15px; color: var(--p-muted); }
.site-auth-foot a { font-weight: 600; }
@media (max-width: 479.98px) {
  .site-auth { padding: 28px 12px 44px; align-items: flex-start; }
  .site-auth-card { padding: 26px 20px 22px; border-radius: 18px; }
}

/* ---------- Competition landing ---------- */
.site-competition { padding: 0 0 70px; background: var(--p-cream); }
.site-comp-hero {
  background:
    radial-gradient(circle at 90% 10%, rgba(242, 165, 26, .28), transparent 40%),
    linear-gradient(135deg, var(--p-night) 0%, var(--p-primary-dark) 100%);
  color: rgba(255, 255, 255, .86);
  padding: 40px 0 96px;
}
.site-comp-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.site-comp-hero-top .site-eyebrow { margin: 0; }
.site-comp-hero h1 { color: #fff; font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; margin: 14px 0 16px; max-width: 820px; }
.site-comp-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.site-comp-facts li { display: flex; align-items: flex-start; gap: 8px; font-weight: 500; color: #fff; }
.site-comp-facts li > span:first-child { color: var(--p-accent); margin-top: 4px; }
.pragati-language-toggle { display: flex; gap: 6px; flex-shrink: 0; }
.pragati-language-toggle .btn.is-on { background: #fff; color: var(--p-ink); border-color: #fff; }
.site-competition-cards { max-width: 980px; margin: -64px auto 0; position: relative; }
.site-choice {
  background: #fff;
  border: 1px solid var(--p-line);
  border-radius: 22px;
  box-shadow: var(--p-shadow-lg);
  padding: 28px 28px;
  display: flex;
  flex-direction: column;
}
.site-choice h2 { font-size: 24px; margin: 16px 0 8px; }
.site-choice p { color: var(--p-muted); flex: 1; margin-bottom: 22px; }
.site-choice-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--p-primary-soft);
  color: var(--p-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-choice-icon span:before { font-size: 32px; margin: 0; }
.site-choice-primary { background: linear-gradient(150deg, var(--p-primary) 0%, var(--p-primary-dark) 100%); border-color: transparent; }
.site-choice-primary h2 { color: #fff; }
.site-choice-primary p { color: rgba(255, 255, 255, .85); }
.site-choice-primary .site-choice-icon { background: rgba(255, 255, 255, .14); color: var(--p-accent); }
.site-comp-list { max-width: 980px; margin: 30px auto 0; }
.site-comp-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.site-comp-list-head h2 { font-size: 26px; margin: 0; }
.site-comp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.site-comp-item {
  background: #fff;
  border: 1px solid var(--p-line);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-comp-name strong { display: block; font-size: 16.5px; color: var(--p-ink); line-height: 1.3; }
.site-comp-name span { font-size: 14px; color: var(--p-muted); }
/* Prizes on a competition card: the first line, the rest open with a tap */
.site-comp-prizes { margin-top: 8px; font-size: 13px; line-height: 1.45; }
.site-comp-prizes summary { cursor: pointer; color: #7a5000; font-weight: 600; list-style: none; display: flex; gap: 6px; align-items: flex-start; }
.site-comp-prizes summary::-webkit-details-marker { display: none; }
.site-comp-prizes:not(:has(ul)) summary { cursor: default; }
.site-comp-prizes:has(ul) summary::after { content: '▾'; margin-left: auto; color: var(--p-muted, #888); transition: transform .15s; }
.site-comp-prizes[open] summary::after { transform: rotate(180deg); }
.site-comp-prizes ul { margin: 6px 0 0; padding-left: 26px; color: var(--p-text); }
.site-comp-prizes li { margin: 2px 0; }
.site-comp-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.site-comp-meta > span { background: var(--p-sand); border-radius: 999px; padding: 2px 10px; color: var(--p-text); font-weight: 500; }
.site-comp-meta > span.site-comp-fee { background: var(--p-accent-soft); color: #7a5000; font-weight: 700; }
.site-comp-meta > span.site-comp-team { background: var(--p-primary-soft); color: var(--p-primary-dark); }
.site-competition-links { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 30px; font-weight: 600; color: var(--p-muted); }
@media (max-width: 767.98px) {
  .site-comp-hero { padding: 26px 0 84px; }
  .site-comp-facts { flex-direction: column; gap: 8px; }
  .site-competition-cards { margin-top: -60px; }
  .site-choice { padding: 22px 20px; }
  .site-comp-list-head h2 { font-size: 22px; }
}

/* ---------- Participant dashboard ---------- */
.site-dash { padding: 40px 0 70px; min-height: calc(100vh - 260px); }
.site-dash-hello {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 165, 26, .25), transparent 45%),
    linear-gradient(135deg, var(--p-primary) 0%, var(--p-primary-dark) 100%);
  color: rgba(255, 255, 255, .86);
  border-radius: 22px;
  padding: 28px 30px;
  box-shadow: var(--p-shadow-lg);
  margin-bottom: 26px;
}
.site-dash-hello h1 { color: #fff; font-size: clamp(24px, 3.2vw, 34px); margin: 0 0 6px; }
.site-dash-hello p { margin: 0; }
.site-dash-alert { display: inline-block; background: var(--p-accent); color: var(--p-ink) !important; font-weight: 700; border-radius: 999px; padding: 6px 16px; margin-top: 6px; }
.site-dash-id {
  flex-shrink: 0;
  text-align: center;
  background: rgba(255, 255, 255, .12);
  border: 1px dashed rgba(255, 255, 255, .45);
  border-radius: 16px;
  padding: 12px 22px;
}
.site-dash-id span { display: block; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; }
.site-dash-id strong { display: block; font-family: var(--p-font-head); font-size: 36px; line-height: 1.1; color: var(--p-accent); }
.site-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.site-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--p-line);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--p-shadow);
  color: var(--p-ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.site-tile:hover { transform: translateY(-2px); box-shadow: var(--p-shadow-lg); border-color: rgba(14, 107, 112, .35); color: var(--p-ink); }
.site-tile-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--p-primary-soft);
  color: var(--p-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.site-tile-text strong { display: block; font-size: 16.5px; line-height: 1.3; }
.site-tile-text small { display: block; color: var(--p-muted); font-size: 13.5px; }
.site-tile.is-main { border-color: rgba(242, 165, 26, .6); background: var(--p-accent-soft); }
.site-tile.is-main .site-tile-icon { background: var(--p-accent); color: var(--p-ink); }
.site-tile.is-logout .site-tile-icon { background: var(--p-rose-soft); color: var(--p-rose); }
/* Task buttons: what is still to do */
.site-tile { position: relative; }
.site-tile-text { min-width: 0; flex: 1; }
.site-tile-badge { align-self: flex-start; flex-shrink: 0; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--p-primary-soft); color: var(--p-primary); }
.site-tile.is-todo { border-color: rgba(232, 89, 12, .45); border-left: 6px solid #e8590c; }
.site-tile.is-todo .site-tile-icon { background: #fff0e6; color: #d9480f; }
.site-tile.is-todo .site-tile-badge { background: #fff0e6; color: #d9480f; }
.site-tile.is-alert { border-color: rgba(201, 42, 42, .45); border-left: 6px solid #c92a2a; }
.site-tile.is-alert .site-tile-icon, .site-tile.is-alert .site-tile-badge { background: #fff0f0; color: #c92a2a; }
.site-tile.is-wait { border-left: 6px solid #1c7ed6; }
.site-tile.is-wait .site-tile-icon, .site-tile.is-wait .site-tile-badge { background: #e7f5ff; color: #1864ab; }
.site-tile.is-done { border-left: 6px solid #2b8a3e; }
.site-tile.is-done .site-tile-icon, .site-tile.is-done .site-tile-badge { background: #ebfbee; color: #2b8a3e; }
@media (max-width: 575.98px) {
  .site-dash { padding: 22px 0 50px; }
  .site-dash-hello { flex-direction: column; align-items: flex-start; padding: 22px 20px; }
  .site-dash-id { width: 100%; display: flex; align-items: center; justify-content: space-between; text-align: left; padding: 10px 16px; }
  .site-dash-id strong { font-size: 30px; }
  .site-tiles { gap: 10px; }
}

/* Header on laptops: keep brand, menu and button on one line */
@media (min-width: 992px) {
  .site-nav > .container { flex-wrap: nowrap; }
  .site-nav .navbar-collapse { flex: 1 1 auto; min-width: 0; }
  .site-menu { flex-wrap: nowrap; white-space: nowrap; }
}
@media (min-width: 992px) and (max-width: 1299.98px) {
  .site-menu .nav-link { padding: 10px 9px !important; font-size: 14.5px; }
}

/* Colour helpers from css/main.css (loaded after this file on some pages) */
.bg-blue { background: var(--p-primary) !important; }
.bg-red { background: var(--p-rose) !important; }

/* ---------- Menu: competition drop-down and login ---------- */
.site-dropdown { position: relative; }
.site-dropdown-toggle {
  background: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}
.site-caret {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}
.site-submenu {
  list-style: none;
  margin: 0;
  padding: 8px;
  min-width: 250px;
  background: #fff;
  border: 1px solid var(--p-line);
  border-radius: 14px;
  box-shadow: var(--p-shadow-lg);
}
.site-submenu a {
  display: block;
  padding: 9px 14px;
  border-radius: 9px;
  color: var(--p-ink);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}
.site-submenu a:hover, .site-submenu a:focus { background: var(--p-primary-soft); color: var(--p-primary); }
.site-submenu a.is-current { color: var(--p-primary); background: var(--p-primary-soft); }
.site-login { margin-left: 14px; padding: .5rem 1.1rem; white-space: nowrap; font-size: 15px; }
.site-login span { font-size: 13px; margin-right: 4px; }
.site-login.is-current { background: var(--p-primary) !important; color: #fff !important; }

@media (min-width: 992px) {
  .site-submenu {
    position: absolute;
    top: calc(100% + 6px);
    left: -8px;
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .site-submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
  .site-dropdown:hover .site-submenu,
  .site-dropdown:focus-within .site-submenu { opacity: 1; visibility: visible; transform: none; }
  .site-dropdown:hover .site-caret,
  .site-dropdown:focus-within .site-caret { transform: rotate(225deg) translate(-2px, -1px); }
}
@media (max-width: 991.98px) {
  .site-dropdown-toggle { width: 100%; cursor: default; }
  .site-caret { display: none; }
  .site-submenu {
    border: 0;
    box-shadow: none;
    padding: 0 0 6px 12px;
    margin-left: 14px;
    border-left: 2px solid var(--p-line);
    border-radius: 0;
    min-width: 0;
  }
  .site-submenu a { font-size: 15px; padding: 9px 12px; white-space: normal; }
  .site-login { display: flex; justify-content: center; margin: 6px 0 14px; padding: .7rem 1rem; font-size: 16px; }
}

/* ---------- Home: competition and the years ---------- */
.site-compete { padding-top: 64px; }
.site-compete-intro p { color: var(--p-text); }
.site-compete-total {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--p-line);
  border-radius: var(--p-radius);
  box-shadow: var(--p-shadow);
}
.site-compete-total strong {
  font-family: var(--p-font-head);
  font-size: 40px;
  line-height: 1;
  color: var(--p-primary);
}
.site-compete-total span { color: var(--p-muted); font-weight: 500; line-height: 1.4; }
.site-event {
  position: relative;
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 165, 26, .25), transparent 45%),
    linear-gradient(150deg, var(--p-primary) 0%, var(--p-primary-dark) 100%);
  color: rgba(255, 255, 255, .88);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--p-shadow-lg);
}
.site-event-badge {
  display: inline-block;
  background: var(--p-accent);
  color: var(--p-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 12px;
}
.site-event h3 { color: #fff; font-size: clamp(24px, 2.6vw, 30px); margin: 12px 0 2px; }
.site-event-bn { margin: 0; font-size: 17px; opacity: .9; }
.site-event-facts { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-event-facts li { display: flex; align-items: flex-start; gap: 8px; font-weight: 500; color: #fff; }
.site-event-facts span { color: var(--p-accent); margin-top: 4px; }
.site-event-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.site-event-list span {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 14px;
  color: #fff;
}
.site-results-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 36px; }
.site-results-label { font-weight: 700; color: var(--p-ink); margin-right: 4px; }
.site-result-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: #fff;
  border: 1px solid var(--p-line);
  border-radius: 999px;
  box-shadow: var(--p-shadow);
  font-weight: 700;
  color: var(--p-primary);
}
.site-result-link::after { content: "\2192"; }
.site-result-link:hover { border-color: var(--p-accent); color: var(--p-primary-dark); text-decoration: none; }
@media (max-width: 991.98px) {
  .site-compete-intro { margin-bottom: 28px; }
}
@media (max-width: 575.98px) {
  .site-compete { padding-top: 44px; }
  .site-event { padding: 24px 20px; border-radius: 20px; }
  .site-event .btn { width: 100%; }
  .site-results-links { margin-top: 26px; }
  .site-results-label { width: 100%; }
}

/* ---------- Results ---------- */
.site-results { background: var(--p-cream); padding-bottom: 70px; }
.site-results-hero h1 { margin-bottom: 10px; }
.site-year-tabs { display: inline-flex; background: rgba(255, 255, 255, .1); border-radius: 999px; padding: 4px; gap: 2px; }
.site-year-tabs a { color: #fff; font-weight: 700; padding: 5px 14px; border-radius: 999px; font-size: 14px; }
.site-year-tabs a:hover { color: var(--p-accent); }
.site-year-tabs a.is-on { background: #fff; color: var(--p-ink); }
.site-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14.5px; }
.site-crumbs a { color: var(--p-accent); font-weight: 600; }
.site-crumbs span { color: rgba(255, 255, 255, .55); }
.site-crumbs .is-current { color: #fff; }
.site-results-body { margin-top: -60px; position: relative; }
.site-results-card {
  background: #fff;
  border: 1px solid var(--p-line);
  border-radius: 20px;
  box-shadow: var(--p-shadow-lg);
  padding: 26px 26px;
  height: 100%;
}
.site-results-card h2 { font-size: 22px; margin-bottom: 18px; }
.site-results-card h2 small { font-family: var(--p-font); font-size: 14px; font-weight: 600; color: var(--p-muted); margin-left: 6px; }
.site-results-empty { color: var(--p-muted); }
div.site-results-empty { text-align: center; }
.site-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.site-pick {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid var(--p-line);
  border-radius: 14px;
  color: var(--p-ink);
  background: #fff;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.site-pick:hover { border-color: var(--p-primary); color: var(--p-ink); transform: translateY(-2px); box-shadow: var(--p-shadow); }
.site-pick strong { display: block; font-size: 16px; line-height: 1.3; }
.site-pick small { display: block; color: var(--p-muted); font-size: 13.5px; }
.site-pick-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--p-accent-soft);
  color: var(--p-accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}
.site-pick-letter { background: var(--p-primary-soft); color: var(--p-primary); font-family: var(--p-font-head); font-weight: 800; font-size: 18px; }
.site-rank-list { list-style: none; padding: 0; margin: 0; counter-reset: none; }
.site-rank {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 12px;
}
.site-rank + .site-rank { margin-top: 4px; }
.site-rank:nth-child(even) { background: var(--p-cream); }
.site-rank-pos {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--p-primary-soft);
  color: var(--p-primary-dark);
  font-family: var(--p-font-head);
  font-weight: 800;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-rank.is-medal-1 .site-rank-pos { background: linear-gradient(135deg, #f7c948, #e0a10b); color: #4a3200; box-shadow: 0 3px 10px rgba(224, 161, 11, .4); }
.site-rank.is-medal-2 .site-rank-pos { background: linear-gradient(135deg, #e3e7ea, #aab4bb); color: #2d3740; }
.site-rank.is-medal-3 .site-rank-pos { background: linear-gradient(135deg, #e9b48a, #c27a45); color: #3d1f08; }
.site-rank-name { flex: 1; min-width: 0; }
.site-rank-name strong { display: block; color: var(--p-ink); font-size: 16px; line-height: 1.3; }
.site-rank-name small, .site-star-list small { display: block; color: var(--p-muted); font-size: 13px; }
.site-rank-tick {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--p-green-soft);
  color: var(--p-green);
  font-size: 13px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
}
.site-stars { background: linear-gradient(180deg, var(--p-accent-soft) 0%, #fff 160px); }
.site-star-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
.site-star-list li {
  background: #fff;
  border: 1px solid var(--p-line);
  border-left: 4px solid var(--p-accent);
  border-radius: 10px;
  padding: 8px 12px;
}
.site-star-list li strong { color: var(--p-ink); font-size: 15px; }
.site-star-list li.is-collected { border-left-color: var(--p-green); }
.site-results-note { display: flex; align-items: center; gap: 8px; color: var(--p-muted); font-size: 14px; margin: 0; }
@media (max-width: 575.98px) {
  .site-results-card { padding: 20px 16px; border-radius: 16px; }
  .site-rank { padding: 8px 6px; gap: 10px; }
  .site-comp-hero-top { flex-wrap: wrap; }
}

/* ---------- Registration status (registration_success.php) ---------- */
.site-status { max-width: 1000px; margin: 0 auto; padding: 24px 12px 60px; }
.site-status .pragati-language-toggle { justify-content: flex-end; margin: 0 4px 12px; text-align: right; }
.site-status > .content > .container-fluid { padding: 0; }
.site-status > .content > .container-fluid > .row { margin-left: 0; margin-right: 0; }
.site-status > .content > .container-fluid > .row > [class*="col-"] { padding-left: 0; padding-right: 0; }
.site-status .card { border-radius: 22px; box-shadow: var(--p-shadow-lg); }
.site-status .card-body { padding: 26px 24px; }
.site-status .heading-section h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 4px; }
.site-status-id {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 4px;
  padding: 14px 20px;
  border-radius: 16px;
  color: rgba(255, 255, 255, .88);
  font-weight: 600;
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 165, 26, .3), transparent 50%),
    linear-gradient(135deg, var(--p-primary) 0%, var(--p-primary-dark) 100%);
}
.site-status-id strong { font-family: var(--p-font-head); font-size: 32px; line-height: 1; color: var(--p-accent); }
.site-status .table {
  border: 1px solid var(--p-line);
  border-radius: 16px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  margin-bottom: 26px;
}
.site-status .table-bordered th, .site-status .table-bordered td { border-color: var(--p-line); }
.site-status .table thead th {
  background: var(--p-sand);
  color: var(--p-ink);
  border-bottom: 1px solid var(--p-line);
  font-size: 14px;
}
.site-status .table thead th .heading-section { padding: 0; }
.site-status .table thead th .heading-section h2 { font-size: 22px; margin: 2px 0; }
.site-status .table td { font-size: 15px; }
.site-status .table-striped tbody tr:nth-of-type(odd) { background: #fff; }
.site-status .table-striped tbody tr:nth-of-type(even) { background: var(--p-cream); }
.site-status .table .btn { margin: 3px 0; }
.site-status #progress-div, .site-status .member-progress-div { border-color: var(--p-green); border-radius: 10px; }
.site-status #progress-bar, .site-status .member-progress-bar { background: var(--p-green) !important; border-radius: 6px; }
@media (max-width: 575.98px) {
  .site-status { padding: 16px 8px 44px; }
  .site-status .card-body { padding: 18px 12px; }
  .site-status .table td, .site-status .table th { padding: .55rem .5rem; font-size: 14px; }
  .site-status-id { padding: 12px 16px; }
  .site-status-id strong { font-size: 28px; }
}

/* ---------- Registration closed (application.php) ---------- */
.site-closed { max-width: 760px; margin: 0 auto; }
.site-closed .site-results-card { padding: 30px 32px; }
.site-closed-badge {
  display: inline-block;
  background: var(--p-rose-soft);
  color: var(--p-rose);
  font-weight: 700;
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 14px;
}
.site-closed-lead { font-size: 17px; color: var(--p-ink); }
.site-closed-box {
  background: var(--p-accent-soft);
  border-left: 4px solid var(--p-accent);
  border-radius: 0 14px 14px 0;
  padding: 16px 20px;
  margin: 18px 0;
}
.site-closed-box h2 { font-size: 19px; margin-bottom: 6px; }
.site-closed-box p { margin: 0; }
.site-closed-box-alt { background: var(--p-primary-soft); border-left-color: var(--p-primary); }
.site-closed-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
@media (max-width: 575.98px) {
  .site-closed .site-results-card { padding: 22px 18px; }
  .site-closed-actions .btn { flex: 1 1 100%; }
}

/* ---------- Home: competition banner (first slide of the hero) ---------- */
/* The slider takes the banner's shape (sizes set in slidebar.php), so the banner shows full width
   without cutting anything; the strip below it stays under the feature cards that overlap the hero. */
.site-hero.has-banner { --hero-overlap: 56px; }
.site-hero.has-banner .owl-carousel.home-slider,
.site-hero.has-banner .owl-carousel.home-slider .slider-item {
  height: max(460px, calc(100vw * var(--banner-h, 1) / var(--banner-w, 3) + var(--hero-overlap)));
}
.site-hero .owl-carousel .site-hero-banner {
  display: block;
  padding: 0 0 var(--hero-overlap, 56px);
  background: var(--p-night);
}
.site-hero-banner picture { display: contents; }
.site-hero .owl-carousel .owl-item .site-hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top; /* any spare height goes below the banner, never between it and the menu */
}
@media (max-width: 767.98px) {
  .site-hero.has-banner { --hero-overlap: 36px; }
  .site-hero.has-banner .owl-carousel.home-slider,
  .site-hero.has-banner .owl-carousel.home-slider .slider-item {
    height: max(480px, calc(100vw * var(--banner-mh, 5) / var(--banner-mw, 4) + var(--hero-overlap)));
  }
}
.site-hero-shade,
.site-hero-content { transition: opacity .6s ease, visibility .6s ease; }
.site-hero.is-banner .site-hero-shade,
.site-hero.is-banner .site-hero-content { opacity: 0; visibility: hidden; }

/* Competition page: leaflet, Yoga chart and Group A drawing */
.site-downloads { max-width: 980px; margin: 30px auto 0; }
.site-downloads h2 { font-size: 26px; margin: 0 0 14px; }
.site-downloads-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.site-download {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--p-line); border-radius: 14px;
  padding: 14px 16px; color: inherit; text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.site-download:hover, .site-download:focus { border-color: currentColor; box-shadow: 0 4px 14px rgba(0,0,0,.08); text-decoration: none; color: inherit; }
.site-download-icon { font-size: 30px; line-height: 1; flex: none; }
.site-download-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.site-download-text strong { font-size: 16px; }
.site-download-text small { color: #6b7482; font-size: 13px; line-height: 1.35; }
.site-download-arrow { font-size: 18px; flex: none; opacity: .6; }
@media (max-width: 767px) { .site-downloads h2 { font-size: 22px; } }
/* Home page, first card: this year's downloads on top, then the competition results */
.site-feature-downloads { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .25); }
.site-feature-downloads > span { width: 100%; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .82); }
@media (max-width: 767.98px) { .site-feature-downloads { grid-column: 1 / -1; } }
.site-feature-links-row { flex-wrap: wrap; gap: 6px; }
.site-feature-links-row .btn { flex: 1 1 auto; white-space: nowrap; padding: 6px 8px; font-size: 12.5px; text-align: center; }
.site-feature-links-row .site-dl-icon { display: none; }
.site-feature-register { display: inline-block; justify-self: start; margin: 0 0 10px; padding: 5px 16px; font-size: 13.5px; font-weight: 700; }
@media (max-width: 767.98px) { .site-feature-register { margin: 4px 0 8px; } }
@media (max-width: 767.98px) {
  .site-feature > * { min-width: 0; }
  .site-feature-links-row { grid-column: 1 / -1; }
}
