/* Imported Fonts */
@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200..1000;1,200..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Gluten:wght@100..900&display=swap');

html, body {
  max-width: 100%;
  scroll-behavior: smooth;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
@font-face {
    font-family: 'Gluten';
    src: url('/fonts/Gluten-ExtraBold.ttf') format('truetype');
}

body {
  background: #FBF3E7;
  color: #1f2b6c;
  overflow-x: hidden;
  margin: 0;
}


/* DESKTOP/MOBILE VISIBILITY HELPERS */
.mobile-only { display: none; }

@media (max-width: 768px) {
  .desktop-only { display: none; }
  .mobile-only { display: block; margin-top: 20px; }

  .hero-text h1 {
    font-size: clamp(2.2rem, 6vw, 3.4rem);
  }
  .hero-text h2 {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
  }

.hero-buttons {
  display: flex;
  flex-direction: column; /* Stack buttons vertically on mobile */
  gap: 15px;
  width: 100%;
}

.cta-btn.primary {
  margin-right: 0; /* Remove the desktop right margin */
  width: 100%;    /* Make buttons full width for easy tapping */
}

.cta-btn.secondary {
  width: 100%;
}
  /* HAMBURGER ICON */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
  }

  .menu-toggle span {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 10px;
    transition: all 0.3s ease;
  }

  /* SIDEBAR NAVIGATION */
  nav {
    position: fixed;
    left: -100%; /* Hidden off-screen to the left */
    top: 0;
    flex-direction: column;
    background: #1C4EA7;
    width: 250px;
    min-height: 100vh;
    height: auto;
    padding-top: 80px;
    transition: 0.4s ease;
    box-shadow: 5px 0 15px rgba(0,0,0,0.2);
    justify-content: flex-start !important; /* Align links to top */
  }

  nav.active {
    left: 0; /* Slide in */
  }

  nav a {
    margin: 15px 0 15px 30px !important;
    font-size: 20px;
    display: block;
  }

  /* ANIMATE HAMBURGER TO 'X' WHEN ACTIVE */
  .menu-toggle.is-active span:nth-child(2) { opacity: 0; }
  .menu-toggle.is-active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .menu-toggle.is-active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}
/* NAVBAR */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 3%; 
  background: #1C4EA7;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000; /* Keeps navbar above all other elements */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Adds depth when scrolling */
}

/* Ensure anchor scrolling doesn't end up hidden behind the sticky header */
section[id],
.legal-section[id] {
  scroll-margin-top: 90px;
}

.logo {
  margin-top: 10px; /* Adjust this number until it looks centered to your eye */
  margin-right: auto;
  font-family: 'Poppins';
  font-weight: bold;
  font-size: 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px; /* Base height */
  width: auto;
  transform: scale(3.0); /* Zooms the logo to 180% of its size */
  transform-origin: left center; /* Keeps the zoom anchored to the left */
  margin-right: 15px; /* Adds space so the 'zoomed' logo doesn't overlap text */
}

nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

nav a {
  margin: 0 30px;
  text-decoration: none;
  color: white;
  font-size: 18px;
  font-weight: bold;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #FFD391;
}

/* NAVBAR LOGIN BUTTON */
.nav-login-btn {
  background-color: #FFD391;
  color: #1C24A7;
  padding: 10px 24px;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease, transform 0.1s ease;
  text-align: center;
}

/* GOOGLE SIGN-IN BUTTON */
.google-btn {
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: #1C1F2B;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.google-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
  box-shadow: 0 8px 14px rgba(0,0,0,0.12);
}

.google-btn:focus-visible {
  outline: 3px solid rgba(66, 133, 244, 0.5);
  outline-offset: 2px;
}

.google-btn svg {
  width: 20px;
  height: 20px;
}

.google-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-login-btn:hover {
  background-color: #f7b058;
  transform: translateY(-1px);
}

/* HERO */
.hero {
  display: flex;
  flex-direction: row; /* Desktop default */
  align-items: center;
  justify-content: space-between;
  padding: 50px 5%;
  flex-wrap: wrap; /* Allows wrapping on small screens */
  overflow: hidden;
  position: relative;
}

.hero-text {
  max-width: 800px;
}

.hero-text h1 {
  font-family: "Gluten", sans-serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.2;
  color: #1C24A7;
}
.hero-text h2 {
  font-family: "Gluten", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: .9;
  color: #D4A574;
}

.hero-text span {
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  color: #c58f5e;
}

.hero-text p {
  font-family: 'Mulish', sans-serif;
  font-size: 20px;
  margin: 20px 0;
  color: rgba(28, 78, 167, 1);
  font-weight: medium;
}

.hero-buttons {
  margin-top: 40px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;      /* Increased padding for a better shape */
  font-family: 'Poppins', sans-serif;
  font-size: 16px;         /* Slightly larger font */
  font-weight: 700;        /* Bold text */
  border: none;
  cursor: pointer;
  border-radius: 12px;     /* Matches the rounded corners in the image */
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Adds that soft depth/shadow */
  text-decoration: none;
}

/* PRIMARY BUTTON (GET STARTED FREE) */
.cta-btn.primary {
  background-color: #FFD391;
  color: #1C24A7;
  margin-right: 20px;
}

.cta-btn.primary::after {
  content: '>';           /* Simple chevron */
  margin-left: 12px;
  font-size: 18px;
  font-weight: bold;
}

