/* --- Global Resets & Theme Custom Properties --- */
:root {
  --oldcoral:     #E07A5F;
  --coral:        #f5d4a8;
  --coral-dark:   #C4593F;
  --sage:         #81B29A;
  --cream:        #FDF6ED;
  --text:         #3D405B;
  --text-light:   #5C5F7A;
  --white:        #FFFFFF;
  --lavendar:     #eeeef9;
  --lightgray:    #fbfbfb ;
  --radius:       15px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--text);
  background-color: var(--cream);
}

.layout-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.text-center { text-align: center; }

/* --- LAYER 1: WARMLINE TOP BAR --- */
.warmline-top-bar {
  background-color: var(--text);
  color: var(--white);
  padding: 0.5rem 0;
  font-size: 0.85rem;
}
.bar-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
.warmline-top-bar a {
  color: var(--white);
  text-decoration: none;
  font-weight: bold;
}
.bar-divider { color: var(--text-light); }

/* --- LAYER 2: ANNOUNCEMENT BAR --- */
.announcement-bar {
  background-color: var(--coral);
  padding: 0.5rem 0;
  font-size: 0.9rem;
}
.announcement-bar a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

/* --- LAYER 3: IDENTITY BANNER --- */
.identity-banner {
  background-color: var(--lavendar);
  padding: 1.5rem 0;
  border-bottom: 3px solid var(--text);
  position: sticky;
  top: 0;
  z-index: 1000; /* This keeps the banner layered safely on top of the scrolling text colors */
}
.identity-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.identity-right h1 {
  font-size: 1.5rem;
  color: var(--text);
}
.logo-placeholder {
  font-weight: bold;
  color: var(--sage);
}
.mobile-menu-toggle { display: none; } /* Hidden on desktop */

/* --- LAYER 4: MAIN SPLIT CONTAINER --- */
.main-body-wrapper {
  display: flex;
  margin-top: 0;
  margin-bottom: 0;
  align-items: stretch;
}

/* 4a. Persistent Left Navigation Sidebar */
.side-navigation {
  width: 200px;
  flex-shrink: 0;
}
.side-nav-sticky-box {
  position: sticky;
  top: 6rem; /* Keeps it locked on the screen during downward scrolling */
  padding: 2rem 1rem 2rem 0;
  max-height: calc(100vh - 8rem); /* Adjusted safety margin for small screens */
  overflow-y: auto; 
}
.nav-links-list {
  list-style: none;
}
.nav-links-list li {
  margin-bottom: 0.75rem;
}
.nav-anchor {
  display: block;
  padding: 0.7rem 1rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}
.nav-anchor:hover, .nav-anchor.active {
  background-color: var(--white);
  color: var(--oldcoral);
  box-shadow: 0 2px 8px rgba(61,64,91,0.05);
  border: 2px solid var(--coral-dark);
}

/* 4b. Right Side Content Blocks with Distinct Backgrounds */
.content-stream {
  flex-grow: 1;
  width: calc(100% - 250px);
}
.content-block {
  min-height: 40vh; /* Expansive block spacing */
  padding: 3rem 2rem;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.content-block h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Minimalist Solid/Light Color Designations for Distinct Identification */
.section-bg-home     { background-color: var(--cream);}
.section-bg-services { background-color: var(--cream);}
.section-bg-events   { background-color: var(--cream);} 
.section-bg-resources{ background-color: var(--cream);}
.section-bg-giveback { background-color: var(--cream);} 

/* --- LAYER 5: TIERED FOOTER --- */
.tiered-footer {
  background-color: var(--text);
  color: rgba(255, 255, 255, 0.8);;
}
.footer-warmline-banner {
  background-color: var(--text);
  padding: 2rem 0;
}
.footer-warmline-banner h3 { margin-bottom: 1.5rem; color: white; font-weight: lighter;}
.footer-warmline-banner h2 { margin-bottom: 0.5rem; color: white; }
.footer-warmline-banner a { color: var(--white); font-weight: bold; text-decoration: none;}

.footer-grid-wrapper { padding: 2rem 0; }
.footer-grid-4-col {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  /*grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));*/
  gap: 2.5rem;
}

@media (max-width: 768px) {
  .footer-grid-4-col {
    grid-template-columns: 1fr; /* Stays a clean vertical stack on phones */
    gap: 2rem;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
}

.footer-col h4 {
  color: var(--oldcoral);
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

.footer-col p {
  margin-bottom: 0.4rem;
}
.footer-link-list { list-style: none; }
.footer-link-list li { margin-bottom: 0.4rem; }
.footer-link-list a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}
.footer-link-list a:hover { color: var(--white); }
.footer-cta-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: var(--sage);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: bold;
}
.footer-copyright-bar {
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);

}

