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

:root {
  --text-primary: #222222;
  --text-gray: #777777;
  --bg-color: #ffffff;
  
  --font-heading: 'Urbanist', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img {
  border: none !important;
  outline: none !important;
}

a, .logo {
  border: none !important;
  outline: none !important;
}

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

/* --- Navbar --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 5%;
  background: white;
  position: relative;
  z-index: 1000;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.navbar .logo img {
  height: 60px;
  object-fit: contain;
  border: none !important;
  outline: none !important;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  color: var(--text-gray);
  text-decoration: none;
  font-weight: 500;
  font-family: var(--font-body);
  font-size: 1.1rem;
  transition: color 0.3s ease;
  letter-spacing: 0.5px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a.active {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: transparent;
  min-width: 180px;
  padding: 0.5rem 0 0 0;
  flex-direction: column;
  z-index: 1000;
  text-align: right;
}

.dropdown:hover .dropdown-menu {
  display: flex;
}

.dropdown-menu a {
  padding: 0.25rem 0;
  font-size: 0.95rem;
  display: block;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: #f9f9f9;
}

/* Hamburger toggle (mobile only) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
  text-align: center;
  padding-top: 3rem;
  position: relative;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.hero-image-container {
  width: 92%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  border: none;
  outline: none;
  background-color: transparent;
  box-shadow: none;
  /* No clip-path: it forces the video onto its own compositor layer, which on
     some browsers leaves a stale "ghost" frame behind the hero on resize. */
}

/* --- Video & Mission Section --- */
.mission-section {
  text-align: center;
  padding: 8rem 2rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.video-container {
  width: 100%;
  margin-bottom: 4rem;
}

.video-container video {
  width: 100%;
  display: block;
  background-color: transparent;
  outline: none;
}

.custom-video-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-container:hover .custom-video-controls {
  opacity: 1;
}

.control-btn {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.3s ease;
}

.control-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}

.mission-text {
  font-size: 1.3rem;
  color: #333;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

/* --- Footer Section --- */
.footer {
  position: relative;
  margin-top: 5rem;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
}

.footer-background {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}



.footer-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  mask-image: linear-gradient(to bottom, transparent 0%, black 150px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 150px);
}

.footer-content {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding: 4rem 2rem 3rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  color: #222;
}

.footer-col h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.footer-col p {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.social-icons a {
  color: #222;
  font-size: 1.4rem;
  transition: opacity 0.3s ease;
}

.social-icons a:hover {
  opacity: 0.6;
}

.footer-ag-logo {
  position: absolute;
  bottom: 1.5rem;
  right: 2rem;
  opacity: 0.85;
}

.footer-ag-logo img {
  height: 60px;
  width: auto;
  display: block;
}


/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Mission & Vision Page --- */
.mission-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-color);
  padding: 6rem 0; /* Removed horizontal padding to allow full bleed */
  overflow: hidden;
}

.mission-layout-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1100px) {
  .mission-layout-container {
    display: block;
    height: 800px;
  }
}

.hands-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%; /* Allow full bleed */
  margin: 0 auto;
}

@media (min-width: 1100px) {
  .hands-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw; /* Force full viewport width */
    max-width: 100vw;
    transform: translate(-50%, -50%);
  }
}

.hands-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Independent Brackets anchored to the layout container */
.bracket-top {
  display: none; /* Hide on mobile */
  position: absolute;
  left: 75%; /* Pushed further out to the right */
  top: calc(7.5% + 14px); /* Moved down exactly 14px from center */
  width: 2px; /* Ensure bounding box for intersection observer */
  height: 2px;
  z-index: 2;
}

@media (min-width: 1100px) {
  .bracket-top {
    display: block;
  }
}

.bracket-top::after {
  /* Vertical Line */
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 0;
  background-color: #000;
  transition: height 0.8s ease;
}

.bracket-top::before {
  /* Horizontal Line */
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  height: 2px;
  width: 0;
  background-color: #000;
  transition: width 0.8s ease;
}