.cta-btn.primary:hover {
  background-color: #f7b058;
  transform: translateY(-2px); /* Subtle lift on hover */
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

/* SECONDARY BUTTON (LEARN MORE) */
.cta-btn.secondary {
  background-color: #1C24A7;
  color: #ffffff;
}

.cta-btn.secondary:hover {
  background-color: #1C4EA7;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

/* STATS */
.stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}
.stats > div {
  text-align: center;
}
.stats strong {
  font-family: "Montserrat";
  font-weight: bold;
  font-size: 26px;
  color: #2f4ea2;
}
.stats span {
  font-family: "Montserrat";
  font-weight: bold;
  font-size: 15px;
  color: #d4a574;
}
/* IMAGE */
.hero-image {
  position: relative; /* REQUIRED: Pins the oval to the image box */
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  z-index: 1;
}

/* oval shape behind the image */
.hero-image::before {
  content: '';
  position: absolute;
  width: 340px;
  height: 380px;
  background: #F7D79B;
  border-radius: 50%/43%;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(60deg);
  z-index: -1; /* Keeps it behind the pets */
}

.hero-image img {
  max-width: 100%; /* Ensures it never exceeds the screen width */
  height: auto;    /* Maintains aspect ratio */
  width: 100%;     /* Adjust this based on container size */
  display: block;
  position: relative;
  z-index: 2; /* Ensures pets stay on top */
}

/* MODAL BACKGROUND */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  inset: 0;
}

/* MODAL CARD UPDATES ================= */
.modal-content {
  background: #FBF3E7; /* Matches your body background */
  border-radius: 12px;
  width: 90%; /* Larger width to accommodate all fields comfortably */
  max-width: 500px;
  animation: popUp 0.3s ease;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden; /* keep offstage signup form hidden */
  min-height: 480px;
}

/* Make forgot/reset modal taller so its long form fits comfortably */
.forgot-content {
  min-height: 620px;
}

/* Pop animation */
@keyframes popUp {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* HEADER - Deep Blue */
.modal-header {
  background: #1C4EA7;
  color: white;
  text-align: center;
  padding: 20px 15px; /* Reduced padding */
}

.modal-header h2 {
  font-family: 'Gluten', sans-serif;
  font-size: 28px; /* Slightly smaller font */
  letter-spacing: 1px;
}

.modal-header p {
  font-size: 13px; /* Smaller font */
  margin-top: 6px;
  opacity: 0.9;
}

/* CLOSE BUTTON */
.close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #ff5e5e;
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  text-align: center;
  line-height: 22px;
  font-size: 14px;
  cursor: pointer;
}

/* TOGGLE BUTTONS - Segmented Control style */
.form-toggle {
  display: flex;
  margin: 6px;
  background: #E0E0E0;
  border-radius: 4px; /* Squarer edges like the image */
  padding: 0;
}

.form-toggle button {
  flex: 1;
  padding: 12px;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  background: #E0E0E0;
  color: #A0A0A0;
  transition: background-color 0.3s, color 0.3s;
}

.form-toggle button.active {
  background: #1C4EA7;
  color: white;
}

