/* home.css */

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #fefefe;
    color: #0c1b33;
    overflow-x: hidden;
}
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6rem 2rem;
  background: url('../images/hero-bg-pattern.svg') no-repeat center center;
  background-size: cover;
  min-height: 100vh;
  text-align: left;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  gap: 2rem;
}

.hero-cat {
  flex: 0 0 45%;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 1s ease-out forwards;
}

.hero-cat img {
  max-width: 110%;
  height: auto;
  object-fit: contain;
}

.hero-text {
  flex: 0 0 55%;
  max-width: 100%;
  margin-left: 2%;
  animation: fadeInLeft 1s ease-out forwards;
}

.headline-hero {
  font-size: 3.5rem;
  font-weight: 800;
  color: #0a1a44;
  margin-bottom: 1rem;
  margin-left: 12%;
}

.desc-hero {
  font-size: 1.75rem;
  margin-bottom: 3rem;
  color: #3c4d6b;
  margin-left: 12%;
}

.btn{
  background-color: #f9a44c;
  color: white;
  padding: 1.25rem 2.5rem;
  border: none;
  margin-right: 1rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
  
}
.hero-text .btn:first-of-type {
  margin-left: 12%;   /* align first button with headline & description */
}

.hero-text .btn {
  margin-right: 1rem; /* spacing between buttons */
  display: inline-block;
}

.btn:hover {
  background-color: #e68a28;
}

.btn.outline {
  background-color: white;
  color: #f9a44c;
  border: 2px solid #f9a44c;
}

.btn.outline:hover {
  background-color: #fff4e6;
}

.hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6rem 2rem;
  background: url('../images/hero-bg-pattern.svg') no-repeat center center;
  background-size: cover;
  min-height: 100vh;
  overflow: hidden;
}

.hero-side {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.left-side {
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.left-side a {
  color: #0a1a44;
  font-size: 20px;
  transition: color 0.3s;
}

.left-side a:hover {
  color: #f9a44c;
}

.right-side {
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  align-items: center;
}

.right-side .dot {
  width: 10px;
  height: 10px;
  background-color: #0a1a44;
  border-radius: 50%;
  margin: 6px 0;
}

@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes floatUpDown {
  0%, 100% {
    transform: translateY(-50%) translateY(0);
  }
  50% {
    transform: translateY(-50%) translateY(-10px);
  }
}

.btn:hover,
.btn.outline:hover {
  transform: scale(1.05);
}


.featured-section {
  padding: 5rem 2rem;
  background: url('../images/featured-section-bg.svg') no-repeat center center;
  background-size: cover;
  text-align: center;
  position: relative;
}

.featured-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 3rem;
  opacity: 0;
}

.pet-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.pet-card {
    opacity: 0;
  transform: translateY(20px);
  background: white;
  border-radius: 25px;
  padding: 1rem;
  width: 220px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pet-card:nth-child(1) { animation-delay: 0.1s; }
.pet-card:nth-child(2) { animation-delay: 0.2s; }
.pet-card:nth-child(3) { animation-delay: 0.3s; }

.pet-card:hover {
  transform: translateY(-10px) scale(1.03) rotateZ(-1deg);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}


.pet-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 20px;
}

.pet-info h3 {
  font-size: 1.1rem;
  font-weight: bold;
  color: #111;
  margin-top: 0.8rem;
  margin-bottom: 0.2rem;
}

.pet-info p {
  font-size: 0.9rem;
  color: #777;
}

.tags-container {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.tag {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  color: white;
  font-weight: 500;
    animation: floatTag 3s ease-in-out infinite;
}

.tag.red {
  background-color: #ef476f;
}

.tag.blue {
  background-color: #118ab2;
}

.tag.yellow {
  background-color: #f4a261;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes floatTag {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}


.how-it-works {
    background-color: #f5f5f5;
    background: url('../images/Mass\ Circles\ \(1\).svg') no-repeat center center;
    background-size: cover;
    background-size: cover;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
}

.how-it-works h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0a1a44;
    margin-bottom: 3rem;
}

.steps {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.step {
    max-width: 200px;
    text-align: center;
}

.circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #0a1a44;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2.5rem;
}

.step h3 {
    font-size: 1.2rem;
    color: #0a1a44;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step p {
    font-size: 0.95rem;
    color: #333;
}

/* CTA Button */
.action-btn {
    background-color: #0a1a44;
    color: white;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.action-btn:hover {
    background-color: #08366e;
}

/* 🔹 Hover Effect */
.circle:hover {
    background-color: #e68900; /* Accent Orange */
    transform: scale(1.1);
}

.circle:hover i {
    color: #fff;
}

.sponsor-section {
  padding: 6rem 2rem;
  background: url('../images/Blob\ Group.svg') no-repeat center center;
  background-size: cover;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sponsor-section h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: #0a1a44;
  margin-bottom: 3rem;
  font-family: 'Poppins', sans-serif;
}

.sponsor-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto 2.5rem;
}

.sponsor-icons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.5rem;
  color: #fff;
  background-color: #0a1a44;
  padding: 1rem 0.7rem;
  border-radius: 20px;
}

.sponsor-icons i {
  font-size: 1.2rem;
  margin: 0.4rem;
}

.sponsor-image-wrapper {
  flex-shrink: 0;
}

.sponsor-image {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.sponsor-text {
  text-align: left;
  max-width: 300px;
}

.sponsor-text h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0a1a44;
  margin-bottom: 0.5rem;
}

.sponsor-text p {
  font-size: 0.95rem;
  color: #1a1a1a;
  line-height: 1.6;
}

.sponsor-btn {
  background-color: #0a1a44;
  color: white;
  padding: 0.9rem 2.2rem;
  font-size: 1rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s;
}

.sponsor-btn:hover {
  background-color: #08366e;
}

/* ==== Success Story Modal ==== */
.story-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}
.story-modal.open { display: block; }

