/* ================================
   UAAM GLOBAL STYLES
   ================================ */

:root {
  --uaam-blue: #9b0707;
  --uaam-gold: #66b641;
  --uaam-black: #0b0b0b;
  --uaam-offwhite: #ffffff;
  --muted: #666666;
  --max-w: 1200px;
}

/* Reset & base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--uaam-black);
  background: #ffffff;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.center {
  text-align: center;
}

.muted {
  color: var(--muted);
}

.small-text {
  font-size: 12px;
}

/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ================================
   NAVBAR
   ================================ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0,0,0,.05);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.crest {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-title {
  font-weight: 700;
  font-size: 15px;
}

.nav-sub {
  font-size: 11px;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-links a {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--uaam-black);
}

.nav-links a.active {
  background: rgba(0,46,138,0.08);
}

.btn-nav {
  background: var(--uaam-blue);
  color: #fff !important;
  font-weight: 600;
}

/* Mobile nav */
.mobile-menu {
  display: none;
  font-size: 22px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    right: 16px;
    flex-direction: column;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0,0,0,.15);
  }

  .nav-links.open {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }
}

/* ================================
   HERO SLIDER (FIXED)
   ================================ */

.hero-slider {
  position: relative;
  height: 70vh;
  min-height: 420px;
  overflow: hidden;
  background-image: url("images/uaam-home-hero.png.jpg");
  background-size: cover;
  background-position: center;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .8s ease, transform .8s ease;
  z-index: 0;
}

.slide.active {
  opacity: 1;
  transform: translateY(0);
  z-index: 1;
}

/* Overlay should NEVER block clicks */
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(0,0,0,0.72) 10%,
    rgba(0,0,0,0.35) 60%,
    rgba(0,0,0,0.25) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Content must sit above overlay */
.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  color: #fff;
  text-align: center;
  padding: 24px;
  max-width: 820px;
  z-index: 2;
}

.slide-content h1 {
  font-size: 40px;
  margin-bottom: 10px;
}

.slide-content p {
  font-size: 17px;
  margin-bottom: 16px;
}

/* Hero dots */
.hero-dot-wrap {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.6);
  cursor: pointer;
}

.hero-dot.active {
  background: var(--uaam-gold);
}

/* ================================
   BUTTONS
   ================================ */

.btn-primary {
  display: inline-block;
  background: var(--uaam-gold);
  color: #000;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
}

.btn-outline {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid var(--uaam-blue);
  color: var(--uaam-blue);
  font-weight: 600;
}

/* ================================
   SECTIONS & LAYOUT
   ================================ */

.section {
  padding: 60px 0;
}

.section.alt {
  background: var(--uaam-offwhite);
}

.intro {
  padding: 50px 0;
  text-align: center;
}

.intro h2 {
  font-size: 26px;
  margin-bottom: 10px;
}

.intro p {
  max-width: 800px;
  margin: 0 auto;
  color: var(--muted);
}

/* Grids & cards */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
}

@media (max-width: 1000px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card,
.card {
  background: #fff;
  padding: 22px;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0,0,0,.06);
}

.feature-card h3 {
  color: var(--uaam-blue);
  margin-bottom: 8px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 20px;
}

/* Lists */

.list {
  list-style: disc;
  padding-left: 20px;
  margin-top: 8px;
}

.list li {
  margin: 4px 0;
}

/* Page headers */

.page-header {
  padding: 50px 0 30px;
  background: linear-gradient(180deg, #f3f5ff, #ffffff);
}

.page-header h1 {
  font-size: 30px;
  margin-bottom: 6px;
}

.page-header p {
  color: var(--muted);
}

/* Image placeholders */

.img-placeholder {
  height: 240px;
  border-radius: 12px;
  border: 2px dashed rgba(0,46,138,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--uaam-blue);
  font-weight: 700;
  background: #fff;
  text-align: center;
}

.img-placeholder.small {
  height: 140px;
}

/* ================================
   FOUNDERS GRID
   ================================ */

.founder-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-top: 20px;
}

