@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --primary: #6366f1; /* Indigo */
  --primary-dark: #4f46e5;
  --secondary: #8b5cf6; /* Purple */
  --accent: #f59e0b; /* Amber */
  --accent-dark: #d97706;
  --success: #10b981; /* Emerald */
  --danger: #ef4444; /* Red */
  --warning: #f59e0b;
  --info: #06b6d4; /* Cyan */

  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-dark: #1e293b;
  --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-dark: #475569;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(180deg, #eff3ff 0%, #f8fbff 48%, #ffffff 100%);
}

body.modal-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-public {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.theme-admin {
  color: var(--text-primary);
  background: var(--bg-primary);
}

.ambient {
  position: fixed;
  z-index: 0;
  border-radius: var(--radius-md);
  pointer-events: none;
  filter: blur(24px);
  opacity: 0.65;
}

.ambient--one {
  top: 70px;
  left: -90px;
  width: 250px;
  height: 250px;
  background: rgba(245, 158, 11, 0.16);
}

.ambient--two {
  top: 220px;
  right: -90px;
  width: 320px;
  height: 320px;
  background: rgba(0, 107, 179, 0.14);
}

.ambient--three {
  top: 80px;
  right: -60px;
  width: 260px;
  height: 260px;
  background: rgba(245, 158, 11, 0.12);
}

.ambient--four {
  bottom: 50px;
  left: -50px;
  width: 280px;
  height: 280px;
  background: rgba(0, 107, 179, 0.12);
}

.site-shell,
.admin-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2cm), var(--max-width));
  margin: 0 auto;
}

.site-shell {
  padding: 24px 1cm 88px;
}

.admin-shell {
  padding: 24px 0 64px;
}

.site-nav,
.admin-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
}

.theme-public .site-nav {
  background: #003366;
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.theme-admin .admin-nav {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-light);
  backdrop-filter: blur(18px);
}

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

.brand__mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: #ffffff;
  color: #003366;
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.brand small {
  margin-top: 3px;
  opacity: 0.72;
}

.nav-actions,
.action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  font-weight: 600;
  font-size: 1rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn--primary {
  color: var(--text-white);
  background: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  background: var(--primary-dark);
}

.btn--ghost {
  background: transparent;
  border: 2px solid var(--border-medium);
  color: var(--text-primary);
}

.btn--ghost:hover {
  background: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
}

.btn--wide {
  width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.theme-public .eyebrow {
  color: var(--navy);
}

.theme-admin .eyebrow {
  color: var(--teal);
}

.display-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero-copy .display-title,
.admin-hero .display-title {
  font-size: clamp(2.8rem, 7vw, 5.7rem);
}

.login-story .display-title {
  font-size: clamp(2.6rem, 6vw, 5rem);
}

.lead {
  margin: 18px 0 0;
  max-width: 760px;
  font-size: 1.06rem;
  line-height: 1.8;
}

.theme-public .lead {
  color: var(--ink-soft);
}

.theme-admin .lead {
  color: rgba(17, 24, 39, 0.72);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 28px;
  align-items: stretch;
  margin-top: 26px;
}

.hero-copy,
.hero-showcase,
.info-card,
.club-cloud,
.gallery-section,
.login-story,
.panel-card,
.admin-hero {
  border-radius: var(--radius-xl);
}

.hero-copy {
  padding: 38px;
  background: #ffffff;
  border: 1px solid var(--line-light);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-xl);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.metric-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.theme-public .metric-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

.theme-public .metric-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.theme-admin .metric-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.metric-card span {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.metric-card strong {
  display: block;
  margin-top: 12px;
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 700;
  color: var(--primary);
}

.hero-showcase {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 28px;
  background: #003366;
  color: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}



.showcase-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
}

.showcase-panel__tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.05);
  color: var(--sand);
  font-size: 0.86rem;
  font-weight: 700;
}

.showcase-panel h2,
.section-head h2,
.panel-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.showcase-panel p,
.info-card p,
.panel-card p,
.activity-tile__text p,
.section-head--inline p,
.panel-note p {
  margin: 0;
  line-height: 1.7;
}

.theme-public .showcase-panel p, .theme-public .info-card p, .theme-public .activity-tile__text p {
  color: var(--ink-soft);
}