/* FORM LAYOUT */
.modal-body {
  /* body grows to fill modal-content */
  flex: 1;
  width: 100%;
  max-height: calc(95vh - 140px); /* Leave more vertical room so long forms fit without scrolling */
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

/* Hide scrollbars while keeping scroll behavior */
.modal-body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.auth-form {
  width: 100%;
  padding: 0 15px 15px 15px;
  display: none;
  flex-direction: column;
}

.auth-form.active {
  display: flex;
}

/* Ensure signup container doesn't force itself to display by default */
.registration-form {
  flex-direction: column;
  padding-top: 10px;
}

form {
  padding: 0 15px 15px 15px; /* Reduced padding to match auth-form */
  display: flex;
  flex-direction: column;
}

.input-group {
  margin-bottom: 15px; /* even tighter spacing so the form is more compact */
  text-align: left;
  position: relative; /* needed for password toggle icons */
  overflow: visible; /* let the toggle icon sit outside without being cut off */
}

.password-group input {
  padding-right: 64px; /* more space in case icon still intrudes or text runs long */
  /* keep same vertical padding as other inputs */
}

.toggle-eye {
  position: absolute;
  right: 10px;            /* moved a bit inward for a more centered look */
  top: 20px;
  bottom: 5px;
  margin: auto 0;         /* vertically center between top/bottom */
  cursor: pointer;
  font-size: 18px;        /* slightly larger icon for clarity */
  line-height: 1;
  color: #555;
  z-index: 2; /* ensure it sits above the input field */
  user-select: none;
  width: 24px;            /* increased size to match larger font */
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-group label {
  display: block;
  font-size: 12px; /* Smaller font size */
  font-weight: 600;
  color: #1C4EA7;
  margin-bottom: 3px; /* Reduced margin */
}

input {
  width: 100%;
  padding: 8px; /* Further reduced padding */
  border: 1px solid #CCC;
  border-radius: 8px;
  background: white;
  font-size: 13px; /* Slightly smaller font */
}

/* For the Registration "Grid" look */
.registration-form {
  flex-direction: column;
}

/* For the Registration "Grid" look */
.registration-form .input-group {
  margin-bottom: 6px; /* Even smaller margin for registration form */
}

.registration-form .modal-next-btn {
  margin-top: 4px; /* Smaller margin for registration button */
}

.registration-form .policy-agreement {
  margin-top: 4px; /* Even smaller margin for registration form */
}

/* limit each form separately so changing one doesn't affect the other */
.auth-form {
  /* let the modal-body handle scrolling; no hard max-height here */
  overflow-y: visible; /* Allow content to show without individual form scrolling */
}


/* NEXT BUTTON */
.modal-next-btn {
  width: 100%;
  padding: 10px; /* Further reduced padding */
  background: #1C4EA7;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px; /* Smaller font */
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 6px; /* Further reduced margin */
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.modal-next-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  opacity: 0.95;
}

.modal-next-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* LOGIN BUTTON */
.modal-login-btn {
  width: 100%;
  padding: 8px; /* Further reduced padding */
  background: #1C4EA7;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 14px; /* Smaller font */
  margin-top: 6px; /* Further reduced margin */
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.modal-login-btn:hover {
  background: #173e8a;
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.modal-login-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

.modal-login-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(28, 78, 167, 0.35);
}

.modal-login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.switch-Login {
  text-align: center;
  margin: 6px 0 10px
}
.switch-Login a {
  color: #1C4EA7;
  font-size: 13px;
  text-decoration: none;
}
/* Hide phone input by default */
#phone-login {
  display: none;
}
/* FORGOT PASSWORD */
.forgot {
  text-align: center;
  margin: 6px 0 10px; /* Further reduced margins */
}

.forgot a {
  color: #1C4EA7;
  font-size: 13px;
  text-decoration: none;
}

/* LINKS */
.modal-footer-links {
  text-align: center;
  margin-top: 15px;
}

.modal-footer-links a {
  color: #1C4EA7;
  font-size: 13px;
  text-decoration: none;
  font-weight: 500;
}

/* PRIVACY POLICY CHECKBOX */
.policy-agreement {
  display: flex;
  align-items: flex-start;
  gap: 6px; /* Better gap for checkbox alignment */
  font-size: 8px;
  color: #333;
  margin-top: 4px;
  line-height: 1.1;
  max-width: 100%;
}

.policy-agreement input[type="checkbox"] {
  width: auto;
  margin: 0;
  margin-top: 1px; /* Slight top margin to align with text */
  flex-shrink: 0;
}

.policy-agreement p {
  margin: 0;
  word-wrap: break-word;
  hyphens: auto;
  flex: 1;
}

/* ================= REGISTRATION STEP-BY-STEP ================= */
.registration-slider {
  display: flex;
  width: 200%;
  transition: transform 0.4s ease;
}

.reg-step {
  width: 100%;
  padding: 0 0px;
  display: none;
  flex-direction: column;
}

/* Show only the currently active step */
.reg-step.active {
  display: flex;
  padding-top: 0; /* Remove extra top gap so signup matches login spacing */
}

/* Login / Signup panels - only one is visible at a time */
.login-panel,
.signup-panel {
  display: none;
}

.login-panel.active,
.signup-panel.active {
  display: block;
}

.password-checklist {
  list-style: none;
  padding: 10px 15px;
  margin: 10px 0 10px;
  border: 1px solid rgba(28, 78, 167, 0.25);
  border-radius: 10px;
  background: rgba(28, 78, 167, 0.05);
  font-size: 13px;
  color: #333;
}

.password-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.password-checklist li::before {
  content: '🐾';
  font-size: 14px;
  display: inline-block;
  width: 18px;
  text-align: center;
  line-height: 1;
  color: #ccc;
}

.password-checklist li.valid::before {
  content: '✔';
  color: #21b486;
}

.password-checklist li.invalid::before {
  content: '🐾';
  color: #ff4d4f;
}

.reg-loading-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 78, 167, 0.82), rgba(240, 230, 140, 0.38));
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  gap: 12px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: #FFFFFF;
  z-index: 2000;
}

.reg-loading-overlay .loader-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 340px;
  padding: 26px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.22);
}

.reg-loading-overlay.active {
  display: flex;
}

.reg-loading-overlay .loader-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 340px;
}

/* ================= REGISTRATION SUCCESS ================= */
.reg-success {
  display: none;
  width: 100%;
  padding: 24px 20px;
  text-align: center;
}

.reg-success.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.reg-success .success-card {
  width: 100%;
  max-width: 420px;
  background: #0C3A84;
  border-radius: 18px;
  padding: 30px 24px;
  color: white;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.reg-success .success-icon {
  font-size: 60px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #1EEA69;
  color: #0F3B13;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.reg-success h2 {
  font-family: 'Gluten', sans-serif;
  font-size: 1.9rem;
  margin: 0 0 12px;
}

.reg-success p {
  font-family: 'Mulish', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.85);
}

.reg-success .modal-next-btn {
  background: #FFD391;
  color: #1C24A7;
  border-radius: 999px;
  padding: 12px 0;
  width: 100%;
  max-width: 280px;
  font-weight: 800;
  margin: 0 auto;
}

.paw-spinner {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 8px solid rgba(255, 255, 255, 0.12);
  border-top-color: #F0E68C; /* khaki */
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-left-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.20);
  position: relative;
  transform-origin: center;
  animation: spin 0.6s linear infinite;
  will-change: transform;
}

.paw-spinner::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px dashed rgba(240, 230, 140, 0.55);
  opacity: 0.8;
  animation: pulseRing 1.8s ease-in-out infinite, pop 1.7s ease-in-out infinite;
}

.paw-spinner::after {
  content: "🐾";
  font-size: 32px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: bounce 1.6s ease-in-out infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pop {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.05) rotate(10deg); }
}

@keyframes pulseRing {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 0.3; }
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-5px); }
}

.paw-trail {
  position: relative;
  width: 200px;
  height: 22px;
  overflow: hidden;
}

.paw-step {
  position: absolute;
  left: -30px;
  top: 0;
  font-size: 18px;
  opacity: 0;
  animation: pawTrail 1.5s ease-in-out infinite;
}

.paw-step:nth-child(2) {
  animation-delay: 0.35s;
}

.paw-step:nth-child(3) {
  animation-delay: 0.7s;
}

@keyframes pawTrail {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  15% {
    opacity: 0.8;
  }
  70% {
    transform: translateX(230px);
    opacity: 0.6;
  }
  100% {
    transform: translateX(260px);
    opacity: 0;
  }
}

