*{
margin:0;
padding:0;
box-sizing:border-box;
}

:root {
  --bg: #f6efe2;
  --surface: #fffaf2;
  --panel: #fcf5e8;
  --text: #16322c;
  --muted: #5e6a67;
  --accent: #b84435;
  --secondary: #2f6a4f;
  --border: #dfcaa7;
  --shadow: rgba(22,50,44,0.16);
}


html, body {
  overflow-x: hidden;
}

body{
  position: relative;
  min-height: 100vh;
  background: linear-gradient(180deg, #edf9f1 0%, #f7fbf8 100%);
  color:var(--text);
  font-family: 'Times New Roman', Times, serif !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 15%, rgba(29, 122, 93, 0.07), transparent 18%),
    radial-gradient(circle at 85% 12%, rgba(56, 166, 120, 0.06), transparent 18%),
    radial-gradient(circle at 75% 75%, rgba(20, 56, 79, 0.03), transparent 22%),
    linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 40%, rgba(29,122,93,0.04) 100%);
}

body > * {
  position: relative;
  z-index: 1;
}

main {
  width:100%;
  max-width:1240px;
  margin:0 auto;
}

header{
  position: sticky;
  top: 0;
  z-index: 1000;
  height:90px;
  background: linear-gradient(180deg, rgba(220, 239, 227, 0.98) 0%, rgba(255,255,255,0.97) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(17, 47, 67, 0.08);
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 8%;
  color:var(--text);
  box-shadow: 0 12px 28px rgba(17, 33, 44, 0.06);
  gap:20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, height 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #a7372d 0%, #d3493d 48%, #a7372d 100%);
  box-shadow: 0 0 14px rgba(167, 55, 45, 0.2);
}

header.header-shrink {
  height: 72px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(17, 47, 67, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 18px rgba(17, 33, 44, 0.04);
}

header.header-shrink .nav-link,
header.header-shrink .logo,
header.header-shrink .logo span,
header.header-shrink .nav-link:hover,
header.header-shrink .nav-link:focus-visible {
  color: #1A3A52;
  text-shadow: none;
  opacity: 1;
}

header.header-shrink .logo img {
  height: 56px;
}

header.header-shrink .logo-text span {
  font-size: 11px;
}

.menu-toggle {
  display:none;
  flex-direction:column;
  gap:5px;
  background:transparent;
  border:none;
  padding:0;
  cursor:pointer;
}

.menu-toggle span {
  display:block;
  width:28px;
  height:3px;
  background:#1A3A52;
  border-radius:2px;
  transition:all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform:rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity:0;
}

.menu-toggle.active span:nth-child(3) {
  transform:rotate(-45deg) translate(5px, -5px);
}

.main-nav {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:0 8px;
  font-family: "Segoe UI", Arial, sans-serif;
}

.main-nav > .nav-dropdown {
  position:relative;
}

.nav-link {
  background: rgba(255,255,255,0.45) !important;
  border: 1px solid rgba(19, 61, 80, 0.06);
  padding: 11px 14px;
  margin:8px 6px;
  color:#1c3d52;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.94rem;
  font-weight:700;
  cursor:pointer;
  display:block;
  text-decoration:none;
  box-shadow: 0 2px 8px rgba(17, 33, 44, 0.02);
  border-radius: 12px;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.main-nav > .nav-dropdown:first-of-type > .nav-link,
.main-nav > .nav-dropdown:first-of-type > .nav-link:hover,
.main-nav > .nav-dropdown:first-of-type > .nav-link:focus-visible {
  background: transparent !important;
  border-color: transparent;
  box-shadow: none;
}

.nav-link.admission-highlight {
  border: 1px solid rgba(25, 111, 77, 0.22);
  box-shadow: 0 0 0 1px rgba(25, 111, 77, 0.1), 0 8px 18px rgba(25, 111, 77, 0.08);
  background: linear-gradient(180deg, rgba(32, 140, 97, 0.1) 0%, rgba(16, 96, 72, 0.04) 100%) !important;
  color: #143f36;
  padding: 10px 15px;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: linear-gradient(180deg, rgba(22, 125, 88, 0.10) 0%, rgba(22, 125, 88, 0.04) 100%) !important;
  color: #176d4a;
  border-color: rgba(22, 125, 88, 0.16);
  box-shadow: 0 6px 18px rgba(22, 125, 88, 0.08);
}

.nav-link:hover,
.nav-link:focus-visible,
.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  color:var(--accent);
  background:none !important;
}

.nav-dropdown .dropdown-menu {
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  min-width:290px;
  background:rgba(255,255,255,0.85);
  border:1px solid rgba(232,217,179,0.8);
  border-radius:14px;
  box-shadow:0 16px 32px rgba(26,58,82,0.16);
  padding:12px 0;
  display:flex;
  flex-direction:column;
  z-index:20;
  opacity:0;
  pointer-events:none;
  transform:translateY(10px);
  transition:all 0.25s ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  opacity:1;
  pointer-events:auto;
  transform:translateY(0);
}

.nav-submenu {
  position:relative;
}

.nav-submenu-toggle {
  width:100%;
  background:transparent !important;
  border:none;
  color:#1A3A52;
  font:inherit;
  padding:12px 18px;
  text-align:left;
  font-weight:700;
  cursor:pointer;
  border-radius:0;
}

.nav-submenu-toggle:hover,
.nav-submenu-toggle:focus-visible {
  color:var(--accent);
  background:transparent !important;
}

.submenu-panel {
  position:absolute;
  left:calc(100% + 10px);
  top:-8px;
  min-width:260px;
  background:rgba(255,255,255,0.9);
  border:1px solid rgba(232,217,179,0.8);
  border-radius:14px;
  box-shadow:0 16px 32px rgba(26,58,82,0.16);
  display:flex;
  flex-direction:column;
  padding:12px 0;
  opacity:0;
  pointer-events:none;
  transform:translateX(8px);
  transition:all 0.25s ease;
  z-index:30;
}

.nav-submenu:hover .submenu-panel,
.nav-submenu:focus-within .submenu-panel,
.nav-submenu.open .submenu-panel {
  opacity:1;
  pointer-events:auto;
  transform:translateX(0);
}

.dropdown-menu a,
.submenu-panel a {
  margin:0;
  padding:12px 18px;
  color:#1A3A52;
  white-space:nowrap;
  font-weight:600;
  border-left:3px solid transparent;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  background:rgba(216,120,86,0.08);
  border-left-color:#D87856;
  color:#D87856;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  padding: 8px 0;
}

.logo img {
  height: 64px;
  width: 64px;
  object-fit: contain;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 4px 8px rgba(18, 61, 89, 0.08));
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.logo h1 {
  font-size: clamp(1.8rem, 1.8vw, 2.3rem);
  letter-spacing: -0.05em;
  color: #123d59;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

.logo span{
  font-size: 12px;
  color: #355b73;
  letter-spacing: 0.03em;
  font-weight: 700;
}

nav a{
  color:#1c3d52;
  text-decoration:none;
  margin:12px;
  display:block;
  font-weight:600;
}

nav a:hover{
  color:#176d4a;
}

.top-right-action {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-bottom: 12px;
}

.back-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-left: auto;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(47,93,66,0.12);
  color: var(--secondary);
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(47,93,66,0.16);
  transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.back-button:hover,
.back-button:focus-visible {
  background: rgba(47,93,66,0.18);
  color: var(--accent);
  transform: translateX(-1px);
}

.candidate-page {
  min-height: calc(100vh - 90px);
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:42px 20px 70px;
  background: linear-gradient(180deg, #f7f7f5 0%, #f3f3f1 100%);
}

.candidate-section {
  width: min(100%, 1100px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.candidate-status-section {
  width: min(100%, 1120px);
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.candidate-status-head {
  margin-bottom: 6px;
}

.candidate-status-head h2 {
  color: #1d1d1d;
  margin: 0 0 10px;
  font-size: clamp(2.2rem, 2.7vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.candidate-status-head p {
  margin: 0;
  color: #2c2c2c;
  font-size: 1.1rem;
  font-weight: 500;
}

.progress-steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  width: min(100%, 840px);
  margin: 10px 0 18px;
  flex-wrap: nowrap;
}

.step {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding-top: 8px;
  color: #4d4d4d;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 22px;
  width: calc(100% - 18px);
  height: 3px;
  background: #d9d9d9;
}

.step.is-complete:not(:last-child)::after,
.step.is-active:not(:last-child)::after {
  background: #1fa85a;
}

.step.is-active:not(:last-child)::after {
  background: #1b87d8;
}

.step-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 700;
  background: #fff;
  color: #7a7a7a;
  border: 3px solid #dfe3e1;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 1;
}

.step.is-complete .step-icon {
  background: #1fa85a;
  border-color: #1fa85a;
  color: #fff;
}

.step.is-active .step-icon {
  background: #1b87d8;
  border-color: #1b87d8;
  color: #fff;
}

.step-label {
  font-size: clamp(0.72rem, 0.95vw, 1.05rem);
  line-height: 1.3;
  color: #2b2b2b;
  font-weight: 500;
  white-space: nowrap;
}

.info-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(20, 120, 93, 0.06);
  border: 1px solid rgba(20, 120, 93, 0.12);
  border-radius: 14px;
  padding: 16px 18px;
  color: #1d3c57;
  font-size: 1rem;
  font-weight: 500;
  width: 100%;
  line-height: 1.6;
}

.info-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1f7a5d;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

#status-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 18px 0 0;
  margin-top: 8px;
}

#status-card h3 {
  color: #1a1a1a;
  font-size: clamp(1.9rem, 2.4vw, 2.5rem);
  margin: 0 0 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(30, 42, 38, 0.12);
}

.info-label {
  font-size: 1.08rem;
  color: #2d2d2d;
  font-weight: 500;
}

.info-value {
  font-size: 1.08rem;
  color: #1b1b1b;
  font-weight: 500;
  text-align: right;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 10px 20px;
  border-radius: 10px;
  background: #e8f6ee;
  color: #1e6f45;
  border: 1px solid rgba(30, 111, 69, 0.2);
  font-weight: 700;
}

.receipt-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px solid rgba(30,42,38,0.2);
  border-radius: 12px;
  background: rgba(255,255,255,0.35);
  color: #212121;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 600;
}

.receipt-button:hover,
.receipt-button:focus-visible {
  background: rgba(255,255,255,0.65);
}

@media (max-width: 760px) {
  .candidate-page {
    padding: 28px 16px 46px;
  }

  .progress-steps {
    width: 100%;
    gap: 6px;
  }

  .step-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    font-size: 1rem;
  }

  .step-label {
    font-size: 0.68rem;
    letter-spacing: -0.02em;
  }

  .step:not(:last-child)::after {
    width: calc(100% - 10px);
    right: -4px;
  }

  .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .info-value {
    text-align: left;
  }
}

.candidate-header-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(18, 43, 76, 0.08), rgba(47, 106, 79, 0.08));
  border: 1px solid rgba(18, 43, 76, 0.08);
}

.candidate-header-brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255,255,255,0.8);
  padding: 8px;
}

.candidate-header-brand h2 {
  margin: 0 0 6px;
  font-size: clamp(1.8rem, 2vw, 2.4rem);
  color: #1a3a52;
}

.candidate-header-brand p {
  margin: 0;
  color: #3a4e5f;
  line-height: 1.7;
}

.faculty-detail-page {
  width: min(1360px, calc(100% - 24px));
  margin: 0 auto;
  padding: 28px 0 0;
}

.faculty-detail-page > section,
.faculty-detail-page > article,
.faculty-detail-page > aside,
.faculty-detail-page > .faculty-hero,
.faculty-detail-page > .faculty-content-grid,
.faculty-detail-page > .faculty-programs,
.faculty-detail-page > .faculty-details-row {
  margin-bottom: 0;
}

.faculty-hero {
  display: grid;
  grid-template-columns: 1.14fr 0.86fr;
  gap: 28px;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f7faf8 50%, #edf5f1 100%);
  border: 1px solid rgba(17, 47, 67, 0.08);
  border-radius: 30px;
  padding: 30px;
  box-shadow: 0 18px 36px rgba(17, 33, 44, 0.05);
}

.faculty-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.faculty-eyebrow,
.panel-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(20, 120, 93, 0.08);
  border: 1px solid rgba(20, 120, 93, 0.12);
  color: #146d53;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.faculty-hero-copy h1 {
  margin: 0;
  color: #122f45;
  font-size: clamp(1.9rem, 2.25vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.faculty-hero-copy p {
  margin: 0;
  max-width: 620px;
  color: #4d5d6b;
  font-size: 1.02rem;
  line-height: 1.8;
}

.faculty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #1c6d4f 0%, #0f4d38 100%);
  color: #fff;
  border: 1px solid rgba(11, 52, 39, 0.35);
  box-shadow: 0 12px 24px rgba(15, 77, 56, 0.22);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.75);
  color: #173d57;
  border: 1px solid rgba(30, 122, 93, 0.22);
  box-shadow: 0 10px 18px rgba(20, 81, 60, 0.08);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
}

.faculty-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 14px;
  margin-top: 6px;
}

.faculty-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(17, 47, 67, 0.08);
  border-radius: 16px;
}

.faculty-meta-item strong {
  font-size: 1.2rem;
  color: #123d59;
}

.faculty-meta-item span {
  color: #596d7d;
  font-size: 0.8rem;
}

.faculty-hero-visual {
  position: relative;
  min-height: 430px;
}

.faculty-hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(17, 33, 44, 0.12);
  border: 1px solid rgba(18, 61, 89, 0.08);
}

.faculty-badge-card {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 240px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(17, 47, 67, 0.08);
  border-radius: 18px;
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 30px rgba(17, 33, 44, 0.08);
}

.faculty-badge-title {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(31, 122, 81, 0.11);
  color: #176a53;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.faculty-badge-card strong {
  font-size: 1.02rem;
  color: #173d57;
  line-height: 1.3;
}

.faculty-badge-card small {
  color: #607184;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.faculty-content-grid,
.faculty-details-row {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 2px;
  margin-top: 2px;
}

.faculty-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(17, 47, 67, 0.06);
  border-radius: 18px;
  padding: 10px 14px;
  min-height: 240px;
  box-shadow: 0 8px 18px rgba(17, 33, 44, 0.02);
}

.faculty-panel-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  width: 100%;
  min-width: 0;
  padding: 12px 16px 14px;
}

.panel-heading {
  margin-bottom: 0;
}

.panel-heading.center {
  text-align: center;
}

.panel-heading.compact h2 {
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.panel-heading h2 {
  margin: 4px 0 0;
  color: #183a51;
  font-size: clamp(1.8rem, 2vw, 2.4rem);
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
  width: 100%;
}

.feature-card {
  background: rgba(248, 250, 249, 0.9);
  border: 1px solid rgba(17, 47, 67, 0.05);
  border-radius: 12px;
  padding: 12px 10px;
  box-shadow: none;
  min-height: 170px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  margin-bottom: 12px;
  background: rgba(20, 120, 93, 0.06);
  color: #166b52;
  font-size: 1rem;
}

.feature-card h3 {
  margin: 0 0 8px;
  color: #183a51;
  font-size: 1.08rem;
}

.feature-card p {
  margin: 0;
  color: #586d7d;
  font-size: 0.9rem;
  line-height: 1.7;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 2px 0 0;
  display: grid;
  gap: 5px;
  width: 100%;
}

.check-list li {
  position: relative;
  padding-left: 18px;
  color: #42576a;
  font-size: 0.84rem;
  line-height: 1.18;
}

.check-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: transparent;
  color: #176b52;
  font-size: 1rem;
  font-weight: 700;
}

.faculty-programs {
  margin-top: 0;
  background: linear-gradient(180deg, rgba(247,250,249,0.9) 0%, rgba(255,255,255,0.98) 100%);
  border: 1px solid rgba(17, 47, 67, 0.06);
  border-radius: 18px;
  padding: 10px 10px 12px;
  box-shadow: none;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.program-card {
  padding: 22px 18px 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f6faf8 100%);
  border: 1px solid rgba(17, 47, 67, 0.08);
  text-align: center;
  box-shadow: 0 12px 18px rgba(17, 33, 44, 0.03);
}

.program-card h3 {
  margin: 0 0 8px;
  color: #163a51;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
}

.program-card p {
  margin: 0;
  color: #52677b;
  font-size: 0.82rem;
  line-height: 1.6;
}

