/*=======================================
  FONTS
=======================================*/
@import url(http://fonts.googleapis.com/css?family=Open+Sans:300italic,400,300,600);
@import url(https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;700;900);
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

@font-face {
  font-family: OpenSans-Light, Manrope;
  src: url('../fonts/OpenSans-Light.eot'); /* IE9 Compat Modes */
  src: url('../fonts/OpenSans-Light.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/OpenSans-Light.woff') format('woff'), /* Modern Browsers */
       url('../fonts/OpenSans-Light.ttf') format('truetype'); /* Safari, Android, iOS */
}

/*=======================================
  GLOBAL RESET & LAYOUT
=======================================*/
.newlayout,
.newlayout * {
  all: revert;
}

.newlayout {
  --primary: #04334d;
  --box: #e5eef3;
  --accent: #00a3e0;
  --accent2: #bdc600;
  --light: #f4f6f8;
  --white: #ffffff;
  --text: #1f2933;
  --muted: #5f6b76;
  --card-radius: 10px;
  --shadow: 0 10px 25px rgba(0,0,0,0.12);

  margin: 0 auto;
  max-width: 1168px;
  padding: 1rem;

  font-family: 'Manrope','Open Sans',OpenSans-Light,Segoe UI,Arial,sans-serif;
  font-weight: normal;
  background: var(--light);
  color: var(--text);
  line-height: 1.7;
}

html, body, .newlayout {
  scroll-behavior:smooth;
}
/*=======================================
  HEADINGS
=======================================*/
.newlayout h1,
.newlayout h2,
.newlayout h3,
.newlayout h4 {
  font-family: 'Manrope','Open Sans',OpenSans-Light,Segoe UI,Arial,sans-serif;
  color: var(--primary);
  margin-top: 0;
}
 .newlayout h4 {
  color:white;
  
  font-size: clamp(1.75rem, 6vw, 4rem);

 }

.newlayout h1
{
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 3.5rem);
}

