:root {
  --color-primary: #4c6f83;
  --color-secondary: #d9c19e;
  --color-light: #ffffff;
  --color-dark: #000000;
  --color-surface: #11131a;
  --color-surface-alt: rgba(76, 111, 131, 0.1);
  --color-text: #f5f7fa;
  --gradient-hero: radial-gradient(circle at 20% 20%, rgba(76, 111, 131, 0.6), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(0, 102, 204, 0.4), transparent 60%),
    linear-gradient(160deg, #050608, #0c131e 40%, #050608 90%);
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
  background: var(--gradient-hero);
}

body {
  margin: 0;
  font-family: "Tajawal", "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--gradient-hero);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 90vw);
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 6, 8, 0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(217, 193, 158, 0.15);
  /* overflow-x: hidden;
  width: 100%; */
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  overflow-x: hidden;
}

/* --- Hamburger Menu Toggle (Mobile Only) --- */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 110;
}

.menu-toggle [data-icon="close"] {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-mark {
  position: relative;
  width: 5rem;
  height: 5rem;
  place-items: center;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
}

.brand-name {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.brand-tagline {
  font-weight: 300;
  color: rgba(245, 247, 250, 0.6);
}

.main-nav {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.main-nav a {
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  transition: background 0.3s ease, color 0.3s ease;
}

.lang-toggle {
  border: 1px solid rgba(217, 193, 158, 0.4);
  background: rgba(12, 19, 30, 0.6);
  color: var(--color-light);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  background: rgba(217, 193, 158, 0.25);
  transform: translateY(-2px);
  outline: none;
}

/* --- Responsive Breakpoint (Tablet/Mobile) --- */
@media (max-width: 992px) {
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 11;
    transition: transform 0.15s ease;
  }

  .menu-toggle:active {
    transform: scale(0.92);
  }

  .site-header[data-menu-open="true"] .menu-toggle [data-icon="open"] {
    display: none;
  }
  .site-header[data-menu-open="true"] .menu-toggle [data-icon="close"] {
    display: inline;
  }

  .site-header[data-menu-open="false"] .menu-toggle [data-icon="open"] {
    display: inline;
  }
  .site-header[data-menu-open="false"] .menu-toggle [data-icon="close"] {
    display: none;
  }

  .menu-toggle {
    position: relative;
    z-index: 101;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    bottom: 0;
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    background: var(--color-surface);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 50;
  }

  .site-header[data-menu-open="true"] .main-nav {
    transform: translateX(0);
    opacity: 1;
  }

  .main-nav a {
    font-size: 1.5rem;
    padding: 1rem 0;
    width: 100%;
    text-align: center;
    border-radius: 0;
  }

  .main-nav a:hover,
  .main-nav a:focus-visible {
    background: rgba(76, 111, 131, 0.2);
  }

  .main-nav .lang-toggle {
    margin-top: 1rem;
    font-size: 1.2rem;
    padding: 0.8rem 2rem;
    width: 200px;

  }
}

@media (max-width: 720px) {
  .site-header .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 0;
  }

  .brand {
    gap: 0.6rem;
  }

  .brand-mark {
    width: 3.6rem;
    height: 3.6rem;
  }
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(76, 111, 131, 0.2);
  color: var(--color-light);
}

.nav-cta {
  border: 1px solid rgba(217, 193, 158, 0.4);
}

.hero {
  position: relative;
  padding: 8rem 0 5rem;
  overflow: hidden;
  width: 100%;
}

.hero .container {
  display: grid;
  gap: 4rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.hero-copy .eyebrow {
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-secondary);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 4rem);
  line-height: 1.1;
  margin: 0 0 1.2rem;
}

.hero-description {
  font-size: 1.05rem;
  max-width: 32rem;
  color: rgba(245, 247, 250, 0.75);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--color-secondary);
  color: var(--color-dark);
  box-shadow: 0 10px 30px rgba(217, 193, 158, 0.35);
}

.btn.primary:hover,
.btn.primary:focus-visible {
  background: #e3ceaa;
}

.btn.ghost {
  border-color: rgba(245, 247, 250, 0.4);
  color: var(--color-light);
  background: transparent;
}

.hero-visual {
  display: grid;
  place-items: center;
}

.vision-mission {
  position: relative;
  background: rgba(5, 6, 8, 0.78);
  overflow: hidden;
  width: 100%;
}