.program-card.special {
  background: linear-gradient(135deg, rgba(20, 120, 93, 0.08), rgba(17, 47, 67, 0.03));
}

.detail-list {
  display: grid;
  gap: 14px;
}

.detail-list div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(245,250,247,0.9);
  border: 1px solid rgba(17, 47, 67, 0.06);
}

.detail-list strong {
  color: #163a51;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-list span {
  color: #4d5c6d;
  font-size: 1rem;
  line-height: 1.7;
}

.muted-list li {
  color: #4d5c6d;
}

@media (max-width: 900px) {
  .faculty-hero,
  .faculty-content-grid,
  .faculty-details-row {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .program-grid {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    overflow-x: auto;
  }
}

@media (max-width: 560px) {
  .faculty-detail-page {
    width: min(100%, calc(100% - 20px));
    padding-top: 22px;
  }

  .faculty-hero {
    padding: 18px 16px;
  }

  .faculty-meta {
    grid-template-columns: 1fr;
  }

  .faculty-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .faculty-hero-visual,
  .faculty-hero-visual img {
    min-height: 300px;
  }

  .program-grid {
    grid-template-columns: repeat(5, minmax(118px, 1fr));
    overflow-x: auto;
    scrollbar-width: thin;
  }
}

.candidate-form-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: -8px 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(18,43,76,0.08), rgba(47,106,79,0.08));
  border: 1px solid rgba(18,43,76,0.07);
}

.candidate-form-header img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255,255,255,0.9);
  padding: 8px;
}

.candidate-form-header h3 {
  margin: 0 0 4px;
  font-size: 1.7rem;
  color: #1a3a52;
}

.candidate-form-header p {
  margin: 0;
  color: #3a4e5f;
  line-height: 1.6;
}

.login-card {
  max-width: 500px;
  padding: 16px 20px 20px;
  border-radius: 18px;
}

.login-brand-box {
  margin-bottom: 10px;
  padding: 14px 16px;
  gap: 14px;
}

.login-brand-box img {
  width: 58px;
  height: 58px;
}

.login-brand-box h2 {
  margin: 0 0 4px;
  font-size: clamp(1.7rem, 2vw, 2.1rem);
}

.login-brand-box p {
  font-size: 0.96rem;
  line-height: 1.5;
}

.login-form-panel {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(18,43,76,0.08);
  box-shadow: 0 18px 38px rgba(27, 88, 63, 0.12);
  padding: 18px 18px 20px;
  gap: 12px;
}

.login-form-panel label {
  font-size: 0.95rem;
}

.login-form-panel input {
  padding: 11px 14px;
  font-size: 0.96rem;
}

.login-form-panel button {
  padding: 12px 18px;
  font-size: 0.98rem;
}

.login-links {
  display: grid;
  gap: 8px;
  text-align: center;
  margin-top: 8px;
  font-size: 0.95rem;
}

.login-links p {
  margin: 0;
}

.login,button{
display:inline-block;
background: linear-gradient(135deg, var(--secondary), #3d7b5d);
padding:12px 22px;
border-radius:999px;
color:white;
font-weight:700;
transition:transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease, color 0.2s ease;
box-shadow:0 10px 24px rgba(47,106,79,0.22);
}

.main-nav a.login,
.main-nav a.login:visited {
  background: rgba(167, 55, 45, 0.06);
  color: #a7372d;
  border: 1px solid rgba(167, 55, 45, 0.4);
  border-radius: 999px;
  padding: 9px 15px;
  box-shadow: none;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.main-nav a.login:hover,
.main-nav a.login:focus,
.main-nav a.login:active {
  background: rgba(167, 55, 45, 0.08);
  color: #1f7a57;
  border-color: rgba(31, 122, 87, 0.7);
  text-decoration: none;
  box-shadow: none;
}

.login:hover,button:hover{
background: linear-gradient(135deg, #28553f, #3d7b5d);
transform: translateY(-2px);
box-shadow:0 14px 28px rgba(47,106,79,0.28);
}

.hero{
background:none;
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
text-align:center;
color:white;
gap:0;
padding:0;
margin-top:0;
}

.hero-copy {
  max-width:720px;
}

.hero h2{
font-size:45px;
max-width:800px;
}

.hero-slider {
  width:100vw;
  max-width:none;
  overflow:hidden;
  border-radius:0;
  box-shadow:0 16px 35px rgba(0,0,0,0.25);
  margin-left:0;
  margin-right:0;
  margin-top:0;
  position:relative;
}

.hero-arrow {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:auto;
  height:auto;
  border:none;
  border-radius:0;
  background:transparent;
  color:#fff;
  font-size:26px;
  line-height:1;
  cursor:pointer;
  box-shadow:none;
  backdrop-filter:none;
  z-index:2;
  padding:0;
  transition:transform 0.2s ease, opacity 0.2s ease;
}

.hero-arrow:hover,
.hero-arrow:focus-visible {
  background:transparent;
  border:none;
  color:#fff;
  opacity:0.9;
  transform:translateY(-50%) scale(1.08);
}

.hero-arrow-prev {
  left:20px;
}

.hero-arrow-next {
  right:20px;
}

.hero-dots {
  position:absolute;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  z-index:2;
}

.admission-closed-banner {
  width:min(1220px, calc(100% - 32px));
  margin:28px auto 0;
  padding:0;
}

.admission-closed-inner {
  background:linear-gradient(135deg, rgba(168, 36, 27, 0.12), rgba(255, 255, 255, 0.92));
  border:1px solid rgba(168, 36, 27, 0.25);
  border-left:6px solid #b84836;
  border-radius:18px;
  box-shadow:0 14px 28px rgba(23, 31, 36, 0.07);
  padding:22px 24px;
  color:#2b2b2b;
}

.admission-closed-kicker {
  margin:0 0 8px;
  font-size:0.8rem;
  font-weight:800;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:#9a2d26;
}

.admission-closed-inner h2 {
  margin:0 0 12px;
  font-size:clamp(1.3rem, 2vw, 2rem);
  line-height:1.5;
  color:#1d322d;
}

.admission-closed-date {
  margin:0 0 8px;
  font-size:1rem;
  font-weight:700;
  color:#1d322d;
}

.admission-closed-inner p:last-child {
  margin:0;
  font-size:1rem;
  line-height:1.6;
  color:#2f3b3a;
}

.hero-dot {
  width:12px;
  height:12px;
  border-radius:50%;
  border:none;
  background:rgba(255,255,255,0.6);
  box-shadow:0 3px 10px rgba(0,0,0,0.2);
  cursor:pointer;
  transition:all 0.2s ease;
  padding:0;
  margin:0;
}

.hero-dot.active {
  width:26px;
  border-radius:999px;
  background:#fff;
}

.hero-track {
  display:flex;
  width:100%;
  transition:transform 0.7s ease;
  will-change:transform;
}

.hero-slide {
  position:relative;
  flex:0 0 100%;
  width:100%;
  min-width:100%;
}

.hero-slide img {
  display:block;
  width:100%;
  height: clamp(380px, 45vw, 560px);
  object-fit:cover;
  filter:saturate(0.9) contrast(1.05);
}

.hero-slide:nth-child(2) img {
  object-position: center 17%;
  transform: none;
}

.hero-overlay {
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:54px 8% 70px;
  background:linear-gradient(90deg, rgba(13, 13, 13, 0.55), rgba(13, 13, 13, 0.22) 45%, rgba(13, 13, 13, 0.1) 100%);
}

.hero-overlay-right {
  justify-content:flex-end;
  align-items:flex-end;
  text-align:right;
  padding: 42px 5% 60px;
  background: linear-gradient(90deg, rgba(10, 12, 17, 0.25), rgba(10, 12, 17, 0.2) 35%, rgba(10, 12, 17, 0.55) 100%);
}

.hero-kicker {
  margin:0 0 18px;
  color:#f36d62;
  font-size:clamp(3.2rem, 6vw, 6.4rem);
  font-weight:900;
  line-height:0.95;
  letter-spacing:0.01em;
  text-shadow:0 10px 26px rgba(0,0,0,0.35);
}

.hero-kicker-small {
  margin:0 0 8px;
  font-size: clamp(1.4rem, 2vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: #f8d29a;
  text-shadow: 0 0 0 rgba(0,0,0,1), 0 0 18px rgba(222, 71, 51, 0.75), 2px 2px 10px rgba(0,0,0,0.8);
}

.hero-overlay-text {
  margin:0;
  max-width:1120px;
  color:#f5f0ea;
  font-size:clamp(1.35rem, 2.2vw, 2.8rem);
  line-height:1.28;
  text-shadow:0 4px 16px rgba(0,0,0,0.35);
  font-weight:500;
}

.hero-overlay-text-right {
  max-width: 640px;
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  line-height: 1.4;
  color: #f5f0ea;
  font-weight: 600;
  text-shadow: 0 0 0 rgba(0,0,0,1), 0 0 12px rgba(206, 62, 46, 0.6), 2px 2px 10px rgba(0,0,0,0.8);
}

.hero-slider {
  position:relative;
  overflow:hidden;
}


.hero-button {
  position:absolute;
  left:50%;
  bottom:24px;
  transform:translateX(-50%);
  background:var(--secondary);
  color:white;
  border:none;
  padding:14px 28px;
  border-radius:999px;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 12px 24px rgba(0,0,0,0.2);
  transition:background 0.3s ease, transform 0.3s ease;
}

.hero-button:hover {
  background:#244a35;
  transform:translateX(-50%) translateY(-2px);
}

button{
border:none;
margin-top:25px;
cursor:pointer;
}

section{
padding:80px 10%;
text-align:center;
}

section h2, section h1 {
  color: #1A3A52;
  margin-bottom: 20px;
}

.gallery-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(234, 243, 255, 0.95) 100%);
  padding-top: 42px;
  padding-bottom: 42px;
}

.home-gallery.gallery-section {
  background: linear-gradient(180deg, rgba(255,250,242,0.9) 0%, rgba(239, 244, 236, 0.95) 100%);
  border-top: 1px solid rgba(26, 58, 82, 0.08);
  border-bottom: 1px solid rgba(26, 58, 82, 0.08);
  padding-top: 42px;
  padding-bottom: 34px;
}

.section-heading-gallery {
  max-width: 920px;
  margin: 0 auto 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.section-heading-gallery h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2.2vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #132b3a;
  font-weight: 700;
  font-family: "Georgia", "Times New Roman", serif;
  text-align: center;
  width: 100%;
  position: relative;
}

.section-heading-gallery h2::before,
.section-heading-gallery h2::after,
.section-heading-gallery::before,
.section-heading-gallery::after {
  display: none !important;
}

.gallery-subtitle {
  max-width: 760px;
  margin: 12px auto 0;
  color: #5a6c7f;
  font-size: 0.93rem;
  line-height: 1.7;
  font-weight: 400;
  text-align: center;
  letter-spacing: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  width: 100%;
  position: relative;
}

.gallery-subtitle::before,
.gallery-subtitle::after {
  display: none;
}

.home-gallery .section-heading-gallery,
.home-gallery .section-heading-gallery h2,
.home-gallery .gallery-subtitle {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  margin: 0 auto 24px;
  padding: 4px 4px 10px;
  scrollbar-width: thin;
}

.gallery-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  border: 1px solid rgba(23, 62, 108, 0.18);
  background: rgba(255,255,255,0.6);
  color: #1d3a62;
  border-radius: 12px;
  padding: 9px 13px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(28, 54, 82, 0.08);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.gallery-filter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 7px;
  background: rgba(31, 77, 190, 0.08);
  color: #1f4dbe;
  font-size: 0.7rem;
}

.gallery-filter.is-active {
  background: linear-gradient(180deg, #1f4dbe 0%, #1b3d8d 100%);
  border-color: #1f4dbe;
  color: #fff;
  box-shadow: 0 12px 22px rgba(34, 72, 146, 0.22);
}

.gallery-filter.is-active .gallery-filter-icon {
  background: rgba(255,255,255,0.16);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 4px 16px;
}

.home-gallery .gallery-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 4px 8px;
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  scroll-snap-type: x proximity;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(36, 74, 53, 0.1);
  box-shadow: 0 8px 18px rgba(36, 74, 53, 0.08);
  background: #fff;
  cursor: pointer;
  width: 100%;
  min-height: 150px;
  height: 150px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-gallery .gallery-item {
  flex: 0 0 150px;
  width: 150px;
  min-width: 150px;
  height: 150px;
  min-height: 150px;
  border: 1px solid rgba(26, 58, 82, 0.1);
  box-shadow: 0 8px 18px rgba(26, 58, 82, 0.08);
  scroll-snap-align: start;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .gallery-filters {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
  }
}

@media (max-width: 540px) {
  .gallery-section {
    padding-top: 24px;
    padding-bottom: 28px;
  }

  .section-heading-gallery {
    padding: 0 16px;
  }

  .gallery-subtitle {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    padding-left: 1px;
    padding-right: 1px;
  }

  .gallery-item {
    min-height: 102px;
    height: 102px;
    border: 1px solid rgba(18, 56, 69, 0.26);
    box-shadow: none;
  }

  .gallery-item figcaption {
    font-size: 5px;
    padding: 2px 3px;
    left: 2px;
    bottom: 2px;
  }

  .gallery-back-bar {
    padding: 0 12px;
  }
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(36, 74, 53, 0.18);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  visibility: visible;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 20, 18, 0.05), rgba(10, 20, 18, 0.5));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-item .gallery-view {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(12, 26, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
  backdrop-filter: blur(4px);
}

.gallery-item .gallery-view i {
  font-size: 0.9rem;
}

.gallery-item:hover::after,
.gallery-item:hover .gallery-view,
.gallery-item:focus-within .gallery-view {
  opacity: 1;
}

.gallery-item:hover .gallery-view {
  transform: translateY(0);
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: saturate(1.08);
}

.gallery-item figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 1;
  background: rgba(26, 58, 82, 0.72);
  color: #fff;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.gallery-back-bar {
  max-width: 1180px;
  margin: 24px auto 0;
  display: flex;
  justify-content: flex-end;
  padding: 0 20px;
}

.gallery-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #1A3A52 0%, #0f2940 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(26, 58, 82, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(26, 58, 82, 0.2);
}

.gallery-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.gallery-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(30, 122, 81, 0.10);
  color: #b84435;
  border-radius: 14px;
  padding: 16px 28px;
  font-size: 1.08rem;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(30, 122, 81, 0.20), 0 8px 20px rgba(30, 122, 81, 0.08);
  border: 1px solid rgba(30, 122, 81, 0.20);
  cursor: pointer;
  backdrop-filter: blur(2px);
}

.gallery-cta:hover {
  background: rgba(30, 122, 81, 0.16);
  transform: translateY(-1px);
}

.gallery-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(30, 122, 81, 0.08);
  color: #b84435;
  font-size: 1rem;
}


.ai-assistant {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.ai-assistant-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  padding: 0;
  border: 1px solid rgba(30, 122, 81, 0.22);
  border-radius: 50%;
  background: rgba(32, 128, 88, 0.12);
  color: #1a3a52;
  box-shadow: 0 12px 26px rgba(17, 33, 44, 0.10);
  cursor: pointer;
  backdrop-filter: blur(2px);
  position: relative;
}

.ai-assistant-toggle::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 10px;
  height: 10px;
  background: #2ecf77;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(46, 207, 119, 0.45);
  animation: assistant-pulse 1.8s infinite ease-out;
}

@keyframes assistant-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 207, 119, 0.45);
    transform: scale(1);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(46, 207, 119, 0);
    transform: scale(1.04);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 207, 119, 0);
    transform: scale(1);
  }
}

.ai-assistant-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(30, 122, 81, 0.08);
  overflow: hidden;
  border: 1px solid rgba(30, 122, 81, 0.14);
}

.ai-assistant-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-assistant-panel {
  width: min(390px, calc(100vw - 28px));
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(18,82,58,0.12);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(18, 82, 58, 0.12);
  overflow: hidden;
}

.ai-assistant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: linear-gradient(135deg, #143a4b 0%, #1f5674 100%);
  color: #fff;
}

.ai-assistant-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ai-assistant-title-wrap strong {
  display: block;
  font-size: 0.92rem;
}

.ai-assistant-title-wrap small {
  display: block;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.8);
}

.ai-assistant-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #44d37d;
  box-shadow: 0 0 0 5px rgba(68, 211, 125, 0.18);
}

