/* Global Styles for Miracle Encounter Outreach Ministries */

:root {
  /* Color Palette */
  --dark-blue: #1a2b4a;
  --medium-blue: #2d4a7c;
  --light-blue: #4a6fa5;
  --dark-grey: #2c2c2c;
  --medium-grey: #5a5a5a;
  --light-grey: #e5e5e5;
  --white: #ffffff;
  --gold: #d4c437;
  --gold-light: #ffcc00;

  /* Typography */
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--dark-grey);
}

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

body {
  background-color: var(--white);
  overflow-x: hidden;
}

/* Typography Classes */
.playfair-italic {
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

.poppins-regular {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
}

.poppins-bold {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

/* Topbar */
.topbar {
  background-color: var(--dark-blue);
  color: var(--white);
  padding: 12px 0;
  font-size: 14px;
}

.topbar-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-left,
.topbar-right {
  display: flex;
  gap: 32px;
  align-items: center;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Navbar */
.navbar {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.navbar-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 80px;
}

.navbar-brand {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark-blue);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-brand span {
  color: var(--gold);
}

.logo-image {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  object-fit: cover;
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: 35px;
  align-items: center;
}

.navbar-item {
  position: relative;
}

.navbar-link {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: var(--dark-grey);
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 0;
}

.navbar-link:hover {
  color: var(--gold);
}

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

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

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 12px 25px;
  color: var(--dark-grey);
  text-decoration: none;
  transition: all 0.3s ease;
}

.dropdown-menu a:hover {
  background-color: var(--light-grey);
  color: var(--gold);
  padding-left: 30px;
}

/* Hero Section */
.hero {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 43, 74, 0.85), rgba(45, 74, 124, 0.75));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 900px;
  padding: 0 40px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 56px;
  margin-bottom: 20px;
  color: var(--white);
  line-height: 1.2;
}

.hero-subtitle {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--gold-light);
}

.hero-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: var(--white);
  opacity: 0.95;
}

/* Page Break Section */
.page-break {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 80px 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.page-break-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 43, 74, 0.75);
  z-index: 1;
}

.page-break-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 800px;
  padding: 0 40px;
}

.page-break-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 48px;
  margin-bottom: 15px;
  color: var(--white);
  font-weight: 700;
}

.page-break-subtitle {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--gold-light);
}

.page-break-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--white);
  opacity: 0.95;
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 40px;
}

.container-narrow {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
}

/* Section Titles */
.section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 42px;
  color: var(--dark-blue);
  margin-bottom: 20px;
  text-align: center;
}

.section-subtitle {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: var(--medium-grey);
  text-align: center;
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Scripture Quote */
.scripture-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 24px;
  color: var(--dark-blue);
  text-align: center;
  margin: 60px auto;
  max-width: 800px;
  padding: 30px;
  border-left: 4px solid var(--gold);
  background-color: var(--light-grey);
  position: relative;
}

.scripture-reference {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--gold);
  margin-top: 15px;
  display: block;
}

/* Buttons */
.btn {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  padding: 14px 35px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.btn-primary {
  background-color: var(--gold);
  color: var(--dark-blue);
}

.btn-primary:hover {
  background-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.btn-secondary:hover {
  background-color: var(--gold);
  color: var(--dark-blue);
}

.btn-white {
  background-color: var(--white);
  color: var(--dark-blue);
}

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

/* Cards */
.card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.card-content {
  padding: 25px;
}

.card-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--dark-blue);
  margin-bottom: 12px;
}

.card-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--medium-grey);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 30px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.gallery-item {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Leadership Profile Cards */
.leadership-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  text-align: center;
}

.leadership-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.leadership-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.leadership-info {
  padding: 25px;
}

.leadership-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--dark-blue);
  margin-bottom: 8px;
}

.leadership-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.leadership-nationality {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: var(--medium-grey);
  margin-bottom: 12px;
}

.leadership-bio {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--medium-grey);
  line-height: 1.6;
}

/* Footer */
.footer {
  background-color: var(--dark-blue);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px;
  margin-bottom: 50px;
}

.footer-section h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--gold);
}

.footer-section p,
.footer-section a {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--white);
  line-height: 1.8;
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
}

.footer-section a:hover {
  color: var(--gold);
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.footer-social a {
  color: var(--white);
  font-size: 20px;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  text-align: center;
  font-size: 14px;
}

/* Forms */
.form-group {
  margin-bottom: 25px;
}

.form-label {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--dark-blue);
  display: block;
  margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--light-grey);
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  transition: border-color 0.3s ease;
}

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

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

/* Welcome Section */
.welcome-section {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 80px;
}

.pastor-image-container {
  text-align: center;
}