.theme-admin .panel-card p,
.theme-admin .panel-note p {
  color: rgba(17, 24, 39, 0.7);
}

.showcase-stack,
.feature-stack,
.dashboard-side,
.activity-list,
.bullet-list {
  display: grid;
  gap: 14px;
}

.showcase-card,
.feature-card,
.activity-list__item {
  padding: 18px;
  border-radius: 20px;
}

.showcase-card {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.showcase-card strong,
.feature-card strong,
.activity-list__item strong {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
}

.showcase-card small {
  display: block;
  margin-top: 8px;
  color: rgba(0, 0, 0, 0.05);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 700;
}

.badge--soft {
  background: var(--primary);
  color: var(--text-white);
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.badge--outline {
  border: 1px solid var(--line-dark);
  color: var(--ink);
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.info-card {
  padding: 26px;
  background: #ffffff;
  border: 1px solid var(--line-light);
  box-shadow: var(--shadow-soft);
}

.info-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.16);
  color: var(--sand);
  font-weight: 800;
}

.info-card strong {
  display: block;
  margin: 18px 0 8px;
  font-size: 1.15rem;
}

.club-cloud,
.gallery-section,
.admin-hero,
.panel-card {
  padding: 30px;
}

.club-cloud, .gallery-section {
  margin-top: 24px;
  background: #ffffff;
  border: 1px solid var(--line-light);
  box-shadow: var(--shadow-soft);
}

.section-head {
  display: grid;
  gap: 8px;
}

.section-head--inline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-head--inline p {
  color: var(--ink-soft);
}

.pill-cloud,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  background: #f8fafc;
  border: 1px solid var(--line-light);
  color: var(--ink);
}

.filters-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: #f8fafc;
  border: 1px solid var(--line-light);
}

.control-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1.2fr;
  gap: 14px;
}

.chip {
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-dark);
  background: #ffffff;
  color: var(--ink);
}

.chip.is-active {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.94rem;
  font-weight: 700;
}

.field small {
  color: rgba(100, 116, 139, 0.88);
}

.theme-public .field label {
  color: var(--ink);
}

.theme-public .field input, .theme-public .field select, .theme-public .field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-dark);
  background: #ffffff;
  color: var(--ink);
}

.theme-admin .field input,
.theme-admin .field select,
.theme-admin .field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(0, 0, 0, 0.05);
  color: var(--ink);
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.activity-tile {
  overflow: hidden;
  border-radius: 1.75rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
  border: 1px solid rgba(59, 130, 246, 0.12);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 480px;
}

.activity-tile:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.activity-tile[hidden] {
  display: none;
}

.activity-tile__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.activity-tile__media img,
.activity-tile__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-tile__media {
  min-height: 220px;
}

.activity-tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.7) 100%);
}

.activity-tile__top {
  position: absolute;
  inset: 16px 16px auto 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.media-trigger {
  position: absolute;
  left: 20px;
  bottom: 20px;
  border: 0;
  border-radius: var(--radius-md);
  min-height: 44px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  backdrop-filter: blur(12px);
  font-weight: 600;
  transition: var(--transition);
}

.media-trigger:hover {
  background: var(--primary);
  color: var(--text-white);
  transform: scale(1.05);
}

.activity-tile__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  flex: 1;
}

.activity-tile__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-tile__text h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--primary);
}

.activity-description {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.see-more-btn {
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.see-more-btn:hover {
  color: var(--primary-dark);
}

.activity-tile__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--ink-soft);
  margin-top: auto;
}

.text-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  padding: 0;
}

.theme-public .text-button {
  color: var(--navy);
}

.theme-admin .text-button {
  color: var(--teal-deep);
}

.empty-state,
.empty-inline {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.empty-state {
  margin-top: 22px;
  padding: 40px 22px;
  border-radius: var(--radius-lg);
  background: #f8fafc;
  border: 1px dashed var(--line-dark);
  color: var(--ink);
}

.empty-state strong,
.empty-inline {
  font-size: 1.04rem;
}

.flash {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  font-weight: 700;
}

.flash--success {
  background: rgba(15, 139, 109, 0.16);
  color: #d1fae5;
  border: 1px solid rgba(15, 139, 109, 0.28);
}

.flash--error {
  background: rgba(180, 35, 24, 0.16);
  color: #ffe4e2;
  border: 1px solid rgba(180, 35, 24, 0.28);
}

.theme-admin .flash--success {
  color: #065f46;
}

.theme-admin .flash--error {
  color: #912018;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 26px;
  align-items: stretch;
}

.login-story {
  padding: 32px;
  background:
    linear-gradient(145deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05)),
    linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(0, 107, 179, 0.08));
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-light);
}