.ai-assistant-close {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.ai-assistant-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 290px;
  overflow-y: auto;
  padding: 14px 14px 10px;
  background: rgba(246,250,247,0.8);
}

.ai-message {
  max-width: 90%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.55;
}

.ai-message-bot {
  align-self: flex-start;
  background: #edf5f0;
  color: #1f3b3a;
  border-top-left-radius: 4px;
}

.ai-message-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #1f7a51 0%, #1f5d43 100%);
  color: #fff;
  border-top-right-radius: 4px;
}

.ai-message-typing {
  align-self: flex-start;
  background: #edf5f0;
  color: #1f3b3a;
  border-top-left-radius: 4px;
}

.ai-assistant-quick-questions {
  display: none !important;
}

.ai-quick-question {
  display: none !important;
}

.ai-assistant-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 14px;
  background: rgba(255,255,255,0.96);
  border-top: 1px solid rgba(18,82,58,0.08);
}

.ai-assistant-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(18,82,58,0.12);
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.82rem;
  color: #1a3a52;
}

.ai-assistant-form button {
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f7a51 0%, #174d3b 100%);
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .ai-assistant {
    right: 14px;
    bottom: 14px;
  }

  .ai-assistant-toggle {
    padding: 10px 14px;
    font-size: 0.8rem;
  }

  .ai-assistant-panel {
    width: min(350px, calc(100vw - 20px));
  }
}

.gallery-modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 2000;
}

.gallery-modal.open {
  display: grid;
}

.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 16, 0.78);
}

.gallery-modal-content {
  position: relative;
  z-index: 1;
  width: min(88vw, 900px);
  background: rgba(255,255,255,0.96);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.28);
}

.gallery-modal-image {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: cover;
  border-radius: 14px;
}

.gallery-modal-caption {
  margin-top: 12px;
  text-align: center;
  color: #1A3A52;
  font-weight: 700;
}

.gallery-modal-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1A3A52;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.article-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(26, 58, 82, 0.9);
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.article-gallery-prev {
  left: 18px;
}

.article-gallery-next {
  right: 18px;
}

#actualites h1 {
  color: #244a35;
}

@media (max-width: 900px) {
  .gallery-item {
    flex-basis: 180px;
    width: 180px;
    min-width: 180px;
    height: 142px;
  }

  .master-grid.four-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .gallery-item {
    flex-basis: 160px;
    width: 160px;
    min-width: 160px;
    height: 128px;
  }

  .master-grid.four-up {
    grid-template-columns: 1fr;
  }
}

section#universite, section#facultes, section#master, section#actualites {
  background: linear-gradient(135deg, #f8fafb 0%, #efe0bf 100%);
  border-radius: 24px;
  margin: 16px 0;
  box-shadow: 0 16px 36px rgba(22,50,44,0.08);
}

section#universite {
  background: #ffffff;
  border: 1px solid rgba(22, 54, 77, 0.08);
  box-shadow: 0 10px 28px rgba(17, 33, 44, 0.04);
  padding: 28px 30px 26px;
  border-radius: 0;
}

.faculty-section {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(26, 58, 82, 0.08);
  box-shadow: 0 18px 40px rgba(17, 33, 44, 0.06);
  padding: 36px 32px 30px;
}

.faculty-header {
  margin-bottom: 20px;
  text-align: center;
}

.faculty-header h2 {
  margin: 0;
  font-size: clamp(1.5rem, 1.8vw, 2.1rem);
  color: #1a3a52;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.faculty-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0 28px;
}

.faculty-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(26, 58, 82, 0.07);
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: 0 6px 18px rgba(21, 77, 57, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faculty-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(21, 77, 57, 0.06);
}

.faculty-card h4 {
  margin: 0;
  color: #173d61;
  font-size: 1rem;
  line-height: 1.4;
}

.faculty-count {
  margin: 0;
  color: #2a6f3d;
  font-weight: 700;
  font-size: 0.92rem;
}

.faculty-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faculty-subactions {
  display: flex;
  gap: 8px;
}

.faculty-subactions .small-button,
.faculty-actions .small-button {
  width: 100%;
}

.faculty-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(26, 58, 82, 0.06);
}

.faculty-card-body {
  padding: 12px 13px 14px;
}

.faculty-card h3 {
  margin: 0 0 6px;
  font-size: 0.88rem;
  color: #1a3a52;
  line-height: 1.3;
}

.faculty-card p {
  margin: 0;
  color: #53657a;
  line-height: 1.45;
  font-size: 0.78rem;
}

.master-section {
  background: linear-gradient(180deg, rgba(248, 251, 249, 0.96) 0%, rgba(242, 247, 244, 0.92) 100%);
  border: 1px solid rgba(26, 58, 82, 0.06);
  box-shadow: 0 12px 28px rgba(17, 33, 44, 0.04);
  padding: 30px 24px 26px;
}

.master-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.master-grid.four-up {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.apiary-announcement {
  position: relative;
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.apiary-announcement-inner {
  max-width: 1180px;
  margin: 0 auto 0 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(248, 250, 249, 0.18) 100%);
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.apiary-announcement-copy {
  padding: 16px 20px 18px 20px;
  text-align: left;
  position: relative;
  background: linear-gradient(135deg, #edf9f1 0%, #f4fbf7 100%);
  border: 1px solid rgba(29, 122, 93, 0.18);
  border-radius: 0;
}

.apiary-kicker {
  margin: 0 0 6px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #137a5a;
}

.apiary-announcement-copy h2 {
  margin: 0 0 6px;
  font-size: clamp(1.08rem, 1.5vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #14384f;
  font-weight: 800;
}

.apiary-announcement-copy p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(20, 56, 79, 0.88);
  max-width: 760px;
}

.apiary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1d7a5d 0%, #2a9a72 100%);
  color: #ffffff;
  border: none;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(29, 122, 93, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.apiary-button span,
.about-intro-button span {
  display: inline-block;
  font-size: 1.05em;
  line-height: 1;
  transform: translateY(-1px);
}

.apiary-button:hover,
.apiary-button:focus-visible {
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 16px 28px rgba(31, 122, 96, 0.2);
  filter: brightness(1.04);
}

.partners-section {
  padding: 18px 0 0;
  background: linear-gradient(180deg, #fdfdfd 0%, #f4f7fb 100%);
  border-top: 1px solid rgba(20, 35, 45, 0.08);
  border-bottom: 1px solid rgba(20, 35, 45, 0.08);
}

.partners-header {
  margin: 0 0 14px;
  padding: 0 5%;
}

.partners-header h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2vw, 2.8rem);
  line-height: 1.12;
  color: #132b3a;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-family: "Georgia", "Times New Roman", serif;
  display: inline-block;
  position: relative;
  padding-bottom: 8px;
}

.partners-header h2::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d8a951, #f4d27a);
}

.partners-header h2::after {
  content: "";
  position: absolute;
  left: 56px;
  bottom: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d8a951;
  box-shadow: 0 0 0 3px rgba(216, 169, 81, 0.18);
}

.partners-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 0 12px;
  margin-left: 18px;
}

.partner-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 78px;
  padding: 8px 14px;
  flex: 0 1 auto;
  color: #1e1e1e;
}

.partner-mark {
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  margin: 0;
}

.partner-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.partner-mark-circle {
  width: 76px;
  height: 76px;
}

.partner-mark-rennes {
  width: 82px;
  height: 82px;
}

.partner-mark-washu {
  width: 150px;
  height: 150px;
}

@media (max-width: 560px) {
  .partners-row {
    justify-content: center;
    gap: 8px;
    padding: 0 6px;
    margin-left: 0;
  }

  .partner-mark {
    width: 18vw;
    max-width: 72px;
    min-width: 42px;
    height: auto;
    aspect-ratio: 1;
  }

  .partner-mark-circle,
  .partner-mark-rennes {
    width: 18vw;
    max-width: 72px;
    min-width: 42px;
    height: auto;
    aspect-ratio: 1;
  }

  .partner-mark-washu {
    width: 20vw;
    max-width: 84px;
    min-width: 48px;
    height: auto;
    aspect-ratio: 1;
  }
}

.partner-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  font-size: 0.73rem;
  line-height: 1.1;
}

.partner-copy small {
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1f2d38;
  margin-bottom: 2px;
}

.partner-copy strong {
  font-size: 1.1rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #1a1a1a;
  font-weight: 800;
}

.partner-copy span {
  font-size: 0.62rem;
  color: #44515a;
  line-height: 1.2;
  margin-top: 2px;
}

.partner-dinepa {
  min-width: 210px;
}

.partner-dinepa .partner-mark {
  border-radius: 10px;
  background: linear-gradient(135deg, #eaf4ff 0%, #d6ebff 100%);
  position: relative;
  overflow: hidden;
}

.partner-dinepa .mark-wave {
  position: absolute;
  inset: 12px 10px 12px 10px;
  background: linear-gradient(180deg, rgba(8, 138, 198, 0.85), rgba(4, 90, 136, 0.9));
  border-radius: 20% 20% 40% 40%;
  clip-path: polygon(0 100%, 0 52%, 12% 52%, 22% 40%, 35% 44%, 46% 32%, 58% 34%, 72% 20%, 86% 26%, 100% 12%, 100% 100%);
}

.partner-auf .partner-mark-circle {
  border-radius: 50%;
  background: #fff;
  border: 2px solid #005ea8;
  font-size: 1rem;
  font-weight: 800;
  color: #005ea8;
}

.partner-uniss .partner-mark-uniss {
  border-radius: 50%;
  background: #fff;
  border: 2px solid #0d2f4b;
  color: #0d2f4b;
  font-size: 0.8rem;
  font-weight: 800;
}

.partner-rennes .partner-mark-rennes {
  border-radius: 50%;
  background: #f2f2f2;
  border: 2px solid #222;
  color: #222;
  font-size: 1.1rem;
  font-weight: 700;
}

.partner-washu .partner-mark-washu {
  font-size: 1.2rem;
  font-weight: 700;
  color: #202020;
  letter-spacing: -0.06em;
  font-family: "Segoe UI", Arial, sans-serif;
}

.partner-insei .partner-mark-insei {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background: #fff;
  border: 2px solid #ee6a2c;
  color: #1d4a6d;
  font-size: 0.9rem;
  font-weight: 800;
}

.partner-insei strong {
  color: #1d4a6d;
  font-size: 1.7rem;
  letter-spacing: -0.06em;
}

.program-card {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(25, 56, 72, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(20, 39, 32, 0.04);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.program-card:hover,
.program-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(18, 82, 58, 0.34);
  box-shadow: 0 16px 30px rgba(18, 82, 58, 0.18);
}

.program-card-media {
  position: relative;
  min-height: 182px;
  display: flex;
  align-items: flex-end;
  padding: 16px 16px 14px;
  background-size: cover;
  background-position: center;
}

.program-card-media h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-size: clamp(0.9rem, 1vw, 1.15rem);
  line-height: 1.3;
  max-width: 92%;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.program-card-body {
  padding: 12px 12px 14px;
}

.program-card-summary {
  margin: 0 0 10px;
  color: #4d5f6d;
  font-size: 0.8rem;
  line-height: 1.6;
}

.program-card-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
  color: #243d48;
  font-size: 0.78rem;
}

.program-card-list li {
  position: relative;
  padding-left: 14px;
  line-height: 1.5;
}

.program-card-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #1a3a52;
  font-weight: 700;
}

.program-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(30, 122, 81, 0.10);
  border: 1px solid rgba(30, 122, 81, 0.20);
  color: #b84435;
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.program-card-link::after {
  content: "→";
  font-size: 0.9rem;
  line-height: 1;
  color: #b84435;
}

.program-card-link:hover,
.program-card-link:focus-visible {
  transform: translateY(-1px);
  background: rgba(30, 122, 81, 0.16);
  border-color: rgba(30, 122, 81, 0.28);
  text-decoration: none;
}

.master-program-section {
  position: relative;
  background: linear-gradient(180deg, rgba(245, 248, 251, 0.96), rgba(241, 245, 250, 0.96));
  border: 1px solid rgba(26, 58, 82, 0.08);
  box-shadow: 0 18px 40px rgba(17, 33, 44, 0.06);
  padding: 20px 22px 20px;
  overflow: hidden;
}

.master-program-section::before,
.master-program-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(175, 205, 234, 0.18);
  pointer-events: none;
}

.master-program-section::before {
  width: 240px;
  height: 240px;
  left: -80px;
  top: 130px;
}

.master-program-section::after {
  width: 320px;
  height: 320px;
  right: -120px;
  top: -90px;
}

.master-program-header-wrap {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 1180px;
  margin: 0 auto 18px;
}

.master-program-badge {
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #f4d88e, #d99c2d);
  color: #fff;
  box-shadow: 0 12px 22px rgba(217, 156, 45, 0.3);
  font-size: 1.8rem;
}

.master-program-header-wrap h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #1a3a52;
  font-weight: 800;
  font-family: "Georgia", "Times New Roman", serif;
}

.master-program-rule {
  width: 150px;
  height: 3px;
  margin: 8px auto 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d0a44b 0%, #d0a44b 35%, transparent 35%, transparent 40%, #d0a44b 40%, #d0a44b 60%, transparent 60%, transparent 65%, #d0a44b 65%, #d0a44b 100%);
  position: relative;
}

.master-program-rule::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d0a44b;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(208, 164, 75, 0.18);
}

.master-program-subtitle {
  margin: 0;
  font-size: clamp(1rem, 1.2vw, 1.45rem);
  color: #1f3d60;
  line-height: 1.4;
  font-weight: 500;
}

.master-program-grid {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.master-program-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 12px 16px 10px;
  border-radius: 14px;
  border: 1px solid rgba(26, 58, 82, 0.08);
  background: rgba(255,255,255,0.72);
  box-shadow: 0 14px 24px rgba(32, 54, 68, 0.08);
}

.master-program-card-gold {
  background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(248, 235, 205, 0.66));
}

.master-program-card-blue {
  background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(216, 233, 249, 0.66));
}

.master-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}

.master-card-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  flex: 1;
  margin-top: 2px;
}

.master-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 1.35rem;
  background: transparent;
  box-shadow: none;
}

.master-card-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.master-card-icon-gold {
  background: transparent;
  box-shadow: none;
}

.master-card-icon-blue {
  background: transparent;
  box-shadow: none;
}

.master-card-header h3 {
  margin: 0;
  font-size: clamp(1.3rem, 1.7vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: #1a3a52;
  font-weight: 800;
}

.master-card-divider {
  width: 82px;
  height: 2px;
  margin: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #d9a74d 0%, #d9a74d 78%, transparent 78%);
  position: relative;
}

.master-card-divider::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d9a74d;
  transform: translateY(-50%);
}

.master-card-copy {
  margin: 0 0 10px;
  color: #35506b;
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 100%;
  text-align: left;
}

.master-check-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 6px;
  color: #203d4f;
  font-size: 0.83rem;
  line-height: 1.3;
  text-align: left;
}

.master-check-list li {
  position: relative;
  padding-left: 18px;
  font-weight: 500;
}

.master-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(26, 58, 82, 0.9);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.2;
}