/*=======================================
  ICONS
=======================================*/
.newlayout i {
  color: var(--accent);
}
.newlayout .popout i,
.newlayout .contact i {
  margin-right: 0.5rem;
}
.newlayout .pillar i {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/*=======================================
  HERO SECTION
=======================================*/
.hero {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--white);
  margin-left: -2rem;
  margin-right: -2rem;
  margin-top: -2rem;
  width: calc(100% + 4rem);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 1rem;
  color: var(--light);
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

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

.hero a {
  background: var(--accent);
  padding: 0.8rem 2rem;
  border-radius: 30px;
  color: var(--white);
  font-weight: 600;
  transition: all 0.3s;
}

.hero a:hover {
  background: var(--primary);
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  z-index: 0;
}

.hero-image.active { opacity: 1; }

/*=======================================
  BACKGROUND BANNER
=======================================*/
.back-banner {
  background: #666666;
  padding: 1rem 0;
  margin-left: -2rem;
  margin-right: -2rem;
  width: calc(100% + 4rem);
}
/* Beliefs Background Banner*/
.beliefs {
  position: relative;
   background: var(--primary);
   
   padding: 2rem;
   padding-top:1rem;
   padding-bottom: 1rem;
   margin: 0;
       margin-left: -2rem;
    
    width: calc(100%);
}
.beliefs h1{
  color:white
}
.beliefs p {
      
      margin: auto;
      font-size: 1.1rem;
      color: var(--muted);
}

/*=======================================
  POP-OUT & CONTACT BOXES
=======================================*/
.newlayout .popout,
.newlayout .contact {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(to bottom, #e5eef3, #f1f1f1);
  border-radius: 8px;
  border-left: 5px solid var(--accent);
  border-right: 5px solid var(--accent2);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

/*=======================================
  SECTIONS
=======================================*/
.section {
  padding: 1.5rem 0.5rem;
}

.section h2 {
  text-align: left;
  color: var(--primary);
  margin-bottom: 2rem;
  font-size: 2rem;
}

.newlayout .container {
  max-width: 1200px;
  margin: auto;
}

.newlayout .container h1 {
  text-align: center;
}

/*=======================================
  VISION & PILLARS
=======================================*/
.newlayout .vision {
  position: relative;
  background: linear-gradient(to left, rgba(255,255,255,0.8) 100%, rgba(255,255,255,0) 90%),
              url('../images/prayer2.jpg') no-repeat center center;
  background-size: cover;
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.newlayout .vision p {
  max-width: 800px;
  margin: auto;
  font-size: 1.1rem;
  color: var(--muted);
}

.newlayout .pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.newlayout .pillar {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
}
.pillars-wide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(4, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/*=======================================
  TIMELINE
=======================================*/
.newlayout .timeline {
  border-left: 3px solid var(--accent2);
  padding-left: 2rem;
  margin-top: 3rem;
}

.newlayout .timeline-item {
  margin-bottom: 2.5rem;
  position: relative;
}

.newlayout .timeline-item::before {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  left: -2.4rem;
  top: 0.4rem;
}

/*=======================================
  SPLIT SECTIONS
=======================================*/
.newlayout .split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  align-items: center;
}

.newlayout .split img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 18px;
}

/*=======================================
  BLOCKQUOTE
=======================================*/
.newlayout blockquote {
  border-left: 4px solid var(--accent2);
  padding-left: 1.25rem;
  font-style: italic;
  color: #374151;
  margin: 2rem 0;
}

/*=======================================
  GALLERIES
=======================================*/
.newlayout .gallery_prayer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.newlayout .gallery_prayer img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
}

.newlayout .gallery img {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

/*=======================================
  LINKS
=======================================*/
.newlayout a {
  color: #007BFF;
  text-decoration: none;
  font-weight: normal;
  transition: color 0.3s, text-decoration 0.3s, font-weight 0.3s;
}

.newlayout a:hover,
.newlayout a:focus {
  color: #0056b3;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.newlayout a:active {
  color: #004085;
}

.newlayout .special-section a {
  color: #28a745;
}

.newlayout .special-section a:hover,
.newlayout .special-section a:focus {
  color: #218838;
  text-decoration: underline;
  font-weight: bold;
}

/*=======================================
  SERVICES SECTION
=======================================*/
.services-section {
  background: #f4f6f8;
  padding: 1.5rem 0.5rem;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
}

.services-title {
  text-align: center;
  color: var(--primary);
  margin-bottom: 3rem;
  font-size: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: 2fr 1fr; /* first wider, second narrower */
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Service cards */
.service-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.service-card h2 {
  margin-top: 0;
  color: var(--primary);
}

.service-card p {
  color: var(--muted);
  line-height: 1.7;
}

/* Dark card variant */
.service-card--dark {
  background: #1c1c1c;
  color: var(--white);
}

.service-card--dark h2 { color: var(--white); }
.service-card--dark p { color: #e5e7eb; }

/*=======================================
  YOUTUBE SECTION
=======================================*/
.youtube-section {
  background: #151515;
  color: var(--white);
  padding: 2rem;
  border-radius: 16px;
  margin-top: 2rem;
  text-align: center;
}

.youtube-section a {
  color: var(--accent);
  font-weight: 600;
}

.youtube-link img {
  height: 36px;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.youtube-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #ff0000;
  font-weight: 600;
  text-decoration: none;
}

.youtube-link a:hover,
.youtube-link a:focus { text-decoration: underline; }

.video-container { margin-top: 2rem; }

/*=======================================
  MAP & APPS
=======================================*/
.map-container,
.calendar-container {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.map-container { height: 200px; }

.map-container iframe
{
  width: 100%;
  height: 100%;
  border: 0;
}

.calendar-container {
  padding-bottom: 140%; /* Maintain aspect ratio */
}
.calendar-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.apps img {
  max-width: 120px;
  margin: 0.5rem;
  transition: opacity 0.3s ease;
}

.apps img:hover { opacity: 0.6; }

/*=======================================
  FOOTER
=======================================*/
.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

/*=======================================
  GRID CARDS & EVENTS
=======================================*/
.grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card,
.event-card {
  background: var(--white);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s;
  position: relative;
}

.card:hover { transform: translateY(-5px); }

.card img {
  width: 100%;
  object-fit: cover;
  height: 200px;
  opacity: 0.9;
}

.card-content { padding: 1.5rem; }

.card-content h3 { color: var(--primary); margin-top: 0; }
.card-content p { color: var(--text); margin-bottom: 0; }

.event-image,
.event-image-prayer { height: 180px; background-size: cover; background-position: center; }
.event-content { padding: 1.2rem 1.3rem 1.5rem; }
.event-title { font-size: 1.05rem; font-weight: 600; color: var(--primary); margin-bottom: 0.8rem; }
.event-meta { font-size: 0.9rem; color: var(--muted); display: grid; row-gap: 0.35rem; }

/* Date badge */
.date-badge {
  position: absolute;
  top: 150px;
  right: 16px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--light);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  line-height: 1.2; /* prevents vertical overflow */
}

.date-badge .day { font-size: 1.5rem; font-weight: 700;}

.dated-section {
  display: none;
}
.dated-section.visible {
  display: block;
  opacity: 1;
}

/*=======================================
  FULL-WIDTH IMAGE SECTION
=======================================*/
.full-image-section {
  position: relative;
  background: url('images/prayer3.jpg') center / cover no-repeat;
  height: 350px;
  border-radius: 20px;
  margin: 3rem 0;
}

.full-image-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.3);
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.full-image-section h2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  color: var(--white);
  z-index: 1;
}

/*=======================================
  LATEST SERVICE ROW
=======================================*/
.latest-service {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.latest-left {
  background: linear-gradient(to bottom, #ffffff, #b8b6b6);
  color: #444343;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.latest-right {
  background: #1c1c1c;
  color: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

/*=======================================
  ANIMATIONS
=======================================*/
@keyframes fadeIn { to { opacity: 1; } }

/*=======================================
  MEDIA QUERIES
=======================================*/
@media (max-width: 900px) {
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
}

@media (max-width: 768px) {
  .newlayout .split { 
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .newlayout .split > div {
    max-width: 650px;
    margin: 0 auto;
    text-align: left;
  }

  .services-grid { grid-template-columns: 1fr; }
  .latest-service { grid-template-columns: 1fr; padding: 0 1rem; }
}
/* Mobile tweak: center grid if columns don’t fill the row */
@media (max-width: 768px) {
  .newlayout .pillars {
    justify-content: center; /* center the row horizontally */
    grid-template-columns: repeat(auto-fit, minmax(300px, max-content));
  }
}