/* Timer text styling */
.resend-cooldown {
    color: #1a438e; /* Your brand blue */
    font-weight: 600;
}

#resendCodeBtn.disabled {
    color: #999;
    pointer-events: none;
    text-decoration: none;
}

.pet-cards {
  display: flex;
  gap: 12px;
  padding: 8px 0 0;
  width: 100%;
  justify-content: center;
}

.pet-card {
  width: 70px;
  height: 45px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  opacity: 0.35;
  animation: cardPulse 2s ease-in-out infinite;
}

.pet-card:nth-child(1) {
  animation-delay: 0s;
}

.pet-card:nth-child(2) {
  animation-delay: 0.25s;
}

.pet-card:nth-child(3) {
  animation-delay: 0.5s;
}

@keyframes cardPulse {
  0%, 100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-10px);
  }
}

/* ================= ABOUT SECTION ================= */
.about {
 padding: 100px 8%;
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
  
  /* SUBTLE REALISTIC PATTERN */
  background-image: url("data:image/svg+xml,%3Csvg width='350' height='350' viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%231C4EA7' fill-opacity='0.16'%3E%3C!-- Realistic Bone 1 --%3E%3Cpath d='M130 35c-1.5-1.5-4-1.5-5.5 0-1.5-1.5-4-1.5-5.5 0v1.5c0 1.5 1 2.5 2.5 2.5h1c.5 0 1 .5 1 1v8c0 .5-.5 1-1 1h-1c-1.5 0-2.5 1-2.5 2.5v1.5c1.5 1.5 4 1.5 5.5 0 1.5 1.5 4 1.5 5.5 0v-1.5c0-1.5-1-2.5-2.5-2.5h-1c-.5 0-1-.5-1-1v-8c0-.5.5-1 1-1h1c1.5 0 2.5-1 2.5-2.5v-1.5z' transform='rotate(-30 120 45)'/%3E%3C!-- Paw 1 --%3E%3Cpath d='M35 50c-1.5 0-3 1.5-3 3s1.5 3 3 3 3-1.5 3-3-1.5-3-3-3zm8 0c-1.5 0-3 1.5-3 3s1.5 3 3 3 3-1.5 3-3-1.5-3-3-3zm-4 8c-2.5 0-5 2.5-5 5s2.5 5 5 5 5-2.5 5-5-2.5-5-5-5z'/%3E%3C!-- Realistic Bone 2 --%3E%3Cpath d='M185 160c-1.5-1.5-4-1.5-5.5 0-1.5-1.5-4-1.5-5.5 0v1.5c0 1.5 1 2.5 2.5 2.5h1c.5 0 1 .5 1 1v8c0 .5-.5 1-1 1h-1c-1.5 0-2.5 1-2.5 2.5v1.5c1.5 1.5 4 1.5 5.5 0 1.5 1.5 4 1.5 5.5 0v-1.5c0-1.5-1-2.5-2.5-2.5h-1c-.5 0-1-.5-1-1v-8c0-.5.5-1 1-1h1c1.5 0 2.5-1 2.5-2.5v-1.5z' transform='rotate(40 180 170)'/%3E%3C!-- Paw 2 --%3E%3Cpath d='M60 180c-1.5 0-3 1.5-3 3s1.5 3 3 3 3-1.5 3-3-1.5-3-3-3zm8 0c-1.5 0-3 1.5-3 3s1.5 3 3 3 3-1.5 3-3-1.5-3-3-3zm-4 8c-2.5 0-5 2.5-5 5s2.5 5 5 5 5-2.5 5-5-2.5-5-5-5z' transform='rotate(-15 65 190)'/%3E%3C/g%3E%3C/svg%3E");
  
  background-size: 300px; /* Larger size makes the pattern more spaced out */
}

.about-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  min-width: 320px;
}

.about-text h2 {
  font-family: 'Gluten';
  font-size: 48px;
  color: #1C4EA7;
  margin-bottom: 20px;
}

.about-text p {
  font-family: 'Mulish', sans-serif; /* Applied Mulish here */
  margin-bottom: 18px;
  line-height: 1.7;
  color: #1C4EA7; 
  font-size: 18px;
  font-weight: 400; /* Standard weight for readability */
}

.about-image {
  flex: 1;
  min-width: 320px;
  text-align: center;
}

.about-image img {
  width: 100%;
  max-width: 520px;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* carousel styling for about section */
.about-carousel {
  position: relative;
  max-width: 350px;
  margin: 0 auto;
}
/* ================= UPDATED CAROUSEL ANIMATION ================= */
.about-carousel .carousel-slides {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden; /* Clean edges for the zoom effect */
  border-radius: 18px;
}

.about-carousel .carousel-slides .slide {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  /* Gaussian blur start */
  filter: blur(5px);
  transition: opacity 0.8s ease, filter 0.8s ease;
  z-index: 1;
}

.about-carousel .carousel-slides .slide.active {
  opacity: 1;
  filter: blur(0);
  z-index: 2;
}

/* Ensure caption stays on top of the active slide */
.about-carousel .caption {
  z-index: 3;

}
.about-carousel .carousel-slides img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  height: 100%;
  object-fit: cover;

}
.about-carousel .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(28, 78, 167, 1) 0%, rgba(28, 78, 167, 0) 100%);
  color: white;
  padding: 80px 16px 12px; /* Increased top padding for better text readability against the fade */
  font-size: 16px;
  text-align: left;
  border-radius: 0 0 18px 18px;
  z-index: 3;
}
.about-carousel .caption span {
  display: block;
  font-size: 12px;
  opacity: 0.9;
}
.about-carousel .carousel-thumbs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}
.about-carousel .carousel-thumbs img {
  width: 100px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  border-radius: 8px;
  transition: opacity 0.2s, border-color 0.2s;
}
.about-carousel .carousel-thumbs img.active {
  opacity: 1;
  border-color: #1C4EA7;
}
/* ================= WHAT WE OFFER SECTION ================= */
.offer {
  padding: 100px 8%;
  background: #FBF3E7;
  text-align: center;
  /* Ensure this section contains its floating/grid children */
  overflow: hidden; 
  display: block;
}