.master-card-button {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: fit-content;
  min-width: 130px;
  max-width: 150px;
  padding: 7px 12px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.74rem;
  text-decoration: none;
  color: #fff;
  margin-left: auto;
  margin-right: auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.master-card-button:hover,
.master-card-button:focus-visible {
  transform: translateY(-1px);
  text-decoration: none;
}

.master-card-button-gold {
  background: rgba(241, 201, 108, 0.22);
  border: 1px solid rgba(216, 157, 66, 0.45);
  color: #8a6517;
  box-shadow: none;
}

.master-card-button-blue {
  background: rgba(46, 125, 209, 0.14);
  border: 1px solid rgba(27, 92, 167, 0.35);
  color: #214f8d;
  box-shadow: none;
}

.master-card-button span {
  font-size: 1.2rem;
  line-height: 1;
}

@media (max-width: 980px) {
  .master-program-grid {
    grid-template-columns: 1fr;
  }

  .master-grid.four-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .master-program-section {
    padding: 26px 16px 22px;
  }

  .master-program-header-wrap h2 {
    font-size: clamp(2rem, 8vw, 3.4rem);
  }

  .master-program-subtitle {
    font-size: 1rem;
  }

  .master-program-card {
    min-height: auto;
  }

  .master-card-header {
    gap: 12px;
  }

  .master-card-header h3 {
    font-size: 1.5rem;
  }

  .master-card-copy,
  .master-check-list {
    max-width: 100%;
    font-size: 0.95rem;
  }

  .master-grid,
  .master-grid.four-up {
    grid-template-columns: 1fr;
  }

  .master-section {
    padding: 22px 16px 20px;
  }
}

@media (max-width: 768px) {
  .faculty-grid,
  .master-grid {
    grid-template-columns: 1fr;
  }

  .faculty-section,
  .master-section {
    padding: 26px 18px 22px;
  }
}

@media (max-width: 980px) {
  .about-intro {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .rectrice-section {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px 18px;
  }

  .rectrice-photo-wrap {
    order: 1;
  }

  .rectrice-copy {
    order: 2;
  }

  .rectrice-photo-wrap img {
    height: 320px;
  }

  .about-intro-copy {
    padding-right: 0;
  }

  .about-meta {
    padding: 14px 16px 10px;
  }
}

@media (max-width: 640px) {
  .rectrice-section {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
    margin: 18px auto 22px;
    padding: 14px 12px;
    border-radius: 16px;
  }

  .rectrice-photo-wrap {
    width: 100%;
    min-width: 0;
    order: 1;
  }

  .rectrice-photo-wrap img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-width: 2px;
    border-radius: 12px;
  }

  .rectrice-copy {
    min-width: 0;
    order: 2;
    text-align: left;
  }

  .rectrice-copy .eyebrow {
    font-size: 1.02rem;
    margin-bottom: 8px;
  }

  .rectrice-copy p {
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 8px;
  }

  .rectrice-signature {
    margin-top: 14px;
    padding-top: 12px;
  }

  .rectrice-signature strong {
    font-size: 0.95rem;
  }

  .rectrice-signature span {
    font-size: 0.8rem;
  }
}

@media (max-width: 560px) {
  .about-intro-copy h2 {
    font-size: clamp(2.1rem, 8vw, 3rem);
    margin-bottom: 12px;
  }

  .about-intro-copy .lead {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .meta-row strong {
    font-size: 1rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: none;
  }

  .about-mission,
  .about-vision {
    max-width: none;
  }
}

.about-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 5% 40px;
}

.about-page-header {
  margin-bottom: 26px;
  text-align: left;
}

.about-page-header .eyebrow {
  margin: 0 0 10px;
  color: #b84435;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.about-page-header h1 {
  margin: 0;
  color: #16364d;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-family: "Times New Roman", Times, serif;
}

.single-image-story {
  margin: 0 0 30px;
}

.single-image-story img {
  width: 100%;
  height: 760px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  box-shadow: none;
  border: none;
}

.about-page .about-intro {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 30px;
  margin: 0 0 28px;
  padding: 0;
  border: none;
  text-align: left;
  align-items: start;
}

.about-page .about-intro p {
  margin: 0;
  color: rgba(22, 54, 77, 0.88);
  font-size: 1.04rem;
  line-height: 1.9;
}

.about-links {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.about-links a {
  display: inline-block;
  color: #1d4d68;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.about-links a:hover,
.about-links a:focus-visible {
  color: #a93a2e;
  transform: translateX(2px);
}

@media (max-width: 900px) {
  .single-image-story img {
    height: 300px;
  }

  .about-page .about-intro {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .about-intro-copy {
    padding-right: 0;
  }

  .about-page .about-intro p {
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .section-heading {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
  }
}


.about-content {
  display: grid;
  gap: 20px;
}

.about-block,
.about-text-block {
  background: #fff;
  border: 1px solid rgba(22, 54, 77, 0.09);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 10px 20px rgba(17, 40, 52, 0.04);
}

.about-block h3,
.about-text-block p {
  margin-top: 0;
}

.about-block h3 {
  margin-bottom: 12px;
  color: #16364d;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  font-family: "Times New Roman", Times, serif;
}

.about-block p,
.about-text-block p {
  margin: 0;
  color: rgba(22, 54, 77, 0.8);
  line-height: 1.8;
  font-size: 1rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 30px 0 26px;
}

.stat-item {
  background: linear-gradient(180deg, #f8fafc 0%, #edf4f7 100%);
  border: 1px solid rgba(22, 54, 77, 0.08);
  border-radius: 18px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(17, 40, 52, 0.04);
}

.stat-item strong {
  display: block;
  color: #16364d;
  font-size: clamp(1.8rem, 2vw, 2.5rem);
  line-height: 1;
  font-family: "Times New Roman", Times, serif;
  margin-bottom: 8px;
}

.stat-item span {
  color: rgba(22, 54, 77, 0.75);
  font-size: 0.92rem;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.about-page .about-text-block {
  background: linear-gradient(180deg, #f8fafb 0%, #f3f5f8 100%);
  border: 1px solid rgba(22, 54, 77, 0.08);
}

@media (max-width: 900px) {
  .about-menu-layout {
    grid-template-columns: 1fr;
  }

  .about-menu {
    position: static;
  }

  .about-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .about-page {
    padding-left: 18px;
    padding-right: 18px;
  }

  .single-image-story img {
    height: 260px;
  }

  .about-page .about-intro {
    gap: 14px;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .about-block,
  .about-text-block {
    padding: 16px 18px;
  }

  .section-heading {
    font-size: 1.8rem;
  }
}

.about-intro {
  display: grid;
  grid-template-columns: 1.75fr 0.9fr;
  gap: 32px;
  align-items: start;
  margin: 0 0 28px;
  padding-top: 10px;
  border-top: 1px solid rgba(26, 58, 82, 0.25);
  text-align: left;
}

.about-intro-copy {
  padding-right: 20px;
  text-align: left;
}

.section-heading {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 2.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #16364d;
  font-weight: 700;
  font-family: "Times New Roman", Times, serif;
  position: relative;
  display: block;
  padding-bottom: 10px;
}

.section-heading::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #c75d4a, #d8a951);
}

.about-intro-copy .lead {
  margin: 0;
  color: rgba(22, 54, 77, 0.85);
  line-height: 1.6;
  font-size: clamp(1.04rem, 1.3vw, 1.4rem);
  font-weight: 400;
  max-width: 990px;
}

.about-intro-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(184, 68, 53, 0.12);
  color: #a93a2e;
  border: 1px solid rgba(184, 68, 53, 0.38);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(184, 68, 53, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.about-intro-button:hover,
.about-intro-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(184, 68, 53, 0.12);
  border-color: rgba(184, 68, 53, 0.62);
  text-decoration: none;
}

.rectrice-section {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  width: min(100%, 1040px);
  margin: 24px auto 30px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(244, 246, 240, 0.48));
  border: 1px solid rgba(22, 54, 77, 0.08);
  border-radius: 22px;
  box-shadow: 0 18px 36px rgba(17, 40, 52, 0.04);
  backdrop-filter: blur(2px);
}

.rectrice-photo-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 0;
  align-items: stretch;
}

.rectrice-photo-wrap img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 520px;
  object-fit: cover;
  opacity: 1;
  visibility: visible;
  border-radius: 18px;
  border: 2px solid rgba(14, 112, 72, 0.95);
  box-shadow: 0 14px 28px rgba(18, 122, 76, 0.24);
}

.rectrice-copy {
  color: rgba(22, 54, 77, 0.9);
  text-align: left;
}

.rectrice-copy .eyebrow {
  margin: 0 0 14px;
  color: #0e4d3c;
  font-size: clamp(1.1rem, 1.5vw, 1.65rem);
  letter-spacing: 0.02em;
  font-weight: 700;
  text-transform: none;
  text-align: left;
  font-family: "Georgia", "Times New Roman", serif;
}

.rectrice-copy p {
  margin: 0 0 12px;
  font-size: 0.98rem;
  line-height: 1.65;
  text-align: left;
}

.rectrice-signature {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(22, 54, 77, 0.15);
}

.rectrice-signature strong {
  display: block;
  color: #16364d;
  font-size: 1.15rem;
  font-family: "Times New Roman", Times, serif;
  margin-bottom: 6px;
}

.rectrice-signature span {
  color: rgba(22, 54, 77, 0.8);
  font-style: italic;
}

.about-meta {
  display: grid;
  gap: 0;
  padding: 16px 18px 12px;
  background: rgba(236, 242, 239, 0.8);
  border: 1px solid rgba(26, 94, 75, 0.16);
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(20, 68, 57, 0.12);
  min-height: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.about-meta-top {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(26, 58, 82, 0.2);
  text-align: left;
}

.about-meta-top span {
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: #b84435;
  text-transform: uppercase;
  font-family: "Times New Roman", Times, serif;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 12px 0 11px;
  border-bottom: 1px solid rgba(26, 58, 82, 0.15);
  color: #1d3d50;
}

.meta-row:last-child {
  border-bottom: none;
}

.meta-row span {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(22, 54, 77, 0.78);
  font-weight: 600;
}

.meta-row strong {
  color: #16364d;
  font-size: clamp(1.08rem, 1.2vw, 1.6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-transform: none;
  font-family: "Times New Roman", Times, serif;
  font-weight: 700;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 0 auto 18px;
  align-items: stretch;
  max-width: 1380px;
  width: min(100%, 1380px);
}

.about-box {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.about-card-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  margin-bottom: 18px;
  width: 100%;
  text-align: left;
  flex-wrap: nowrap;
  line-height: 1.1;
  flex-direction: row;
}

.about-title-inline {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin: 0 0 14px;
  flex-direction: row;
  padding-left: 6px;
}

.about-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.8rem;
  line-height: 1;
  margin: 0;
}

.about-mission {
  background: linear-gradient(180deg, #0f2f4f 0%, #0b233c 100%);
  border-radius: 22px;
  padding: 18px 22px 18px;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 12px 22px rgba(8, 23, 32, 0.16);
  min-height: 180px;
  max-width: 100%;
  width: 100%;
  justify-self: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-mission .about-icon {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  color: #f3d57d;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.about-vision {
  background: linear-gradient(180deg, rgba(236, 241, 246, 0.98) 0%, rgba(228, 234, 240, 1) 100%);
  border: 1px solid rgba(22, 48, 67, 0.1);
  border-radius: 22px;
  padding: 18px 22px 18px;
  min-height: 180px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 10px 18px rgba(21, 48, 68, 0.08);
  max-width: 100%;
  width: 100%;
  justify-self: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-vision .about-icon {
  background: rgba(118, 153, 189, 0.18);
  border: 1px solid rgba(30, 70, 95, 0.14);
  color: #1d3d5c;
}

.about-box h4 {
  margin: 0;
  color: inherit;
  font-size: clamp(0.95rem, 1.05vw, 1.2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.15;
  font-weight: 700;
  text-align: left;
  font-family: "Times New Roman", Times, serif;
  display: flex;
  align-items: center;
  min-height: 0;
}

.about-header-copy p {
  margin: 7px 0 0;
  font-size: clamp(1.25rem, 1.7vw, 1.9rem);
  line-height: 1.3;
  font-weight: 800;
  text-align: left;
  position: relative;
  padding-bottom: 8px;
}

.about-header-copy p::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 1.5px;
  border-radius: 999px;
  background: rgba(215, 172, 83, 0.9);
}

.about-header-copy p::after {
  content: "";
  position: absolute;
  left: 48px;
  bottom: -1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(215, 172, 83, 0.9);
}

.about-mission h4 {
  color: #f0d27c;
}

.about-vision h4 {
  color: #0b2642;
}

.about-mission p,
.about-mission .about-detail {
  color: #fff;
}

.about-vision p,
.about-vision .about-detail {
  color: #0f2b42;
}

.about-title-inline p {
  margin: 0;
  font-size: clamp(3.1rem, 4vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-align: left;
  font-family: "Times New Roman", Times, serif;
  position: relative;
  padding-left: 0;
  padding-bottom: 12px;
}

.about-mission .about-title-inline p {
  color: #ffffff;
}

.about-vision .about-title-inline p {
  color: #102a42;
  font-weight: 700;
}

.about-mission .about-title-inline p::before,
.about-vision .about-title-inline p::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 22px;
  height: 1.5px;
  border-radius: 999px;
  background: rgba(215, 172, 83, 0.9);
}

.about-mission .about-title-inline p::after,
.about-vision .about-title-inline p::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: -9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(215, 172, 83, 0.9);
}

.about-detail {
  margin: 0;
  color: #4e6170;
  line-height: 1.45;
  font-size: 0.98rem;
  max-width: 100%;
  text-align: left;
}

.about-mission .about-detail {
  color: rgba(255,255,255,0.92);
  font-size: 1rem;
}

.about-vision .about-detail {
  color: #183d5a;
  font-size: 1rem;
}


.about-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: min(100%, 1480px);
  margin: 0 auto 18px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 96px;
  padding: 10px 10px 10px 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(26, 58, 82, 0.1);
  box-shadow: 0 8px 18px rgba(35, 104, 74, 0.08), 0 4px 10px rgba(35, 104, 74, 0.05);
  color: #1a3a52;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
  animation: valueFloat 5s ease-in-out infinite;
}

.value-item:hover {
  transform: translateY(-4px);
  border-color: rgba(35, 148, 106, 0.24);
  box-shadow: 0 10px 20px rgba(15, 46, 79, 0.14), 0 3px 8px rgba(15, 46, 79, 0.06);
}

.value-icon {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 58, 82, 0.08);
  color: #0f2e4f;
  font-size: 1.45rem;
  box-shadow: none;
  transition: transform 0.28s ease, background 0.28s ease;
}

.value-item:hover .value-icon {
  transform: scale(1.08);
  background: rgba(28, 142, 100, 0.12);
}

@keyframes valueFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .value-item,
  .value-icon,
  .value-item:hover,
  .value-item:hover .value-icon {
    animation: none;
    transition: none;
    transform: none;
  }
}

.value-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.value-content h4 {
  margin: 0;
  font-size: clamp(1.1rem, 1.3vw, 1.8rem);
  line-height: 1.2;
  color: #b84435;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.value-content p {
  margin: 0;
  color: #2e3f4c;
  line-height: 1.6;
  font-size: 0.92rem;
  font-weight: 400;
}

@media (max-width: 1024px) {
  .about-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .about-values {
    grid-template-columns: 1fr;
  }

  .value-item {
    min-height: auto;
  }
}

#contact {
  background: linear-gradient(180deg, rgba(235, 240, 244, 0.9) 0%, rgba(240, 245, 248, 0.96) 100%);
  border-radius: 18px;
  margin: 28px 0 0;
  padding: 28px 28px 18px;
  box-shadow: inset 0 0 0 1px rgba(21, 60, 88, 0.04);
}

.contact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(200px, 1fr));
  gap: 28px 24px;
  width: min(100%, 1400px);
  margin: 0 auto;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 120px;
}

.contact-item .contact-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  background: rgba(23, 78, 142, 0.08);
  color: #1d4e89;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(23, 78, 142, 0.08);
}

.contact-item .contact-icon i {
  font-size: 1.5rem;
}

.contact-copy {
  flex: 1;
}

.contact-copy h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  color: #1d4e89;
}

.contact-rule {
  display: block;
  width: 60px;
  height: 3px;
  margin: 0 0 12px;
  border-radius: 999px;
  background: #d8a12a;
}

.contact-copy p,
.contact-copy a {
  margin: 0;
  color: #1a2d4d;
  text-decoration: none;
  font-size: 0.98rem;
  line-height: 1.6;
}

.contact-primary {
  align-items: center;
}

.contact-primary .contact-copy h3 {
  font-size: 1.9rem;
  margin-bottom: 10px;
}

.contact-primary .contact-copy p {
  font-size: 1.02rem;
  color: #1b2c42;
  max-width: 260px;
}

@media (max-width: 980px) {
  .contact-strip {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 640px) {
  .contact-strip {
    grid-template-columns: 1fr;
  }

  #contact {
    padding: 22px 18px 14px;
  }
}

.admission-banner {
  position: relative;
  margin: 26px 0 0;
  padding: clamp(28px, 4vw, 52px) clamp(18px, 2.5vw, 32px);
  background: linear-gradient(180deg, rgba(248,244,239,0.86) 0%, rgba(244,235,224,0.9) 100%);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(26,58,82,0.04);
  overflow: hidden;
}

.admission-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../images/fon-admi.jpeg') center/cover no-repeat;
  opacity: 0.65;
  pointer-events: none;
  filter: saturate(1.05) contrast(1.12) brightness(1.02);
  background-position: center center;
  background-size: cover;
}

