/* ==========================================================================
   TILK International Study Consultancy Services — Stylesheet
   Palette:  crimson #C8102E · navy #0B1F3D · parchment #FAF7F2 · gold #E3A857
   Type:     Poppins (display) / Inter (body)
   ========================================================================== */

:root {
  --crimson: #c8102e;
  --crimson-dark: #970c22;
  --navy: #0b1f3d;
  --navy-light: #16305a;
  --parchment: #faf7f2;
  --ink: #1c1c1c;
  --ink-soft: #55606e;
  --gold: #e3a857;
  --white: #ffffff;
  --line: #e7e1d8;
  --shadow-soft: 0 18px 40px -22px rgba(11, 31, 61, 0.35);

  /* Mirrored in tailwind.config.js / the inline tailwind.config in each
     page's <head> as theme.fontFamily.display / .body — keep both in sync
     if you change these. Existing markup keeps using these CSS vars, but
     you can now also reach the same fonts with the `font-display` and
     `font-body` Tailwind utility classes on any element. */
  --font-display: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --container: 1280px;
  --page-pad: 10%; 
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 0.5em;
  line-height: 1.15;
}

.container {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 var(--page-pad); /* 5% left & right on every page */
}

.section {
  padding: 96px 0;
}

.section--tight {
  padding: 72px 0;
}

.section--parchment {
  background: var(--parchment);
}

.section--navy {
  background: var(--navy);
  color: #d7dee9;
}

.section--navy h2,
.section--navy h3 {
  color: var(--white);
}

.section-head {
  max-width: 620px;
  margin: 0 0 48px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.section--navy .section-head p {
  color: #aab6c9;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
}

/* --------------------------------------------------------------------- */
/* Buttons                                                                 */
/* --------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--crimson);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(200, 16, 46, 0.55);
}

.btn-primary:hover {
  background: var(--crimson-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.section--navy .btn-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* --------------------------------------------------------------------- */
/* Header                                                                  */
/* --------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 2%;
  padding-left: 5%;
  padding-right: 5%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand__logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.brand__name span {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.68rem;
  color: var(--crimson);
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--navy);
  position: relative;
  padding: 6px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--crimson);
  transition: width 0.2s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-login {
  padding: 11px 24px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
  color: var(--navy);
}

/* --------------------------------------------------------------------- */
/* Hero                                                                    */
/* --------------------------------------------------------------------- */

.hero {
  padding: 76px 0 60px;
  background:
    radial-gradient(60% 55% at 85% 15%, rgba(200, 16, 46, 0.06), transparent),
    var(--white);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--crimson);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.hero__eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--crimson);
}

.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 700;
}

.hero h1 em {
  font-style: normal;
  color: var(--crimson);
}

.hero p.lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 18px 0 32px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 42px;
}

.hero__stats {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}

.hero__stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
}

.hero__stats div span {
  font-size: 0.84rem;
  color: var(--ink-soft);
}

/* Passport-stamp visual */
.stamp-board {
  position: relative;
  height: 460px;
}

.stamp {
  position: absolute;
  width: 168px;
  padding: 18px 16px;
  background: var(--white);
  border: 2px dashed var(--navy);
  border-radius: 14px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.stamp .flag {
  font-size: 2rem;
}

.stamp .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
  margin-top: 4px;
}

.stamp .tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--crimson);
  margin-top: 4px;
}

.stamp--1 { top: 0;    left: 6%;   transform: rotate(-8deg); }
.stamp--2 { top: 14%;  left: 46%;  transform: rotate(6deg); z-index: 2; }
.stamp--3 { top: 40%;  left: 2%;   transform: rotate(4deg); }
.stamp--4 { top: 46%;  left: 52%;  transform: rotate(-5deg); }
.stamp--5 { top: 72%;  left: 20%;  transform: rotate(9deg); }
.stamp--6 { top: 66%;  left: 62%;  transform: rotate(-3deg); }

