/* =================================
------------------------------------
  TIYEMDER - About Page Styles
------------------------------------
====================================*/

/* ===== PAGE INFO SECTION ===== */
.page-info-section {
  min-height: 125px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.page-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(14, 32, 98, 0.7), rgba(14, 32, 98, 0.5));
  z-index: 1;
}

.page-info-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  width: 100%;
}

.pi-inner {
  padding: 0 2rem;
}

.page-info-content h2 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  background: linear-gradient(45deg, #FFD700, #FFA500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.site-breadcrumb {
  font-size: 1.1rem;
  font-weight: 500;
  opacity: 0.9;
}

.site-breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-breadcrumb a:hover {
  color: #FFD700;
  text-decoration: none;
}

.site-breadcrumb i {
  margin: 0 0.5rem;
  color: #FFD700;
}

.site-breadcrumb span {
  color: #FFD700;
  font-weight: 600;
}

/* ===== ABOUT SECTION ===== */
.about-section {
  padding: 120px 0;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.about-content {
  position: relative;
  padding: 20px 0;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #0E2062;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.section-badge i {
  font-size: 16px;
}

.section-badge.mx-auto {
  display: inline-flex;
  margin: 0 auto 15px;
}

.about-content h2 {
  font-size: 3.2rem;
  font-weight: 700;
  color: #0E2062;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.about-text {
  margin-bottom: 30px;
}

.about-text p {
  font-size: 1.6rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #555;
}

.about-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: #0E2062;
  margin-bottom: 5px;
}

.stat-text {
  font-size: 1.2rem;
  color: #777;
  font-weight: 600;
}

.site-btn.sb-wide {
  background: linear-gradient(135deg, #0E2062, #4a69bd);
  color: #fff;
  padding: 15px 30px;
  border-radius: 50px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(14, 32, 98, 0.3);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-size: 1.2rem;
}

.site-btn.sb-wide span {
  z-index: 2;
  position: relative;
}

.site-btn.sb-wide i {
  margin-left: 8px;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
  font-size: 1.2rem;
}

.site-btn.sb-wide:hover i {
  transform: translateX(5px);
}

.site-btn.sb-wide::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.site-btn.sb-wide:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(14, 32, 98, 0.4);
  color: #fff;
}

.site-btn.sb-wide:hover::before {
  left: 100%;
}

.about-img-wrapper {
  position: relative;
  padding: 15px;
}

.about-img-container {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.about-img-container img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
  border-radius: 10px;
}

.about-img-container:hover img {
  transform: scale(1.05);
}

.img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(14, 32, 98, 0.05), rgba(255, 215, 0, 0.1));
  z-index: 1;
  border-radius: 10px;
}

.decorative-pattern {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 150px;
  height: 150px;
  border: 3px solid #FFD700;
  border-radius: 10px;
  z-index: 0;
}

/* ===== SERVICES SECTION ===== */
.services-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.bg-light {
  background-color: #f8f9fa;
  position: relative;
}

.section-title {
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 3.2rem;
  font-weight: 700;
  color: #0E2062;
  margin-bottom: 15px;
}

.subtitle {
  color: #666;
  font-size: 1.6rem;
  margin-top: 10px;
}

.service-box {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.service-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #0E2062, #1a3ca5);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 28px;
  box-shadow: 0 5px 15px rgba(14, 32, 98, 0.3);
}

.service-icon i {
  font-size: 28px;
  color: #FFD700;
}

.service-box h4 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0E2062;
  margin-bottom: 15px;
}

.service-text {
  margin: 15px 0;
  color: #666;
  flex-grow: 1; /* Makes content area grow to fill space */
}

.service-text p {
  margin-bottom: 10px;
  line-height: 1.6;
  font-size: 1.4rem;
}

.service-line {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #FFD700, transparent);
  margin-top: 20px;
}

/* Responsive adjustments for services */
@media (max-width: 767px) {
  .service-box {
    margin-bottom: 30px;
  }
  
  /* Force equal heights on mobile */
  .row {
    display: flex;
    flex-wrap: wrap;
  }
  
  /* Ensure all columns in a row have the same height on mobile */
  .row > [class*="col-"] {
    display: flex;
  }
  
  .row > [class*="col-"] > .service-box {
    width: 100%;
  }
}

/* ===== PASTORS/TEAM SECTION ===== */
.pastors-section {
  padding: 100px 0;
  background: #fff;
  position: relative;
}

.pastor {
  text-align: center;
  margin-bottom: 40px;
}

.pastor-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pastor-img {
  height: 280px;
  border-radius: 10px;
  transition: all 0.5s;
  background-size: cover;
  background-position: center;
}

.pastor-social {
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  padding: 15px;
  background: linear-gradient(to top, rgba(14, 32, 98, 0.9), transparent);
  display: flex;
  justify-content: center;
  gap: 15px;
  opacity: 0;
  transition: all 0.3s;
}

.pastor-img-wrap:hover .pastor-social {
  bottom: 0;
  opacity: 1;
}

.pastor-img-wrap:hover .pastor-img {
  transform: scale(1.05);
}

.pastor-social a {
  color: #fff;
  font-size: 18px;
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.pastor-social a:hover {
  background: #FFD700;
  color: #0E2062;
  transform: translateY(-3px);
}

.pastor h3 {
  font-size: 1.8rem;
  margin-bottom: 5px;
  color: #0E2062;
  font-weight: 700;
}

.pastor p {
  color: #777;
  font-style: italic;
  font-size: 1.2rem;
}

/* ===== ANIMATIONS ===== */
.animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

.fadeInUp {
  animation-name: fadeInUp;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Animation classes for scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Counter animation */
.counter-anim {
  display: inline-block;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991px) {
  .about-section, 
  .services-section, 
  .pastors-section {
    padding: 80px 0;
  }
  
  .about-content h2, 
  .section-title h2 {
    font-size: 2.8rem;
  }
  
  .about-text p {
    font-size: 1.4rem;
  }
  
  .pastor-img {
    height: 240px;
  }
}

@media (max-width: 768px) {
  .about-section .row {
    flex-direction: column !important;
  }
  .about-content,
  .about-img-wrapper {
    max-width: 100%;
    flex: 0 0 100%;
    margin-bottom: 30px;
  }
  .about-img-wrapper {
    margin-bottom: 0;
  }
  .about-content {
    margin-bottom: 30px;
  }
  .about-stats {
    flex-direction: row;
    gap: 10px;
    justify-content: flex-start;
  }
}

@media (max-width: 576px) {
  .about-content {
    padding: 0 8px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
  }
  .about-content h2 {
    order: 1;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    word-break: break-word;
    text-align: left;
  }
  .about-text {
    order: 2;
    margin-bottom: 1rem;
  }
  .about-text p {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    line-height: 1.5;
    text-align: left;
  }
  .about-stats {
    order: 3;
    flex-direction: row;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 10px;
    justify-content: flex-start;
  }
  .stat-item {
    text-align: left;
    min-width: 80px;
  }
  .stat-number {
    font-size: 1.2rem;
    margin-bottom: 2px;
  }
  .stat-text {
    font-size: 0.95rem;
  }
  .section-badge,
  .site-btn.sb-wide {
    display: none;
  }
}