/* ==========================================================================
   BLOCK INNER TYPOGRAPHY & BUTTON STYLES
   ========================================================================== */

.block-inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Keeps header, paragraph, and button tucked at the top */
  max-width: 800px;
  width: 100%;
  position: relative; /* Establishes an anchor point for the top coral band */
  background-color: var(--lightgray);
  padding: 3rem;
  border-radius: var(--radius); 
  filter: drop-shadow(5px 5px 15px rgba(61, 64, 91, 0.08));
  box-sizing: border-box;
  border: 3px solid var(--text)
}
/*
.block-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;  
  right: 0;
  height: 10px;
  background-color: var(--text);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}
*/
.block-inner h1,
.block-inner h2,
.block-inner h3,
.block-inner p {
  text-align: left;
  color: var(--text);
}

.block-inner h1 {
  font-size: 2.8rem;
  margin-bottom: 1.2rem;
  font-family: 'Nunito', system-ui, sans-serif; 
}

.block-inner h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  font-family: 'Nunito', system-ui, sans-serif; 
}

.block-inner h3 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

.block-inner p {
  font-size: 1.15rem;
  line-height: 1.75; 
  margin-bottom: 2rem; 
}

.block-inner ul {
  text-align: left;
  margin-left: 2rem;       /* Indents the entire list group nicely once from the left margin */
  margin-bottom: 2rem;     /* Matches the spacing layout below your regular paragraphs */
  list-style-type: disc;   /* Uses a classic, clean bullet shape */
}

.block-inner li {
  font-size: 1.15rem;      /* Matches the exact font size of your P tags */
  line-height: 1.45;       /* Reduced from 1.75 to make multi-line bullets cluster tightly together */
  color: var(--text);      /* Matches standard body text shade */
  margin-bottom: 0.6rem;   /* Leaves a comfortable gap between individual bullet entries */
  padding-left: 0.25rem;   /* Slight breathing room between the bullet point itself and the text */
}

/* The Minimalist Right-Justified Button */
.block-inner .block-btn {
  display: inline-block; /* Changed from block so they can sit side-by-side */
  width: max-content; 

  /* Visual Presentation */
  background-color: var(--white);
  color: var(--text);
  border: 2px solid var(--text); 
  padding: 0.8rem 2.2rem;
  border-radius: 50px; 
  font-weight: 700;
  text-decoration: none;
  font-size: .8rem;
  transition: all 0.25s ease; 
  font-style: italic;
  font-weight: bolder;
}

/* Hover State: Perfect Inverse Color Swapping */
.block-inner .block-btn:hover {
  background-color: var(--text);
  color: var(--white);
}

/* ==========================================================================
   RESPONSIVE MOBILE MODIFICATIONS (Viewport Width Breakpoint)
   ========================================================================== */