.offer-header h2 {
  font-family: 'Gluten';
  font-size: 48px;
  color: #1C4EA7;
  margin-bottom: 10px;
}

.offer-header p {
  font-family: 'Mulish', sans-serif;
  font-size: 19px;
  color: #D4A574;
  margin-bottom: 30px;
}

.offer-card {
  background: #ffffff;
  padding: 40px 30px; /* Increased top/bottom padding */
  border-radius: 16px;
  border: 1px solid rgba(255, 211, 145, 0.4); 
  text-align: left;
  
  /* REMOVE min-height: 220px; */
  height: auto; 
  
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 20px rgba(28, 78, 167, 0.05);
}

.offer-grid {
  display: grid;
  /* FORCES 3 COLUMNS */
  grid-template-columns: repeat(3, 1fr); 
  gap: 25px;
  max-width: 1300px; /* Matching your desired wide look */
  margin: 0 auto;
  padding: 40px 0;
}

/* 1. INTERACTIVE ACCENT (Top Bar) */
.offer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0; /* Starts hidden */
  background: #FFD391;
  transition: height 0.3s ease;
}

/* 2. LAYERED SHADOWS & LIFT ON HOVER */
.offer-card:hover {
  transform: translateY(-8px);
  /* Multi-layered shadow for that 'floating' effect */
  box-shadow: 0 12px 24px rgba(28, 78, 167, 0.1), 
              0 4px 8px rgba(0, 0, 0, 0.05);
  border-color: #FFD391;
}

.offer-card:hover::before {
  height: 6px; /* Shows the accent bar on hover */
}

/* 3. ICON CONTAINERS */
.offer-card .icon {
  width: 60px;
  height: 60px;
  background: #F0F4FF;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px; /* Slightly bigger emoji/icon */
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.offer-card:hover .icon {
  background: #FFD391;
  color: #fff;
  transform: scale(1.1) rotate(-5deg);
}

/* Retaining your text sizes exactly */
.offer-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #1C4EA7;
  margin-bottom: 12px;
  line-height: 1.3;
}