.admission-wrap {
  position: relative;
  width: min(100%, 1200px);
  margin: 0 auto;
  text-align: left;
  color: #102F5C;
  z-index: 1;
}

.admission-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.admission-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(214, 94, 67, 0.12);
  box-shadow: inset 0 0 0 1px rgba(214, 94, 67, 0.12);
}

.admission-badge svg {
  width: 28px;
  height: 28px;
  fill: #d65e43;
}

.admission-banner h2 {
  margin: 0;
  font-size: clamp(3.2rem, 5vw, 6.4rem);
  line-height: 0.86;
  font-weight: 900;
  letter-spacing: -0.06em;
  color: #102F5C;
}

.admission-rule {
  width: 120px;
  height: 4px;
  border-radius: 999px;
  background: #d65e43;
  margin: 10px 0 22px;
}

.admission-copy,
.admission-footer {
  max-width: 760px;
  margin: 0 0 28px;
  color: #102F5C;
  font-size: clamp(1.08rem, 1.5vw, 1.65rem);
  line-height: 1.5;
}

.admission-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.admission-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 18px;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(16,47,92,0.08);
  border-radius: 16px;
  text-decoration: none;
  color: #102F5C;
  min-height: 150px;
  box-shadow: 0 8px 18px rgba(28, 104, 67, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.admission-card:hover,
.admission-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(28, 104, 67, 0.22);
}

.card-icon {
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(214, 94, 67, 0.1);
  box-shadow: inset 0 0 0 1px rgba(214, 94, 67, 0.12);
}

.admission-card:nth-child(1) .card-icon {
  background: rgba(184, 68, 53, 0.12);
  box-shadow: inset 0 0 0 1px rgba(184, 68, 53, 0.18);
}

.admission-card:nth-child(2) .card-icon {
  background: rgba(47, 106, 79, 0.12);
  box-shadow: inset 0 0 0 1px rgba(47, 106, 79, 0.18);
}

.admission-card:nth-child(3) .card-icon {
  background: rgba(26, 58, 82, 0.10);
  box-shadow: inset 0 0 0 1px rgba(26, 58, 82, 0.14);
}

.card-icon i {
  font-size: 1.8rem;
  line-height: 1;
  color: #d65e43;
}

.admission-card:nth-child(1) .card-icon i {
  color: #b84435;
}

.admission-card:nth-child(2) .card-icon i {
  color: #2f6a4f;
}

.admission-card:nth-child(3) .card-icon i {
  color: #1a3a52;
}

.admission-card-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.admission-card h3 {
  margin: 0;
  font-size: clamp(1.05rem, 1.3vw, 1.35rem);
  line-height: 1.25;
  color: #d65e43;
}

.admission-card p {
  margin: 0;
  color: #2b3f52;
  font-size: 0.92rem;
  line-height: 1.45;
}

.admission-cta-wrap {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 20px;
}

.admission-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d65e43 0%, #b63d2b 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.96rem;
  line-height: 1;
  box-shadow: 0 14px 26px rgba(182, 61, 43, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admission-cta:hover,
.admission-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(182, 61, 43, 0.28);
}

.admission-cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  font-size: 1.15rem;
  line-height: 1;
}

.admission-footer {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  font-weight: 500;
  color: #102F5C;
}

.admission-footer-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 16px auto 0;
}

.mark-pill,
.mark-line {
  display: inline-block;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(24, 98, 64, 0.98), rgba(35, 120, 82, 1));
  box-shadow: 0 3px 10px rgba(35, 120, 82, 0.18);
}

.mark-pill {
  width: 32px;
}

.mark-line {
  width: 110px;
}

.mark-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1f7a51;
  box-shadow: 0 0 0 6px rgba(35, 120, 82, 0.12);
}

@media (max-width: 900px) {
  .admission-cards {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 640px) {
  .admission-banner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .admission-cards {
    grid-template-columns: 1fr;
  }

  .admission-copy,
  .admission-footer {
    max-width: none;
  }
}

.lead {
  color:#333;
  font-size:16px;
  line-height:1.8;
  margin-bottom:18px;
}


.cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(135deg, #1f7a5d 0%, #123d59 100%);
  color:#fff;
  padding:12px 22px;
  border-radius:999px;
  box-shadow:0 12px 22px rgba(18,61,89,0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-size:0.95rem;
  line-height:1.2;
  font-weight:700;
  text-decoration:none;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow:0 14px 28px rgba(47,106,79,0.28);
}

.admission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.candidate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.candidate-top-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-bottom: 16px;
}

.candidate-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.logout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #b84836, #d7664d);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(184, 72, 54, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.logout-button:hover,
.logout-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 26px rgba(184, 72, 54, 0.3);
}

@media (max-width: 560px) {
  .admission-actions {
    flex-direction: row;
    justify-content: center;
  }

  .admission-actions .cta {
    flex: 1 1 180px;
    text-align: center;
  }
}

.download-pdf-button,
.print-pdf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 999px;
  border: none;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.2;
}