@media (max-width: 768px) {
  
  /* Make the main identity bar stick to the top on mobile so the menu trigger is always there */
  .identity-banner {
    box-shadow: 0 4px 12px rgba(61, 64, 91, 0.08);
  }

  /* Hamburger Icon Presentation Styles */
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2100;
  }
  .hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* Structural Shift: Convert main container from Side-by-Side to Stacking */
  .main-body-wrapper {
    flex-direction: column;
  }

  /* Transform Left Sidebar into Pinned Overlay Mobile Menu hidden by default */
  .side-navigation {
    position: fixed;
    top: 0;
    left: -100%; /* Hidden completely offscreen to the left */
    width: 280px;
    height: 100vh;
    background-color: var(--white);
    z-index: 1999;
    box-shadow: 4px 0 15px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
  }
  .side-nav-sticky-box {
  position: sticky;
  top: 2rem;
  padding: 2rem 1rem 2rem 0;
  
  /* Add these two lines to make the menu scrollable if it gets too tall! */
  max-height: calc(100vh - 4rem); 
  overflow-y: auto; 
}
  .nav-anchor {
    font-size: 1.2rem;
    padding: 1rem;
  }

  /* When JS adds .mobile-open class, slide the navigation panel into view */
  .side-navigation.mobile-open {
    left: 0;
  }

  /* Adjust Right side content panel to fill complete width */
  .content-stream {
    width: 100%;
  }
  .content-block {
    padding: 2.5rem 1.25rem;
  }
}

/* ==========================================================================
   INTERACTIVE TESTIMONIAL WIDGET
   ========================================================================== */

/* Main Container */
.testimonial-slider {
  position: relative;
  width: 100%;
  max-width: 650px;
  padding-top: 2rem;
  margin: auto auto auto auto;
  padding-bottom: 3.5rem; /* Leaves room for our buttons at the bottom */
}

/* Individual Slides */
.testimonial-slide {
  display: none; /* Hides all slides by default */
  position: relative;
 padding: 1rem 0; 
  min-height: 200px;
  animation: fadeIn 0.5s ease; /* Gentle transition when swapping slides */
}

/* The Active Slide */
.testimonial-slide.active {
  display: block; /* Only reveals the slider marked as active */
}

/* Overlapping Oval Picture Frame - Larger & Bordered */
.testimonial-avatar {
  position: absolute;
  left: 0;
  top: 50%; 
  transform: translateY(-50%); /* Perfectly centers the oval up-and-down against the text box */
  
  /* Increased Size */
  width: 120px;      
  height: 160px;     
  border-radius: 50%; 
  
  /* Dark Coral Border Added */
  border: 3px solid var(--coral-dark); 
  background-color: var(--white);
  background-size: cover;
  background-position: center;
  z-index: 2; /* Forces the picture to sit ON TOP of the text box */
  box-shadow: 4px 0 15px rgba(61, 64, 91, 0.08); /* Soft shadow gives a 3D layered look */
}
/* 💬 The Text Box (Carrot Removed) */
.testimonial-bubble {
  background-color: var(--cream); /* Or use var(--cream) depending on your card background */
  color: var(--text);
  margin-left: 60px; 
  padding: 2.5rem 2rem 2.5rem 90px;
  border-radius: var(--radius);
  border: 3px solid var(--coral-dark); 
  /*border: 1px solid rgba(61, 64, 91, 0.05); /* Very subtle edge definition */
  box-shadow: 0 8px 20px rgba(61, 64, 91, 0.04); 
  position: relative;
  min-height: 170px; /* Ensures the box is always a bit taller than the picture */
  
  /* Flexbox centers the text vertically inside the box */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Typography inside the box */
.testimonial-text {
  font-size: 1.05rem;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 0.85rem;
}

.testimonial-author {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--coral-dark, #C4593F); 
}

/* 🕹️ Arrow Controls Positioning */
.slider-controls {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%); /* Centers the arrows nicely at the bottom */
  display: flex;
  gap: 1rem;
}

