/*
Theme Name: Save Someone Now Child Theme Custom Styles
Description: Custom styles including hero background for Save Someone Now charity project
*/

/* Hero Section styling with background image and overlay */
.hero-section {
    position: relative;
    background-image: url('images/hero-bg.jpg'); /* Update with actual path */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #fff;
    height: 100vh; /* Full viewport height */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    z-index: 0;
}

.hero-section .overlay {
    position: absolute;
    top:0; left:0; right:0; bottom:0;
    background: rgba(0, 70, 32, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(0,0,0,0.7);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    font-weight: 500;
}

.btn {
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    margin: 0 10px 10px;
    font-weight: 700;
    transition: background 0.3s ease;
}

.btn-primary {
    background-color: #2d6a4f;
    color: #fff;
}

.btn-primary:hover {
    background-color: #1b4332;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.8);
    color: #264653;
}

.btn-secondary:hover {
    background-color: #87a96b;
    color: #111;
}

/* Hero Stats */
.hero-stats {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 60px;
    font-size: 1.2rem;
    font-weight: 600;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
    color: #a5d6a7;
}

/* Causes Section */
.causes-section {
    padding: 80px 20px;
    max-width: 1140px;
    margin: 0 auto;
}

.causes-section h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 60px;
    font-weight: bold;
    color: #264653;
}

.causes-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.cause-card {
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

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

.cause-card img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}

.cause-card h3 {
    font-size: 1.7rem;
    margin-bottom: 15px;
    color: #2f3e46;
}

.cause-card p {
    flex-grow: 1;
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: #555;
}

.progress-bar {
    background: #e0e0e0;
    height: 12px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    background: #2d6a4f;
    height: 100%;
    width: 0;
    transition: width 1.5s ease;
}

.progress-stats {
    font-weight: 600;
    font-size: 0.9rem;
    color: #264653;
    margin-bottom: 12px;
}

/* CTA Section */
.cta-section {
    background: #264653;
    color: #fff;
    padding: 80px 20px;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.6rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-section a {
    margin: 0 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-stats {
        flex-direction: column;
        gap: 24px;
        font-size: 1rem;
    }
    .hero-section {
        height: 80vh;
    }
}

.fullpage-container {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 30px 40px;
  box-sizing: border-box;
}

.volunteer-section,
.contact-section,
.donate-section {
  max-width: 1140px;
  margin: 0 auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  padding: 40px 30px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .fullpage-container {
    padding: 20px 15px;
  }
  .volunteer-section,
  .contact-section,
  .donate-section {
    padding: 30px 20px;
  }
}

/* Full page container for about page */
.fullpage-container {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 60px 50px;
  box-sizing: border-box;
  background: linear-gradient(135deg, #edf9f1, #d1e8d1);
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* About section content styling */
.about-section {
  max-width: 900px;
  background-color: #ffffffdd;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0, 70, 27, 0.15);
  padding: 45px 50px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #264653;
  line-height: 1.75;
  text-align: center;
  font-size: 1.12rem;
}

/* Headers for the about page */
.about-section h2 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 30px;
  color: #2a7a3a;
  text-shadow: 0 0 8px rgba(32, 92, 25, 0.3);
}

/* Paragraph spacing */
.about-section p {
  margin-bottom: 28px;
  font-weight: 500;
}

/* Buttons styles */
.about-section .btn {
  margin: 15px 10px;
  padding: 18px 48px;
  font-size: 1.3rem;
  border-radius: 36px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 15px rgba(45, 106, 79, 0.3);
  transition: all 0.3s ease;
}

.about-section .btn-primary {
  background-color: #2d6a4f;
  color: #fff;
  border: none;
}

.about-section .btn-primary:hover {
  background-color: #1b4332;
  box-shadow: 0 12px 20px rgba(27, 67, 50, 0.8);
}

.about-section .btn-secondary {
  background-color: rgba(45, 106, 79, 0.12);
  color: #264653;
  border: none;
}

.about-section .btn-secondary:hover {
  background-color: #87a96b;
  color: #111;
}

/* Responsive for tablets and smaller devices */
@media (max-width: 768px) {
  .fullpage-container {
    padding: 40px 25px;
  }

  .about-section {
    padding: 30px 20px;
    font-size: 1rem;
  }

  .about-section h2 {
    font-size: 2.2rem;
  }

  .about-section .btn {
    font-size: 1.1rem;
    padding: 15px 38px;
  }
}

/* Reduce site footer height and padding */
.site-footer {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    font-size: 0.8rem !important;
    line-height: 1.2 !important;
    min-height: 40px; /* adjust as needed */
}

/* Reduce footer container spacing */
.footer-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0;
    gap: 10px !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

/* Footer logo smaller */
.footer-logo img {
    height: 22px !important;
}

/* Footer menu styling */
.footer-nav .menu {
    display: flex;
    gap: 12px !important;
    font-weight: 600;
    font-size: 0.85rem !important;
}

.footer-nav .menu li a {
    padding: 2px 6px !important;
}

/* Footer contact smaller font */
.footer-contact {
    font-size: 0.75rem !important;
    text-align: right;
    margin: 0;
}

/* Footer bottom text */
.footer-bottom {
    font-size: 0.7rem !important;
    margin-top: 5px !important;
    color: #7fa880;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .site-footer {
        padding-top: 6px;
        padding-bottom: 6px;
    }
    
    .footer-container {
        flex-direction: column !important;
        text-align: center !important;
        gap: 6px !important;
    }
    
    .footer-contact {
        text-align: center !important;
        margin-top: 4px !important;
    }
    
    .footer-nav .menu {
        flex-direction: column !important;
        gap: 6px !important;
    }
}

.testimonial-slider {
  overflow: hidden;
  width: 100%;
  max-width: 960px;
  margin: 50px auto 70px auto;
  position: relative;
  background: #f9fbfd;
  border-radius: 16px;
  padding: 50px 60px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.testimonial-track {
  display: flex;
  gap: 48px;
  animation: slideTestimonials 24s ease-in-out infinite;
}

.testimonial-item {
  flex: 0 0 100%;
  max-width: 100%;
  background: #fff;
  padding: 40px 30px 48px 30px;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  font-style: italic;
  color: #264653;
  position: relative;
  transition: transform 0.3s ease;
}

.testimonial-item:hover {
  transform: scale(1.02);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.15);
}

.testimonial-item footer {
  margin-top: 26px;
  font-weight: 700;
  color: #2d6a4f;
  font-style: normal;
  text-align: right;
  font-size: 1.1rem;
}

/* Slide keyframes with ease in/out and pauses */
@keyframes slideTestimonials {
  0%, 20% {
    transform: translateX(0);
  }
  25%, 45% {
    transform: translateX(-100%);
  }
  50%, 70% {
    transform: translateX(-200%);
  }
  75%, 95% {
    transform: translateX(-300%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Responsive - disable animation on narrow screens for readability */
@media (max-width: 768px) {
  .testimonial-slider {
    padding: 35px 20px 40px 20px;
    max-width: 100%;
    margin: 40px auto;
  }
  .testimonial-track {
    animation: none;
    flex-wrap: wrap;
    gap: 24px;
  }
  .testimonial-item {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 28px 20px 36px 20px;
    font-size: 1rem;
  }
}