.bracket-top.anim-active::after {
  height: 150px; /* Made significantly shorter */
}

.bracket-top.anim-active::before {
  width: 480px; /* Extended to keep the left tip in the exact same spot */
  transition-delay: 0.8s;
}

.bracket-bottom {
  display: none; /* Hide on mobile */
  position: absolute;
  right: 75%; /* Pushed further out to the left for symmetry */
  bottom: calc(8% + 80px); /* Moved up 5px to find the exact center of the text */
  width: 2px; /* Ensure bounding box for intersection observer */
  height: 2px;
  z-index: 2;
}

@media (min-width: 1100px) {
  .bracket-bottom {
    display: block;
  }
}

.bracket-bottom::after {
  /* Vertical Line */
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 2px;
  height: 0;
  background-color: #000;
  transition: height 0.8s ease;
}

.bracket-bottom::before {
  /* Horizontal Line */
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: #000;
  transition: width 0.8s ease;
}

.bracket-bottom.anim-active::after {
  height: 150px; /* Made significantly shorter */
}

.bracket-bottom.anim-active::before {
  width: 480px; /* Extended to keep the right tip in the exact same spot */
  transition-delay: 0.8s;
}


.mission-block {
  text-align: center;
  position: relative;
  width: 100%;
  max-width: none;
  z-index: 2;
  padding: 0 2rem;
}

@media (min-width: 1100px) {
  .mission-block {
    position: absolute;
    top: calc(5% - 4px); /* Moved entire text block up by 4 pixels */
    left: 0;
    width: 55%; /* Allow text to stretch wide, avoiding squishing */
    padding: 0;
  }
}

.vision-block {
  text-align: center;
  position: relative;
  width: 100%;
  max-width: none;
  z-index: 2;
  padding: 0 2rem;
}

@media (min-width: 1100px) {
  .vision-block {
    position: absolute;
    bottom: calc(8% - 34px); /* Moved entire text block down by 34 pixels total */
    right: 0;
    width: 55%;
    padding: 0;
  }
}

/* Heading animation */
.vision-block h2, .mission-block h2 {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 2.8rem; /* matched font size */
  margin-bottom: 1.5rem;
  color: #000;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease 0.4s, transform 1.2s ease 0.4s;
}

.vision-block.anim-active h2, .mission-block.anim-active h2 {
  opacity: 1;
  transform: translateY(0);
}

/* Body text animation */
.vision-block p, .mission-block p {
  font-size: 1.05rem; /* slightly smaller matching original */
  color: #333;
  line-height: 1.7;
  opacity: 0;
  transition: opacity 1.5s ease 0.8s;
}

.vision-block.anim-active p, .mission-block.anim-active p {
  opacity: 1;
}

.mission-block .scripture {
  font-size: 0.95rem;
  margin-top: 1rem;
  color: #666;
}

/* --- Core Beliefs Section --- */
.beliefs-hero {
  position: relative;
  background-color: white;
  padding: 6rem 5% 10rem;
  overflow: hidden;
  min-height: 100vh;
}

.beliefs-manuscript-bg {
  position: absolute;
  top: 10%;
  right: 0;
  height: 1100px;
  width: auto;
  z-index: 1;
  opacity: 1;
  pointer-events: none;
}

/* Optional: hide on small screens to save space */
@media (max-width: 768px) {
  .beliefs-manuscript-bg {
    display: none;
  }
}

.beliefs-container {
  position: relative;
  max-width: 650px;
  margin: 0 auto;
  z-index: 2;
  text-align: center;
}

.beliefs-title {
  font-family: var(--font-heading), sans-serif;
  font-size: 3.5rem;
  font-weight: 300;
  margin-bottom: 5rem;
  letter-spacing: 1px;
}

.belief-item {
  margin-bottom: 4rem;
}