/* --------------------------------------------------------------------- */
/* Destinations                                                            */
/* --------------------------------------------------------------------- */

.destination-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.destination-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.destination-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: transparent;
}

.destination-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.destination-card__top h3 {
  margin: 0;
  font-size: 1.2rem;
}

.destination-card p.tagline {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0 0 16px;
}

.destination-card dl {
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 0.85rem;
}

.destination-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px dashed var(--line);
  padding-top: 8px;
}

.destination-card dt {
  color: var(--ink-soft);
}

.destination-card dd {
  margin: 0;
  font-weight: 600;
  color: var(--navy);
  text-align: right;
}

.skeleton {
  background: linear-gradient(90deg, #f1ede6 25%, #f8f5f0 37%, #f1ede6 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 16px;
  height: 220px;
}

@keyframes shimmer {
  0%   { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* --------------------------------------------------------------------- */
/* Services                                                                */
/* --------------------------------------------------------------------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  padding: 28px 24px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(200, 16, 46, 0.08);
  color: var(--crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}

/* --------------------------------------------------------------------- */
/* Admin panel navigation cards (admin_panel.html)                        */
/* --------------------------------------------------------------------- */

a.admin-panel-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

a.admin-panel-link:hover,
a.admin-panel-link:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: transparent;
}

a.admin-panel-link:focus-visible {
  outline: 2px solid var(--crimson);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------- */
/* Process timeline                                                        */
/* --------------------------------------------------------------------- */

.timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  counter-reset: step;
}

.timeline-step {
  position: relative;
  padding: 28px 16px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.timeline-step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--crimson);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.timeline-step h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.timeline-step p {
  font-size: 0.8rem;
  color: #aab6c9;
  margin: 0;
}

/* --------------------------------------------------------------------- */
/* Testimonials                                                            */
/* --------------------------------------------------------------------- */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--parchment);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--line);
}