.login-story .brand {
  margin-bottom: 40px;
}

.feature-card,
.panel-card {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-light);
}

.feature-card p {
  margin-top: 8px;
  color: rgba(17, 24, 39, 0.68);
}

.login-panel {
  display: flex;
  align-items: center;
}

.panel-card {
  width: 100%;
}

.stack {
  display: grid;
  gap: 16px;
}

.panel-note {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(0, 75, 128, 0.06);
  border: 1px solid rgba(0, 75, 128, 0.1);
}

.panel-note span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--teal-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.password-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.theme-admin .icon-button {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  color: var(--ink);
  background: rgba(15, 23, 42, 0.06);
}

.admin-hero {
  margin-top: 22px;
  background:
    linear-gradient(145deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05)),
    linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(0, 107, 179, 0.08));
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-light);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 360px;
  gap: 24px;
  margin-top: 24px;
}

.bullet-list div,
.activity-list__item p {
  color: rgba(17, 24, 39, 0.68);
  line-height: 1.65;
}

.bullet-list div {
  position: relative;
  padding-left: 20px;
}

.bullet-list div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--teal), var(--accent));
}

.activity-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.activity-list__item p {
  margin: 6px 0 0;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.modal[hidden] {
  display: none;
}

.modal__dialog {
  width: min(1000px, 100%);
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xl);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-primary);
}

.modal__header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.modal__body {
  background: var(--bg-primary);
  padding: 28px;
}

.modal__body img,
.modal__body video {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero-grid,
  .login-layout,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  .site-shell,
  .admin-shell {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .site-nav,
  .admin-nav,
  .section-head--inline,
  .activity-list__item {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy,
  .hero-showcase,
  .club-cloud,
  .gallery-section,
  .login-story,
  .panel-card,
  .admin-hero {
    padding: 24px;
  }

  .metric-row,
  .info-strip,
  .activity-grid {
    grid-template-columns: 1fr;
  }

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

  .btn,
  .chip,
  .media-trigger {
    width: 100%;
  }

  .action-row,
  .nav-actions,
  .chip-row {
    width: 100%;
  }
}


/* --- INSTITUTIONAL TEMPLATE OVERRIDES --- */

/* Header */
.site-header {
  background: var(--bg-gradient);
  color: var(--text-white);
  border-bottom: 3px solid var(--accent);
  box-shadow: var(--shadow-lg);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
}
.brand-header {
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
}
.brand-header .brand__mark {
  background: var(--text-white);
  color: var(--primary);
  font-size: 1.2rem;
  padding: 12px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.main-nav a:hover, .main-nav a.is-active {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 15px;
  }

  .main-nav {
    gap: 10px;
  }

  .main-nav a {
    padding: 6px 10px;
    font-size: 0.9rem;
  }
}

/* Page Layout */
.layout-page {
  padding-top: 40px;
  padding-bottom: 60px;
}
.hero-academic {
  background: var(--bg-primary);
  padding: 60px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xl);
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  position: relative;
  overflow: hidden;
}

.hero-academic::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  pointer-events: none;
}
.hero-academic__content {
  flex: 1;
}
.hero-academic .display-title {
  color: var(--primary);
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 2.5rem;
}
.layout-sidebar {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 30px;
  align-items: start;
}