.belief-item h2 {
  font-family: var(--font-heading), sans-serif;
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.belief-item p {
  font-family: var(--font-body), sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #111;
  margin: 0;
}

.beliefs-action {
  margin-top: 5rem;
}

.btn-black {
  display: inline-block;
  background: black;
  color: white;
  text-decoration: none;
  padding: 0.8rem 2.5rem;
  border-radius: 50px;
  font-family: var(--font-body), sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.btn-black:hover {
  opacity: 0.8;
}

/* --- Doctrine Page --- */
.doctrine-hero {
  padding: 150px 20px 100px; /* Space for navbar */
  max-width: 1200px;
  margin: 0 auto;
  background-color: var(--bg-primary);
}

.doctrine-title {
  font-family: var(--font-body), sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: 2px;
  color: var(--text-primary);
}

.doctrine-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 5rem;
}

.doctrine-img-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.doctrine-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.doctrine-img-wrap:hover img {
  transform: scale(1.05);
}

.doctrine-list {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.doctrine-list p {
  font-family: var(--font-body), sans-serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-gray);
  margin-bottom: 2.5rem;
}

/* --- Leadership Profiles --- */
.leadership-page {
  padding-top: 2rem;
}

.leader-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 8rem 0;
  gap: 2rem;
}

.leader-text {
  flex: 1;
  padding: 2rem 5%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.leader-header {
  margin-bottom: 1.5rem;
}

.leader-header h2 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 300;
  margin-bottom: 0;
  color: #000;
  line-height: 1.1;
}

.leader-header h3 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 300;
  color: #000;
  margin-top: 0;
}

.leader-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  max-width: 650px;
  margin-bottom: 2rem;
}

.leader-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.leader-actions .btn-black {
  display: inline-block;
  background-color: #000;
  color: #fff;
  padding: 12px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  min-width: 200px;
}

.leader-actions .btn-black:hover {
  background-color: #333;
}

.leader-image {
  flex: 1.2;
  display: flex;
  justify-content: flex-end;
}

.leader-image img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

@media (max-width: 992px) {
  .leader-profile {
    flex-direction: column;
  }
  .leader-image {
    justify-content: center;
    width: 100%;
  }
}

/* --- Connect Card Section --- */
.connect-card-section {
  padding: 8rem 5% 5rem;
  max-width: 1400px;
  margin: 0 auto;
  font-family: var(--font-body);
}

.connect-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5vw, 4.5rem);
  color: #1a428a; /* Deep blue from screenshot */
  font-weight: 300;
  margin-bottom: 4rem;
  letter-spacing: 2px;
}

.connect-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.connect-intro {
  margin-bottom: 3rem;
  font-size: 1.2rem;
  color: #444;
}

.connect-intro .indent-p {
  padding-left: 3rem;
  margin-top: 1rem;
}

.connect-image-col {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.connect-image-col img {
  width: 100%;
  height: auto;
  display: block;
}

/* RC3 Form Styles */
.rc3-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.rc3-form .input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rc3-form label {
  font-size: 0.9rem;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rc3-form input[type="text"],
.rc3-form input[type="email"],
.rc3-form input[type="tel"],
.rc3-form textarea {
  width: 100%;
  background: #e9e9e9;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: all 0.3s ease;
  outline: none;
}

.rc3-form input:focus,
.rc3-form textarea:focus {
  background: #fff;
  border-color: #1a428a;
  box-shadow: 0 0 0 4px rgba(26,66,138,0.1);
}

.rc3-form textarea {
  resize: vertical;
  min-height: 100px;
}

.rc3-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.rc3-form .sub-input {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.rc3-form .sub-label {
  font-size: 0.8rem;
  color: #666;
  text-transform: none;
}

.options-group {
  gap: 1rem !important;
  margin-top: 1rem;
}

.radio-label, .checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  color: #444 !important;
}

.submit-btn {
  background: #000;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 1rem 3rem;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  align-self: center;
  margin-top: 2rem;
  transition: all 0.3s ease;
  font-family: var(--font-body);
  text-decoration: none;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  background: #222;
}

@media (max-width: 992px) {
  .connect-container {
    grid-template-columns: 1fr;
  }
  .connect-image-col {
    order: -1;
    margin-bottom: 2rem;
  }
}

/* --- River City Kids Section --- */
.kids-section {
  padding: 8rem 5% 5rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-body);
}

.kids-video-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 4rem;
}

