:root {
  /* Colors */
  --color-primary: #3B225E;
  /* Deep Purple */
  --color-primary-dark: #2A1845;
  --color-accent: #C5A048;
  /* Gold */
  --color-accent-light: #D4AF37;
  --color-bg: #FCFBF7;
  /* Cream/White */
  --color-bg-secondary: #F4F2EB;
  --color-text: #1A1A1A;
  --color-text-light: #555555;
  --color-white: #FFFFFF;

  /* Typography */
  --font-heading: 'Sorts Mill Goudy', serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";

  /* Spacing */
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
}

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

ul {
  list-style: none;
}

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

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Nav */
.header {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent);
}

/* Hero Section */
.hero {
  background: url('/assets/img/hero_bg.png');
  background-size: cover;
  background-position: center top;
  color: var(--color-white);
  padding: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--color-white);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  font-weight: 300;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-primary);
  border: none;
}

.btn-primary:hover {
  background-color: var(--color-accent-light);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-white);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.hero-image-side {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  margin-top: 40px;
  width: 400px;
  z-index: 1;
  opacity: 1;
  pointer-events: none;
}

/* Features Bar */
.features-bar {
  background-color: var(--color-white);
  padding: 3rem 0;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid #eee;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  color: var(--color-accent);
  font-size: 2rem;
}

.feature-text h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.feature-text p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* Sections */
.section {
  padding: var(--spacing-lg) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.section-title {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  border-bottom: 2px dotted var(--color-accent);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: var(--color-white);
  padding: 0;
  border-radius: 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-icon {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin: 2.5rem 2.5rem 1.5rem;
}

.card-title {
  font-size: 1.3rem;
  margin: 0 2.5rem 1rem;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin: 0 2.5rem 1.5rem;
}

.card-link {
  color: var(--color-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 2.5rem 2.5rem;
}

.card-link:hover {
  color: var(--color-accent);
}

/* Footer */
.footer {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  padding: var(--spacing-lg) 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--color-accent);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-btns {
    flex-direction: column;
  }
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-white);
  min-width: 250px;
  box-shadow: var(--shadow-md);
  border-radius: 4px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 20px;
  border-width: 0 6px 6px 6px;
  border-style: solid;
  border-color: transparent transparent var(--color-white) transparent;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--color-text);
  font-size: 0.95rem;
  font-family: var(--font-heading);
  transition: background-color 0.2s;
}

.dropdown-menu a:hover {
  background-color: var(--color-bg-secondary);
  color: var(--color-primary);
}

/* Institutional Blocks */
.institutional-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 4rem;
}

.institutional-block {
  position: relative;
  background-color: rgba(102, 10, 10, 0.6); /* Red-tinted glass */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  padding: 4rem 3rem;
  border-radius: 8px;
  overflow: hidden;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: all 0.4s ease;
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

.institutional-block:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.institutional-content {
  position: relative;
  z-index: 2;
}

.institutional-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.6);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
  color: var(--color-white);
}

/* Gallery Styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.gallery-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.gallery-img:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* CMS Blocks */
.cms-image-band {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.cms-width-narrow { max-width: 800px; }
.cms-width-normal { max-width: 900px; }
.cms-width-wide { max-width: 1100px; }

.cms-rich-text {
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text);
}

.cms-rich-text.align-center {
  text-align: center;
}

.cms-rich-text h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.cms-rich-text p {
  margin-bottom: 1.5rem;
}

.cms-rich-text a,
.section-desc a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cms-rich-text a:hover,
.section-desc a:hover {
  color: var(--color-primary);
}

.cms-rich-text ul,
.section-desc ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.cms-rich-text ol,
.section-desc ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.cms-rich-text li,
.section-desc li {
  margin-bottom: 0.5rem;
}

.cms-rich-text strong,
.section-desc strong {
  font-weight: 700;
}

.cms-rich-text em,
.section-desc em {
  font-style: italic;
}

.section-desc {
  font-size: 1rem;
  color: var(--color-text-light);
}

.section-desc p {
  margin: 0;
}

.cms-text-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.cms-text-image.reverse img {
  order: -1;
}

.cms-text-image h2 {
  margin-bottom: 1.5rem;
}

.cms-text-image p {
  margin-top: 1rem;
}

.cms-text-image img {
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.cms-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.resource-list {
  margin-top: 2rem;
}

.resource-item {
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 4px solid var(--color-accent);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}

.resource-item:hover { transform: translateX(5px); }
.resource-info h4 { margin-bottom: 0.25rem; font-size: 1.1rem; }
.resource-info p { font-size: 0.85rem; color: var(--color-text-light); }

.download-btn {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.download-btn:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.staff-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.staff-card:hover { transform: translateY(-5px); }

.staff-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.director-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-accent);
  margin-bottom: 1rem;
}

.staff-info { padding: 2rem; }

.staff-role {
  color: var(--color-accent);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.staff-name {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.staff-subjects {
  border-top: 1px solid #eee;
  padding-top: 1rem;
  margin-top: 1rem;
}

.subject-tag {
  display: inline-block;
  background: var(--color-bg-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.director-card {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 3rem;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 4rem;
}

.director-card h2 {
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.director-card p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info-card {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 3rem;
  border-radius: 12px;
}

.info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.info-item i { color: var(--color-accent); }

.contact-form {
  background: var(--color-white);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.form-group { margin-bottom: 1.5rem; }

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.gallery-title {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-primary);
  font-size: 1.8rem;
  font-family: var(--font-heading);
}

@media (max-width: 768px) {
  .cms-text-image {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cms-text-image.reverse img {
    order: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* ─── Zoomable images (open in lightbox on click) ──────────────────────────── */
.zoomable {
  cursor: zoom-in;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.zoomable:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

/* ─── Staff list — global photo shape (rectangle | circle) ────────────────── */
/* Rectangle mode unifies director with staff cards. */
.staff-section.shape-rectangle .director-photo {
  width: 100%;
  max-width: 320px;
  height: 240px;
  border-radius: 8px;
  border: none;
  margin: 0 auto 1rem;
  display: block;
}

/* Circle mode propagates the director's round look to staff photos too. */
.staff-section.shape-circle .staff-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 1rem auto 0;
  display: block;
}

/* ─── Custom image shapes for standalone blocks ───────────────────────────── */
.shape-circle-img {
  border-radius: 50% !important;
  aspect-ratio: 1 / 1;
  object-fit: cover !important;
}

.shape-rectangle-img {
  border-radius: 8px;
}