.offer-card p {
  font-family: 'Mulish', sans-serif;
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Maintain 2 columns only on tablets, 1 on mobile */
@media (max-width: 1024px) {
  .offer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .offer-grid {
    grid-template-columns: 1fr;
  }
}
/* ================= FAQ SECTION ================= */

.faq-section {
  padding: 100px 8%;
  background-color: #FBF3E7;
  position: relative;
  overflow: hidden;
  
 
}

.faq-header {
  text-align: center;
  margin-bottom: 10px;
}

.faq-header h2 {
  font-family: 'Gluten';
  font-size: 48px;
  color: #1C4EA7;
}

.faq-header h3 {
  font-family: 'Gluten';
  font-size: 32px;
  color: #D4A574;
  margin-top: 5px;
}

.faq-container {
  display: flex; /* Force side-by-side */
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px; /* Space between accordion and form */
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* LEFT SIDE */
.faq-left {
  flex: 1.5; /* Takes up slightly more space (roughly 60%) */
  width: 100%;
}

.faq-left h4 {
  font-family: 'Mulish', sans-serif;
  font-weight: bold;
  font-size: 22px;
  color: #1C4EA7;
}

.faq-sub {
  font-family: 'Mulish', sans-serif;
  font-size: 18px;
  margin: 10px 0 20px;
  color: #1C4EA7;
}

.faq-item {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid #1C4EA7;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.faq-item:hover {
  color: #1C4EA7;
}

/* RIGHT SIDE */
.faq-right {
  flex: 0.8; /* Takes up the remaining space (roughly 40%) */
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* Optional: matches your clean UI */
}

.faq-right h4 {
  font-family: 'Mulish', sans-serif;
  font-weight: bold;
  font-size: 22px;
  color: #1C4EA7;
}

.faq-form input, 
.faq-form textarea {
  width: 100%;
  margin-bottom: 15px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.faq-form textarea {
  height: 100px;
  resize: none;
}

.faq-form button {
  width: 100%;
  background-color: #1C4EA7; /* Your primary blue */
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

.faq-form button:hover {
  background: #1e4580;
}
/* FAQ ACCORDION STYLES */
.faq-item {
  display: flex;
  flex-direction: column; /* Stack question and answer */
  padding: 15px 0;
  border-bottom: 1px solid #1C4EA7;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #1C4EA7;
}

.faq-icon {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.faq-answer p {
  padding-top: 15px;
  color: #555;
  font-family: "Mulish", sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

/* ACTIVE STATE (Applied via JS) */
.faq-item.active .faq-answer {
  max-height: 200px; /* Adjust based on content length */
  transition: max-height 0.4s ease-in-out;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg); /* Optional: flips the icon when open */
}

.faq-item.active .faq-question {
  font-weight: 700;
}

@media (max-width: 768px) {
  .faq-container {
    flex-direction: column;
  }
}
/* ================= TESTIMONIALS SECTION ================= */
.testimonials-section {
  padding: 80px 10%;
  background: #ffffff;
  text-align: center;
  background-image: url("data:image/svg+xml,%3Csvg width='350' height='350' viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%231C4EA7' fill-opacity='0.16'%3E%3C!-- Realistic Bone 1 --%3E%3Cpath d='M130 35c-1.5-1.5-4-1.5-5.5 0-1.5-1.5-4-1.5-5.5 0v1.5c0 1.5 1 2.5 2.5 2.5h1c.5 0 1 .5 1 1v8c0 .5-.5 1-1 1h-1c-1.5 0-2.5 1-2.5 2.5v1.5c1.5 1.5 4 1.5 5.5 0 1.5 1.5 4 1.5 5.5 0v-1.5c0-1.5-1-2.5-2.5-2.5h-1c-.5 0-1-.5-1-1v-8c0-.5.5-1 1-1h1c1.5 0 2.5-1 2.5-2.5v-1.5z' transform='rotate(-30 120 45)'/%3E%3C!-- Paw 1 --%3E%3Cpath d='M35 50c-1.5 0-3 1.5-3 3s1.5 3 3 3 3-1.5 3-3-1.5-3-3-3zm8 0c-1.5 0-3 1.5-3 3s1.5 3 3 3 3-1.5 3-3-1.5-3-3-3zm-4 8c-2.5 0-5 2.5-5 5s2.5 5 5 5 5-2.5 5-5-2.5-5-5-5z'/%3E%3C!-- Realistic Bone 2 --%3E%3Cpath d='M185 160c-1.5-1.5-4-1.5-5.5 0-1.5-1.5-4-1.5-5.5 0v1.5c0 1.5 1 2.5 2.5 2.5h1c.5 0 1 .5 1 1v8c0 .5-.5 1-1 1h-1c-1.5 0-2.5 1-2.5 2.5v1.5c1.5 1.5 4 1.5 5.5 0 1.5 1.5 4 1.5 5.5 0v-1.5c0-1.5-1-2.5-2.5-2.5h-1c-.5 0-1-.5-1-1v-8c0-.5.5-1 1-1h1c1.5 0 2.5-1 2.5-2.5v-1.5z' transform='rotate(40 180 170)'/%3E%3C!-- Paw 2 --%3E%3Cpath d='M60 180c-1.5 0-3 1.5-3 3s1.5 3 3 3 3-1.5 3-3-1.5-3-3-3zm8 0c-1.5 0-3 1.5-3 3s1.5 3 3 3 3-1.5 3-3-1.5-3-3-3zm-4 8c-2.5 0-5 2.5-5 5s2.5 5 5 5 5-2.5 5-5-2.5-5-5-5z' transform='rotate(-15 65 190)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 300px;
}
.testimonials-header{
  text-align: center;
  margin-bottom: 50px;
}
.testimonials-header h1 {
  font-family: 'Gluten';
  font-size: 46px;
  color: #1C4EA7;
  letter-spacing: 3px
}
.testimonials-header h2 {
  font-family: 'Mulish', sans-serif;
  font-size: 19px;
  color: #D4A574;
  margin-top: 5px;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  align-items: stretch;
}
.testimonials-card {
  background: white;
  padding: 30px 28px;
  border-radius: 20px;
  box-shadow: 0 12px 24px rgba(28, 78, 167, 0.12);
  border: 3px solid rgba(255, 211, 145, 0.8); 
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.testimonials-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 30px rgba(28, 78, 167, 0.18);
}
.testimonial-rating {
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 20px;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.testimonial-rating img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  image-rendering: crisp-edges;
  vertical-align: middle;
}
.testimonial-quote {
  font-family: 'Mulish', sans-serif;
  color: #1C4EA7;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 24px;
  font-weight: 600;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
}
.testimonial-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 211, 145, 0.8);
}
.testimonial-author-info h4 {
  font-family: 'Montserrat';
  font-size: 18px;
  color: #1C4EA7;
  text-transform: uppercase;
  margin: 0 0 4px 0;
  letter-spacing: 0.5px;
}
.testimonial-author-info span {
  display: block;
  font-family: 'Mulish', sans-serif;
  font-size: 14px;
  color: #6a7a9a;
  letter-spacing: 0.5px;
}
.testimonials-cta {
  background: #1C4EA7;
  margin-top: 40px;
  padding: 24px 24px;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.testimonials-cta p {
  font-family: 'Mulish', sans-serif;
  font-size: 20px;
  color: white;
  font-weight: 700;
  margin: 0;
  flex: 1;
  min-width: 220px;
}
.testimonials-btn {
  padding: 14px 26px;
  background: #FFD391;
  color: #1C24A7;
  border: none;
  border-radius: 999px;
  font-family: 'Montserrat';
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.testimonials-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
}

/* ================= FOOTER ================= */
.footer{
  background:#2f5daa;
  color:white;
  padding:35px 10%;
}

.footer-container{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  flex-wrap:wrap;
  gap:40px;
}

.footer-left{
  max-width:320px;
}

.footer-logo {
  max-height: 240px;
  transform: scale(1.8);
  width: 260px;
  display: flex;
  margin-bottom: -40px;
  margin-top: -20px;
}   

.footer-left p{
  font-family: 'Mulish', sans-serif;
  font-size: 14px;
  line-height:1.6;
  color: #FFF7AE;
  font-style: italic;
}

.copyright{
  margin-top:15px;
  font-size:13px;
  opacity:0.8;
}

.footer-links,
.footer-contact{
  display:flex;
  flex-direction:column;
}

.footer-links h3,
.footer-contact h3{
  color: #FFD391;
  margin-top:35px;
  font-family: 'Gluten';
  src: url('fonts/Gluten-ExtraBold.ttf');
  margin-bottom:15px;
  font-size:50px;
}

.footer-links a{
  margin-top:10px;
  color:white;
  text-decoration:none;
  margin-bottom:8px;
  font-size:14px;
}

.footer-links a:hover{
  text-decoration:underline;
}

.footer-contact p{
  font-size:14px;
  margin-bottom:8px;
}

.footer-policy{
  margin-top:20px;
  font-size:14px;
}

.footer-policy a{
  color:white;
  text-decoration:none;
}

.footer-policy a:hover{
  text-decoration:underline;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column; /* Stacks text on top of image */
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }

  .stats {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .faq-container {
    display: flex;
    flex-direction: column; /* Stack the FAQ list and the Form */
    padding: 20px;
  }

  .faq-left, .faq-right {
    width: 100%; /* Take full width on mobile */
  }
  
  .faq-header h2, .faq-header h3 {
    font-size: 1.5rem; /* Scale down large titles */
  }
}

@media (max-width: 768px) {
  .testimonials-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }
  
  .testimonials-card {
    width: 100%;
  }
}   

@media (max-width: 768px) {
  .hero, .about-container, .offer-grid, .faq-container, .testimonials-grid, .footer-container {
    width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    margin: 0 !important;
    overflow: hidden; /* Clips anything poking out */
  }
}
@media (max-width: 768px) {
  .hero-image::before {
    /* Shrink the oval so it doesn't push the screen wide */
    width: 250px; 
    height: 250px;
    /* Center it behind the stacked pets */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(60deg);
  }
}

@media (max-width: 768px) {
  .logo img {
    transform: scale(2.5); /* Reduce scale on mobile */
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  nav {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes the menu-footer to the bottom */
    padding-bottom: 30px;
  }
}

  .announcements-section {
      background-color: #ffffff; /* Soft cream background */
      padding: 60px 20px;
      background-image: url("data:image/svg+xml,%3Csvg width='350' height='350' viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%231C4EA7' fill-opacity='0.16'%3E%3C!-- Realistic Bone 1 --%3E%3Cpath d='M130 35c-1.5-1.5-4-1.5-5.5 0-1.5-1.5-4-1.5-5.5 0v1.5c0 1.5 1 2.5 2.5 2.5h1c.5 0 1 .5 1 1v8c0 .5-.5 1-1 1h-1c-1.5 0-2.5 1-2.5 2.5v1.5c1.5 1.5 4 1.5 5.5 0 1.5 1.5 4 1.5 5.5 0v-1.5c0-1.5-1-2.5-2.5-2.5h-1c-.5 0-1-.5-1-1v-8c0-.5.5-1 1-1h1c1.5 0 2.5-1 2.5-2.5v-1.5z' transform='rotate(-30 120 45)'/%3E%3C!-- Paw 1 --%3E%3Cpath d='M35 50c-1.5 0-3 1.5-3 3s1.5 3 3 3 3-1.5 3-3-1.5-3-3-3zm8 0c-1.5 0-3 1.5-3 3s1.5 3 3 3 3-1.5 3-3-1.5-3-3-3zm-4 8c-2.5 0-5 2.5-5 5s2.5 5 5 5 5-2.5 5-5-2.5-5-5-5z'/%3E%3C!-- Realistic Bone 2 --%3E%3Cpath d='M185 160c-1.5-1.5-4-1.5-5.5 0-1.5-1.5-4-1.5-5.5 0v1.5c0 1.5 1 2.5 2.5 2.5h1c.5 0 1 .5 1 1v8c0 .5-.5 1-1 1h-1c-1.5 0-2.5 1-2.5 2.5v1.5c1.5 1.5 4 1.5 5.5 0 1.5 1.5 4 1.5 5.5 0v-1.5c0-1.5-1-2.5-2.5-2.5h-1c-.5 0-1-.5-1-1v-8c0-.5.5-1 1-1h1c1.5 0 2.5-1 2.5-2.5v-1.5z' transform='rotate(40 180 170)'/%3E%3C!-- Paw 2 --%3E%3Cpath d='M60 180c-1.5 0-3 1.5-3 3s1.5 3 3 3 3-1.5 3-3-1.5-3-3-3zm8 0c-1.5 0-3 1.5-3 3s1.5 3 3 3 3-1.5 3-3-1.5-3-3-3zm-4 8c-2.5 0-5 2.5-5 5s2.5 5 5 5 5-2.5 5-5-2.5-5-5-5z' transform='rotate(-15 65 190)'/%3E%3C/g%3E%3C/svg%3E");
      background-size: 300px;
    }

    .announcements-container {
      max-width: 1200px;
      margin: 0 auto;
    }

    .announcements-header {
      text-align: center;
      margin-bottom: 40px;
    }

    .announcements-header h2 {
      font-family: 'Gluten', cursive, sans-serif;
      font-size: 2.5rem;
      color: #1C4EA7; /* Deep navy blue */
      margin-bottom: 10px;
    }

    .announcements-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 25px;
    }

    .announcement-card {
      background-color: #ffffff;
      border-radius: 12px;
      padding: 25px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
      position: relative;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      border: 3px solid rgba(255, 211, 145, 0.8); 
      display: flex;
      flex-direction: column;
    }

    .announcement-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

    .announcement-card-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 15px;
    }

    .announcement-icon {
      font-size: 24px;
      background: #eef2ff;
      width: 45px;
      height: 45px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 10px;
    }

    .announcement-badge {
      background-color: #FFD391; /* Soft orange */
      color: #1C4EA7;
      padding: 4px 10px;
      border-radius: 20px;
      font-size: 0.7rem;
      font-weight: 700;
      text-transform: uppercase;
    }

    .announcement-title {
      font-size: 1.15rem;
      font-weight: 700;
      color: #1C4EA7;
      margin-bottom: 12px;
      line-height: 1.3;
    }

    .announcement-description {
      font-size: 0.9rem;
      color: #555;
      line-height: 1.5;
      margin-bottom: 20px;
      flex-grow: 1;
    }

    .announcement-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 15px;
      border-top: 1px solid #f0f0f0;
    }

    .announcement-time {
      font-size: 0.75rem;
      color: #999;
    }

    .announcement-close {
      background: none;
      border: none;
      color: #ccc;
      font-size: 1.2rem;
      cursor: pointer;
      transition: color 0.2s;
    }

    .announcement-close:hover {
      color: #1C4EA7;
    }

    .view-all-container {
      text-align: center;
      margin-top: 30px;
    }

    .view-all-link {
       display: inline-flex;
       align-items: center;
       justify-content: center;
       padding: 14px 26px;
       background: #FFD391;
       color: #1C24A7;
       border: none;
       border-radius: 999px;
       font-family: 'Montserrat';
       font-weight: 800;
       text-decoration: none;
       cursor: pointer;
       transition: transform 0.15s ease, box-shadow 0.15s ease;
       white-space: nowrap;
    }


    /* Mobile Layout */
    @media (max-width: 768px) {
      .announcements-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
      }
      
      .announcements-header h2 {
        font-size: 2rem;
      }
    }
/* ===== FORGOT PASSWORD SECURITY CHECK ===== */
.forgot-content {
  background: #FBF3E7; /* Matches your body background */
  border-radius: 12px;
  width: 90%; /* Larger width to accommodate all fields comfortably */
  max-width: 500px;
  animation: popUp 0.3s ease;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden; /* keep offstage signup form hidden */
}
.forgot-header{
  background: #1C4EA7;
  color: white;
  text-align: center;
  padding: 20px 15px; /* Reduced padding */
}
.forgot-form-toggle {
  display: flex;
  margin: 20px;
  background: #E0E0E0;
  border-radius: 4px; /* Squarer edges like the image */
  padding: 0;
}
.forgot-form-toggle button {
  flex: 1;
  padding: 12px;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  background: #E0E0E0;
  color: #A0A0A0;
  transition: background-color 0.3s, color 0.3s;
}
.forgot-form-toggle button.active {
  background-color: #1C4EA7; /* Your primary blue */
    color: white;
}
.forgot-body {
  flex: 1;
  width: 100%;
  max-height: calc(90vh - 170px); /* Leave room for header + toggles */
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}
.forgot-group {
  margin-bottom: 15px; /* even tighter spacing so the form is more compact */
  text-align: left;
  position: relative; /* needed for password toggle icons */
  overflow: visible; /* let the toggle icon sit outside without being cut off */
}
.forgot-group p {
  margin-top:10px;
}

.forgot-steps {
  width: 100%;
  padding: 0 15px 15px 15px;
  display: none;
  flex-direction: column;
}
.forgot-steps.active {
  display: block;
}
.forgot-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #ff5e5e;
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  text-align: center;
  line-height: 22px;
  font-size: 14px;
  cursor: pointer;}