.vision-mission::before {
  content: "";
  position: absolute;
  inset: -120px 35% 0 -20%;
  background: radial-gradient(circle at 20% 30%, rgba(76, 111, 131, 0.35), transparent 65%);
  opacity: 0.7;
}

.vision-mission .container {
  position: relative;
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.vision-media figure {
  margin: 0;
  background: rgba(12, 19, 30, 0.7);
  border-radius: 1.8rem;
  border: 1px solid rgba(76, 111, 131, 0.35);
  overflow: hidden;
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.3);
}

.vision-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vision-media figcaption {
  padding: 0.8rem 1.6rem;
  font-size: 0.8rem;
  color: rgba(245, 247, 250, 0.6);
  background: rgba(5, 6, 8, 0.75);
}

.vision-copy h2 {
  font-size: 2.4rem;
  margin-top: 0.4rem;
}

.vision-pill-group {
  margin-top: 2.4rem;
  display: grid;
  gap: 1.5rem;
}

.vision-pill {
  background: rgba(12, 19, 30, 0.75);
  border-radius: 1.4rem;
  padding: 1.6rem;
  border: 1px solid rgba(76, 111, 131, 0.3);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.25);
}

.vision-pill h3 {
  margin: 0 0 0.8rem;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

.vision-pill p {
  margin: 0;
  color: rgba(245, 247, 250, 0.75);
}

.core-values {
  background: radial-gradient(circle at 20% 30%, rgba(76, 111, 131, 0.35), transparent 65%),
    rgba(5, 6, 8, 0.85);
  overflow-x: hidden;
  width: 100%;
}

.core-values-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
}

.core-values-header h2 {
  margin: 0.5rem 0 0;
  max-width: 32rem;
  font-size: 2.3rem;
}

.values-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.value-card {
  background: rgba(12, 19, 30, 0.7);
  border-radius: 1.6rem;
  padding: 2rem;
  border: 1px solid rgba(76, 111, 131, 0.25);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.22);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 46px rgba(0, 0, 0, 0.3);
}

.value-card h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: var(--color-secondary);
}

.value-card p {
  margin-bottom: 0;
  color: rgba(245, 247, 250, 0.75);
}

.value-card--featured {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(217, 193, 158, 0.45);
}

.logo-preview-card {
  position: relative;
  padding: 2.4rem;
  background: rgba(5, 6, 8, 0.65);
  border-radius: 1.75rem;
  border: 1px solid rgba(76, 111, 131, 0.4);
  box-shadow: 0 36px 60px rgba(0, 0, 0, 0.35);
  width: min(420px, 100%);
  max-width: 100%;
}

.logo-caption {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.logo-emblem {
  position: relative;
  height: 140px;
  border-radius: 1.4rem;
  place-items: center;
  overflow: hidden;
  margin-bottom: 2rem;
}

.logo-emblem-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
}

.logo-notes div {
  background: rgba(12, 19, 30, 0.75);
  border-radius: 1rem;
  padding: 1rem;
  border: 1px solid rgba(76, 111, 131, 0.2);
}

.logo-notes dt {
  font-weight: 600;
  color: var(--color-secondary);
}

.logo-notes dd {
  margin: 0.3rem 0 0;
  color: rgba(245, 247, 250, 0.7);
  font-size: 0.85rem;
}

.floating-stars {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  inset: -10% 0 -10% 0;
  pointer-events: none;
  overflow: hidden;
  max-width: 100vw;
}

.floating-stars .star,
.floating-stars .orbiting,
.floating-stars .pulse {
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), transparent 70%);
  border-radius: 50%;
  opacity: 0.7;
}

.floating-stars .star {
  animation: twinkle 4s infinite ease-in-out;
}

.floating-stars .star:nth-child(1) {
  top: 15%;
  left: 12%;
  animation-delay: 0.4s;
}

.floating-stars .star:nth-child(2) {
  top: 8%;
  right: 20%;
  animation-delay: 1.2s;
}

.floating-stars .star:nth-child(3) {
  bottom: 18%;
  left: 25%;
  animation-delay: 2.1s;
}

.floating-stars .star:nth-child(4) {
  bottom: 22%;
  right: 18%;
  animation-delay: 3s;
}