.filters-bar {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 1.25rem;
  padding: 24px;
  margin-bottom: 32px;
  margin-top: 32px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

.filters-bar__inner {
  display: grid;
  gap: 20px;
}

.filters-bar h3 {
  margin: 0;
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 700;
}

.filters-bar__fields {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
  align-items: end;
}

.filters-bar .field {
  margin: 0;
}

.filters-bar input,
.filters-bar select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 0.75rem;
  background: #ffffff;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.filters-bar input:focus,
.filters-bar select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.events-section {
  margin-top: 0;
}
@media (max-width: 1180px) {
  .activity-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .layout-sidebar {
    grid-template-columns: 1fr;
  }
  .hero-academic {
    flex-direction: column;
  }
  .activity-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .filters-bar__fields {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .filters-bar input,
  .filters-bar select {
    padding: 12px 14px;
  }
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, #081827 0%, #102f56 100%);
  color: #f5f7ff;
  padding: 32px 0;
  margin-top: 80px;
  border-top: 4px solid rgba(59, 130, 246, 0.9);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 24px 0;
}

.footer-brand strong {
  display: block;
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.footer-brand p {
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* Admin Intranet Components */
.login-wrapper {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(99,102,241,0.15) 0%, rgba(248,250,252,1) 55%);
}
.login-container {
  background: rgba(255,255,255,0.98);
  padding: 48px 42px;
  border-radius: 1.5rem;
  box-shadow: 0 35px 90px rgba(15, 23, 42, 0.12);
  width: min(100%, 520px);
  text-align: center;
  border: 1px solid rgba(99, 102, 241, 0.14);
}
.login-header {
  display: grid;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}
.login-header img {
  width: 72px;
  height: auto;
  margin: 0 auto;
  border-radius: 1rem;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15,23,42,0.08);
}
.login-header h2 {
  color: var(--primary);
  margin: 0;
  font-size: 2rem;
}
.login-header p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 1rem;
}
.login-form {
  margin-top: 18px;
  text-align: left;
}
.login-panel {
  background: #f8fafc;
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 1.25rem;
  padding: 36px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}
.login-form .field {
  margin-bottom: 18px;
}
.login-form label {
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}
.login-form input {
  width: 100%;
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: #f8f9ff;
  color: var(--text-primary);
  border-radius: 1rem;
  padding: 16px 18px;
  transition: all 0.3s ease;
}
.login-form input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.12);
}
.password-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}
.login-footer {
  margin-top: 28px;
}
.login-footer a {
  color: var(--primary);
  font-weight: 700;
}

.admin-dashboard-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
}
.form-panel, .history-panel {
  padding: 30px;
}
.divider {
  border: 0;
  border-top: 1px solid var(--line-light);
  margin: 20px 0;
}
.form-section {
  background: #f8fafc;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-light);
  margin-bottom: 20px;
}
.form-section-title {
  color: var(--navy);
  margin: 0 0 15px;
  font-size: 1.1rem;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
}