.download-pdf-button {
  background: linear-gradient(135deg, var(--secondary), #3d7b5d);
  color: #fff;
}

.print-pdf-button {
  background: linear-gradient(135deg, #1a3a52, #3a5e7e);
  color: #fff;
}

.offer-section {
  margin-top: 24px;
  background: linear-gradient(180deg, rgba(245, 248, 250, 0.58) 0%, rgba(237, 242, 246, 0.78) 100%);
  border: 1px solid rgba(26, 58, 82, 0.08);
  border-radius: 18px;
  padding: 20px 20px 18px;
  box-shadow: 0 8px 22px rgba(24, 84, 63, 0.08);
  text-align: left;
}

.offer-section > p {
  text-align: left;
  font-size: 0.93rem;
  line-height: 1.5;
  font-weight: 500;
  color: #495c6d;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 0;
  box-shadow: inset 0 -1px 0 rgba(203, 48, 48, 0.14);
}

.offer-header {
  display: block;
  margin-bottom: 10px;
}

.offer-section .feature-grid {
  border-top: 0;
  padding-top: 12px;
}

.offer-header h3 {
  margin: 0;
  color: #1a3a52;
  font-size: clamp(1.8rem, 2.4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 750;
}

.offer-header p {
  margin: 0;
  color: #495c6d;
  line-height: 1.7;
  font-size: 1rem;
}

.offer-section > p {
  margin-bottom: 0;
}

#universite > p {
  margin: 0 0 22px;
  color: #495c6d;
  line-height: 1.8;
  font-size: 1rem;
  max-width: 820px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 18px;
  text-align: left;
}

.feature-card {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 9px 10px 7px;
  border: 1px solid rgba(26, 58, 82, 0.08);
  box-shadow: 0 8px 18px rgba(15, 31, 44, 0.08), 0 3px 8px rgba(15, 31, 44, 0.04);
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 3px 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  position: relative;
  overflow: hidden;
  min-height: 136px;
}

.feature-card::before {
  content: none;
  display: none;
}

.feature-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 34px rgba(22, 122, 78, 0.16), 0 10px 22px rgba(15, 31, 44, 0.14);
  border-color: rgba(184, 68, 53, 0.25);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 12px;
  font-size: 18px;
  margin: 0;
  grid-column: 1;
  line-height: 1;
  box-shadow: none;
}

.feature-icon i {
  display: block;
  font-size: 1.18rem;
  line-height: 1;
  font-weight: 900;
  font-family: "Font Awesome 6 Free";
}

.feature-card h3,
.feature-card p,
.feature-list {
  grid-column: 2;
}

.feature-icon-one { background: rgba(184, 68, 53, 0.12); color: #b84435; }
.feature-icon-two { background: rgba(47, 106, 79, 0.12); color: #2f6a4f; }
.feature-icon-three { background: rgba(26, 58, 82, 0.10); color: #1a3a52; }
.feature-icon-four { background: rgba(214, 170, 71, 0.12); color: #9a6f1c; }

.feature-card h3 {
  font-size: 1.06rem;
  margin: 0 0 1px;
  color: #1a3a52;
  text-align: left;
  line-height: 1.2;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  color: #4d5258;
  line-height: 1.55;
  font-size: 0.9rem;
  text-align: left;
}

.feature-list {
  margin: 0;
  padding-left: 0;
  color: #4d5258;
  line-height: 1.32;
  font-size: 0.86rem;
  text-align: left;
  list-style: none;
  display: grid;
  gap: 1px;
}

.feature-list li {
  line-height: 1.5;
  position: relative;
  padding-left: 1.2rem;
  display: block;
  margin: 0;
  transform: none;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #1a3a52;
  font-weight: 700;
  font-size: 0.82rem;
}

@media(max-width:1024px) {
  .feature-grid {
    grid-template-columns:repeat(2, minmax(220px, 1fr));
  }
}

@media(max-width:700px) {
  .feature-grid {
    grid-template-columns:1fr;
  }
}

.panel-form {
  max-width:920px;
  margin:0 auto;
  display:grid;
  gap:18px;
  background: rgba(255,255,255,0.97);
  padding:28px 28px;
  border-radius:20px;
  border:1px solid rgba(18, 43, 76, 0.08);
  box-shadow: 0 18px 36px rgba(17, 33, 44, 0.05);
  text-align:left;
  cursor: pointer;
}

.panel-form h3:first-of-type {
  text-align: left;
  font-size: clamp(2rem, 2.8vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: #123d59;
  margin-bottom: 8px;
  font-weight: 800;
}

.panel-form h3:first-of-type::before,
.candidate-form-header::before,
.candidate-header-brand::before {
  content: none !important;
  display: none !important;
}

.panel-form h3:not(:first-of-type) {
  margin: 0 0 0;
  color: #1b3d5a;
  font-size: clamp(1.3rem, 1.7vw, 1.7rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.notice-intro {
  margin: 0;
  font-size: clamp(1.08rem, 1.5vw, 1.5rem);
  line-height: 1.4;
  color: #1c2f45;
  font-weight: 600;
}

.notice-intro strong {
  color: #0f2d4d;
}

.panel-form p {
  margin: 0;
  line-height: 1.6;
  color: #3c5268;
  font-size: 1.02rem;
}

.panel-form p strong {
  color: #163a51;
  font-weight: 700;
}

.panel-form ol,
.panel-form ul {
  margin: 0 0 0 1.2rem;
  padding-left: 1rem;
  color: #2a3b4d;
}

.panel-form ol li,
.panel-form ul li {
  margin-bottom: 0;
  line-height: 1.5;
  padding-left: 0.3rem;
}

.panel-form label {
  font-weight:700;
  color:#244a35;
}

.panel-form label:has(+ input[required]),
.panel-form label:has(+ select[required]),
.panel-form label:has(+ textarea[required]) {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.panel-form label:has(+ input[required])::after,
.panel-form label:has(+ select[required])::after,
.panel-form label:has(+ textarea[required])::after {
  content: '*';
  color: #c90000;
  font-weight: 700;
  line-height: 1;
}

.panel-form input,
.panel-form select,
.panel-form textarea {
  width:100%;
  padding:14px 16px;
  border:1px solid rgba(36,74,53,0.12);
  border-radius:12px;
  font-size:15px;
  color:#1f3b3a;
  background:#fff;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.form-help {
  margin: -6px 0 12px;
  color: #1d3f5b;
  font-size: 0.83rem;
  line-height: 1.4;
  font-weight: 600;
}

.field-hidden[hidden] {
  display: none !important;
}

.panel-form button {
  display:inline-block;
  width:100%;
  padding:12px 18px;
  border-radius:12px;
  background: linear-gradient(180deg,var(--accent),#8a2b21);
  color:#fff;
  border:none;
  font-weight:700;
  box-shadow:0 14px 30px rgba(138,44,36,0.22);
  cursor:pointer;
}

.form-message.success-message {
  background: rgba(42, 179, 69, 0.12);
  color: #1a5d2e;
  padding: 12px 16px;
  border-radius: 14px;
  transform: translateY(-2px);
}

#campaign-closed-banner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 12px 0 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(187, 45, 45, 0.1);
  border: 1px solid rgba(187, 45, 45, 0.22);
  color: #9d1d1d;
  font-weight: 700;
}

#campaign-closed-banner strong {
  font-size: 1rem;
}

#campaign-closed-banner span {
  font-size: 0.88rem;
  line-height: 1.5;
}

.form-message.error-message {
  background: rgba(215, 38, 38, 0.10);
  color: #a32626;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(215, 38, 38, 0.18);
  font-weight: 700;
}

.admin-section {
  display: block;
}

.hidden {
  display:none !important;
}

.admin-shell {
  display:grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 100vh;
  background: linear-gradient(180deg, #f5f7f8 0%, #eef3f6 100%);
}

@media (max-width: 980px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 20px 18px;
    gap: 16px;
  }

  .sidebar-nav {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .admin-topbar {
    width: min(100% - 20px, 1280px);
  }

  .modern-admin-panel {
    width: min(100% - 20px, 1280px);
  }
}

@media (max-width: 640px) {
  .admin-shell {
    min-height: auto;
  }

  .admin-sidebar {
    padding: 18px 14px;
  }

  .sidebar-nav {
    grid-template-columns: 1fr;
  }

  .admin-topbar {
    flex-direction: column;
    align-items: flex-start;
    width: calc(100% - 18px);
    padding: 16px 18px;
  }

  .admin-topbar__actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .modern-admin-panel {
    width: calc(100% - 18px);
    padding: 18px 14px 22px;
    border-radius: 22px;
  }

  .status-grid,
  .summary-section,
  .faculty-overview-grid {
    grid-template-columns: 1fr;
  }

  .table-filters {
    grid-template-columns: 1fr;
  }

  .pagination-row,
  .detail-header,
  .table-header-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .pagination-controls {
    width: 100%;
    justify-content: space-between;
  }
}

.admin-sidebar {
  display:flex;
  flex-direction:column;
  gap:22px;
  background: linear-gradient(180deg, #0f2d4d 0%, #173d61 100%);
  color:#fff;
  padding:28px 18px 20px;
  border-right:1px solid rgba(255,255,255,0.08);
  max-height:100vh;
  overflow:hidden;
}

.sidebar-brand {
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 8px 18px;
  border-bottom:1px solid rgba(255,255,255,0.12);
}

.sidebar-brand img {
  width:52px;
  height:52px;
  object-fit:contain;
  background: rgba(255,255,255,0.12);
  border-radius:14px;
  padding:6px;
}

.sidebar-brand strong {
  display:block;
  font-size:1.1rem;
  letter-spacing:-0.03em;
}

.sidebar-brand span {
  display:block;
  margin-top:4px;
  font-size:0.72rem;
  text-transform:uppercase;
  letter-spacing:0.08em;
  color: rgba(255,255,255,0.8);
}

.sidebar-nav {
  display:grid;
  gap:10px;
  overflow-y:auto;
  max-height:calc(100vh - 230px);
  padding-right:6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.4) transparent;
}

.sidebar-nav::-webkit-scrollbar {
  width: 8px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.38);
  border-radius: 999px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.6);
}

.sidebar-link {
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color:#edf7ff;
  font-size:0.96rem;
  font-weight:700;
  text-align:left;
  cursor:pointer;
  transition: all 0.2s ease;
}

.sidebar-link:hover,
.sidebar-link:focus-visible,
.sidebar-link.active {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  transform: translateX(2px);
}

.sidebar-footer {
  margin-top:auto;
}

.admin-main {
  display:flex;
  flex-direction:column;
  min-width:0;
}

.admin-topbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  width:min(1280px, calc(100% - 36px));
  margin:20px auto 0;
  padding:18px 22px;
  border:1px solid rgba(18, 43, 76, 0.08);
  border-radius:22px;
  background:linear-gradient(135deg, rgba(255,255,255,0.96), rgba(247,250,252,0.94));
  box-shadow:0 16px 36px rgba(18, 43, 76, 0.08);
}

.admin-topbar__brand {
  display:flex;
  align-items:center;
  gap:16px;
}

.admin-topbar__brand img {
  width:54px;
  height:54px;
  object-fit:contain;
  border-radius:14px;
  padding:6px;
  background:rgba(255,255,255,0.8);
  box-shadow:0 8px 20px rgba(18, 43, 76, 0.08);
}

.admin-topbar__brand strong {
  display:block;
  color:#0f2d4d;
  font-size:1.2rem;
  letter-spacing:-0.03em;
}

.admin-topbar__brand span {
  color:#4d5d6a;
  font-size:0.8rem;
  font-weight:700;
  letter-spacing:0.08em;
  text-transform:uppercase;
}

.admin-topbar__actions {
  display:flex;
  align-items:center;
  gap:14px;
  margin-left:auto;
}

.admin-topbar__tag {
  display:inline-flex;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(26, 58, 82, 0.08);
  color:#1a3a52;
  font-weight:700;
  font-size:0.78rem;
  letter-spacing:0.04em;
  text-transform:uppercase;
}

.modern-admin-panel {
  width:min(1280px, calc(100% - 32px));
  margin:26px auto 40px;
  padding:26px 22px 28px;
  border:1px solid rgba(18, 43, 76, 0.08);
  border-radius:28px;
  background:linear-gradient(180deg, rgba(255,255,255,0.99), rgba(247,250,252,0.98));
  box-shadow:0 25px 60px rgba(18, 43, 76, 0.08);
}

.modern-admin-dashboard {
  display:grid;
  gap:22px;
}

.dashboard-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:4px 6px 0;
}

.eyebrow {
  margin:0 0 6px;
  font-size:0.72rem;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:#7f8d9c;
  font-weight:800;
}

.dashboard-header h3 {
  margin:0;
  font-size:clamp(1.5rem, 2vw, 2.2rem);
  color:#123a5d;
  letter-spacing:-0.03em;
}

.status-grid {
  display:grid;
  grid-template-columns:repeat(4, minmax(180px, 1fr));
  gap:18px;
  margin-top:14px;
}

.status-card {
  position:relative;
  padding:20px 18px 16px;
  border-radius:18px;
  background:linear-gradient(180deg, #ffffff 0%, #f8faf9 100%);
  border:1px solid rgba(36,74,53,0.12);
  box-shadow:0 14px 28px rgba(18,43,76,0.06);
  overflow:hidden;
  transition:transform 0.2s ease, box-shadow 0.2s ease;
}

.status-card:hover {
  transform:translateY(-2px);
  box-shadow:0 18px 32px rgba(18,43,76,0.08);
}

.status-card::before {
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:5px;
  background:linear-gradient(180deg, #2f6a4f, #68a6d6);
}

.status-card:nth-child(2)::before { background:linear-gradient(180deg, #d67d00, #f3b05d); }
.status-card:nth-child(3)::before { background:linear-gradient(180deg, #2f8a44, #86c48f); }
.status-card:nth-child(4)::before { background:linear-gradient(180deg, #265f7b, #68a6d6); }

.status-card strong {
  display:block;
  font-size:2.7rem;
  color:#123a5d;
  letter-spacing:-0.06em;
  line-height:1.1;
  font-weight:800;
}

.status-card span {
  display:block;
  margin-top:10px;
  color:#4f5d69;
  font-weight:700;
  font-size:0.92rem;
  line-height:1.35;
}

.chart-panel {
  margin-top:24px;
  padding:20px 20px 18px;
  border-radius:20px;
  background:linear-gradient(180deg, #ffffff 0%, #f9fafc 100%);
  border:1px solid rgba(36,74,53,0.12);
  box-shadow:0 18px 34px rgba(18, 43, 76, 0.08);
}

.chart-header {
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:16px;
  padding-bottom:14px;
  border-bottom:1px solid rgba(18,43,76,0.08);
}

.chart-header h4 {
  margin:0;
  font-size:1.15rem;
  color:#123a5d;
}

.chart-header p {
  margin:4px 0 0;
  color:#4a4a4a;
  line-height:1.5;
}

.chart-bars {
  display:grid;
  gap:14px;
  margin-top:20px;
}

.chart-bar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:10px 0;
  border-bottom:1px solid rgba(18,43,76,0.06);
}

.chart-bar:last-child {
  border-bottom:none;
  padding-bottom:0;
}

.chart-bar > span {
  display:flex;
  align-items:center;
  gap:10px;
  flex:1;
  font-weight:700;
  color:#1b3d5c;
}

.chart-bar > span::before {
  content:"";
  width:12px;
  height:12px;
  border-radius:4px;
  display:inline-block;
  background:var(--chart-color, #265f7b);
  box-shadow:0 4px 10px rgba(16, 47, 69, 0.12);
}

.chart-bar:nth-child(1) > span { --chart-color: #d67d00; }
.chart-bar:nth-child(2) > span { --chart-color: #2f8a44; }
.chart-bar:nth-child(3) > span { --chart-color: #265f7b; }

.bar-wrap {
  flex:1;
  width:100%;
  max-width:380px;
  height:14px;
  background:linear-gradient(90deg, #edf4ef, #f3f7fa);
  border-radius:999px;
  overflow:hidden;
  box-shadow:inset 0 1px 3px rgba(17, 43, 59, 0.08);
}

.bar-fill {
  height:100%;
  width:0;
  transition:width 0.5s ease;
  border-radius:999px;
  box-shadow:0 8px 16px rgba(40, 94, 72, 0.18);
}

.bar-fill.pending { background: linear-gradient(90deg, #d67d00, #f3b05d); }
.bar-fill.verified { background: linear-gradient(90deg, #2f8a44, #86c48f); }
.bar-fill.validated { background: linear-gradient(90deg, #265f7b, #68a6d6); }

.chart-bar small {
  min-width:110px;
  text-align:right;
  color:#4a4a4a;
  font-size:0.95rem;
  font-weight:700;
}

.entity-panel {
  margin-top:24px;
  padding:20px 20px 18px;
  border-radius:20px;
  background:linear-gradient(180deg, #ffffff 0%, #f9fafc 100%);
  border:1px solid rgba(36,74,53,0.12);
  box-shadow:0 18px 34px rgba(18, 43, 76, 0.08);
}

.entity-panel__header {
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:16px;
  padding-bottom:14px;
  border-bottom:1px solid rgba(18,43,76,0.08);
}

.entity-panel__header h4 {
  margin:0;
  font-size:1.15rem;
  color:#123a5d;
}

.entity-statistics {
  display:grid;
  gap:16px;
  margin-top:18px;
}

.entity-stat-item {
  display:grid;
  gap:8px;
}

.entity-stat-meta {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  font-weight:700;
  color:#123a5d;
}

.entity-stat-meta strong {
  font-size:0.96rem;
}

.entity-stat-meta span {
  color:#486073;
  font-size:0.86rem;
}

.entity-stat-bar {
  width:100%;
  height:16px;
  border-radius:999px;
  background:linear-gradient(90deg, #edf4ef, #f3f7fa);
  overflow:hidden;
  box-shadow:inset 0 1px 3px rgba(17, 43, 59, 0.08);
}

.entity-stat-fill {
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg, #133c61, #3ca5d9);
  box-shadow:0 8px 16px rgba(40, 94, 72, 0.18);
  transition:width 0.5s ease;
}

.entity-stat-item:nth-child(2) .entity-stat-fill {
  background:linear-gradient(90deg, #d67d00, #f3b05d);
}

.entity-stat-item:nth-child(3) .entity-stat-fill {
  background:linear-gradient(90deg, #2f8a44, #86c48f);
}

.entity-stat-item:nth-child(4) .entity-stat-fill {
  background:linear-gradient(90deg, #265f7b, #68a6d6);
}

.status-card strong {
  display:block;
  font-size:36px;
  color:#123a5d;
}

.status-card span {
  display:block;
  margin-top:8px;
  color:#4a4a4a;
}

.admin-action-row {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:12px;
}

.small-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:none;
  border-radius:10px;
  background:linear-gradient(180deg,var(--accent),#8a2b21);
  color:#fff;
  padding:10px 15px;
  font-weight:700;
  cursor:pointer;
}

.small-button.secondary {
  background:#e9eef1;
  color:#184c68;
}

.small-button.success {
  background:#2f8a44;
}

.small-button.danger {
  background:#b63b2f;
}

.small-button:disabled {
  opacity:0.55;
  cursor:not-allowed;
}

body.modal-open {
  overflow: hidden;
}

.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 27, 39, 0.58);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 2000;
}

.admin-modal-box {
  width: min(92vw, 980px);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 25px 60px rgba(14, 33, 49, 0.25);
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-modal-kicker {
  display: inline-block;
  color: #54738a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.admin-modal-header h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  color: #123a5d;
}

.admin-direct-form {
  display: grid;
  gap: 20px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: 16px;
}

.admin-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 700;
  color: #20415d;
}

.admin-form-grid label.required {
  position: relative;
}

.admin-form-grid .required-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
}

.admin-form-grid .required-label::after {
  content: '*';
  color: #d72626;
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1;
  transform: translateY(-1px);
}

.admin-form-grid input,
.admin-form-grid select,
.admin-form-grid textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(36,74,53,0.14);
  background: #fff;
  color: #1f3b3a;
}

.admin-form-grid textarea {
  min-height: 96px;
  resize: vertical;
}

.admin-form-grid .full-width {
  grid-column: 1 / -1;
}

.admin-direct-section {
  border: 1px solid rgba(36,74,53,0.12);
  border-radius: 16px;
  background: #f9fbfc;
  padding: 18px;
}

.admin-direct-section h4 {
  margin: 0 0 14px;
  color: #123a5d;
}

.admin-checklist {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px 14px;
}

.admin-checklist label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #2b4867;
}

.admin-payment-section {
  background: linear-gradient(180deg, #fffaf4 0%, #f9fbfc 100%);
}

.compact-grid {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.admin-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============ RESI OFISYÈL — VÈSYON PWOFESYONÈL ============ */

.receipt-print-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin: 12px 0 16px;
  padding: 0 8px;
}

.receipt-box {
  width: 5.8in;
  max-width: 5.8in;
  min-height: auto;
  padding: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}

.receipt-sheet {
  position: relative;
  background: #fff;
  color: #1a2e42;
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  font-family: "Times New Roman", Times, serif;
  page-break-inside: avoid;
  break-inside: avoid;
}

.receipt-print-full {
  width: 5.5in;
  min-height: auto;
  padding: 0.1in 0.12in 0.06in;
  margin: 0 auto;
}

.receipt-print-half {
  width: 5.3in;
  min-height: auto;
  padding: 0.08in 0.1in 0.04in;
  margin: 0 auto;
}

/* Cadre dekoratif ki antoure tout resi a — jan yon dokiman ofisyèl ta genyen */
.receipt-sheet::before,
.receipt-sheet::after,
.receipt-watermark {
  display: none !important;
}

.receipt-header,
.receipt-body,
.receipt-signature {
  position: relative;
  z-index: 1;
}

/* ---- HEADER ---- */
.receipt-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 6px 10px;
  border-bottom: 2px solid #123a5d;
}

.receipt-brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.receipt-brand-block > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.receipt-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
  border: 1px solid rgba(18,43,76,0.14);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(18,43,76,0.12);
}

.secondary-logo {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.receipt-header strong {
  display: block;
  color: #0f2d4d;
  font-size: 1.34rem;
  letter-spacing: 0.04em;
  font-weight: 800;
  line-height: 1.15;
}

.receipt-header span {
  display: block;
  color: #435668;
  font-size: 0.76rem;
  line-height: 1.35;
  margin-top: 2px;
}

.receipt-header small {
  display: block;
  color: #7a5b00;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 5px;
}

.receipt-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 8px;
  flex-shrink: 0;
}

.receipt-header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.receipt-brand-icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.receipt-qr {
  width: 66px;
  height: 66px;
  border: 1px solid rgba(18,43,76,0.16);
  border-radius: 6px;
  background: #fff;
  padding: 4px;
  object-fit: contain;
}

.receipt-badge {
  padding: 7px 14px;
  border-radius: 3px;
  background: linear-gradient(135deg, #123a5d 0%, #1c5382 100%);
  color: #f4e2ad;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 3px 8px rgba(18,43,76,0.22);
}

/* ---- CORPS ---- */
.receipt-body {
  padding: 20px 10px 4px;
  display: grid;
  gap: 16px;
  color: #1a2e42;
}

.receipt-summary-row {
  display: grid;
  grid-template-columns: 1fr 1.05in;
  gap: 14px;
  align-items: stretch;
}

.receipt-summary {
  display: grid;
  gap: 6px;
  padding: 14px 18px;
  border-radius: 6px;
  background: #f6f5f0;
  border: 1px solid rgba(18,43,76,0.12);
  border-left: 4px solid #123a5d;
  min-height: 1.15in;
  justify-content: center;
}

.receipt-summary strong {
  color: #0f2d4d;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-transform: capitalize;
}

.receipt-photo-box {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.receipt-photo-frame {
  width: 1in;
  height: 1.15in;
  border: 1.5px dashed rgba(18,43,76,0.4);
  border-radius: 4px;
  background: repeating-linear-gradient(
    135deg,
    rgba(18,43,76,0.015),
    rgba(18,43,76,0.015) 6px,
    transparent 6px,
    transparent 12px
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  text-align: center;
  color: #6b7d8d;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.receipt-label {
  display: block;
  color: #7a5b00;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.6rem;
  font-weight: 800;
}

.receipt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 10px 12px;
}

.receipt-grid > div {
  display: grid;
  gap: 5px;
  padding: 11px 13px;
  border: 1px solid rgba(18,43,76,0.12);
  border-radius: 5px;
  background: #ffffff;
  min-height: 0.82in;
  box-shadow: 0 1px 2px rgba(18,43,76,0.03);
}

.receipt-grid strong {
  color: #123a5d;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
}

/* ---- SIYATI E KACHÈT ---- */
.receipt-signature {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(18,43,76,0.16);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  color: #23415a;
  font-weight: 700;
}

.signature-block {
  display: grid;
  gap: 8px;
}

.signature-block span {
  font-size: 0.68rem;
  color: #647a8a;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
}

.signature-block div {
  width: 190px;
  height: 44px;
  border-bottom: 1.5px solid rgba(18,43,76,0.5);
}

.receipt-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 94px;
  height: 94px;
  border: 2px double rgba(184, 68, 53, 0.55);
  border-radius: 50%;
  color: #b84435;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  transform: rotate(-11deg);
  opacity: 0.75;
  font-family: "Times New Roman", Times, serif;
}

/* Ti liy dekoratif anba tit inivèsite a nan header */
.receipt-brand-block > div::after {
  content: "";
  display: block;
  width: 46px;
  height: 2px;
  margin-top: 6px;
  background: linear-gradient(90deg, #b84435, #d8a951);
  border-radius: 2px;
}

@media (max-width: 700px) {
  .receipt-grid {
    grid-template-columns: 1fr;
  }

  .receipt-summary-row {
    grid-template-columns: 1fr;
  }
}

/* ============ FÒMA ENPRESYON ============ */
@media print {
  @page {
    size: 8.5in 11in portrait;
    margin: 0;
  }

  html,
  body {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    overflow: visible !important;
  }

  body {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body > *:not(.admin-modal-overlay) {
    display: none !important;
  }

  .admin-modal-overlay,
  .admin-modal-box,
  .receipt-box {
    display: block !important;
    position: static !important;
    width: 8.5in !important;
    max-width: 8.5in !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .admin-modal-header,
  .receipt-print-controls,
  .admin-modal-actions {
    display: none !important;
  }

  .receipt-print-page {
    display: flex !important;
    flex-direction: column;
    width: 8.5in !important;
    height: 11in !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    box-sizing: border-box;
  }

  .receipt-slot-top,
  .receipt-slot-bottom {
    display: block !important;
    width: 8.5in !important;
    box-sizing: border-box;
  }

  .receipt-slot-top {
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
    width: 8.5in !important;
    height: 5.4in !important;
    padding: 0.12in 0.12in 0 !important;
    background: #fff !important;
  }

  .receipt-slot-bottom {
    height: 5.4in !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .receipt-sheet {
    width: 8.5in !important;
    max-width: 8.5in !important;
    min-width: 8.5in !important;
    height: auto !important;
    max-height: 5.4in !important;
    margin: 0 !important;
    padding: 0.08in 0.12in 0.06in !important;
    background: #fff !important;
    border: none !important;
    box-shadow: none !important;
    box-sizing: border-box;
    overflow: hidden !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  body.print-receipt-half-portrait .receipt-sheet {
    width: 8.5in !important;
    max-width: 8.5in !important;
    min-width: 8.5in !important;
    height: 5.4in !important;
    max-height: 5.4in !important;
    font-size: 0.8rem !important;
    line-height: 1.2 !important;
    padding: 0.08in 0.12in 0.06in !important;
  }

  body.print-receipt-half-portrait .receipt-header {
    gap: 8px;
    padding: 3px 4px 8px;
    border-bottom: 1.5px solid #123a5d;
  }

  body.print-receipt-half-portrait .receipt-logo {
    width: 40px !important;
    height: 40px !important;
  }

  body.print-receipt-half-portrait .receipt-header strong {
    font-size: 0.96rem !important;
  }

  body.print-receipt-half-portrait .receipt-header span {
    font-size: 0.58rem !important;
  }

  body.print-receipt-half-portrait .receipt-header small {
    font-size: 0.5rem !important;
  }

  body.print-receipt-half-portrait .receipt-badge {
    font-size: 0.48rem !important;
    padding: 5px 8px !important;
    letter-spacing: 0.06em !important;
  }

  body.print-receipt-half-portrait .receipt-qr {
    width: 42px !important;
    height: 42px !important;
  }

  body.print-receipt-half-portrait .receipt-body {
    gap: 8px !important;
    padding: 10px 6px 2px !important;
  }

  body.print-receipt-half-portrait .receipt-summary-row {
    grid-template-columns: 1fr 0.9in !important;
    gap: 8px !important;
  }

  body.print-receipt-half-portrait .receipt-summary {
    padding: 8px 10px !important;
    min-height: 0.7in !important;
    border-left-width: 3px !important;
  }

  body.print-receipt-half-portrait .receipt-summary strong {
    font-size: 0.8rem !important;
  }

  body.print-receipt-half-portrait .receipt-photo-frame {
    width: 0.72in !important;
    height: 0.82in !important;
    font-size: 0.44rem !important;
    padding-bottom: 5px !important;
  }

  body.print-receipt-half-portrait .receipt-label {
    font-size: 0.44rem !important;
  }

  body.print-receipt-half-portrait .receipt-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr)) !important;
    gap: 6px 8px !important;
    margin-bottom: 12px !important;
  }

  body.print-receipt-half-portrait .receipt-grid > div {
    gap: 3px !important;
    padding: 7px 8px !important;
    min-height: 0.56in !important;
    border-radius: 4px !important;
  }

  body.print-receipt-half-portrait .receipt-grid strong {
    font-size: 0.65rem !important;
    line-height: 1.2 !important;
  }

  body.print-receipt-half-portrait .receipt-signature {
    margin-top: 10px !important;
    padding-top: 8px !important;
    gap: 7px !important;
  }

  body.print-receipt-half-portrait .signature-block {
    gap: 6px !important;
    min-width: 0 !important;
  }

  body.print-receipt-half-portrait .signature-block span {
    font-size: 0.5rem !important;
  }

  body.print-receipt-half-portrait .signature-block div {
    width: 120px !important;
    height: 20px !important;
  }

  body.print-receipt-half-portrait .receipt-stamp {
    width: 56px !important;
    height: 56px !important;
    font-size: 0.48rem !important;
  }

  body.print-receipt-half-portrait .receipt-page-footer {
    padding-top: 8px !important;
  }

  body.print-receipt-half-portrait .receipt-page-footer p {
    font-size: 0.42rem !important;
    line-height: 1.3 !important;
  }

  body.print-receipt-half-portrait .receipt-slot-bottom {
    display: none !important;
    visibility: hidden !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
}
/* ============ RESI OFISYÈL — FÒMA ORIZONTAL ============ */

.receipt-print-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin: 12px 0 16px;
  padding: 0 8px;
}

.receipt-box {
  width: 100%;
  max-width: 100%;
  padding: 0;
  border: none;
  background: transparent;
}

.receipt-sheet {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  background: #ffffff;
  color: #16324c;
  border: 1px solid rgba(18,43,76,0.10);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(18,43,76,0.10);
  padding: 30px 34px 26px;
  font-family: "Segoe UI", Arial, sans-serif;
  overflow: hidden;
}

/* ---- HEADER : logo + institution ---- */
.receipt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
}

.receipt-brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.receipt-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(18,43,76,0.14);
  padding: 3px;
  flex-shrink: 0;
}

.receipt-brand-block > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.receipt-header strong {
  display: block;
  color: #10233b;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.receipt-header span {
  display: block;
  color: #24486b;
  font-size: 0.9rem;
  margin-top: 2px;
}

.receipt-header small {
  display: block;
  color: #5c7286;
  font-size: 0.78rem;
  margin-top: 2px;
}

.receipt-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.secondary-logo {
  width: 100px;
  height: auto;
  object-fit: contain;
}

/* ---- Liy lò anba header ---- */
.receipt-goldline {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #d8a951, #efc873, #d8a951);
  border-radius: 999px;
  margin-bottom: 20px;
}

/* ---- Ranje badge + tit + kad foto ---- */
.receipt-status-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.receipt-status-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.receipt-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 9px 18px;
  border-radius: 999px;
  background: #1f8a52;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 6px 14px rgba(31,138,82,0.28);
}

.receipt-title {
  margin: 0;
  color: #10233b;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.receipt-photo-frame {
  width: 1.3in;
  height: 1.5in;
  flex-shrink: 0;
  border: 1.5px dashed rgba(18,43,76,0.4);
  border-radius: 10px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  color: #55697c;
  padding: 8px;
}

.receipt-photo-frame span {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.receipt-photo-frame small {
  font-size: 0.64rem;
  font-style: italic;
  color: #8497a8;
}

/* ---- Rezime kandida (pleine largeur) ---- */
.receipt-summary {
  display: grid;
  gap: 6px;
  padding: 16px 20px;
  border-radius: 12px;
  background: #f6f7f9;
  border: 1px solid rgba(18,43,76,0.08);
  margin-bottom: 16px;
}

.receipt-label {
  display: block;
  color: #6a7b8b;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.66rem;
  font-weight: 800;
}

.receipt-summary strong {
  color: #10233b;
  font-size: 1.2rem;
  font-weight: 800;
}

/* ---- Grid 2 kolòn enfòmasyon ---- */
.receipt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: 12px 16px;
  margin-bottom: 26px;
}

.receipt-grid > div {
  display: grid;
  gap: 5px;
  padding: 14px 18px;
  border: 1px solid rgba(18,43,76,0.10);
  border-radius: 12px;
  background: #fff;
}

.receipt-grid strong {
  color: #10233b;
  font-size: 1rem;
  font-weight: 700;
}

.receipt-grid strong.receipt-status-ok {
  color: #1f8a52;
}

/* ---- Ranje siyati / kachèt / QR ---- */
.receipt-signature {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(18,43,76,0.10);
  margin-bottom: 18px;
}

.signature-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 220px;
}

.signature-block > span:first-child {
  font-weight: 700;
  color: #10233b;
  font-size: 0.95rem;
}

.signature-block div.sig-line {
  width: 220px;
  height: 0;
  border-bottom: 1.5px solid rgba(18,43,76,0.5);
  margin-top: 26px;
}

.signature-block small {
  color: #6a7b8b;
  font-size: 0.78rem;
}

.receipt-stamp {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 1.5px dashed rgba(18,43,76,0.32);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #8497a8;
  gap: 2px;
  flex-shrink: 0;
}

.receipt-stamp strong {
  font-size: 0.9rem;
  font-weight: 800;
  color: #7c8fa0;
}

.receipt-stamp small {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.receipt-qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.receipt-qr {
  width: 96px;
  height: 96px;
  border: 1px solid rgba(18,43,76,0.14);
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  object-fit: contain;
}

.receipt-qr-block small {
  color: #6a7b8b;
  font-size: 0.72rem;
  font-weight: 600;
}

/* ---- Footer ofisyèl ---- */
.receipt-page-footer {
  text-align: center;
  border-top: 1px solid rgba(18,43,76,0.08);
  padding-top: 14px;
}

.receipt-page-footer p {
  margin: 2px 0;
  color: #6a7b8b;
  font-size: 0.76rem;
  line-height: 1.5;
}

.receipt-page-footer p:first-child {
  font-weight: 700;
  color: #10233b;
}

@media (max-width: 700px) {
  .receipt-grid {
    grid-template-columns: 1fr;
  }

  .receipt-status-row,
  .receipt-signature {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============ FÒMA ENPRESYON ============ */
@media print {
  body {
    background: #fff !important;
  }

  .admin-modal-overlay {
    background: transparent !important;
    overflow: visible !important;
  }

  .admin-modal-box,
  .receipt-box {
    width: auto !important;
    max-width: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .admin-modal-header,
  .receipt-print-controls,
  .admin-modal-actions {
    display: none !important;
  }

  .receipt-sheet {
    max-width: none !important;
    width: 10in !important;
    margin: 0 auto !important;
    box-shadow: none !important;
    border: 1px solid rgba(18,43,76,0.14) !important;
  }

  body.print-receipt-half-portrait {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  @page {
    size: 8.5in 11in portrait;
    margin: 0;
  }
}

.summary-section {
  display:grid;
  grid-template-columns:repeat(2, minmax(260px, 1fr));
  gap:18px;
  margin-top:24px;
}

.summary-section.full-width {
  grid-template-columns:repeat(2, minmax(260px, 1fr));
}

.summary-box,
.table-panel,
.detail-panel {
  background:#fff;
  border:1px solid rgba(36,74,53,0.12);
  border-radius:18px;
  box-shadow:0 14px 30px rgba(36,74,53,0.08);
  padding:20px;
}

.summary-box h4,
.table-header-row h4,
.detail-header h4 {
  margin:0 0 16px;
  color:var(--secondary);
}

.mini-stat-list {
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:10px;
}

.mini-stat-list li {
  display:flex;
  justify-content:space-between;
  gap:10px;
  border-bottom:1px solid rgba(36,74,53,0.08);
  padding-bottom:8px;
  color:#2d3b4d;
}

.empty-state {
  text-align:center;
  color:#5d636b;
  padding:12px;
}

.table-header-row,
.pagination-row,
.detail-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}

.table-filters {
  display:grid;
  grid-template-columns:repeat(4, minmax(150px, 1fr));
  gap:12px;
  margin-bottom:18px;
}

.table-filters input,
.table-filters select,
.pagination-controls select {
  width:100%;
  padding:10px 12px;
  border:1px solid rgba(36,74,53,0.14);
  border-radius:10px;
  background:#fff;
}

.table-wrapper {
  overflow:auto;
  border:1px solid rgba(36,74,53,0.12);
  border-radius:12px;
}

.data-table {
  width:100%;
  border-collapse:collapse;
  min-width:900px;
}

.data-table th,
.data-table td {
  padding:12px 10px;
  border-bottom:1px solid rgba(36,74,53,0.08);
  text-align:left;
  color:#2a3b4d;
}

.data-table th {
  background:#f7faf7;
  color:var(--secondary);
  font-weight:800;
}

.data-table tbody tr:hover {
  background:#f5fbf7;
}

.pagination-row {
  margin-top:16px;
  flex-wrap:wrap;
}

.pagination-controls {
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.detail-panel {
  margin-top:24px;
}

.detail-grid {
  display:grid;
  grid-template-columns:repeat(2, minmax(240px, 1fr));
  gap:16px;
}

.detail-box {
  background:#f9fbfa;
  border:1px solid rgba(36,74,53,0.08);
  border-radius:12px;
  padding:16px;
}

.detail-box h5 {
  margin:0 0 12px;
  color:var(--secondary);
}

.detail-box p {
  margin:6px 0;
  color:#2a3b4d;
}

.detail-actions {
  display:flex;
  gap:12px;
  justify-content:flex-end;
  margin-top:18px;
}

@media(max-width:900px){
  .about-grid{ grid-template-columns:1fr; }
  .news-entry { grid-template-columns: 1fr; }
  .table-filters,
  .summary-section,
  .detail-grid {
    grid-template-columns:1fr;
  }
  .pagination-row,
  .table-header-row,
  .detail-header {
    flex-direction:column;
    align-items:flex-start;
  }
}

@media(max-width:900px){
  header {
    height:auto;
    padding:20px 8%;
    flex-wrap:wrap;
  }

  .menu-toggle {
    display:flex;
    margin-left:auto;
  }

  .main-nav {
    display:flex;
    width:100%;
    flex-direction:column;
    align-items:flex-start;
    padding-top:12px;
    max-height:0;
    overflow:hidden;
    opacity:0;
    transition:all 0.3s ease;
    text-align:left;
  }

  .main-nav.open {
    max-height:400px;
    opacity:1;
    padding-bottom:8px;
  }

  .main-nav a,
  .nav-link,
  .nav-submenu-toggle {
    margin:0;
    padding:8px 0;
    width:100%;
    text-align:left;
  }

  .main-nav > .nav-dropdown {
    width:100%;
  }

  .nav-dropdown .dropdown-menu {
    position:static;
    box-shadow:none;
    padding:6px 0 6px 12px;
    border-left:2px solid #e8d4a8;
    margin:4px 0 8px 0;
    opacity:1;
    pointer-events:auto;
    transform:none;
    max-height:0;
    overflow:hidden;
    display:none;
  }

  .nav-dropdown.open .dropdown-menu {
    display:flex;
    max-height:240px;
  }

  .dropdown-menu a {
    padding:8px 0;
  }

  .main-nav .login {
    display:block;
    margin-top:12px;
    text-align:center;
  }
}

.news-grid {
  display:grid;
  grid-template-columns:420px 1fr;
  gap:25px;
  margin-top:30px;
  align-items:stretch;
}

.news-grid-2x2 {
  display:grid;
  grid-template-columns:repeat(2, minmax(320px, 1fr));
  gap:28px;
  margin-top:30px;
  width:100%;
  max-width:1240px;
}

.news-grid-2x2 .news-card {
  background: rgba(255,255,255,0.88);
  padding:24px;
  border-radius:20px;
  border:1px solid rgba(36, 74, 53, 0.12);
  box-shadow:0 10px 22px rgba(0, 0, 0, 0.08);
  filter: none;
  backdrop-filter: blur(4px);
  display:flex;
  flex-direction:column;
  gap:16px;
  text-align:left;
  transition:transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.news-grid-2x2 .news-card:hover {
  transform:translateY(-8px);
  box-shadow:0 18px 34px rgba(0, 0, 0, 0.12);
  filter: none;
}

.news-grid-2x2 .news-card img {
  width:100%;
  min-height:200px;
  object-fit:cover;
  border-radius:18px;
}

.news-grid-2x2 .news-card img.small-img {
  max-height:170px;
  min-height:150px;
  object-fit:cover;
}

.news-grid-2x2 .news-date {
  color:#7d7d7d;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:0.08em;
  font-weight:700;
}

.news-grid-2x2 .news-card h3 {
  font-size:24px;
  line-height:1.25;
  margin:0;
  color:#244a35;
}

.news-grid-2x2 .news-card p {
  color:#4d5158;
  line-height:1.8;
  margin:0;
}

.news-grid-2x2 .news-link {
  margin-top:auto;
  align-self:flex-start;
}

.news-images {
  display:grid;
  grid-template-columns:1fr;
  gap:20px;
}

.news-images img {
  width:100%;
  height:225px;
  object-fit:cover;
  border-radius:15px;
  display:block;
}

.news-entry {
  display:grid;
  grid-template-columns:520px 1fr;
  gap:32px;
  margin-bottom:40px;
  align-items:start;
}

.news-entry-images {
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:16px;
}

.news-entry-images img {
  width:100%;
  height:240px;
  object-fit:cover;
  border-radius:12px;
  display:block;
}

.news-entry-images.carousel {
  display:block;
  position:relative;
  left:50%;
  right:50%;
  width:100vw;
  max-width:none;
  margin-left:-50vw;
  margin-right:-50vw;
  overflow:hidden;
  border-radius:0;
}

.news-entry-images.carousel .carousel-track {
  display:flex;
  gap:16px;
  transition:transform 0.6s ease;
  will-change:transform;
}

.news-entry-images.carousel .carousel-slide {
  min-width:100%;
  flex-shrink:0;
}

.news-entry-images.carousel .carousel-slide img {
  width:100%;
  height:320px;
  object-fit:cover;
  border-radius:12px;
}

@media(max-width:768px) {
  .news-entry-images {
    grid-template-columns:1fr;
  }
  .news-entry-images img {
    height:220px;
  }
}

/* Special styling for document images to look neat */
.news-entry-images img.doc {
  width:100%;
  height:auto;
  max-height:900px;
  object-fit:contain;
  background:#fff;
  padding:12px;
  border-radius:8px;
  border:1px solid #e6e6e6;
  box-shadow:0 8px 30px rgba(0,0,0,0.08);
}

.news-entry {
  background: transparent;
}

.news-entry + .news-entry {
  border-top:1px solid rgba(0,0,0,0.04);
  padding-top:30px;
  margin-top:10px;
}

.news-entry-content {
  display:flex;
  flex-direction:column;
  gap:18px;
  justify-content:flex-start;
}

.site-footer {
  background: linear-gradient(180deg, #1A3A52 0%, #274b63 100%);
  color: #fff;
  text-align: center;
  padding: 28px 10%;
  margin-top: 30px;
}

.site-footer p {
  margin: 6px 0;
}

.news-tag {
  display:inline-block;
  background:#D87856;
  color:white;
  padding:8px 16px;
  border-radius:30px;
  font-size:14px;
  font-weight:700;
  letter-spacing:0.02em;
}

.news-entry-content h3 {
  color:#1A3A52;
  margin:0;
  font-size:30px;
  line-height:1.15;
}

.news-entry-content p {
  color:#444;
  line-height:1.8;
  margin:0;
}

.news-entry-content ul {
  margin:0;
  padding-left:20px;
  color:#444;
}

.news-entry-content li {
  margin-bottom:10px;
}

.news-hashtags {
  color:#5d5d5d;
  font-size:14px;
  line-height:1.6;
  margin-top:10px;
}

.news-link {
  display:inline-block;
  margin-top:10px;
  padding:12px 20px;
  background:var(--secondary);
  color:white;
  border-radius:999px;
  text-decoration:none;
  font-weight:700;
}

.news-link:hover {
  background:#244a35;
}

.article-detail {
  display:grid;
  grid-template-columns:0.95fr 1.15fr;
  grid-auto-rows:min-content;
  column-gap:24px;
  row-gap:0;
  align-items:start;
  margin-top:40px;
  padding-bottom:40px;
  width:100%;
  max-width:1180px;
}

.article-image-stack {
  grid-column:1;
  grid-row:1;
  display:grid;
  gap:8px;
}

.article-image-stack img {
  display:block;
  width:100%;
  height:auto;
  min-height:230px;
  border-radius:18px;
  object-fit:cover;
  box-shadow:0 14px 28px rgba(0,0,0,0.10);
  margin:0;
}

.article-detail-copy {
  grid-column:2;
  grid-row:1;
  display:flex;
  flex-direction:column;
  gap:16px;
  text-align:left;
  align-self:start;
}

.article-tag {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 16px;
  background:rgba(216,120,86,0.12);
  color:#56d85c;
  border-radius:999px;
  font-size:13px;
  letter-spacing:0.04em;
  text-transform:uppercase;
  font-weight:700;
  margin:0;
}

.article-tag--institutionnel {
  font-size:15px;
  padding:10px 18px;
  letter-spacing:0.08em;
  background:rgba(5, 68, 19, 0.448);
  color:#ede8e6;
}

.article-meta {
  color:#5f6c7b;
  font-size:14px;
  line-height:1.7;
  margin:0;
}

.article-detail h1 {
  font-size:clamp(2rem, 2.6vw, 2.7rem);
  margin:0 auto 10px auto;
  color:#1A3A52;
  line-height:1.12;
  text-align:left;
  max-width:720px;
}

.article-detail-copy > p {
  margin:0;
}

.article-detail section {
  margin:0;
  padding:0;
}

.article-detail section + section {
  margin-top:16px;
}

.article-detail section h2 {
  font-size:22px;
  margin:0 0 10px 0;
  color:#1A3A52;
}

.article-detail section p,
.article-detail section ul {
  color:#444;
  line-height:1.75;
  margin:0;
}

.article-detail section ul {
  padding-left:20px;
}

.article-cta {
  margin-top:14px;
  text-align:center;
}

.article-cta .news-link {
  margin:0 auto;
}

@media(max-width:900px) {
  .article-detail {
    grid-template-columns:1fr;
    gap:18px;
  }

  .article-detail img {
    min-height:220px;
    border-radius:20px;
  }

  .article-detail-copy {
    grid-column:1;
  }

  .article-detail h1 {
    text-align:left;
    max-width:none;
  }
}

.news-thumbs img {
  width:100%;
  border-radius:12px;
  display:block;
}

@media(max-width:1024px) {
  .news-entry {
    grid-template-columns:1fr;
  }
}

@media(max-width:6800px) {
  .news-entry {
    grid-template-columns:1fr;
  }
}

.grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:28px;
margin-top:30px;
}

.card,.grid div{
background:rgba(255,255,255,0.88);
padding:28px 26px;
border-radius:24px;
  box-shadow:
    2px 2px 4px rgba(36, 74, 53, 0.45),
    -2px -2px 4px rgba(36, 74, 53, 0.25);
  position:relative;
  overflow:hidden;
  backdrop-filter: blur(4px);
}

.card::before,
.grid div::before {
content:"";
position:absolute;
top:0;
left:0;
width:100%;
height:4px;
background:linear-gradient(90deg, rgba(36,74,53,0.95) 0%, rgba(36,74,53,0.55) 100%);
}

.card h3 {
  color: #244a35;
  font-size: 20px;
  line-height:1.3;
}

.card p {
  color: #555;
  line-height: 1.75;
  font-size: 15px;
}

.card img {
  width: calc(100% + 40px);
  height: 170px;
  object-fit: cover;
  border-radius: 16px;
  margin: -24px -20px 18px -20px;
  box-shadow: 0 18px 40px rgba(36,74,53,0.35), inset 0 0 0 1px rgba(36,74,53,0.08);
}
.card:hover,.grid div:hover{
transform:translateY(-6px);
box-shadow:0 18px 42px rgba(216, 120, 86, 0.18);
}

.student{
background:#1A3A52;
color:white;
padding:70px 10%;
}

.student h2 {
color:white;
margin-bottom:12px;
}

.student p {
color:#e8f1f7;
margin-bottom:20px;
line-height:1.7;
}

.student-link {
  display:inline-block;
  background:#D87856;
  color:white;
  padding:14px 24px;
  border-radius:999px;
  text-decoration:none;
  font-weight:700;
  transition:background 0.3s ease, transform 0.3s ease;
}

.student-link:hover {
  background:#B85A43;
  transform:translateY(-2px);
}

.contact-footer {
  background: rgba(4, 21, 31, 0.96);
  padding: 26px 4% 16px;
  margin-top: 18px;
  border-top: 1px solid rgba(211, 170, 81, 0.24);
}

.contact-footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
  padding-bottom: 18px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 320px;
  padding-top: 4px;
}

.footer-brand-mark {
  width: 64px;
  height: 64px;
  border-radius: 0;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.footer-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.footer-brand-copy {
  color: #f3f7fb;
  font-size: 1.05rem;
  line-height: 1.3;
  max-width: 240px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-brand-copy:hover {
  color: #d7a73d;
  text-decoration: none;
}

.contact-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.4fr 1.1fr 1fr;
  gap: 26px 32px;
  width: 100%;
}

.contact-block {
  min-height: 140px;
}

.contact-block h3 {
  margin: 0 0 16px;
  color: #d7a73d;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-block p,
.contact-block a {
  margin: 0 0 6px;
  color: #edf3fa;
  font-size: 0.98rem;
  line-height: 1.7;
  text-decoration: none;
}

.contact-block a:hover {
  text-decoration: underline;
}

.social-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
}

.social-row a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: #f9f9f9;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  overflow: hidden;
}

.social-row a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.social-facebook {
  color: #1877f2;
}

.social-linkedin {
  color: #0a66c2;
}

.social-instagram {
  color: #e1306c;
}

.social-row a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin: 20px 0 16px;
}

.footer-copy {
  text-align: center;
  color: #dfeaf7;
  font-size: 0.9rem;
  line-height: 1.6;
}

.simple-contact-page {
  width: min(1200px, calc(100% - 24px));
  margin: 28px auto 0;
  padding: 0 0 30px;
}

.simple-contact-hero {
  background: #ffffff;
  border: 1px solid rgba(17, 47, 67, 0.08);
  border-radius: 18px;
  padding: 24px 26px;
  box-shadow: none;
}

.section-tag {
  display: inline-block;
  margin: 0 0 12px;
  color: #6b7c8b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.simple-contact-hero h1 {
  margin: 0 0 10px;
  color: #123d59;
  font-size: clamp(2.1rem, 3vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.simple-contact-hero p {
  margin: 0;
  color: #4f6778;
  font-size: 1rem;
  line-height: 1.8;
  max-width: 760px;
}

.contact-card-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  margin-top: 26px;
}

.contact-info-card,
.contact-form-card {
  background: #ffffff;
  border: 1px solid rgba(17, 47, 67, 0.08);
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: none;
}

.contact-info-card h2,
.contact-form-card h2 {
  margin: 0 0 18px;
  color: #123d59;
  font-size: 1.5rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #475d73;
  line-height: 1.7;
}

.contact-list i {
  width: 18px;
  margin-top: 3px;
  color: #176b52;
}

.contact-list a {
  color: #176b52;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.simple-contact-form {
  display: grid;
  gap: 16px;
}

.simple-contact-form label {
  display: grid;
  gap: 8px;
  color: #1d3f58;
  font-weight: 600;
  font-size: 0.96rem;
}

.simple-contact-form .required-field span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.simple-contact-form .required-field span::after {
  content: '*';
  color: #c90000;
  font-weight: 700;
  line-height: 1;
}

.form-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.88rem;
  color: #1b5e3b;
}

.form-status.error {
  color: #a10f1d;
}

.simple-contact-form input,
.simple-contact-form textarea {
  width: 100%;
  border: 1px solid rgba(17, 47, 67, 0.14);
  border-radius: 10px;
  background: #ffffff;
  color: #1d3f58;
  padding: 11px 12px;
  font: inherit;
  resize: vertical;
  box-sizing: border-box;
}

.simple-contact-form input:focus,
.simple-contact-form textarea:focus {
  outline: none;
  border-color: rgba(20, 120, 93, 0.45);
  box-shadow: 0 0 0 3px rgba(20, 120, 93, 0.08);
}

.submit-btn {
  border: 1px solid rgba(31, 122, 87, 0.4);
  border-radius: 10px;
  background: rgba(31, 122, 87, 0.12);
  color: #145d49;
  font-weight: 700;
  height: 44px;
  padding: 0 18px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  box-shadow: none;
}

.submit-btn:hover {
  background: rgba(31, 122, 87, 0.18);
  border-color: rgba(31, 122, 87, 0.55);
  color: #114d3d;
}

@media (max-width: 1200px) {
  .contact-footer-top {
    flex-direction: column;
  }

  .contact-footer-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    width: 100%;
  }

  .footer-brand {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .contact-footer {
    padding-left: 18px;
    padding-right: 18px;
    padding-top: 20px;
  }

  .contact-footer-top {
    gap: 18px;
  }

  .contact-footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contact-block {
    min-height: auto;
  }

  .contact-block h3 {
    margin-bottom: 10px;
    font-size: 0.92rem;
  }

  .contact-block p,
  .contact-block a {
    font-size: 0.9rem;
  }

  .social-row {
    gap: 12px;
  }

  .social-row a {
    width: 26px;
    height: 26px;
  }

  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
  }

  .footer-brand-mark {
    width: 52px;
    height: 52px;
  }

  .footer-brand-copy {
    font-size: 0.96rem;
    max-width: 200px;
  }
}

@media(max-width:1024px) {
  header {
    padding:20px 6%;
  }

  section {
    padding:60px 6%;
  }

  .hero {
    padding:32px 6%;
    gap:18px;
  }

  .hero h2 {
    font-size:36px;
  }

  .news-entry,
  .news-grid-2x2 {
    grid-template-columns:1fr;
  }
}

@media(max-width:900px){
  header {
    flex-direction:column;
    min-height:74px;
    height:auto;
    padding:14px 6%;
    align-items:flex-start;
  }

  .news-grid-2x2 {
    gap:18px;
  }

  .news-grid-2x2 .news-card {
    padding:22px;
  }

  .article-detail {
    grid-template-columns:1fr;
  }

  .menu-toggle {
    display:flex;
    margin-left:auto;
  }

  .main-nav {
    width:100%;
    flex-direction:column;
    align-items:flex-start;
    padding-top:12px;
    max-height:0;
    overflow:hidden;
    opacity:0;
    transition:all 0.3s ease;
  }

  .main-nav.open {
    max-height:900px;
    opacity:1;
    padding-bottom:8px;
  }

  .main-nav a,
  .nav-link {
    margin:0;
    padding:10px 0;
    width:100%;
  }

  .main-nav > .nav-dropdown {
    width:100%;
  }

  .nav-dropdown .dropdown-menu {
    position:static;
    box-shadow:none;
    padding:6px 0 6px 12px;
    border-left:2px solid #e8d4a8;
    margin:4px 0 8px 0;
    opacity:1;
    pointer-events:auto;
    transform:none;
    max-height:0;
    overflow:hidden;
    display:none;
  }

  .nav-dropdown.open .dropdown-menu {
    display:flex;
    max-height:240px;
  }

  .dropdown-menu a {
    padding:8px 0;
  }

  .hero-slider {
    width:100%;
    margin-left:0;
    margin-right:0;
    border-radius:20px;
  }

  .hero-track {
    display:flex;
    width:100%;
  }

  .hero-slide {
    flex:0 0 100%;
    width:100%;
    min-width:100%;
  }

  .hero-slide img {
    height:360px;
    width:100%;
    object-fit:cover;
    display:block;
  }

  .hero-overlay {
    padding:38px 6% 42px;
  }

  .hero-kicker {
    font-size:clamp(2.2rem, 8vw, 3.8rem);
  }

  .hero-overlay-text {
    font-size:clamp(1.1rem, 3vw, 1.8rem);
    line-height:1.35;
  }

  .grid {
    gap:22px;
  }

  .card, .grid div {
    padding:26px 20px;
  }

  .student {
    padding:50px 6%;
  }

  footer {
    padding:28px 6%;
  }
}

@media(max-width:600px) {
  header {
    padding:12px 5%;
    min-height:68px;
  }

  .logo {
    gap:14px;
  }

  .logo img {
    height:56px;
  }

  .hero {
    padding:24px 5%;
  }

  .hero h2 {
    font-size:28px;
  }

  .hero-copy {
    max-width:100%;
  }

  .hero-slide img {
    height:320px;
  }

  .hero-overlay {
    align-items: flex-start;
    justify-content: flex-end;
    padding: 18px 16px 20px;
    background: linear-gradient(180deg, rgba(13,13,13,0.15), rgba(13,13,13,0.82) 70%, rgba(13,13,13,0.88));
  }

  .hero-overlay-right {
    align-items:flex-start;
    justify-content:flex-end;
    text-align:left;
    padding: 16px 16px 20px;
    background: linear-gradient(180deg, rgba(15,15,15,0.12), rgba(15,15,15,0.78) 68%, rgba(15,15,15,0.88));
  }

  .hero-kicker,
  .hero-kicker-small {
    margin-bottom:10px;
  }

  .hero-kicker-small {
    font-size:1rem;
    letter-spacing:0.02em;
  }

  .hero-overlay-text {
    font-size:1.08rem;
    line-height:1.55;
    max-width:100%;
    font-weight:600;
  }

  .hero-overlay-text-right {
    max-width: 82%;
    font-size: 0.92rem;
    line-height:1.45;
    text-align:left;
  }

  .news-grid-2x2 {
    gap:18px;
  }

  .news-grid-2x2 .news-card {
    padding:20px;
  }

  .article-detail {
    grid-template-columns:1fr;
    gap:24px;
  }

  .article-detail img {
    min-height:220px;
  }

  .article-detail-copy {
    gap:18px;
  }

  .news-entry,
  .news-grid,
  .news-grid-2x2,
  .grid,
  .about-grid {
    grid-template-columns:1fr;
  }

  .card img {
    width:100%;
    margin:0 0 22px 0;
  }

  section {
    padding:40px 5%;
  }

  .footer-inner {
    gap:14px;
  }
}

.news-card {
  position: relative;
  background-color: transparent;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  filter: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(36, 74, 53, 0.08);
  backdrop-filter: blur(3px);
  min-height: 350px;
  text-align: center;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.news-card .news-view {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(12, 26, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  backdrop-filter: blur(4px);
}

.news-card .news-view i {
  font-size: 0.95rem;
}

.news-card:hover .news-view,
.news-card:focus-within .news-view {
  opacity: 1;
  transform: translateY(0);
}

.news-card img {
  display: block;
}
