/* ===== FOUNDING & PURPOSE SECTION ===== */
.founding-purpose {
  padding: var(--space-xl) 0;
  background: var(--color-light);
  position: relative;
  overflow: hidden;
}

.founding-purpose::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-primary), transparent);
}

.section-intro {
  text-align: center;
  /* margin-top: 10rem; */
  margin-bottom: var(--space-2xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.about-section-title {
  font-family: var(--font-body);
  font-size: 15px;
  color: #878a99;
  margin-bottom: 0;
  letter-spacing: 3px;
  font-weight: 400;
  text-transform: uppercase;
}

.about-section-title img{
    transform: scale(.6);
    margin-left: 20px;
    vertical-align: middle;
}

.about-section-subtitle {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: #8a8787;
  margin-bottom: var(--space-sm);
  font-weight: 800;
}

.lines {
    width: 100px;
    height: 1px;
    background-color: rgba(84, 89, 106, .3);
    margin: 60px auto;
    margin-top: 40px;
}

/* Connecting Line */
.connecting-line {
  display: block;
  position: relative;
  height: 2px;
  margin: var(--space-2xl) auto;
  max-width: 800px;
}

.line {
  position: absolute;
  top: 50%;
  left: 50px;
  right: 50px;
  height: 2px;
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  transform: translateY(-50%);
}

.line-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--color-primary);
  top: 50%;
  transform: translateY(-50%);
}

.line-dot.start {
  left: 0;
}

.line-dot.end {
  right: 0;
}

/* ===== STORYBOOK SECTION ===== */
.storybook-section {
  padding: var(--space-3xl) 0;
  background-color: none;
  position: relative;
  overflow: hidden;
}

.storybook-desktop {
  display: block;
}
/* ===== DESKTOP OPEN BOOKS ===== */
.open-book {
  position: relative;
  display: flex;
  width: 90%;
  height: 700px;
  margin: 0 auto var(--space-2xl);
  overflow: hidden;
  background-size: cover;
  background-image: url(/images/book.png);
  overflow-x: visible;
  background-attachment: local;
  filter: url(#soft-shadow);
  padding: 2rem;
}

.left-page, .right-page {
  flex: 1;
  position: relative;
  z-index: 2;
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
}


/* Page Titles */
.book-title {
  font-family: "Short Stack", cursive;
  font-size: 2.5rem;
  color: #020570;
  margin-bottom: var(--space-lg);
  font-weight: 400;
  text-shadow: blue;
  position: relative;
  padding-bottom: 0.5rem;
}

.book-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--color-accent-gold);
}

/* Page Photos */
.page-photo {
  position: relative;
  margin: var(--space-lg) 0;
  flex: 1;
}

.page-photo img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.photo-frame {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 2px solid var(--color-accent-gold);
  border-radius: 8px;
  pointer-events: none;
}


/* Book Text */
.book-text {
  font-family: "Short Stack", cursive;
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.9;
  color: #020570;
  margin-bottom: var(--space-lg);
  padding: 1.5rem;
  border-radius: 4px;
  letter-spacing: 1px;
  word-spacing: 10px;
}

.text-highlight {
  background: var(--color-accent-gold);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-weight: 600;
  color: #020570;
}

/* Feature Dots */
.feature-dots {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: var(--space-lg);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent-gold);
  position: relative;
  cursor: help;
}

.dot:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  margin-bottom: 5px;
}

.book-2 .left-page .page-content .book-text{
    margin-bottom: 0.5rem;
}

/* Handwritten Numbered List */
.handwritten-list {
  list-style: none;
  counter-reset: handwritten-counter;
  padding: 0;
  margin-bottom: 0;
  padding-left: 1.5rem;
}

.handwritten-item {
  counter-increment: handwritten-counter;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 3.5rem;
  display: flex;
  align-items: center;
}

.handwritten-item::before {
  content: counter(handwritten-counter);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  
  /* Pen-written number style */
  font-family: 'Dancing Script', 'Segoe Print', 'Bradley Hand', cursive;
  font-size: 2rem;
  font-weight: 700;
  color: #8B4513; /* Saddle brown - ink color */
  
  /* Ink bleed/smudge effect */
  text-shadow: 
    1px 1px 0 rgba(139, 69, 19, 0.3),
    2px 2px 2px rgba(139, 69, 19, 0.1);
  
  /* Paper texture background */
  background: 
    transparent;
  
    border: 2px solid #8B4513;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Ink pen stroke effect */
  -webkit-text-stroke: 0.5px rgba(101, 67, 33, 0.5);
  
  /* Slight rotation like handwriting */
  transform: translateY(-50%) rotate(-5deg);
  
  /* Subtle shadow like ink on paper */
  box-shadow: 
    inset 0 0 10px rgba(139, 69, 19, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.1);
  
  transition: all 0.3s ease;
}

.handwritten-item:hover::before {
  transform: translateY(-50%) rotate(0deg) scale(1.1);
  color: #5D4037; /* Darker on hover */
  box-shadow: 
    inset 0 0 15px rgba(139, 69, 19, 0.2),
    0 4px 8px rgba(0, 0, 0, 0.15);
}