.founder-card {
  width: 200px;
  background: #ffffff;
  text-align: center;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.founder-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.founder-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.founder-card p {
  font-size: 14px;
  color: #666;
}
/* ================================
   FOUNDERS IMAGE TEXT TITLE
   ================================ */

.image-text {
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 40px;
  letter-spacing: 1px;
  text-transform: uppercase;

  background-image: url("images/pan\ flag.jpg");
  background-size: cover;
  background-position: center;

  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;

  /* fallback */
  background-color: var(--uaam-blue);
}
/* ================================
   CHAPTERS GRID (MATCHES FOUNDERS)
   ================================ */

.chapter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-top: 20px;
}

.chapter-card {
  width: 180px;
  background: #ffffff;
  text-align: center;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.chapter-card img {
  width: 100%;
  height: 120px;         /* smaller square logo */
  object-fit: contain;
  background: #fafafa;
  border-radius: 8px;
  padding: 6px;
  margin-bottom: 10px;
}

.chapter-card h3 {
  font-size: 15px;
  font-weight: 600;
}

.chapter-card p {
  font-size: 13px;
  color: #666;
}

/* ================================
   LEADERSHIP GRID
   ================================ */

.leader-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 18px;
}

.leader-card {
  background: #fff;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.07);
  text-align: center;
}

/* ================================
   TIMELINE (HISTORY)
   ================================ */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.timeline-item {
  background: #fff;
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

/* ================================
   GALLERY
   ================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 14px;
}

.gallery-image {
  border-radius: 10px;
  cursor: pointer;
  object-fit: cover;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

/* ================================
   FORMS & PORTAL
   ================================ */

.login-box {
  max-width: 420px;
  margin: 0 auto;
  padding: 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.08);
}

.login-box input {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.12);
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.12);
  margin-bottom: 10px;
}

/* ================================/* ================================
   UAAM GLOBAL STYLES
   ================================ */

:root {
  --uaam-blue: #9b0707;
  --uaam-gold: #66b641;
  --uaam-black: #0b0b0b;
  --uaam-offwhite: #ffffff;
  --muted: #666666;
  --max-w: 1200px;
}

/* Reset & base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--uaam-black);
  background: #ffffff;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.center {
  text-align: center;
}

.muted {
  color: var(--muted);
}

.small-text {
  font-size: 12px;
}

/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ================================
   NAVBAR
   ================================ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0,0,0,.05);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.crest {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-title {
  font-weight: 700;
  font-size: 15px;
}

.nav-sub {
  font-size: 11px;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-links a {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--uaam-black);
}

.nav-links a.active {
  background: rgba(155,7,7,0.08);
}

.btn-nav {
  background: var(--uaam-blue);
  color: #fff !important;
  font-weight: 600;
}

/* Mobile nav */
.mobile-menu {
  display: none;
  font-size: 22px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    right: 16px;
    flex-direction: column;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0,0,0,.15);
  }

  .nav-links.open {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }
}

/* ================================
   HERO SLIDER
   ================================ */

.hero-slider {
  position: relative;
  height: 70vh;
  min-height: 420px;
  overflow: hidden;
  background-image: url("images/uaam-home-hero.png.jpg");
  background-size: cover;
  background-position: center;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .8s ease, transform .8s ease;
}

.slide.active {
  opacity: 1;
  transform: translateY(0);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(0,0,0,0.72) 10%,
    rgba(0,0,0,0.35) 60%,
    rgba(0,0,0,0.25) 100%
  );
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  color: #fff;
  text-align: center;
  padding: 24px;
  max-width: 820px;
}

.slide-content h1 {
  font-size: 40px;
  margin-bottom: 10px;
}

.slide-content p {
  font-size: 17px;
  margin-bottom: 16px;
}
.slide-overlay {
  pointer-events: none;  /* allows clicks to pass through */
  z-index: 1;
}