.slider-arrow {
  background-color: var(--white);
  border: 2px solid var(--text-light);
  color: var(--text);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.slider-arrow:hover {
  background-color: var(--text);
  border-color: var(--text);
  color: var(--white);
}

/* Mobile Responsiveness: Top-Overlapping Stack */
@media (max-width: 600px) {
  .testimonial-slide {
    padding-top: 80px; /* Leaves space for the top half of the oval */
  }
  .testimonial-avatar {
    top: 0;
    left: 50%;
    transform: translateX(-50%); /* Moves the oval to top-center */
  }
  .testimonial-bubble {
    margin-left: 0;
    padding: 100px 1.5rem 2.5rem 1.5rem; /* Massive top-padding so text clears bottom half of oval */
    text-align: center;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Container to align buttons to the right on desktop, stacked on mobile */
.card-buttons-right {
  display: flex;
  flex-direction: row;
  justify-content: flex-end; /* This forces both buttons perfectly to the right */
  gap: 1rem;                  /* Clean spacing between the buttons */
  margin-top: 1.5rem;         /* Pushes the button row down away from card text */
}

/* Mobile responsive override */
@media (max-width: 768px) {
  .card-buttons-right {
    flex-direction: column;   /* Stacks them vertically on mobile screens */
    width: 100%;
  }
}

/* --- MINIMALIST GOOGLE CALENDAR EMBED --- */
.calendar-container {
  width: 100%;
  max-width: 100%;
  margin: 1.5rem 0;
  border: 1px solid rgba(61, 64, 91, 0.15); /* Soft border matching your theme */
  border-radius: 12px; /* Smooth rounded corners to match the site aesthetic */
  overflow: hidden; /* Ensures the sharp iframe corners don't poke out */
  background-color: var(--white);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02); /* Very subtle depth */
}

.calendar-container iframe {
  display: block;
  width: 100%;
  height: 380px; /* Perfect height to display 3-4 upcoming agenda events */
}

/* Mobile Tweak */
@media (max-width: 768px) {
  .calendar-container iframe {
    height: 320px; /* Slightly shorter on mobile to save vertical scrolling space */
  }
}

/* ============================================
   FULL-WIDTH COMMUNITY SAGE SECTION
   ============================================ */

/* The outer full-width wrapper block */
.give-back-section {
  background-color: var(--sage);
  padding: 3rem 0;          /* Generous breathing room on top and bottom */
  color: var(--text);       /* Crisp, readable dark navy text */
  width: 100%;
  border-top: 3px solid var(--text);
}

/* The main centered layout title */
.give-back-section .section-title-center {
  text-align: center;
  max-width: 850px;         /* Limits line width so it's comfortable to read */
  margin: 0 auto 3.5rem auto; /* Centers the header text block and pushes cards down */
  font-size: 1.8rem;
  line-height: 1.4;
  font-weight: 700;
}

/* The horizontal deskop grid container */
.community-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Creates exactly 3 equal columns */
  gap: 2rem;                             /* Keeps a beautiful gap between cards */
}

/* Custom, standalone cards entirely separate from block-inner */
.community-card {
  background-color: #fbfbfb;
  padding: 2.5rem 2rem;
  border-radius: var(--radius, 15px);    /* Rounded corners to match PEP styling */
  box-shadow: 0 10px 25px rgba(61, 64, 91, 0.08); /* Gentle modern shadow layout */
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 3px solid var(--text);
}

/* Subtle, playful hover effect to make the cards feel interactive */
.community-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(61, 64, 91, 0.12);
}

.community-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.community-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-light); /* Uses your soft secondary text color */
}

.community-card .community-btn {
  display: inline-block; /* Changed from block so they can sit side-by-side */
  width: max-content; 

  /* Visual Presentation */
  background-color: var(--white);
  color: var(--text);
  border: 2px solid var(--text); 
  padding: 0.8rem 2.2rem;
  border-radius: 50px; 
  font-weight: 700;
  text-decoration: none;
  font-size: .8rem;
  font-style: italic;
  transition: all 0.25s ease; 
}

/* Hover State: Perfect Inverse Color Swapping */
.community-card .community-btn:hover {
  background-color: var(--text);
  color: var(--white);
}

/* Container to center buttons horizontally on desktop, stacked on mobile */
.community-card-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center; /* This is the magic line that centers both buttons! */
  gap: 1rem;               /* Creates uniform space between buttons */
  
  /* Volunteer Pro-Tip: margin-top: auto pushes the button row perfectly to the 
     bottom of the card, even if one card has more text than the others! */
  margin-top: auto;        
  padding-top: 1.5rem;
}