.story-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
}

.story-modal__dialog {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(900px, 92vw);
  max-height: 90vh;
  overflow: hidden;
  background: #fff;
  color: #0c1b33;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.story-modal__close {
  position: absolute;
  top: 10px; right: 12px;
  background: transparent;
  border: none;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: #0a1a44;
}

.story-modal__media {
  background: #f6f7fb;
  display: flex;
  align-items: center;
  justify-content: center;
}
.story-modal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 90vh;
}

.story-modal__content {
  padding: 24px 22px 28px;
  overflow: auto;
}
.story-modal__content h3 {
  margin: 0 0 8px;
  color: #0a1a44;
  font-size: 1.25rem;
  font-weight: 800;
}
.story-modal__content p {
  margin: 0;
  line-height: 1.6;
  color: #333;
}
.story-modal__meta {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #566;
}

/* Nav arrows */
.story-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  background: #0a1a44;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}
.story-modal__nav:hover { background: #f9a44c; }

.story-modal__nav--prev { left: 10px; }
.story-modal__nav--next { right: 10px; }

/* Responsive */
@media (max-width: 900px) {
  .story-modal__dialog {
    grid-template-columns: 1fr;
    width: min(640px, 94vw);
  }
  .story-modal__nav--prev { left: 6px; }
  .story-modal__nav--next { right: 6px; }
}


/* 🔹 Success Stories Section */
/* 🔹 Success Stories Section */
.success-stories {
  background-color: #002b62;
  background-image: url('../images/Rect\ Light.svg');
  background-size: cover;
  padding: 5rem 2rem;
  text-align: center;
  color: white;
}

.success-stories h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.success-stories .subtitle {
  font-size: 1rem;
  color: #d0dfff;
  margin-bottom: 3rem;
}

/* Wrapper keeps arrows positioned over the scroll area */
.story-scroll-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

/* Scroller */
.story-container {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 1.25rem;
  background-color: white;
  border-radius: 30px;
  scrollbar-width: none;           /* Firefox hide */
  -webkit-overflow-scrolling: touch;
  max-width: 1000px;               /* wider than 70% for better space */
  width: 90%;
  margin: 0 auto;
  position: relative;
}
.story-container::-webkit-scrollbar { display: none; }

/* Individual card */
.story-preview {
  position: relative;
  flex: 0 0 auto;
  width: 240px;
  height: 260px;
  border-radius: 20px;
  overflow: hidden;
  scroll-snap-align: start;
  background: #f6f7fb;
  transition: transform 0.25s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.story-preview:hover { transform: translateY(-4px); }

.story-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Arrows overlayed on the scroller */
.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background-color: #0a1a44;
  color: white;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}
.scroll-arrow:hover { background: #f9a44c; transform: translateY(-50%) scale(1.06); }
.scroll-arrow.left { left: 1.5rem; }
.scroll-arrow.right { right: 1.5rem; }

/* Optional: fade edges to hint scroll */
.story-container::before,
.story-container::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 40px;
  pointer-events: none;
  z-index: 1;
}
.story-container::before {
  left: 0;
  background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
  border-radius: 30px 0 0 30px;
}
.story-container::after {
  right: 0;
  background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
  border-radius: 0 30px 30px 0;
}

/* General quote */
.success-stories .general-quote {
  font-size: 1rem;
  font-style: italic;
  color: #e6ecff;
  max-width: 800px;
  margin: 0.5rem auto 0;
}

/* Responsive */
@media (max-width: 768px) {
  .story-container { width: 100%; padding: 1rem; }
  .story-preview { width: 70vw; height: 54vw; max-width: 320px; max-height: 260px; }
  .scroll-arrow { display: none; } /* rely on swipe on mobile */
}

/* 🔹 Support Section */
.support-section {
  background-image: url('../images/blob-scene-haikei.svg'); /* optional pattern background */
  background-size: cover;
  padding: 6rem 2rem;
  position: relative;
}

.support-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
  justify-content: center;
}

