/* =======================
   CUSTOM FONTS
   ======================= */

@font-face {
  font-family: 'Athelas';
  src: url('/fonts/Athelas.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Eagle Horizon';
  src: url('/fonts/EagleHorizonP.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

/* =======================
   MOBILE-FIRST CHURCH WEBSITE CSS
   ======================= */

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

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Links */
a {
  color: #1a73e8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =======================
   HEADER / NAVBAR
   ======================= */

.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 1000;
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-weight: bold;
  font-size: 0.9rem;
}

.logo img {
  height: 35px;
}

/* Navigation */
.nav {
  position: absolute;
  top: 70px;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
  transform: translateY(-200%);
  transition: transform 0.3s ease;
}

.nav a {
  padding: 1rem;
  color: white;
  text-decoration: none;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Show menu when active */
.nav.active {
  transform: translateY(0);
}

/* Hamburger */
.hamburger {
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
}

/* =======================
   DESKTOP NAV
   ======================= */
@media (min-width: 768px) {
  .nav {
    position: static;
    transform: none;
    flex-direction: row;
    background: transparent;
    width: auto;
    gap: 2rem;
  }

  .nav a {
    padding: 0;
  }

  .hamburger {
    display: none;
  }
}

/* =======================
   HERO TEXT RESPONSIVE
   ======================= */

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 1rem;
  text-align: center;
}

/* =======================
   HERO CINEMATIC LAYOUT
   ======================= */

.hero-text {
  font-family: 'Athelas', serif;
  display: flex;
  flex-direction: column; /* mobile first */
  align-items: center;
  gap: 2rem;
  text-align: center;
  color: white;
}

/* Individual blocks */
.left-block,
.right-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Lines */
.line {
  font-size: 1.3rem;
  letter-spacing: 1px;
}

/* Big SAVED */
.big {
  font-size: 2.2rem;
  letter-spacing: 3px;
}

/* Highlight words */
.highlight {
  font-family: 'Eagle Horizon', serif;
}

/* =======================
   DESKTOP LAYOUT
   ======================= */

@media (min-width: 1024px) {
  .hero-text {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 6rem;
    text-align: left;
  }

  .left-block {
    align-items: flex-end;
  }

  .right-block {
    align-items: flex-start;
  }

  .line {
    font-size: 1.6rem;
  }

  .big {
    font-size: 3.2rem;
  }
}

/* =======================
   HERO WITH FIXED BACKGROUND
   ======================= */

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

/* Fixed background layer */
/* =======================
   HERO BACKGROUND IMAGES
   ======================= */

.hero-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;

  background-image: url('/images/bg-mobile2.png'); /* default: mobile */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Tablet */
@media (min-width: 768px) {
  .hero-bg {
    background-image: url('/images/bg-mobile2.png');
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .hero-bg {
    background-image: url('/images/bg-desktop2.png');
  }
}

/* Content */
.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 1rem;
  max-width: 800px;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
}

/* Tablet */
@media (min-width: 768px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  .hero p {
    font-size: 1.3rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.5rem;
  }

  .hero p {
    font-size: 1.6rem;
  }
}

/* =======================
   CARDS SECTION
   ======================= */
.cards {
  display: grid;
  grid-template-columns: 1fr; /* stacked on mobile */
  gap: 1rem;
  padding: 1rem;
}

.card {
  padding: 1rem;
  background: #f2f2f2;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}

/* =======================
   MEDIA QUERIES (TABLET)
   ======================= */
@media (min-width: 768px) {
  /* Hero height larger */
  .hero {
    height: 70vh;
  }

  /* Cards layout: 2 columns */
  .cards {
    grid-template-columns: repeat(2, 1fr);
    padding: 2rem;
  }

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

  .hero p {
    font-size: 1.2rem;
  }
}

/* =======================
   MEDIA QUERIES (DESKTOP)
   ======================= */
@media (min-width: 1024px) {
  /* Hero full height */
  .hero {
    height: 100vh;
  }

  /* Cards layout: 3 columns */
  .cards {
    grid-template-columns: repeat(3, 1fr);
    padding: 3rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.5rem;
  }
}

/* =======================
   IMAGE RESPONSIVENESS
   ======================= */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =======================
   VIDEO BACKGROUND SECTION
   ======================= */

.video-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

/* Video background */
.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -2;
}

/* Content */
.video-content {
  position: relative;
  z-index: 1;
  padding: 1rem;
}

.video-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.video-content p {
  font-size: 1.2rem;
}

/* Desktop text size */
@media (min-width: 1024px) {
  .video-content h2 {
    font-size: 3rem;
  }

  .video-content p {
    font-size: 1.5rem;
  }
}

/* INTRO SECTION FULL WIDTH FIX */

.intro-section {
  width: 100%;
  background: white; /* ensure full section is white */
}

.intro-header {
  background-color: #1e3a8a;
  color: white;
  text-align: center;
  padding: 30px 20px;
}

.intro-header h2 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 3px;
}

/* Full-width white background */
.intro-body {
  width: 100%;
  background-color: white; /* full width */
  padding: 60px 20px;
}

/* Constrain text width inside full-width background */
.intro-body .text-container {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1.1rem;
  color: #333;
}

.intro-body p {
  margin-bottom: 1.5rem;
}

.closing-question {
  font-weight: bold;
  font-size: 1.3rem;
  text-align: center;
}

/* Closing section */
.closing-section {
  text-align: center;
  margin-top: 3rem;
}

/* Read More button */
.read-more-btn {
  display: flex;
  justify-content: center;
  align-items: center;

  width: fit-content;
  margin: 1rem auto 0;

  padding: 14px 32px;

  background-color: #051452;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  
}

/* Hover effect */
.read-more-btn:hover {
  background-color: #051452;
  transform: translateY(-3px);
}

/* Click effect */
.read-more-btn:active {
  transform: translateY(0);
}

/* =======================
   BUTTONS (Optional)
   ======================= */
button {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  background-color: #1a73e8;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: #155ab6;
}

.readmore-section {
  width: 100%;
  min-height: 100vh;
  background: #f8f0e6;
}

.readmore-header {
  background: #051452;
  color: white;
  text-align: center;
  padding: 80px 20px;
}

.readmore-header h1 {
  margin: 0;
  letter-spacing: 3px;
}

.readmore-body {
  padding: 60px 20px;
}

.readmore-body .text-container {
  max-width: 900px;
  margin: auto;
  line-height: 1.9;
  color: #333;
  font-size: 1.1rem;
}

.readmore-body p {
  margin-bottom: 1.5rem;
}

.closing-question {
  font-weight: bold;
  font-size: 1.4rem;
  text-align: center;
  margin-top: 3rem;
}

/* =======================
   PAGE NAVIGATION
   ======================= */

.page-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;

  padding: 4rem 0;
}

/* Circle buttons */
.page-btn {
  width: 50px;
  height: 50px;

  display: flex;
  justify-content: center;
  align-items: center;

  border-radius: 50%;

  background-color: #f8f0e6;
  color: #1e3a8a;

  text-decoration: none;
  font-weight: bold;

  border: 2px solid #051452;

  transition: all 0.3s ease;
}

/* Hover */
.page-btn:hover {
  background-color: #051452;
  color: #f8f0e6;
  transform: scale(1.1);
}

/* Current page */
.page-btn.active {
  background-color: #051452;
  color: #f8f0e6;
}

/* =======================
   NEXT / PREVIOUS
   ======================= */

.page-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 4rem;
}

/* Buttons */
.nav-btn {
  display: inline-block;

  padding: 12px 24px;

  background-color: #051452;
  color: #f8f0e6;

  border-radius: 30px;

  text-decoration: none;
  font-weight: bold;

  transition: all 0.3s ease;
}

.nav-btn:hover {
  transform: translateY(-2px);
  background-color: #051452;
}

/* Disabled button */
.disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

/* Mobile */
@media (max-width: 768px) {
  .page-controls {
    flex-direction: column;
    align-items: center;
  }
}