/* Mobile responsive override */
@media (max-width: 768px) {
  .community-card-buttons {
    flex-direction: column; /* Stacks the buttons vertically on phones */
    align-items: center;    /* CRUCIAL: Centers the buttons and stops them from stretching out */
    width: 100%;
  }
  
  .community-card-buttons .community-btn {
    width: 80%;             /* Takes up 80% of the card width on narrow screens */
    max-width: 240px;       /* BUT will never grow wider than 240 pixels on larger phones */
    text-align: center;     /* Keeps the text perfectly centered inside the button */
    box-sizing: border-box; /* Makes sure padding doesn't accidentally change the width */
  }
}

/* Custom, standalone cards entirely separate from block-inner */
.community-card-alt {
  background-color: var(--text);
  padding: 2rem 2rem;
  border-radius: var(--radius, 15px);    /* Rounded corners to match PEP styling */
  box-shadow: 0 10px 25px rgba(61, 64, 91, 0.08); /* Gentle modern shadow layout */
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 3px solid var(--sage);
}

/* Subtle, playful hover effect to make the cards feel interactive */
.community-card-alt:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(61, 64, 91, 0.12);
}

.community-card-alt h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: white;
}

.community-card-alt p {
  font-size: 1rem;
  line-height: 1.6;
  color:  white; /* Uses your soft secondary text color */
}

/* --- Responsive Layout for Mobile Devices --- */
@media (max-width: 768px) {
  .give-back-section {
    padding: 3.5rem 0;
  }
  
  .give-back-section .section-title-center {
    font-size: 1.45rem;
    margin-bottom: 2rem;
  }

  .community-cards-grid {
    grid-template-columns: 1fr; /* Forces cards into a single column vertical stack */
    gap: 1.5rem;
  }
}

/* Specialized 2-column grid layout ONLY for Quick Links */
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Forces exactly 2 equal columns all the way down */
  gap: 0.6rem 1rem;                      /* Clean grid row and column spacing */
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Force the 7th item (Sign up) to safely sit on its own line across both columns */
.quick-links-grid li:last-child {
  grid-column: span 2;
  margin-top: 0.4rem;
}
.quick-links-grid { list-style: none; }
.quick-links-grid li { margin-bottom: 0.6rem; }
.quick-links-grid a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}
.quick-links-grid a:hover { color: var(--white); }

/* ==========================================================================
   AUXILIARY TEMPLATE STYLES (For Embedded Docs, Sheets, and Calendars)
   ========================================================================== */

   .aux-main-content {
    padding: 3rem 0;
    background-color: var(--cream);
    min-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }
  
  .embed-card {
    background-color: var(--white);
    width: 100%;
    max-width: 1050px;
    min-height: 1500px;
    padding: 2.5rem;
    border-radius: var(--radius);
    position: relative;
    box-shadow: var(--shadow);
    box-sizing: border-box;
    margin: 0 auto;
    filter: drop-shadow(5px 5px 15px rgba(61, 64, 91, 0.08));
  }
  
  /* Accent top bar using PEP's signature coral color */
  .embed-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;  
    right: 0;
    height: 10px;
    background-color: var(--coral);
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
  }
  
  .embed-card-header {
    margin-bottom: 1.5rem;
    text-align: left;
  }
  
  .embed-card-header h2 {
    font-family: 'Nunito', system-ui, sans-serif;
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 0.5rem;
  }
  
  .embed-card-header p {
  font-size: 1.15rem;
  line-height: 1.75; 
  margin-bottom: 2rem; 
  }
  
  /* Seamless frame that safely wraps the Google iframes */
  .google-embed-container {
    position: relative;
    width: 100%;
    height: var(--desktop-h, 750px); 
    border-radius: var(--radius) !important;
    overflow: hidden !important;
    background-color: var(--white);
    border: 0;          /* Clips off the square corners of the calendar */

  }

  
  .google-embed-container iframe {
    width: 100%;
    height: 100%;
    border: 0 !important;
    outline: none !important;
  }
  
  /* Responsive adjustments for tired parents viewing on phones */
  @media (max-width: 768px) {
    .aux-main-content {
      padding: 1.5rem 0;
    }
    
    .embed-card {
      padding: 1.5rem 1rem;
    }
  
    .google-embed-container {
      height: var(--mobile-h, 550px) !important; 
    }
    
    .embed-card-header h2 {
      font-size: 1.6rem;
    }
  }

  /* Hides the toggle and prevents interactions on auxiliary pages while keeping layout space */