.testimonial-card .stars {
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.testimonial-card p.quote {
  font-size: 0.94rem;
  color: var(--ink);
  margin: 0 0 18px;
}

.testimonial-card__who {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.avatar-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
}

.testimonial-card__who strong {
  display: block;
  font-size: 0.9rem;
  color: var(--navy);
}

.testimonial-card__who span {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------- */
/* Contact                                                                  */
/* --------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info__item {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}

.contact-info__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(200, 16, 46, 0.08);
  color: var(--crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info__icon svg {
  width: 20px;
  height: 20px;
}

.contact-info__item h4 {
  margin: 0 0 3px;
  font-size: 0.95rem;
}

.contact-info__item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  box-shadow: var(--shadow-soft);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: var(--parchment);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--crimson);
  background: var(--white);
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

.form-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  display: none;
}

.form-status.is-success {
  display: block;
  background: #e7f6ec;
  color: #1c6b3a;
  border: 1px solid #bfe6cb;
}

.form-status.is-error {
  display: block;
  background: #fdecec;
  color: #a5222f;
  border: 1px solid #f5c4c7;
}

/* --------------------------------------------------------------------- */
/* Footer                                                                   */
/* --------------------------------------------------------------------- */

.site-footer {
  background: var(--navy);
  color: #aab6c9;
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

.footer-brand strong {
  color: var(--white);
  font-family: var(--font-display);
  display: block;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.footer-col li {
  margin-bottom: 10px;
  font-size: 0.88rem;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.82rem;
}










.social-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, box-shadow .2s;
}

.social-row a.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-row a.whatsapp  { background: #25D366; }
.social-row a.twitter   { background: #1DA1F2; }
.social-row a.x         { background: #000; border-color: rgba(255, 255, 255, 0.35); }
.social-row a.wechat    { background: #07C160; }

.social-row a { color: #fff; }


.social-row a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.social-row a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.social-row svg {
  width: 17px;
  height: 17px;
}

/* Brand colors */



.social-row a.facebook  { background: #1877F2; }











.social-fab-group {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 10px;
}


.social-fab {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 8px 18px -8px rgba(11, 31, 61, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 
}


.social-fab svg {
  width: 22px;
  height: 22px;
}


.social-fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 24px -10px rgba(11, 31, 61, 0.55);
  filter: brightness(1.08);
}


.social-fab:active {
  transform: translateY(-1px) scale(1);
}


.social-fab--facebook { background: #1877f2; }
.social-fab--linkedin { background: #0a66c2; }
.social-fab--twitter  { background: #1da1f2; }


@media (max-width: 640px) {
  .social-fab-group { right: 12px; bottom: 12px; gap: 8px; }
  .social-fab { width: 42px; height: 42px; border-radius: 9px; }
  .social-fab svg { width: 20px; height: 20px; }
}

/* --------------------------------------------------------------------- */
/* Responsive                                                              */
/* --------------------------------------------------------------------- */

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .stamp-board { height: 360px; margin-top: 20px; }
  .destination-grid,
  .service-grid,
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav, .header-actions .btn-outline:not(.btn-login) { display: none; }
  .btn-login { padding: 8px 16px; font-size: 0.85rem; }
  .nav-toggle { display: inline-flex; }
  .site-header.is-open .main-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--line);
  }
  .destination-grid,
  .service-grid,
  .testimonial-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stamp-board { display: none; }
}

/* ==========================================================================
   Report page (report.html) — table, attended checkbox, pagination
   ========================================================================== */

.report-table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 860px;
}

.report-table thead th {
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--parchment);
  padding: 14px 16px;
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
}

.report-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  vertical-align: middle;
}

.report-table tbody tr:last-child td {
  border-bottom: none;
}

.report-table tbody tr:hover {
  background: rgba(11, 31, 61, 0.03);
}

/* Attended row highlight — light yellow, per the "tick = attended" rule.
   Uses !important on background so it always wins over the hover state above. */
.report-table tbody tr.is-attended {
  background: #fff7d6 !important;
}

.report-table tbody tr.is-attended td {
  color: var(--ink);
}

.attended-cell {
  white-space: nowrap;
}

.attended-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.attended-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--crimson);
  cursor: pointer;
}

.attended-checkbox:disabled {
  opacity: 0.5;
  cursor: wait;
}

/* Editable status field — white label, max 10 characters, saved on Commit */
.status-input {
  width: 100px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
}

.status-input:focus {
  outline: none;
  border-color: var(--crimson);
  box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.15);
}

.status-input:disabled {
  background: var(--white);
  color: var(--ink-soft);
  opacity: 0.7;
}

.status-input::placeholder {
  color: var(--ink-soft);
  opacity: 0.6;
}

/* Circular per-row Commit button — persists attended + status to MySQL */
.commit-cell {
  text-align: center;
  white-space: nowrap;
}

.commit-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--crimson);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  transition: background 0.15s ease, transform 0.1s ease;
}

.commit-btn:hover:not(:disabled) {
  background: #a30d25;
}

.commit-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.commit-btn:disabled {
  background: var(--ink-soft);
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.commit-btn.is-saved {
  background: #1c6b3a;
}

/* Loading / empty / error status banner above the table */
.grid-status {
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.grid-status--loading {
  background: #eef2f8;
  color: var(--navy);
}

.grid-status--empty {
  background: var(--parchment);
  color: var(--ink-soft);
  border: 1px dashed var(--line);
}

.grid-status--error {
  background: #fdecec;
  color: #a5222f;
  border: 1px solid #f5c4c7;
}

/* Floating toast used for a failed checkbox save (doesn't replace the table) */
.report-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: 320px;
  box-shadow: var(--shadow-soft);
  z-index: 200;
}

/* Pagination controls */
.report-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--crimson);
  color: var(--crimson);
}