.list-text {
  font-size: 1.2rem;
  color: #3e2723;
  font-weight: 500;
  line-height: 1.4;
  padding: 0.5rem 0;
  
  /* Subtle text shadow for readability */
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
  
  /* Underline effect */
  border-bottom: 1px dashed rgba(139, 69, 19, 0.3);
  padding-bottom: 0.25rem;
}

.handwritten-list::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2.5rem;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, rgba(139, 69, 19, 0.2), transparent);
}

/* Add font if not already loaded */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&display=swap');

/* Mobile responsive */
@media (max-width: 768px) {
  .handwritten-list {
    padding-left: 0;
    margin-bottom: 1.25rem;
    margin-top: -2rem;
    margin-left: -1rem;
  }

  .handwritten-item{
    margin-bottom: 0.2rem;
  }
  
  .handwritten-item::before {
    width: 2rem;
    height: 2rem;
    font-size: 1.6rem;
  }
  
  .list-text {
    font-size: 1rem;
  }
}

/* Page Curl Effect */
.page-curl {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, transparent 50%, rgba(0,0,0,0.1) 50%);
  border-radius: 0 0 8px 0;
}

.page-number {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: rgba(0,0,0,0.4);
  font-style: italic;
}

/* ===== RESPONSIVE DESIGN ===== */
/* ===== MOBILE HORIZONTAL SCROLL BOOKS ===== */
@media (max-width: 768px) {
    .founding-purpose {
    padding: var(--space-xl) 0;
  }

  .about-section-subtitle {
    font-size: 2rem;
  }

  .storybook-section {
    padding:  0;
    overflow-x: hidden; /* Prevent body scroll */
  }
  
  .storybook-desktop {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
  }
  
  .open-book::-webkit-scrollbar{
    display: none;
  }

  .open-book {
    /* Reset desktop styles */
    width: 100%;
    height: auto;
    min-height: 450px;
    margin: 0;
    border-radius: 16px;
    overflow-x: auto; /* Horizontal scroll */
    overflow-y: hidden;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center center;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 0.2rem;
  }
  
  /* Each page becomes a scrollable "card" */
  .left-page, .right-page {
    flex: 0 0 85vw; /* Each page takes 85% of viewport */
    width: 85vw;
    min-width: 85vw;
    height: 100%;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }
  
  /* Book 1: Show left page (title+photo), right page partially visible */
  .book-1 {
    /* Show left page centered, right page peeking */
    scroll-padding-left: 0;
  }
  
  .book-1 .left-page {
    /* Left page fully visible */
    opacity: 1;
  }
  
  .book-1 .right-page {
    /* Right page starts partially off-screen */
    opacity: 1;
  }

  .book-1 .right-page .page-content .book-text{
    font-size: 0.9rem;
}
  
  /* Book 2: Show right page (text), left page partially visible */
  .book-2 {
    /* Show right page centered, left page peeking */
    scroll-padding-right: 0;
    margin-bottom: 1rem;
  }

  .book-2 .right-page .page-content .book-text{
    margin-left: -1rem;
    word-spacing: 2px;
    font-size: 1rem;
    line-height: 1.8;
    margin-top: 1.5rem;
}
  
  /* Visual indicator for scroll */
  .open-book::after {
    content: 'Scroll→';
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--color-secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
    pointer-events: none;
    animation: pulse 2s infinite;
  }
  
  /* Adjust content for mobile */
  .book-title {
    font-size: 1.8rem;
    margin-top: 1rem;
    margin-bottom: var(--space-md);
    text-align: left;
  }
  
  .page-photo {
    margin: var(--space-md) 0;
  }
  
  .page-photo img {
    height: 300px;
    max-width: 100%;
  }
  
  .book-text {
    font-size: 1.05rem;
    padding: 1rem 0rem;
    border-radius: 8px;
    margin-bottom: var(--space-md);
    letter-spacing: 0px;
    word-spacing: 5px;
    margin-left: -1.5rem;
  }

  .feature-dots {
    gap: 1rem;
    margin-top: -1.5rem;
  }
  
  .page-curl,
  .page-number {
    display: none; /* Hide on mobile */
  }
  
  /* Scroll hint animation */
  @keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
  }
}


/* ===== VISION PILLARS ===== */

.vision-intro {
  text-align: center;
  max-width: 800px;
  margin: var(--space-2xl) auto;
}

.vision-statement {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--color-gray-dark);
  font-style: italic;
  font-weight: 500;
}

.vision-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  max-width: 1200px;
  margin: var(--space-2xl) auto;
}

.pillar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pillar-icon {
  margin-bottom: var(--space-lg);
  background-color: #f7f7f7;
  border-radius: 50%;
  padding: 15px;
}

.pillar-icon img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: brightness(0.9);
  transition: transform 0.3s ease;
}

.pillar-item:hover .pillar-icon img {
  transform: scale(1.05);
}

.pillar-title {
  font-size: 1.4rem;
  color: #000;
  margin-bottom: var(--space-sm);
  font-weight: 700;
  line-height: 1.3;
}

.pillar-desc {
  font-size: 1rem;
  line-height: 1.5;
  color: #878a99;
  margin: 0;
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1024px) {
  .vision-pillars {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    padding: 0 var(--space-lg);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .vision-intro {
    margin: var(--space-xl) auto;
    padding: 0 var(--space-md);
  }
  
  .vision-statement {
    font-size: 1.2rem;
  }
  
  .vision-pillars {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    padding: 0 var(--space-md);
  }
  
  .pillar-item {
    padding: 0;
  }
  
  .pillar-title {
    font-size: 1.3rem;
  }
  
  .pillar-desc {
    font-size: 0.95rem;
  }

  .team-subtitle{
    font-size: 0.8rem;
}
}

/* Faith Section */

.faith{
  background-color: transparent;
  background-image: radial-gradient(at bottom center, #101e8a 0%, #010630 60%);
}

.dark-pillar .pillar-item .pillar-icon{
    background: none;
}

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

.dark-pillar .pillar-item {
  margin-top: 2rem;
}

.dark-pillar .pillar-item h3{
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0;
    letter-spacing: 1.5px;
    font-weight: bolder;
}

.dark-pillar .pillar-item img{
    filter: none;
    width: 350px;
    height: 210px;
}

.dark-pillar .pillar-item p{
    color: #e2e0e8;
    margin-top: -2rem;
}

@media (max-width: 768px) {
    .dark-pillar{
    grid-template-columns:  1fr;
    padding: 0;
    gap: 4rem;
  }

  .dark-pillar .pillar-item {
  margin-top: 0;
}

  .dark-pillar .pillar-item img{
    width: 250px;
    height: 150px;
}
}

.team{
    background-color: var(--color-light);
    background-image: url(/images/team.png);
    background-position: center top !important;
    background-repeat: no-repeat;
}


/* ===== TEAM GRID ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.team-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-align: center;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.team-photo {
  width: 100%;
  height: 330px;
  overflow: hidden;
  padding: 1.2rem 0.4rem 0 0.4rem;
}

.team-photo img {
  width: 90%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-radius: 10px;
}

.team-card:hover .team-photo img {
  transform: scale(1.05);
}

.team-info {
  padding: var(--space-md);
  padding-top: 1.1rem;
  margin-top: 0;
}

.team-name {
  font-size: 1.421875rem;
  color: #495057;
  margin-bottom: 0.25rem;
  font-weight: 700;
  /* letter-spacing: -1px; */
}

.team-role {
  color: #a89d9d;
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
  margin-top: -3px;
}

/* ===== RESPONSIVE ===== */

/* Tablet: 2 per row */
@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 var(--space-lg);
  }
  
  .team-photo {
    height: 220px;
  }
}

/* Mobile: 1 per row */
@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    padding: 0 var(--space-md);
  }
  
  .team-photo {
    height: 280px;
  }
  
  .team-info {
    padding: var(--space-md);
  }
  
  .team-name {
    font-size: 1.2rem;
  }
}

/* ===== SINGLE CTA ===== */
.single-cta {
  border-radius: 20px;
  padding: var(--space-lg);
  margin: 10rem auto 4rem auto;
  max-width: 1000px;
  color: white;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  background-color: transparent;
  background-image: radial-gradient(at bottom center, #101e8a 0%, #010630 60%);
}

.single-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-text-group {
  margin-bottom: var(--space-xl);
}

.cta-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  color: var(--color-light)
}

.cta-subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
  font-weight: 500;
  color: var(--color-gray-light);
}

.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  border-radius: 50px;
  margin-bottom: var(--space-xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.cta-phone:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.phone-icon {
  font-size: 1.8rem;
}

.phone-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.phone-number:hover {
  text-decoration: underline;
}

.cta-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-actions .btn {
  padding: 0.75rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 160px;
}

.cta-btn-outline {
  background: transparent;
  border: 2px solid white !important;
  color: white;
}

.cta-btn-outline:hover {
  background: white;
  color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255,255,255,0.2);
}

.cta-btn-primary {
  background: var(--color-accent-gold);
  color: var(--color-primary);
  border: 2px solid var(--color-accent-gold);
}

.cta-btn-primary:hover {
  background: #e6b400;
  border-color: #e6b400;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(230, 180, 0, 0.3);
}

/* Mobile */
@media (max-width: 768px) {
  .single-cta {
    padding: var(--space-lg) var(--space-md);
    margin: 10rem 0 4rem 0;
    border-radius: 16px;
  }
  
  .cta-title {
    font-size: 1.5rem;
  }
  
  .cta-subtitle {
    font-size: 1rem;
    margin-bottom: -1rem;
  }
  
  .cta-phone {
    padding: 3px 8px;
    /* flex-direction: column; */
    gap: 10px;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
  }

  .phone-icon {
  font-size: 1.2rem;
}
  
  .phone-number {
    font-size: 1.2rem;
  }
  
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-actions .btn {
    width: 100%;
    max-width: 250px;
  }
}