.kids-video {
  width: 100%;
  display: block;
}

.kids-scripture {
  margin-bottom: 4rem;
}

.kids-scripture h2 {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.8vw, 2.2rem);
  font-weight: 300;
  color: #111;
  margin-bottom: 1rem;
  white-space: nowrap;
}

.kids-scripture p {
  font-size: 1.2rem;
  color: #444;
}

.kids-philosophy {
  max-width: 800px;
  margin: 0 auto 4rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.kids-highlight {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 400;
  font-style: italic;
  color: #49b3c4;
  margin: 2rem 0;
}

.kids-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

  .kids-btn {
    padding: 1.2rem 0;
    width: 250px;
    text-align: center;
  }
  
  .sunday-section {
    padding: 8rem 0 5rem; /* Remove side padding so it can bleed full width, use grid padding instead */
    max-width: 100vw;
    margin: 0 auto;
    font-family: var(--font-body);
    overflow-x: hidden; /* Prevent horizontal scrollbar if images bleed off screen */
  }
  
  .sunday-header {
    text-align: center;
    margin-bottom: 5rem;
    padding: 0 5%;
  }
  
  .sunday-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 4.5rem);
    color: #49b3c4;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 2px;
  }
  
  .sunday-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.5vw, 2.2rem);
    font-weight: 300;
    color: #111;
    white-space: nowrap;
  }
  
  .sunday-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 3vw;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2vw;
  }
  
  .boy-item {
    margin-top: 10rem;
  }
  
  .sunday-image {
    display: flex;
  }
  
  .sunday-image:first-child {
    justify-content: flex-end;
  }
  
  .sunday-image:last-child {
    justify-content: flex-start;
  }
  
  .sunday-image img {
    width: 140%;
    max-width: 600px;
    height: auto;
  }
  
  .sunday-image.boy-item img {
    width: 85%;
    max-width: 400px;
    margin-left: 10%;
  }
  
  .sunday-text-box {
    width: 100%;
    background-color: #f8f8f8; /* Slightly lighter grey */
    padding: 4rem 2.5rem; /* More vertical padding for taller look */
    border-radius: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  }
  
  .sunday-text-box p {
    margin-bottom: 1.5rem;
  }
  
  .sunday-text-box p:last-child {
    margin-bottom: 0;
  }
  
  .sunday-italic {
    font-style: italic;
    font-size: 0.95rem;
  }
  
  @media (max-width: 1024px) {
    .sunday-grid {
      grid-template-columns: 1fr 1fr;
      gap: 3rem;
    }
    .boy-item {
      margin-top: 0;
    }
    .sunday-text-box {
      width: 100%;
    }
    .sunday-image:first-child,
    .sunday-image:last-child {
      justify-content: center;
    }
    .sunday-grid > .sunday-text-box:nth-of-type(2) {
      order: 3;
    }
    .sunday-grid > .sunday-text-box:nth-of-type(3) {
      order: 4;
    }
    .sunday-grid > .sunday-image:nth-of-type(4) {
      order: 5;
    }
  }
  
  @media (max-width: 768px) {
    .sunday-grid {
      grid-template-columns: 1fr;
    }
    .sunday-text-box {
      max-width: 500px;
      margin: 0 auto;
    }
    /* The boy cutout fills the full column on mobile and reads as an
       oversized floating head; hide it (its text box stays). */
    .sunday-image.boy-item {
      display: none;
    }
  }
  
  /* --- The Table Section --- */
  .table-section {
    padding: 8rem 5% 5rem;
    max-width: 1600px;
    margin: 0 auto;
    font-family: var(--font-body);
  }
  
  .table-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
  
  .table-left img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 2rem;
  }
  
  .table-details {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.6;
    color: #111;
  }
  
  .table-details p {
    margin: 0.2rem 0;
  }
  
  .table-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
  }
  
  .table-quote {
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.8;
    color: #111;
    margin-bottom: 3rem;
    max-width: 700px;
  }
  
  @media (max-width: 768px) {
    .table-grid {
      grid-template-columns: 1fr;
      gap: 3rem;
    }
    .table-right {
      padding: 0;
    }
  }

  /* --- Give Section --- */
  .give-section {
    padding: 2rem 5% 5rem;
    max-width: 1400px;
    margin: 0 auto;
    font-family: var(--font-body);
  }
  
  .give-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
  
  .give-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .give-left img {
    width: 100%;
    max-width: 350px;
    height: auto;
    display: block;
    margin-bottom: 2rem;
  }
  
  .give-submit-btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 300;
    font-family: var(--font-body);
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: background 0.3s ease;
    width: 100%;
    max-width: 400px;
  }
  
  .give-submit-btn:hover {
    background-color: #333;
  }
  
  .give-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
  }
  
  .give-quote {
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 1.6;
    color: #111;
    margin-bottom: 1.5rem;
    max-width: 600px;
  }

  .give-verse {
    font-size: 1.2rem;
    font-weight: 300;
    color: #333;
  }
  
  .give-mail-box {
    margin-top: 5rem;
    text-align: center;
  }
  
  .give-mail-title {
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: #333;
  }
  
  .give-mail-address {
    font-size: 1.1rem;
    line-height: 2;
    color: #444;
    font-weight: 300;
  }
  
  @media (max-width: 768px) {
    .give-grid {
      grid-template-columns: 1fr;
      gap: 3rem;
    }
  }

  @media (max-width: 768px) {
    .marketplace-grid {
      grid-template-columns: 1fr !important;
    }
  }

  /* --- Text Reveal Animation --- */
  .reveal-text {
    display: inline-block;
    color: #3eb0c9;
    font-family: 'Caveat', cursive;
    font-size: 2.8rem;
    line-height: 1.2;
    font-weight: 500;
    clip-path: inset(0 100% 0 0);
    animation: revealClip 2s cubic-bezier(0.77, 0, 0.175, 1) 0.5s forwards;
  }

  @keyframes revealClip {
    0% {
      clip-path: inset(0 100% 0 0);
    }
    100% {
      clip-path: inset(0 0 0 0);
    }
  }

  /* --- Community Resources Layout --- */
  .resource-section {
    padding: 6rem 5%;
    width: 100%;
  }

  .resource-gray-bg {
    background-color: #f4f4f4;
  }

  .resource-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    /* Top-align so the image sits alongside the heading instead of being
       vertically centered and hanging below the (shorter) text block. */
    align-items: start;
  }

  /* The header block's mountain is a tall decorative backdrop; keep it and
     its heading vertically centered as before. */
  .resource-grid:has(.resource-mountain) {
    align-items: center;
  }

  .resource-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .resource-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 300;
    margin-bottom: 2rem;
    color: #111;
  }

  .resource-list {
    list-style-type: none; /* Will use custom bullet or bold titles */
    padding-left: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
  }

  .resource-list li {
    margin-bottom: 2.5rem;
  }

  .resource-list strong {
    font-weight: 600;
    color: #111;
    text-decoration: underline;
    display: inline-block;
    margin-bottom: 0.5rem;
  }

  .resource-list span {
    display: block;
  }

  .resource-img-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .resource-img {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 423 / 585;
    border-radius: 40px;
    object-fit: cover;
  }

  .resource-mountain {
    border-radius: 0;
    aspect-ratio: auto;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
    max-width: 600px;
  }

  @media (max-width: 768px) {
    .resource-grid {
      grid-template-columns: 1fr;
      gap: 3rem;
      text-align: center;
    }
    
    .resource-list {
      text-align: left;
    }

    /* Every section's image sits on top of its text on mobile. */
    .resource-img-wrapper {
      order: -1;
    }

    /* Crop to a compact landscape band so the images don't dominate the
       phone screen (the tall portrait crop is desktop-only). The decorative
       mountain header keeps its natural shape. */
    .resource-img:not(.resource-mountain) {
      aspect-ratio: 3 / 2;
      max-width: 480px;
    }
  }

  /* --- Open Gym Layout --- */
  .opengym-section {
    padding: 6rem 5%;
    width: 100%;
  }

  .opengym-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1300px;
    margin: 0 auto;
    align-items: stretch;
  }

  .opengym-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .opengym-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 300;
    margin-bottom: 2rem;
    color: #111;
  }

  .opengym-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 3rem;
  }

  .opengym-content h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: #111;
  }

  .opengym-details-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
  }

  .opengym-details-list {
    list-style-type: none;
    padding: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    flex: 1;
  }

  .opengym-details-list strong {
    font-weight: 600;
    color: #111;
  }
  
  .opengym-btn {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 400;
    transition: background-color 0.3s;
    text-align: center;
    white-space: nowrap;
    margin-bottom: 0.5rem;
  }

  .opengym-btn:hover {
    background-color: #333;
  }

  .opengym-img-wrapper {
    width: 100%;
    height: 100%;
  }

  .opengym-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  @media (max-width: 900px) {
    .opengym-grid {
      grid-template-columns: 1fr;
    }

    /* Grid items default to min-width:auto, so the nowrap button's
       min-content width would otherwise stretch the whole track. */
    .opengym-grid > * {
      min-width: 0;
    }

    /* Stack the basketball image above the text on mobile. */
    .opengym-img-wrapper {
      order: -1;
    }

    .opengym-details-wrapper {
      flex-direction: column;
      align-items: flex-start;
    }

    .opengym-btn {
      width: 100%;
      margin-top: 1rem;
      white-space: normal;
    }
  }

  /* --- Contact Modal Styles --- */
  .contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .contact-modal-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .contact-modal-content {
    background-color: #e0e0e0;
    padding: 3rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    position: relative;
    font-family: var(--font-body);
  }

  .close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #000;
  }

  .contact-modal-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 500;
  }

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

  .contact-form .group-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
  }

  .contact-form span {
    font-weight: 400;
    color: #666;
    font-size: 0.9rem;
  }

  .name-inputs {
    display: flex;
    gap: 1rem;
  }

  .input-col {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .input-col label {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
  }

  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form input[type="tel"],
  .contact-form textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    box-sizing: border-box;
  }

  .contact-form textarea {
    resize: vertical;
  }

  .checkbox-desc {
    margin-bottom: 0.5rem;
  }

  .radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
  }

  .form-submit {
    text-align: center;
    margin-top: 2rem;
  }

  .btn-submit {
    background-color: #000;
    color: #fff;
    padding: 12px 40px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    font-family: var(--font-body);
    transition: opacity 0.2s;
  }

  .btn-submit:hover {
    opacity: 0.8;
  }

  @media (max-width: 600px) {
    .name-inputs {
      flex-direction: column;
    }
  }

