@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&family=Great+Vibes&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
:root {
  --maroon: #7b1d22;
  --maroon2: #9b2a2f;
  --nav: #7b1d22;
  --navDark: #651318;
  --cream: #f5efe6;
  --paper: #fffaf2;
  --ink: #1f2a33;
  --muted: #6b7680;
  --card: #ffffff;
  --line: rgba(0, 0, 0, 0.12);
  --shadow: 0 2px 3px rgba(0, 0, 0, 0.12);
  --shadow2: 0 2px 3px rgba(0, 0, 0, 0.1);
  --radius: 2px;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: 
    /* your gradient */ radial-gradient(
    1200px 500px at 50% -80px,
    #fff 0%,
    var(--cream) 60%,
    #f7eee5 100%
  );

  background-blend-mode: multiply;
  font-family: "Poppins", sans-serif;
}

.line {
  height: 2px;
  background-color: var(--line);
  width: 100%;
}

h2 {
  font-family: "Great Vibes", cursive;
  padding: 0;
  margin: 0;
}
h3 {
  font-family: "Great Vibes", cursive;
}
h4 {
  font-family: "Great Vibes", cursive;
}
.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* top header */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 110px;
}

.logoMark img {
  width: 100px;
}

.brandText {
  text-align: center;
}
.brandTextDecor {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brandTextDecorA {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brandTextDecorA h2 {
  margin: 2px 0 0;
  color: #2b5aa5;
  font-size: 24px;
}

.brandTextDecorA .lineLeft img {
  width: 160px;
}
.brandTextDecorA .lineRight img {
  width: 160px;
}

.brandText h1 {
  margin: 0;
  font-size: 36px;
  letter-spacing: 0.4px;
  font-weight: 700;
  color: var(--maroon);
  font-family: "Caveat", cursive;
}
.brandText h2 {
  margin: 2px 0 0;
  color: #2b5aa5;
  font-size: 24px;
}
.lineLeft img {
  width: 120px;
}
.lineRight img {
  width: 120px;
}
.topbarContainer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}
.topRight {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.iconRow {
  display: flex;
  gap: 8px;
  align-items: center;
}
.iconBtn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
  transition: 0.18s transform;
}
.iconBtn:active {
  transform: scale(0.96);
}
.iconBtn svg {
  width: 17px;
  height: 17px;
  fill: var(--maroon);
}

/* nav */
.navWrap {
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='6' numOctaves='10' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.3'/%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--nav) 0%, var(--navDark) 100%);

  background-blend-mode: overlay;
  overflow: hidden;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
  border-bottom: 2px solid #d07b2a;
}

nav {
  display: flex;
  justify-content: center; /* center all menu items */
  align-items: center;
  flex-wrap: wrap;
}

/* Remove border-right for cleaner look */
nav a {
  position: relative;
  display: inline-flex; /* makes height wrap to text + padding */
  align-items: center;
  color: #f2dbc3;
  text-decoration: none;
  padding: 14px 22px;
  font-weight: 700;
  font-size: 14px;
  transition: color 0.3s ease;
}

/* the vertical separator with controlled height */
nav a:not(:last-child)::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 16px; /* <-- match your text height (adjust) */
  width: 2px;
  background: #d07b2a;
  opacity: 0.9;
}

/* underline hover (your earlier one) */
nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 0;
  height: 2px;
  background: #d07b2a;
  transition: all 0.2s ease;
  transform: translateX(-50%);
}

nav a:hover::after {
  width: 60%;
}

/* Optional: slightly brighter text on hover */
nav a:hover {
  color: #ffd9a8;
}

/* ticker */
.ticker {
  background: linear-gradient(180deg, #1d3f73 0%, #04305d 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow2);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.tickerInner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
}
.tickerLabel {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ffd479;
  box-shadow: 0 0 0 3px rgba(255, 212, 121, 0.18);
}
.marquee {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 220px;
}
.marqueeTrack {
  display: inline-flex;
  gap: 26px;
  white-space: nowrap;
  will-change: transform;
  animation: scroll 18s linear infinite;
  font-weight: 650;
  font-size: 13px;
  opacity: 0.95;
}
.marqueeTrack span {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}
.sep {
  opacity: 0.55;
}
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* main hero area */
main {
  padding: 16px 0 26px;
}
.heroGrid {
  display: grid;
  grid-template-columns: 2fr 1.05fr;
  gap: 16px;
  margin-top: 16px;
  align-items: stretch;
}

.hero {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  position: relative;
  min-height: 330px;
}
.heroMedia {
  height: 100%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.1)),
    radial-gradient(
      900px 260px at 30% 30%,
      rgba(255, 255, 255, 0.22),
      rgba(255, 255, 255, 0)
    ),
    url("../images/mock.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 330px;
}
/* If you don't have mock.jpeg beside the HTML, the background will be blank.
   You can replace it with your own photo. */