.pastor-image {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  margin-bottom: 20px;
}

.pastor-details {
  text-align: center;
}

.pastor-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--dark-blue);
  margin-bottom: 5px;
}

.pastor-designation {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--gold);
  margin-bottom: 5px;
}

.pastor-qualification {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--medium-grey);
}

.welcome-content h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 36px;
  color: var(--dark-blue);
  margin-bottom: 20px;
}

.welcome-content p {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--medium-grey);
  line-height: 1.8;
  margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .topbar-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar-menu {
    flex-direction: column;
    gap: 10px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .welcome-section {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 32px;
  }

  .page-break-title {
    font-size: 32px;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-40 {
  margin-top: 40px;
}

.mb-40 {
  margin-bottom: 40px;
}

.mb-60 {
  margin-bottom: 60px;
}

/* ==========================================================================
   ASSIGNMENT REWRITES & FUNCTIONAL INTERFACE UPGRADES
   ========================================================================== */

/* 1. Contact Page Formats */
.social-links-container {
  margin-top: 25px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  background-color: var(--medium-blue);
  color: var(--white);
  text-decoration: none;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.social-icon-btn:hover {
  background-color: var(--gold);
  color: var(--dark-blue);
  transform: translateY(-2px);
}

.map-placeholder-container {
  margin-top: 40px;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border: 1px solid var(--light-grey);
}

.map-embed-frame {
  width: 100%;
  height: 450px;
  border: 0;
  background-color: #f0f0f0;
  display: block;
}

/* 2. Community Page Accordions */
.faq-accordion-container {
  margin-top: 40px;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.faq-wrapper {
  background-color: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 6px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 25px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--dark-blue);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  background-color: #fcfcfc;
}

.faq-question::after {
  content: '＋';
  font-size: 18px;
  color: var(--gold);
  font-weight: bold;
}

details.faq-wrapper[open] .faq-question::after {
  content: '－';
}

.faq-answer {
  padding: 0 25px 20px 25px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: var(--medium-grey);
}

details.faq-wrapper summary { list-style: none; }
details.faq-wrapper summary::-webkit-details-marker { display: none; }

/* 3. White House Exhibition Fine Art Galleries */
.wh-gallery-section {
  background-color: #fafafa;
  padding: 80px 20px;
  border-top: 1px solid #eaeaea;
}

.wh-header-title {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--dark-blue);
  text-align: center;
  margin-bottom: 10px;
}

.wh-header-divider {
  width: 60px;
  height: 2px;
  background-color: var(--gold);
  margin: 20px auto 40px auto;
}

.category-container {
  margin-bottom: 60px;
}

.category-heading {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--dark-blue);
  border-bottom: 1px solid var(--light-grey);
  padding-bottom: 10px;
  margin-bottom: 30px;
}

.wh-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.wh-gallery-item {
  position: relative;
  background-color: var(--white);
  border: 1px solid #e1e1e1;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.wh-gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
  z-index: 10;
}

.wh-image-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.wh-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-definition-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(26, 43, 74, 0.95), rgba(26, 43, 74, 0.75) 70%, rgba(0,0,0,0));
  padding: 20px 20px 15px 20px;
  color: var(--white);
}

.photo-caption {
  font-size: 14px;
  margin-bottom: 4px;
}

.photo-date {
  font-size: 11px;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
}

.navigation-utility-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 50px auto 0 auto;
}

.btn-nav-back {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border: 1px solid var(--dark-blue);
  color: var(--dark-blue);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-nav-back:hover {
  background-color: var(--dark-blue);
  color: var(--white);
}

/* 4. Pure CSS Lightbox Overlays */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 43, 74, 0.98);
  align-items: center;
  justify-content: center;
}

.lightbox-modal:target { display: flex; }

.lightbox-content {
  max-width: 85%;
  max-height: 80%;
  border: 4px solid var(--white);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: var(--white);
  font-size: 35px;
  text-decoration: none;
}


/* ==========================================================================
   CONSOLIDATED MEDIA QUERIES FOR RESPONSIVE RENDERING
   ========================================================================== */

@media (max-width: 1200px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .wh-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .topbar-container { flex-direction: column; align-items: flex-start; }
  .navbar-menu { flex-direction: column; gap: 10px; }
  .hero-title { font-size: 36px; }
  .hero-subtitle { font-size: 18px; }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .welcome-section { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 32px; }
  .page-break-title { font-size: 32px; }
  
  /* Assignment Specific Adjustments */
  .wh-grid { grid-template-columns: 1fr; gap: 25px; }
  .wh-image-wrapper { height: 240px; }
  .navigation-utility-bar { flex-direction: column; gap: 15px; }
}

/* Utility Layout Classes */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }
