/* =======================================
   Global
========================================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #ffffff;
}

.container {
  width: 85%;
  max-width: 1100px;
  margin: auto;
}

section {
  padding: 70px 0;
}

/* =====================================
   HEADER
======================================= */

header {
  background: white;
  padding: 10px 0;
  border-top: 6px solid #e63946;
  border-bottom: 3px solid #e63946;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo { height: 110px; }
.header-heart { height: 60px; }

nav a {
  color: #444;
  margin: 0 18px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
}

nav a:hover {
  color: #e63946;
  text-decoration: underline;
}

nav a.active {
  color: #e63946;
  border-bottom: 3px solid #e63946;
  padding-bottom: 4px;
}


/* ========================================
   HOME HERO
========================================== */

.hero {
  position: relative;
  height: 500px; /* desktop height */
  overflow: hidden;
  padding: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 20%; /* desktop width */
  height: 100%;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  padding: 40px;
}

.hero-text h1 {
  font-size: 36px;
  line-height: 1.4;
}

/* =======================================
   ABOUT HERO TEXT
========================================= */

.about-title h1 {
  font-size: 42px;
  color: #1d3557;
  margin-bottom: 15px;
}

.about-divider {
  height: 3px;
  width: 100%;
  background: #e63946;
  margin: 25px 0;
}

.about-subtext {
  font-size: 18px;
  color: #444;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ========================================
   HOMEPAGE SECTIONS
========================================== */

.story-flex,
.blog-flex,
.quote-flex {
  display: flex;
  gap: 40px;
  align-items: center;
}

.story-img,
.blog-img,
.quote-img {
  width: 45%;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.story-text {
  width: 55%;
}

/* ========================================
   PROGRAM GRID
========================================== */

.programs {
  padding: 80px 0;
  background: #f8f9fb;
  text-align: center;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.program-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.18);
}

.program-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.program-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 8px;
}

/* ===========================================
   BLOG SECTION
============================================= */

.blog-section {
  padding: 100px 0;
  background: #f8f9fb;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
}

.blog-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.blog-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 15px;
}

.blog-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #1d3557;
}

.blog-card p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.blog-card a {
  display: inline-block;
  margin-top: 5px;
  padding: 8px 14px;
  border-radius: 6px;
  background: #1d3557;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.blog-card a:hover {
  background: #c92f3c;
}

/* ========================================
   FOOTER
========================================== */

.footer {
  background: #2b2d42;
  color: white;
  text-align: center;
  padding: 60px 20px;
  margin-top: 80px;
}