/* --- Back-to-top button --- */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  /* Hidden until scrolled: not just invisible but non-interactive. */
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #333;
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: opacity 0.2s ease, visibility 0.2s ease;
    transform: none;
  }
}

/* --- Utilities --- */
/* Available to screen readers and search engines, invisible on screen. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --- Events Page --- */
.events-hero {
  margin-bottom: 4rem;
}

.events-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 8rem;
}

.events-grid {
  display: grid;
  /* min() keeps the track from outgrowing its container on narrow phones,
     which a bare minmax(320px, 1fr) would do.
     auto-fill rather than auto-fit: events come from Church Center, so some
     weeks there is only one. auto-fit would collapse the empty tracks and
     stretch that lone card across the full row, badly cropping its artwork. */
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 3rem;
}

.event-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card-media {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.event-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* Church Center events without artwork still need a filled media area, or the
   date badge floats over nothing. */
.event-card-img-placeholder {
  background: linear-gradient(140deg, #0f172a 0%, #1e3a5f 55%, #2c5f7c 100%);
}

/* Hover effects only where a real pointer exists — on touch these stick
   after a tap and never reset. */
@media (hover: hover) {
  .event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.1);
  }

  .event-card:hover .event-card-img {
    transform: scale(1.05);
  }
}

.event-date {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 8px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-align: center;
}