.playBtn {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(15, 28, 40, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: 0.18s transform;
}
.playBtn:hover {
  transform: translateY(-50%) scale(1.02);
}
.playBtn:active {
  transform: translateY(-50%) scale(0.98);
}
.playBtn svg {
  width: 24px;
  height: 24px;
  fill: #fff;
  margin-left: 2px;
}

.heroCaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  color: #fff;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.52) 100%
  );
}
.heroCaption .kicker {
  font-weight: 800;
  letter-spacing: 0.35px;
  font-size: 13px;
  opacity: 0.95;
}
.heroCaption h2 {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 900;
}
.heroCaption p {
  margin: 6px 0 0;
  font-size: 13px;
  opacity: 0.92;
  max-width: 60ch;
}

/* bulletin */
.panel {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 330px;
}
.panelHead {
  padding: 12px 14px;
  border-bottom: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.panelHead h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: #1c4c8f;
  font-style: italic;
  letter-spacing: 0.2px;
}
.dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.dots i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #d0d8e6;
  display: inline-block;
}
.dots i.active {
  background: #c46a2a;
}

.bulletin {
  padding: 14px;
  display: grid;
}
.bulletItem {
  display: flex;
  align-items: flex-start;
  padding: 12px 12px;
  border-bottom: 2px solid var(--line);
  background-color: #e7e7e7;
}

.bulletItemText {
  padding: 0 12px;
}

.star {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.star svg {
  width: 20px;
  height: 20px;
  fill: #c46a2a;
}
.bulletItem b {
  display: block;
  font-size: 13px;
}
.bulletItem span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

/* affiliation */
.aff {
  margin: 18px 0 14px;
  overflow: hidden;
  border-top: 2px solid var(--line);
}
.affTitle {
  text-align: center;
  padding: 10px 10px 6px;
  margin: 0 250px;
}
.affRow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.affItem {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-right: 1px solid var(--line);
  min-height: 62px;
}
.affItem:last-child {
  border-right: none;
}
.badge {
  padding: 10px;
}
.badge img {
  width: 75px;
  height: 75px;
}
.affItem p {
  margin: 0;
  font-weight: 800;
  font-size: 12.5px;
  color: #2a3a46;
  line-height: 1.15;
}
.affItem p small {
  display: block;
  font-weight: 700;
  color: var(--muted);
  margin-top: 2px;
  font-size: 11.5px;
}

/* feature cards */
.features {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature {
  background: var(--card);
  box-shadow: var(--shadow2);
  padding: 16px 30px 14px;
  display: grid;
  gap: 10px;
  min-height: 150px;
  text-align: center;
}
.featureIcon {
  padding: 10px;
}
.featureIcon img {
  width: 75px;
  height: 75px;
}
.feature h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1c4c8f;
  letter-spacing: 0.1px;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

/* lower grid */
.lower {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

.widget {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  overflow: hidden;
}
.widgetHead {
  padding: 11px 14px;
  border-bottom: 2px solid var(--line);
  background: linear-gradient(180deg, #f8fbff 0%, #f3f7ff 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.widgetHead h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  color: #1c4c8f;
  font-style: italic;
}
.widgetBody {
  padding: 14px;
}

/* calendar mock */
.calendar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.month {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 10px 10px 12px;
  background: linear-gradient(180deg, #fff 0%, #fbf7f1 100%);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}
.monthTitle {
  text-align: center;
  font-weight: 900;
  color: #a05a1c;
  margin-bottom: 10px;
  font-size: 13px;
}
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  justify-items: center;
}
.pill {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #d8d8d8;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.events {
  display: grid;
  gap: 10px;
}
.event {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 12px;
  border-radius: 12px;
}
.pin {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  background: #fff2dd;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.pin svg {
  width: 13px;
  height: 13px;
  fill: #c46a2a;
}
.event b {
  display: block;
  font-size: 13px;
}
.event span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

/* footer */
footer {
  margin-top: 18px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.15'/%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--nav) 0%, var(--navDark) 100%);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -18px 35px rgba(0, 0, 0, 0.12);
}
.footerGrid {
  padding: 18px 0;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.2fr;
  gap: 16px;
}
.footCard {
  border-radius: 3px;
  padding: 14px 14px;
  background: rgba(255, 255, 255, 0.06);
}
.footCard h4 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.2px;
}
.footCard ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.footCard a {
  color: #fff;
  text-decoration: none;
  opacity: 0.92;
}
.footCard a:hover {
  opacity: 1;
  text-decoration: underline;
}
.contactLine {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  opacity: 0.95;
  font-size: 13px;
}
.contactLine svg {
  width: 16px;
  height: 16px;
  fill: #ffd479;
  flex: 0 0 auto;
  margin-top: 2px;
}
.map {
  height: 120px;
  border-radius: 3px;
  background: radial-gradient(
      220px 120px at 65% 45%,
      rgba(255, 255, 255, 0.14),
      rgba(255, 255, 255, 0)
    ),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.18));
  position: relative;
  overflow: hidden;
}
.map::after {
  content: "";
  position: absolute;
  inset: -40px;
  background: repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.08) 0 2px,
      transparent 2px 18px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.06) 0 2px,
      transparent 2px 18px
    );
  transform: rotate(8deg);
  opacity: 0.35;
}
.mapPin {
  position: absolute;
  left: 58%;
  top: 42%;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ff6b6b;
  box-shadow: 0 0 0 6px rgba(255, 107, 107, 0.18);
  z-index: 2;
}
.footerBottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 0;
  opacity: 0.85;
  font-size: 12px;
}