.footer a {
  color: #f4d35e;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* =========================================
   HOMEPAGE QUOTE
=========================================== */

.quote h2 {
  font-size: 36px;
  line-height: 1.4;
}

.homepage-blog-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-flex {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.homepage-blog-link:hover .blog-flex {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  border-radius: 10px;
}

/* ===========================================
   SHARED PAGE HERO
============================================= */

.page-hero {
  position: relative;
  padding: 80px 20px;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero .container {
  background: #ffffff;
  padding: 50px 40px;
  border-radius: 16px;
  border: 3px solid #e63946;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  max-width: 850px;
  margin: 0 auto;
}

/* ==============================================
   Background images per page
================================================ */

.about-bg {
  background-image: linear-gradient(
      rgba(0,0,0,0.45),
      rgba(0,0,0,0.45)
    ),
    url("images/aboutimage.jpg");
}

.programs-bg {
  background-image: linear-gradient(
      rgba(0,0,0,0.45),
      rgba(0,0,0,0.45)
    ),
    url("images/programsimage.jpg");
}

.blog-bg {
  background-image: linear-gradient(
      rgba(0,0,0,0.45),
      rgba(0,0,0,0.45)
    ),
    url("images/bloghero.jpg");
}

/* ============================================
   ABOUT ICON CENTER FIX
============================================== */

.about-icon {
  width: 65px;
  height: 65px;
  min-width: 65px;
  background: #ffe5e8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-icon i {
  font-size: 24px;
  color: #e63946;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* =============================================
   ABOUT CONTENT LAYOUT
=============================================== */

.about-content .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.about-text {
  flex: 1.2;
}

.about-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-img {
  width: 100%;
  max-width: 450px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* ==============================================
   PROGRAM MODAL
================================================ */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background: #ffffff;
  width: 90%;
  max-width: 600px;
  padding: 40px;
  border-radius: 16px;
  border: 3px solid #e63946;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  position: relative;
  text-align: center;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
}

.modal-icon {
  font-size: 40px;
  color: #e63946;
  margin-bottom: 15px;
}

/* ================================================================================================================
                                                     MOBILE LAYOUT
=================================================================================================================== */

@media (max-width: 768px) {

  .container {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }

/* =======================================
   Prevent horizontal scroll
======================================= */
  
html, body {
    overflow-x: hidden;
  }

/* =======================================
   General Spacing
======================================= */
  
section {
    padding: 40px 0;
  }

/* =======================================
   Header stacks vertically
======================================= */
  
.header-flex {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  nav a {
    margin: 0;
  }

  .header-heart {
    height: 50px;
  }

/* =======================================
   Hero becomes stacked
======================================= */
  
.hero {
    height: auto;
  }

  .hero-img {
    height: auto;
  }

  .hero-overlay {
    position: static;
    width: 100%;
    padding: 20px;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 22px;
    line-height: 1.3;
  }

/* =======================================
   Story / Blog / Quote stack
======================================= */
  
.story-flex,
  
.blog-flex,
  
.quote-flex {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .story-img,
  .blog-img,
  .quote-img,
  .story-text {
    width: 100%;
  }

/* =======================================
   Program grid becomes single column
======================================= */
  
.program-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  
.program-card img {
    height: 180px;
  } 

/* ===================================================
   Make hero "Learn More" look like button mobile only
====================================================== */
  
.hero-text a {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 20px;
    background: #1d3557;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
  }

  /* Tap feedback */
  .hero-text a:active {
    transform: scale(0.97);
  }

/* =======================================
   PROGRAM CARD TAP FEEDBACK
======================================= */

  .program-card {
    transition: transform 0.12s ease, box-shadow 0.12s ease;
  }

  .program-card:active {
    transform: scale(0.97);
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
  }


/* =======================================
   BLOG BUTTON STYLE (MOBILE ONLY)
======================================= */

  .homepage-blog-link h2 {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 20px;
    background: #1d3557;
    color: #ffffff;
    border-radius: 6px;
    font-weight: 600;
  }

  .homepage-blog-link:active h2 {
    transform: scale(0.97);
  }

/* =======================================
   ABOUT HERO — MOBILE REFINED
======================================= */

.page-hero .container {
  padding: 22px 18px;          /* smaller vertical space */
  max-width: 88%;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88); /* slightly more transparent */
}

.page-hero h1 {
  font-size: 28px;
  line-height: 1.3;
}

.about-subtext {
  font-size: 16px;
}

/* =======================================
   ABOUT CONTENT STACKING — MOBILE
======================================= */

.about-content .container {
  display: block;
}

.about-image-wrapper {
  margin-top: 20px;
  text-align: center;
}

.about-img {
  max-width: 100%;
  height: auto;
}

.about-icon {
  margin-bottom: 10px;
}

/* =======================================
   ABOUT HEADINGS CENTERED — MOBILE
======================================= */

.about-text {
  text-align: center;
}

.about-icon {
  margin: 0 auto 15px auto;
}

.about-text h2 {
  text-align: center;
  margin-bottom: 15px;
}

.about-text p {
  text-align: left; /* keep paragraphs readable */
  max-width: 500px;
  margin: 0 auto;
}

/* =======================================
   ABOUT SECTION SPACING — MOBILE
======================================= */

.about-icon {
  margin-top: 30px;
}

/* =======================================
   BLOG PAGE — MOBILE
======================================= */

/* Stack blog articles on mobile */

.blog-grid {
  grid-template-columns: 1fr;
  gap: 30px;
}

.blog-card img {
  height: auto;
}


}