/* Data Table */
.table-responsive {
  overflow-x: auto;
  margin-top: 20px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th, .admin-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--line-light);
}
.admin-table th {
  background: #f1f5f9;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
}
.admin-table tr:hover {
  background: #f8fafc;
}
.admin-table .td-date {
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.admin-table .td-title {
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 1080px) {
  .admin-dashboard-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .admin-layout-wrapper {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  .admin-main-content {
    padding: 24px 20px 40px;
  }
}

@media (max-width: 760px) {
  .hero-academic {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }
  .site-header .site-shell {
    flex-direction: column;
    gap: 16px;
  }
  .layout-sidebar {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .footer-social {
    justify-content: center;
  }
}


/* --- MAGNIFICENT DESIGN ENHANCEMENTS --- */

/* App Header Gradient Glow */
.site-header {
  background: linear-gradient(135deg, #002244 0%, #004080 100%);
  border-bottom: 3px solid #f59e0b;
  position: relative;
  overflow: hidden;
}
.site-header::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.83-54.627 54.627-.83-.83L54.627 0zM0 54.627l.83-.83L54.627 60l-.83.83L0 54.627z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Hero Parallax and Softness */
.hero-academic {
  background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
  border-top: 4px solid #f59e0b;
  box-shadow: 0 20px 50px -20px rgba(0, 51, 102, 0.14);
  transform: translateY(0);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) minmax(280px, 0.8fr);
  gap: 32px;
  align-items: center;
  padding: 48px;
  border-radius: 2rem;
}
.hero-academic:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 60px -24px rgba(0, 51, 102, 0.18);
}
.hero-academic__content {
  max-width: 620px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.hero-actions .btn {
  min-width: 180px;
}

/* Activity Tiles Elegance */
.activity-tile {
  border: none;
  background: #ffffff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.activity-tile__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,34,68,0.8) 0%, transparent 60%);
  opacity: 0.8;
  transition: opacity 0.4s ease;
}
.activity-tile:hover .activity-tile__media::after {
  opacity: 0.95;
}
.activity-tile:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 40px -10px rgba(0,34,68,0.2);
}

/* Micro-interactions Button */
.btn {
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  background: rgba(255,255,255,0.15);
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  transition: transform 0.5s ease;
}
.btn:active::after {
  transform: translate(-50%, -50%) scale(1);
  transition: 0s;
}

/* Admin Panels Structure */
.admin-dashboard-layout .panel-card {
  border-top: 4px solid var(--navy);
  background: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
}

/* Animated Table Rows */
.admin-table tbody tr {
  transition: background 0.2s, transform 0.2s;
}
.admin-table tbody tr:hover {
  background: #f8fafc;
  transform: scale(1.005);
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Smooth Badges */
.badge--soft {
  background: rgba(245, 158, 11, 0.15);
  color: #925e00;
  border-radius: 12px;
}


/* --- DELUXE TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6, .brand strong, .display-title, .brand__mark {
    font-family: 'Outfit', sans-serif !important;
}

/* --- ADMIN SIDEBAR ARCHITECTURE --- */
.admin-layout-wrapper {
    display: flex;
    min-height: 100vh;
    background: #f1f5f9; /* Formel gray background */
}

.admin-sidebar {
    width: 300px;
    background: var(--bg-gradient);
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    box-shadow: var(--shadow-xl);
    z-index: 100;
}

.admin-sidebar-header {
    padding: 30px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.admin-sidebar-header .brand {
    color: #fff;
    text-decoration: none;
}
.admin-sidebar-header .brand__mark {
    background: #ffffff;
    padding: 4px;
    border-radius: 8px;
}

.admin-sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 16px;
}

.admin-sidebar-nav a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-sidebar-nav a:hover {
    color: var(--text-white);
    background: rgba(255,255,255,0.1);
    transform: translateX(4px);
}

.admin-sidebar-nav a.is-active {
    color: var(--text-white);
    background: rgba(255,255,255,0.15);
    border-left: 4px solid var(--accent);
    box-shadow: var(--shadow-md);
}

.admin-sidebar-footer {
    padding: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.admin-main-content {
    flex: 1;
    padding: 40px 50px;
    overflow-y: auto;
}

/* --- EDIT ACTIVITY SPLIT VIEW --- */
.split-view-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #ffffff;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(0,34,68,0.08);
}

.split-view-visual {
    background: #001f3f;
    position: relative;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
}

.split-view-visual img,
.split-view-visual video {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    margin-bottom: 30px;
    object-fit: cover;
    aspect-ratio: 4/3;
    border: 4px solid rgba(255,255,255,0.1);
}

.split-view-visual h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.split-view-form {
    padding: 50px 40px;
}

/* ═══════════════════════════════════════════════
   CARD CAROUSEL
═══════════════════════════════════════════════ */
.tile-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.tile-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
  pointer-events: none;
}

.tile-carousel__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.tile-carousel__slide img,
.tile-carousel__slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.2s, background 0.2s, transform 0.2s;
}

.activity-tile__media:hover .carousel-arrow {
  opacity: 1;
}

.carousel-arrow:hover {
  background: rgba(245, 158, 11, 0.85);
  transform: translateY(-50%) scale(1.1);
}

.carousel-arrow--prev { left: 10px; }
.carousel-arrow--next { right: 10px; }

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 62px; /* above the "Voir Détails" button */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}

.carousel-dot.is-active {
  background: #f59e0b;
  transform: scale(1.4);
}

/* Media count badge */
.media-count-badge {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════
   LIGHTBOX MODAL NAVIGATION
═══════════════════════════════════════════════ */
.modal__dialog {
  position: relative; /* needed for abs-positioned nav buttons */
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.2s;
}

.modal-nav[hidden] { display: none; }

.modal-nav:hover {
  background: rgba(245, 158, 11, 0.85);
  transform: translateY(-50%) scale(1.08);
}

.modal-nav--prev { left: -24px; }
.modal-nav--next { right: -24px; }

@media (max-width: 760px) {
  .modal-nav--prev { left: 8px; }
  .modal-nav--next { right: 8px; }
}