.mobile-menu-toggle.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

/* --- Service Cards --- */
.services-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
  gap:2rem;
}
.service-card{
  background:var(--cream);
  border-radius:var(--radius);
  padding:2.5rem 2rem;
  box-shadow:var(--shadow);
  transition:all var(--transition);
  border-top:4px solid var(--black);
}
.service-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg)}
.service-card.coral-accent{border-top-color:var(--coral)}
.service-card.gold-accent{border-top-color:var(--gold)}
.service-card .card-icon{font-size:2.5rem;margin-bottom:1rem;display:block}
.service-card h3{font-size:1.2rem}
.service-card p{color:var(--text-light);font-size:.95rem;margin-top:.75rem}
.service-card .card-link{
  display:inline-block;
  margin-top:1.25rem;
  font-weight:700;
  font-size:.9rem;
  color:var(--coral);
}
.service-card .card-link:hover{color:var(--coral-dark)}

.board-grid {
  display: grid;
  /* This creates a responsive grid that automatically adjusts based on screen size */
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2.5rem;
  text-align: center;
}

.board-member .member-photo {
  width: 150px;
  height: 175px;
  margin: 0 auto 1.25rem;
  background: var(--cream);
  border-top-left-radius: 20%;
  border-bottom-right-radius: 20%;
  border: 4px solid var(--coral-dark);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* If you drop an <img> tag inside .member-photo, this ensures it fits perfectly */
.board-member .member-photo img {
  width: 100%;
  height: 100%;
  object-position: 50% 15%;
  object-fit: cover;
}

.board-member h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.board-member h1 {
  color: var(--text);
  font-weight: 600;
  font-size: 0.75rem;
  margin-top: 0;
}
.board-member p {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0;
}

.advisor-member .advisor-photo {
  width: 150px;
  height: 175px;
  margin: 0 auto 1.25rem;
  background: var(--cream);
  border-top-right-radius: 20%;
  border-bottom-left-radius: 20%;
  border: 4px solid var(--sage);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.advisor-member .advisor-photo img {
  width: 100%;
  height: 100%;
  object-position: 50% 15%;
  object-fit: cover;
}

.advisor-member h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.advisor-member h1 {
  color: var(--text);
  font-weight: 600;
  font-size: 0.75rem;
  margin-top: 0;
}
.advisor-member p {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0;
}

.section {
  background-color: var(--white);
  padding: 2rem 0;          /* Generous breathing room on top and bottom */
  color: var(--text);       /* Crisp, readable dark navy text */
  width: 100%;
}

/* The main centered layout title */
.section .text-center {
  text-align: center;
  max-width: 850px;         /* Limits line width so it's comfortable to read */
  margin: 0 auto 3.5rem auto; /* Centers the header text block and pushes cards down */
  font-size: 1.8rem;
  line-height: 1.4;
  font-weight: 700;
}

/* The Frame: Locks in the perfect 16:9 shape and hides the zoomed edges */
.pep-presentation {
  position: relative;
  width: 100%;
  max-width: 960px; 
  margin: 1rem auto 2rem;
  aspect-ratio: 16 / 9; /* Perfect widescreen ratio */
  overflow: hidden; /* Acts like a matte frame to slice off the zoomed edges */
  border-radius: var(--radius);
  background: transparent;
}

/* The Iframe: Zooms in slightly to push the tiny borders out of view */
.pep-presentation iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  transform: scale(1.02); 
}

.document-container {
  width: 100%;
  max-width: 850px;       
  margin: 1.5rem auto;    
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease;
}

.document-container:hover {
  transform: translateY(-4px);
}

.responsive-pdf-img {
  width: 100%;
  height: auto; 
  display: block;
}