.support-image-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
}

.ring-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at center, white 60%, transparent 61%), 
              conic-gradient(#f59e0b 0% 50%, #0a1a44 50% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.support-image {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  z-index: 1;
}

.support-text {
  max-width: 500px;
}

.support-text h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0a1a44;
  margin-bottom: 1rem;
  font-family: 'Poppins', sans-serif;
}

.support-text ul {
  padding-left: 1.2rem;
  margin-bottom: 2rem;
  color: #0a1a44;
  font-size: 1.1rem;
  line-height: 1.6;
}

.support-text ul li {
  list-style-type: disc;
  margin-bottom: 0.5rem;
}

.support-button {
  background-color: #0a1a44;
  color: white;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.support-button:hover {
  background-color: #08366e;
}


/* 🔹 Donation List */
.donation-list {
    list-style: none;
    padding: 0;
}

.donation-list li {
    font-size: 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    text-align: left;
}

.donation-list i {
    margin-right: 10px;
    font-size: 18px;
    color: #e68900;
}

/* 🔹 Responsive Design */
@media (max-width: 768px) {
    .support-container {
        flex-direction: column;
        text-align: center;
    }
    
    .support-image img {
        width: 140px;
        height: 140px;
    }

    .support-btn {
        margin-top: 15px;
    }
}


/* 🔹 DONATION SECTION */
.donation-section {
    background: #003b6f;
    color: white;
    padding: 50px;
}

.donation-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.donation-container img {
    width: 120px;
    border-radius: 50%;
}

.donation-text {
    text-align: left;
    max-width: 500px;
}

.donation-text h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.donation-text ul {
    list-style-type: none;
    padding: 0;
}

.donation-text ul li {
    font-size: 16px;
}
.news-events-section {
  background: url('../images/svg.svg') no-repeat center center;
  background-size: cover;
  text-align: center;
  padding: 5rem 2rem;
}

.news-events-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0a1a44;
}

.news-events-section h3 {
  font-size: 1.2rem;
  color: #0a1a44;
  margin-bottom: 3rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}

.news-card {
  display: flex;
  align-items: center;
  background: #f3f3f3;
  border-radius: 30px;
  padding: 1.5rem;
  gap: 1.5rem;
}

.news-img img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 20px;
}

.news-info {
  text-align: left;
}

.news-info h4 {
  font-size: 1rem;
  color: #0a1a44;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.news-info .desc {
  font-size: 0.85rem;
  color: #333;
  margin-bottom: 0.4rem;
}

.news-info .date {
  font-size: 0.75rem;
  color: #555;
  margin-bottom: 0.4rem;
}

.news-info .read-more {
  font-size: 0.9rem;
  color: #f59e0b;
  font-weight: 600;
  text-decoration: none;
}

.view-more-container {
  margin-top: 2rem;
  font-size: 2rem;
  color: #0a1a44;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .hero-text {
    margin-left: 0;
  }

  .sponsor-content {
    flex-direction: column;
    text-align: center;
  }

  .news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .hero-text .btn {
    display: block;
    width: 100%;
    max-width: 250px;
    margin: 0.5rem auto;
  }

  .hero-cat {
    margin-top: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 90%;
    max-width: 300px;
    margin: 0.5rem 0;
  }
}