.floating-stars .orbiting {
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, rgba(217, 193, 158, 0.9), transparent 65%);
  animation: orbit 8s linear infinite;
}

.floating-stars .orbiting:nth-child(5) {
  top: 20%;
  right: 35%;
  animation-duration: 9s;
}

.floating-stars .orbiting:nth-child(6) {
  bottom: 25%;
  left: 18%;
  animation-duration: 11s;
}

.floating-stars .pulse {
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, rgba(148, 201, 255, 0.95), transparent 60%);
  animation: pulse 6s ease-in-out infinite;
}

.floating-stars .pulse:nth-child(7) {
  top: 32%;
  left: 45%;
  animation-delay: 1.3s;
}

.floating-stars .pulse:nth-child(8) {
  bottom: 30%;
  right: 28%;
  animation-delay: 2.7s;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.6);
  }
}

@keyframes orbit {
  0% {
    transform: translate(-20px, -10px) rotate(0deg) scale(0.9);
    opacity: 0.3;
  }
  50% {
    transform: translate(20px, 15px) rotate(180deg) scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-20px, -10px) rotate(360deg) scale(0.9);
    opacity: 0.3;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.6);
  }
}

.space-layers {
  position: relative;
  height: 160px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(5, 6, 8, 0) 0%, rgba(5, 6, 8, 0.7) 100%);
  max-width: 100vw;
}

.space-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  animation: drift 18s linear infinite;
}

.space-layer::before,
.space-layer::after {
  content: "";
  position: absolute;
  inset: -40% -40%;
  background: radial-gradient(circle, rgba(76, 111, 131, 0.25), transparent 70%);
}

.space-layer::after {
  background: radial-gradient(circle, rgba(217, 193, 158, 0.2), transparent 70%);
  transform: rotate(45deg);
}

.space-layer--faint {
  animation-duration: 24s;
  opacity: 0.25;
}

.space-layer--drift {
  animation-duration: 30s;
  opacity: 0.35;
}

.space-layer--flare {
  animation-duration: 18s;
  opacity: 0.45;
  mix-blend-mode: screen;
}

@keyframes drift {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10%);
  }
  100% {
    transform: translateY(0);
  }
}

section {
  padding: 6rem 0;
  overflow-x: hidden;
  width: 100%;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.section-header p {
  max-width: 36rem;
  margin: 0 auto;
  color: rgba(245, 247, 250, 0.7);
}

.program-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.program-grid article {
  background: rgba(5, 6, 8, 0.55);
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid rgba(76, 111, 131, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-grid article:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.25);
}

/* --- Gallery Grid Styles --- */
.gallery {
  background: radial-gradient(circle at -10% 20%, rgba(76, 111, 131, 0.25), transparent 60%),
    rgba(5, 6, 8, 0.8);
  overflow-x: hidden;
  width: 100%;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-grid figure {
  position: relative;
  margin: 0;
  border-radius: 1.2rem;
  overflow: hidden;
  border: 1px solid rgba(76, 111, 131, 0.35);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
  background: rgba(12, 19, 30, 0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-grid figure:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
}

.gallery-item-link {
  display: block;
  height: 100%;
  width: 100%;
}

.gallery-grid img {
  width: 100%;
  height: 280px;
  display: block;
  object-fit: cover;
  filter: saturate(1.05);
  transition: transform 0.5s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.05);
}

.gallery-grid figcaption {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  background: rgba(5, 6, 8, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(217, 193, 158, 0.4);
  color: rgba(245, 247, 250, 0.95);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  max-width: 80%;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.gallery-grid figure:nth-child(1) {
  grid-column: span 2;
  height: calc(280px + 1.5rem + 280px);
}

.gallery-grid figure:nth-child(1) img {
  height: 100%;
}

@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .gallery-grid figure:nth-child(1) {
    grid-column: auto;
    height: auto;
  }

  .gallery-grid img {
    height: auto;
    aspect-ratio: 4/3;
  }

  .gallery-grid figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    padding: 0.8rem 1rem;
    background: rgba(5, 6, 8, 0.9);
    border: none;
    border-top: 1px solid rgba(76, 111, 131, 0.3);
    font-size: 0.9rem;
    gap: 0.3rem;
  }
}

.events {
  background: rgba(5, 6, 8, 0.65);
  overflow-x: hidden;
  width: 100%;
}

.event-list {
  display: grid;
  gap: 1.6rem;
}

.event-list article {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  background: rgba(12, 19, 30, 0.7);
  padding: 1.8rem 2rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(76, 111, 131, 0.3);
}

.event-list time {
  font-weight: 600;
  color: var(--color-secondary);
}

.event-link {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: rgba(76, 111, 131, 0.2);
  border: 1px solid rgba(76, 111, 131, 0.35);
  font-weight: 500;
}

.membership {
  position: relative;
  background: radial-gradient(circle at 30% 20%, rgba(76, 111, 131, 0.3), transparent 55%),
    rgba(5, 6, 8, 0.8);
  overflow-x: hidden;
  width: 100%;
}

.membership-card {
  background: rgba(12, 19, 30, 0.75);
  border-radius: 2rem;
  padding: 3rem;
  border: 1px solid rgba(217, 193, 158, 0.45);
  box-shadow: 0 36px 60px rgba(0, 0, 0, 0.35);
  text-align: center;
  max-width: 100%;
}

.membership-tiers {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 3rem 0;
}

.membership-tiers article {
  background: rgba(5, 6, 8, 0.7);
  border-radius: 1.4rem;
  padding: 1.8rem 1.4rem;
  border: 1px solid rgba(76, 111, 131, 0.3);
}

.membership .price {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--color-secondary);
}

.contact {
  background: rgba(5, 6, 8, 0.7);
  overflow-x: hidden;
  width: 100%;
}

.contact-card {
  background: rgba(12, 19, 30, 0.7);
  border-radius: 2rem;
  padding: 3rem;
  border: 1px solid rgba(76, 111, 131, 0.3);
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.3);
  max-width: 720px;
  margin: 0 auto;
  overflow-x: hidden;
  width: 100%;
}