.slide-content {
  z-index: 2;            /* keeps text/button above overlay */



/* ================================
   BUTTONS
   ================================ */

.btn-primary {
  display: inline-block;
  background: var(--uaam-gold);
  color: #000;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
}

.btn-outline {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid var(--uaam-blue);
  color: var(--uaam-blue);
  font-weight: 600;
}

/* ================================
   SECTIONS & LAYOUT
   ================================ */

.section {
  padding: 60px 0;
}

.section.alt {
  background: var(--uaam-offwhite);
}

/* ================================
   ABOUT PAGE
   ================================ */

.about-wrap {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.about-photo {
  width: 320px;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
  flex-shrink: 0;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text {
  flex: 1;
  min-width: 280px;
}

/* ================================
   GRIDS & CARDS
   ================================ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
}

@media (max-width: 1000px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card,
.card {
  background: #fff;
  padding: 22px;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0,0,0,.06);
}

.feature-card h3 {
  color: var(--uaam-blue);
  margin-bottom: 8px;
}

/* ================================
   FOUNDERS GRID
   ================================ */

.founder-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.founder-card {
  width: 200px;
  background: #ffffff;
  text-align: center;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.founder-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

/* ================================
   CHAPTERS GRID
   ================================ */

.chapter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.chapter-card {
  width: 180px;
  background: #ffffff;
  text-align: center;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.chapter-card img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  background: #fafafa;
  border-radius: 8px;
  padding: 6px;
  margin: 0 auto 10px;
}

/* ================================
   FOOTER
   ================================ */

.footer {
  background: var(--uaam-blue);
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* ================================
   MOBILE
   ================================ */

@media (max-width: 768px) {
  .about-wrap {
    flex-direction: column;
  }

  .about-photo {
    margin: 0 auto 24px;
  }
}
   FOOTER
   ================================ */

.footer {
  background: var(--uaam-blue);
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}
/* === CHAPTERS PAGE OVERRIDES === */

.chapters-page .chapter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-top: 24px;
}

.chapters-page .chapter-card {
  width: 180px;
  background: #ffffff;
  text-align: center;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* Make logos small & consistent */
.chapters-page .chapter-card img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  background: #fafafa;
  border-radius: 8px;
  padding: 6px;
  margin: 0 auto 10px auto;
  display: block;
}

.chapters-page .chapter-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.chapters-page .chapter-card p {
  font-size: 13px;
  color: #666;
}
.about-photo {
  width: 320px;      /* wider than before */
  height: 400px;     /* slightly taller */
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* ================================
   FOUNDERS SUBTEXT ALIGNMENT
   ================================ */

.founders-subtext {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px auto;
}
/* ================================
   GALLERY SLIDESHOW
   ================================ */

.slideshow-container {
  position: relative;
  max-width: 900px;
  margin: 40px auto 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.15);
  background: #000;
}

.slideshow-image {
  width: 100%;
  height: 520px;
  object-fit: contain;
  background: #000; /* fills empty space cleanly */
}


/* Arrows */
.slide-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 10px;
}

.slide-controls button {
  background: rgba(0,0,0,.6);
  color: #fff;
  border: none;
  font-size: 26px;
  padding: 10px 14px;
  border-radius: 50%;
  cursor: pointer;
}

.slide-controls button:hover {
  background: var(--uaam-gold);
  color: #000;
}

/* Mobile */
@media (max-width: 768px) {
  .slideshow-image {
    height: 320px;
  }
}
.slideshow-image {
  background: #ffffff;
}
.footer {
  background: #6d0101;
  color: #f1f1f1;
  padding: 50px 0 25px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  align-items: start;
}

.footer-block h4 {
  margin-bottom: 12px;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #000000; /* subtle gold accent */
}

.footer-block p {
  margin: 6px 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #bbb;
}