.forgot-submit-btn {
  width: 100%;
  padding: 8px; /* Further reduced padding */
  background: #1C4EA7;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 14px; /* Smaller font */
  margin-top: 6px; /* Further reduced margin */
  cursor: pointer;
  transition: 0.3s ease;
}

.forgot-submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  opacity: 0.95;
  box-shadow: 0 8px 16px rgba(28,78,167,0.12);
}

/* Back to Login — styled as a white variant of the verify/send button */
.back-to-login {
  display: inline-block;
  width: 100%;
  padding: 8px;
  background: #ffffff;
  color: #1C4EA7;
  border: 1px solid rgba(28,78,167,0.12);
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  margin-top: 6px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.15s ease, opacity 0.2s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.06);
}

.back-to-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  opacity: 0.95;
}

.back-to-login:focus {
  outline: 3px solid rgba(28,78,167,0.12);
  outline-offset: 2px;
}

/* Center the resend line in verification form */
.resend-line {
  text-align: center;
  margin-top: 15px;
  font-size: 13px;
}

/* Explicit hover/focus for Verify Code button to ensure visible feedback */
#verify-code-btn:hover:not(:disabled) {
  background: #173e8a; /* slightly darker blue on hover */
  transform: translateY(-1px);
  opacity: 0.98;
  box-shadow: 0 10px 20px rgba(28,78,167,0.15);
}