/* modal */
.modalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 50;
}
.modal {
  width: min(860px, 96vw);
  background: #0b1117;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.modalTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.modalTop b {
  font-size: 13px;
}
.closeBtn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #fff;
  border-radius: 12px;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 800;
}
.videoMock {
  aspect-ratio: 16/9;
  background: radial-gradient(
      600px 260px at 30% 40%,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0)
    ),
    linear-gradient(135deg, rgba(123, 29, 34, 0.45), rgba(15, 47, 93, 0.35));
  display: grid;
  place-items: center;
  color: #fff;
  padding: 14px;
}
.videoMock p {
  margin: 0;
  opacity: 0.9;
  font-size: 13px;
  text-align: center;
  max-width: 60ch;
}

/* responsiveness */
@media (max-width: 920px) {
  .heroGrid {
    grid-template-columns: 1fr;
  }
  .panel {
    min-height: auto;
  }
  .affRow {
    grid-template-columns: 1fr;
  }
  .affItem {
    border-right: none;
    border-top: 1px solid var(--line);
  }
  .affItem:first-child {
    border-top: none;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .lower {
    grid-template-columns: 1fr;
  }
}
/* -------------------------------
  RESPONSIVE PATCH (add at bottom)
-------------------------------- */

/* 1) Make header flexible (remove fixed height behavior on small screens) */
@media (max-width: 1024px) {
  .topbar {
    height: auto; /* override fixed height */
    padding: 10px 0;
  }

  .topbarContainer {
    padding: 0 10px;
    gap: 10px;
  }

  .logoMark img {
    width: 84px;
  }

  .brandText h1 {
    font-size: 30px;
  }
}

/* 2) Tablet / Mobile layout */
@media (max-width: 820px) {
  .topbarContainer {
    flex-direction: column; /* stack logo/title/icons */
    align-items: center;
    text-align: center;
  }

  .topRight {
    justify-content: center;
  }

  .brandTextDecor,
  .brandTextDecorA {
    gap: 10px;
    justify-content: center;
  }

  .lineLeft img,
  .lineRight img {
    width: 90px;
  }

  .brandText h1 {
    font-size: 28px;
    line-height: 1.1;
  }

  .brandText h2,
  .brandTextDecorA h2 {
    font-size: 20px;
  }

  /* this is important: your current margin breaks on mobile */
  .affTitle {
    margin: 0; /* override margin: 0 250px */
    padding: 10px 10px 6px;
  }

  /* hero + panel already stack at 920px, so here we just reduce heights */
  .hero,
  .heroMedia,
  .panel {
    min-height: auto;
  }

  .heroMedia {
    min-height: 260px;
  }
}

/* 3) Small phones */
@media (max-width: 520px) {
  .container {
    width: min(1100px, 94%);
  }

  .logoMark img {
    width: 72px;
  }

  .brandText h1 {
    font-size: 24px;
  }

  .brandText h2,
  .brandTextDecorA h2 {
    font-size: 18px;
  }

  .lineLeft img,
  .lineRight img,
  .brandTextDecorA .lineLeft img,
  .brandTextDecorA .lineRight img {
    width: 70px;
  }

  /* NAV: make it scrollable instead of wrapping ugly */
  .navWrap .container {
    overflow-x: auto;
  }

  nav {
    flex-wrap: nowrap; /* keep in a single row */
    justify-content: flex-start;
    gap: 0;
    white-space: nowrap;
  }

  nav a {
    padding: 12px 14px;
    font-size: 13px;
  }

  /* vertical separator smaller on mobile */
  nav a:not(:last-child)::before {
    height: 14px;
    width: 2px;
  }

  /* underline position slightly up so it doesn't touch the bottom edge */
  nav a::after {
    bottom: 6px;
  }

  /* calendars: show 1 column */
  .calendar {
    grid-template-columns: 1fr;
  }

  /* footer grid stacks */
  .footerGrid {
    grid-template-columns: 1fr;
  }
}

/* 4) Optional: nicer fluid typography everywhere */
.brandText h1 {
  font-size: clamp(22px, 3.2vw, 36px);
}

.brandText h2,
.brandTextDecorA h2 {
  font-size: clamp(16px, 2.2vw, 24px);
}