.event-date-month {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #555;
}

.event-date-day {
  display: block;
  margin-top: 4px;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  color: #111;
}

.event-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 2.5rem;
}

.event-card-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.2;
  color: #111;
  margin-bottom: 1rem;
}

.event-meta {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.event-meta li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #666;
}

.event-meta li + li {
  margin-top: 0.5rem;
}

.event-meta i {
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  font-size: 1.1rem;
  color: #000;
}

.event-card-desc {
  flex: 1;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 2.5rem;
}

.event-card-cta {
  display: block;
  width: 100%;
  text-align: center;
}

/* Shown while there are no events to list. */
.events-empty {
  max-width: 560px;
  margin: 0 auto;
  padding: 1rem 0 3rem;
  text-align: center;
}

.events-empty-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 300;
  line-height: 1.2;
  color: #111;
  margin-bottom: 1.25rem;
}

.events-empty-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 2.5rem;
}

/* --- Watch Page: YouTube card grids --- */
.video-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.5rem;
}

.video-card-grid--sermons {
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* ==========================================================================
   Responsive — collapsed navigation
   ========================================================================== */
@media (max-width: 900px) {
  .navbar {
    padding: 1rem 5%;
  }

  .navbar .logo img {
    height: 44px;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hover dropdowns are unusable on touch — the menu becomes an accordion. */
  .dropdown:hover .dropdown-menu {
    display: none;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 5% 1.5rem;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.09);
    max-height: calc(100vh - 100%);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links > li + li {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }

  .nav-links > li > a {
    display: block;
    padding: 0.9rem 0;
    font-size: 1.05rem;
    color: var(--text-primary);
  }

  /* Caret on the items that expand a submenu */
  .nav-links > .dropdown > a::after {
    content: '';
    float: right;
    width: 8px;
    height: 8px;
    margin-top: 0.55rem;
    border-right: 2px solid var(--text-gray);
    border-bottom: 2px solid var(--text-gray);
    transform: rotate(45deg);
    transition: transform 0.25s ease;
  }

  .nav-links > .dropdown.open > a::after {
    transform: rotate(-135deg);
    margin-top: 0.75rem;
  }

  .nav-links .dropdown-menu {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 0.5rem 1rem;
    text-align: left;
  }

  .nav-links .dropdown.open > .dropdown-menu {
    display: flex;
  }

  .nav-links .dropdown-menu a {
    padding: 0.75rem 0;
    font-size: 1rem;
  }
}

/* ==========================================================================
   Responsive — page layout
   ========================================================================== */
@media (max-width: 768px) {
  /* Header banner videos are 4.8:1 with text baked in across ~80% of the
     width, so at phone widths they render as a ~72px sliver. Go full-bleed
     and crop to 4:1 (the tallest we can crop before clipping the widest
     baked-in text, on the AI Wave banner) to give them more presence. */
  .hero {
    padding-top: 1.5rem;
  }

  .hero-image-container {
    width: 100%;
    max-width: none;
  }

  .hero-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 1;
    object-fit: cover;
    clip-path: none;
  }

  /* Sections carry desktop-sized top padding that eats a whole phone screen. */
  .mission-section,
  .connect-card-section,
  .kids-section,
  .table-section,
  .sunday-section {
    padding-top: 3.5rem;
  }

  .mission-section,
  .kids-section,
  .table-section,
  .connect-card-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .beliefs-hero,
  .resource-section,
  .opengym-section {
    padding: 3.5rem 1.5rem 4rem;
  }

  .doctrine-hero {
    padding: 4rem 1.5rem 3rem;
  }

  .mission-hero {
    min-height: 0;
    padding: 3rem 0;
  }

  .video-container {
    margin-bottom: 2.5rem;
  }

  .mission-text {
    font-size: 1.05rem;
  }

  /* Headings sized for desktop columns overflow at phone widths. */
  .beliefs-title {
    font-size: 2.4rem;
    margin-bottom: 3rem;
  }

  .belief-item {
    margin-bottom: 2.5rem;
  }

  .beliefs-action {
    margin-top: 3rem;
  }

  .vision-block h2,
  .mission-block h2 {
    font-size: 2rem;
  }

  .leader-header h2 {
    font-size: 2.4rem;
  }

  .leader-header h3 {
    font-size: 1.6rem;
  }

  .leader-profile {
    margin-bottom: 4rem;
  }

  .leader-text {
    padding: 1rem 1.5rem 0;
  }

  .leader-text p,
  .doctrine-list p,
  .kids-philosophy,
  .opengym-content p,
  .resource-list {
    font-size: 1rem;
  }

  .kids-highlight,
  .reveal-text {
    font-size: 1.6rem;
  }

  .table-details,
  .table-quote {
    font-size: 1.15rem;
  }

  .give-quote {
    font-size: 1.25rem;
  }

  .give-right,
  .table-right {
    padding: 0;
  }

  .connect-intro {
    font-size: 1.05rem;
  }

  .connect-intro .indent-p {
    padding-left: 1rem;
  }

  /* nowrap shrinks these to near-illegible sizes on a phone. */
  .kids-scripture h2,
  .sunday-subtitle {
    white-space: normal;
  }

  .kids-scripture h2 {
    font-size: 1.35rem;
  }

  .sunday-subtitle {
    font-size: 1.15rem;
  }

  .sunday-header {
    margin-bottom: 3rem;
  }

  .sunday-image img,
  .sunday-image.boy-item img {
    width: 100%;
    margin-left: 0;
  }

  .sunday-text-box {
    padding: 2.5rem 1.5rem;
  }

  /* Buttons: full-width and comfortably tappable. */
  .kids-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .kids-btn,
  .leader-actions,
  .leader-actions .btn-black,
  .give-submit-btn,
  .submit-btn {
    width: 100%;
  }

  .submit-btn {
    align-self: stretch;
  }

  .btn-black,
  .opengym-btn,
  .give-submit-btn,
  .submit-btn,
  .btn-submit {
    min-height: 48px;
  }

  .social-icons a {
    font-size: 1.6rem;
    padding: 0.25rem;
  }

  /* Two-up form rows are too tight for a phone. */
  .rc3-form .form-row {
    grid-template-columns: 1fr;
  }

  /* iOS zooms the page in when a focused input is under 16px. */
  .rc3-form input[type="text"],
  .rc3-form input[type="email"],
  .rc3-form input[type="tel"],
  .rc3-form textarea,
  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form input[type="tel"],
  .contact-form textarea {
    font-size: 16px;
  }

  .contact-modal-content {
    padding: 2rem 1.25rem;
  }

  .contact-modal-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-right: 2rem;
  }

  /* Events cards */
  .events-hero {
    margin-bottom: 2.5rem;
  }

  .events-section {
    padding: 0 1.5rem 4rem;
  }

  .events-grid {
    gap: 2rem;
  }

  .event-card-media {
    height: 200px;
  }

  .event-card-body {
    padding: 1.75rem;
  }

  .event-card-title {
    font-size: 1.5rem;
  }

  .event-card-desc {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  /* Footer: stacked columns need to be centred, and the absolutely
     positioned AG logo lands on top of the social icons. */
  .footer {
    margin-top: 3rem;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    padding: 4rem 1.5rem 2rem;
  }

  .footer-col {
    width: 100%;
  }

  .footer-ag-logo {
    position: static;
    display: flex;
    justify-content: center;
    padding-bottom: 2rem;
  }

  .footer-ag-logo img {
    height: 48px;
  }
}

/* Touch devices can't hover, so hover-revealed controls never appear. */
@media (hover: none) {
  .custom-video-controls {
    opacity: 1;
  }
}