.contact-form {
  margin-top: 2rem;
  display: grid;
  gap: 1.4rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

label {
  font-weight: 500;
}

input,
textarea {
  background: rgba(5, 6, 8, 0.9);
  border: 1px solid rgba(76, 111, 131, 0.35);
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
  color: var(--color-text);
  font-size: 1rem;
  font-family: inherit;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

input:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 4px rgba(217, 193, 158, 0.2);
}

.form-feedback {
  margin-top: 1.4rem;
  font-weight: 500;
  min-height: 1.2rem;
  transition: color 0.3s ease;
  color: rgba(245, 247, 250, 0.7);
}

.form-feedback[data-state="sending"] {
  color: rgba(217, 193, 158, 0.8);
}

.form-feedback[data-state="success"] {
  color: var(--color-secondary);
}

.form-feedback[data-state="error"] {
  color: #f87171;
}

.site-footer {
  border-top: 1px solid rgba(76, 111, 131, 0.2);
  background: rgba(5, 6, 8, 0.85);
  padding: 2rem 0;
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.2rem;
}

.footer-links a {
  color: rgba(245, 247, 250, 0.7);
  font-weight: 500;
}

@media (max-width: 720px) {
  .vision-mission .container {
    grid-template-columns: 1fr;
  }

  .core-values-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .logo-preview-card {
    padding: 2rem 1.6rem;
  }

  .event-list article {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .event-list article a {
    justify-self: center;
  }
}

@media (max-width: 540px) {
  .hero {
    padding-top: 6rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .logo-notes {
    grid-template-columns: 1fr;
  }
  .brand-text{
    font-size: 15px;
  }
}

/* --- Lightbox Styles (Added) --- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: 1rem;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(217, 193, 158, 0.2);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox.is-open .lightbox-content {
    transform: scale(1);
}

#lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 1rem 1rem 0 0;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(5, 6, 8, 0.7);
  border: 1px solid rgba(217, 193, 158, 0.4);
  color: var(--color-secondary);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1010;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  background: var(--color-surface);
  transform: rotate(90deg);
}

#lightbox-caption {
  margin: 0;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  color: rgba(245, 247, 250, 0.8);
  background: rgba(12, 19, 30, 0.7);
  border-top: 1px solid rgba(76, 111, 131, 0.2);
  /* Flexbox to handle the nested spans in lightbox too */
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* --- Contact Info Bar (New Styles) --- */
.contact-info-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(76, 111, 131, 0.15);
  border-radius: 1rem;
  border: 1px solid rgba(76, 111, 131, 0.2);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-secondary);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s;
}

.contact-item:hover {
  color: var(--color-light);
  text-decoration: underline;
}

@media (max-width: 600px) {
  .contact-info-bar {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

/* --- Photo Credit Styles (New) --- */
.photo-credit {
  font-size: 0.7rem;
  color: rgba(217, 193, 158, 0.8); /* Use secondary color but dimmer */
  font-weight: 400;
  margin-top: 0.1rem;
}

/* --- Publications Section Styles --- */
.publications {
  background: rgba(5, 6, 8, 0.75);
}

.publications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.publication-card {
  background: rgba(12, 19, 30, 0.7);
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(76, 111, 131, 0.3);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.publication-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

.publication-cover {
  width: 100%;
  height: 360px;
  background: linear-gradient(135deg, rgba(76, 111, 131, 0.3), rgba(217, 193, 158, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.publication-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.publication-cover i {
  font-size: 4rem;
  color: rgba(217, 193, 158, 0.5);
}

.publication-card h3 {
  padding: 1.5rem 1.5rem 0.5rem;
  margin: 0;
  font-size: 1.3rem;
  color: var(--color-secondary);
}

.publication-card p {
  padding: 0 1.5rem 1.5rem;
  margin: 0;
  color: rgba(245, 247, 250, 0.7);
  flex-grow: 1;
}

.publication-card .btn {
  margin: 0 1.5rem 1.5rem;
  text-align: center;
}

.publication-card.coming-soon {
  opacity: 0.8;
}

.publication-card.coming-soon .publication-cover {
  background: linear-gradient(135deg, rgba(76, 111, 131, 0.2), rgba(217, 193, 158, 0.15));
}

/* Mobile publications fix */
@media (max-width: 600px) {
  .publications-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }
  
  .publication-card {
    border-radius: 1.5rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  }
  
  .publication-cover {
    height: 300px;
    border-radius: 1.5rem 1.5rem 0 0;
  }
}
/* --- Sky Map Section Styles --- */
.skymap {
  background: radial-gradient(circle at 50% 20%, rgba(76, 111, 131, 0.25), transparent 65%),
    rgba(5, 6, 8, 0.8);
}

.skymap-container {
  background: rgba(12, 19, 30, 0.9);
  border-radius: 2rem;
  overflow: hidden;
  border: 2px solid rgba(217, 193, 158, 0.3);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.4),
    inset 0 0 60px rgba(76, 111, 131, 0.1);
  position: relative;
}

/* Decorative corner accents */
.skymap-container::before,
.skymap-container::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  border: 2px solid rgba(217, 193, 158, 0.4);
  z-index: 1;
  pointer-events: none;
}

.skymap-container::before {
  top: -2px;
  left: -2px;
  border-right: none;
  border-bottom: none;
  border-radius: 2rem 0 0 0;
}

.skymap-container::after {
  bottom: -2px;
  right: -2px;
  border-left: none;
  border-top: none;
  border-radius: 0 0 2rem 0;
}

.skymap-frame {
  position: relative;
  background: linear-gradient(135deg, rgba(76, 111, 131, 0.15), rgba(217, 193, 158, 0.08));
  padding: 1.5rem;
  border-bottom: 1px solid rgba(76, 111, 131, 0.2);
}

.skymap-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(217, 193, 158, 0.5) 50%, 
    transparent);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

.skymap-container iframe {
  display: block;
  width: 100%;
  border: none;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.skymap-controls {
  padding: 2rem 1.5rem;
  background: rgba(5, 6, 8, 0.9);
  text-align: center;
  position: relative;
}

.skymap-controls::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(76, 111, 131, 0.5) 50%, 
    transparent);
}

.skymap-controls .btn {
  position: relative;
  overflow: hidden;
}

.skymap-controls .btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.skymap-controls .btn:hover::before {
  width: 300px;
  height: 300px;
}

.skymap-controls .btn i {
  margin-left: 0.5rem;
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.skymap-controls .btn:hover i {
  transform: translate(3px, -3px);
}

@media (max-width: 720px) {
  .skymap-container iframe {
    height: 400px;
  }
  
  .skymap-frame {
    padding: 1rem;
  }
  
  .skymap-container::before,
  .skymap-container::after {
    width: 50px;
    height: 50px;
  }
}