#verify-code-btn:focus-visible {
  outline: 3px solid rgba(28,78,167,0.22);
  outline-offset: 2px;
}

/* Stronger, high-specificity hover/active to match other primary buttons */
#verification-step #verify-code-btn:hover:not(:disabled),
.verification-form #verify-code-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #17407a 0%, #173e8a 100%);
  transform: translateY(-2px);
  opacity: 1;
  box-shadow: 0 14px 30px rgba(28,78,167,0.18);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

#verification-step #verify-code-btn:active:not(:disabled),
.verification-form #verify-code-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(28,78,167,0.14);
}

.forgot-step h2 {
  font-size: 28px;
  color: #fff;
  background: #2f5ea6;
  padding: 25px 20px 10px 20px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.forgot-step p {
  margin-top: -5px;
  padding-bottom: 20px;
  background: #2f5ea6;
  color: #e8f0ff;
}

/* CARD BODY */
.forgot-step form {
  background: #e6dfd6;
  padding: 30px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* EMAIL / PHONE TOGGLE */
.forgot-toggle {
  display: flex;
  margin-bottom: 20px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid #ddd;
}

.forgot-toggle button {
  flex: 1;
  padding: 12px;
  border: none;
  background: #d6d6d6;
  font-weight: bold;
  cursor: pointer;
}

.forgot-toggle button.active {
  background: #2f5ea6;
  color: white;
}

/* INPUT */
.forgot-step input {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* SEND CODE BUTTON */
.forgot-send-btn {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  background: #2f5ea6;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.forgot-send-btn:hover {
  background: #244a82;
}