.page-btn.is-active {
  background: var(--crimson);
  border-color: var(--crimson);
  color: var(--white);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.report-welcome {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-right: 4px;
}

/* ==========================================================================
   Flag icons (SVG images, not emoji — emoji flags don't render as
   pictures on Windows, so real flag icons are used everywhere instead)
   ========================================================================== */

.flag-icon {
  display: inline-block;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(11, 31, 61, 0.12);
  object-fit: cover;
  vertical-align: middle;
}

.flag-icon--stamp {
  width: 34px;
  height: 23px;
  margin: 0 auto;
}

.flag-icon--inline {
  width: 18px;
  height: 12px;
  margin-right: 2px;
}

.footer-col li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.flag--fallback {
  display: inline-block;
}





/* ==========================================================================
   Partner institutions page (country_wise_partnership_instituion.html)
   ========================================================================== */

.destination-flag-link { display: inline-flex; border-radius: 4px; transition: transform .2s ease, box-shadow .2s ease; }
.destination-flag-link:hover { transform: scale(1.12); box-shadow: 0 6px 14px -6px rgba(11,31,61,.5); }

.country-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #d7dee9;
  padding: 56px 0;
  border-bottom: 4px solid var(--gold);
}
.country-banner__inner { display: flex; align-items: center; gap: 28px; }
.country-banner__logo {
  width: 110px; height: 110px; object-fit: contain; flex-shrink: 0;
  background: var(--white); border-radius: 50%; padding: 10px;
  box-shadow: 0 0 0 4px rgba(227,168,87,.6);
}
.country-banner h1 { color: var(--white); margin: 0 0 8px; font-size: 2.2rem; }
.country-banner p { margin: 0; font-size: 1.08rem; color: #c3cee0; max-width: 640px; }

.back-link { display: inline-block; margin-bottom: 24px; color: var(--crimson); font-weight: 600; font-size: .92rem; }
.back-link:hover { color: var(--crimson-dark); }

.institution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.institution-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 2px 10px -6px rgba(11,31,61,.18);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.institution-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 34px -14px rgba(11,31,61,.32);
  border-color: rgba(227,168,87,.65);
}
.institution-card__head {
  position: relative; display: flex; align-items: flex-start; gap: 16px; padding: 24px 22px 20px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 120%);
}
.institution-card__head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px;
  background: linear-gradient(90deg, var(--gold), transparent 85%);
}
.institution-card__head h3 { margin: 0; font-size: 1.08rem; line-height: 1.3; color: var(--white); }
.institution-card__logo {
  width: 64px; height: 64px; object-fit: contain; border-radius: 50%; flex-shrink: 0;
  background: var(--white); padding: 6px; box-shadow: 0 4px 10px -4px rgba(0,0,0,.4);
}
.institution-card__logo--fallback {
  align-items: center; justify-content: center; display: flex;
  background: var(--gold); color: var(--navy); font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
}
.institution-type {
  display: inline-block; margin-top: 6px; font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--navy); background: var(--gold);
  border-radius: 999px; padding: 3px 10px;
}
.institution-card__body { padding: 20px 22px; flex: 1; font-size: .92rem; color: var(--ink-soft); }
.institution-card__body p { margin: 0 0 12px; line-height: 1.5; }
.institution-card__body p:last-child { margin-bottom: 0; }
.institution-card__body strong { color: var(--navy); font-weight: 600; }
.stream-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.stream-chip {
  background: rgba(227,168,87,.16); color: var(--navy); border: 1px solid rgba(227,168,87,.55);
  border-radius: 999px; padding: 4px 13px; font-size: .82rem; font-weight: 500;
}
.institution-card__foot { padding: 0 22px 22px; margin-top: auto; }
.institution-card__foot .btn { text-align: center; }
.institution-empty {
  grid-column: 1 / -1; text-align: center; padding: 48px 20px; background: var(--white);
  border: 1px dashed var(--line); border-radius: 16px; color: var(--ink-soft);
}

@media (max-width: 980px) { .institution-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .institution-grid { grid-template-columns: 1fr; }
  .country-banner__inner { flex-direction: column; text-align: center; }
  .country-banner h1 { font-size: 1.7rem; }
}

































