/* =========================================
   FINDMYPET INDIA - NGO DIRECTORY
========================================= */

* {
  box-sizing: border-box;
}

body {
  background: #f6f8fc;
  color: #0f172a;
}


/* PAGE */

.ngo-page {
  min-height: 78vh;
  padding: 48px 6% 70px;
}


/* HERO */

.ngo-hero {
  max-width: 1180px;
  margin: 0 auto 30px;
  padding: 42px 38px;

  text-align: center;

  border: 1px solid #dce6fb;
  border-radius: 26px;

  background:
    radial-gradient(
      circle at 20% 15%,
      rgba(49, 88, 245, 0.1),
      transparent 30%
    ),
    radial-gradient(
      circle at 85% 20%,
      rgba(22, 163, 74, 0.08),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #eef4ff,
      #ffffff
    );

  box-shadow:
    0 18px 45px
    rgba(15, 23, 42, 0.08);
}

.ngo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 16px;
  padding: 8px 17px;

  border-radius: 999px;

  color: #3158f5;
  background: #e8efff;

  font-size: 14px;
  font-weight: 800;
}

.ngo-hero h1 {
  margin-bottom: 12px;

  color: #0f172a;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
}

.ngo-hero p {
  max-width: 760px;
  margin: 0 auto;

  color: #64748b;
  font-size: 17px;
  line-height: 1.7;
}


/* FILTER */

.ngo-filter-section {
  max-width: 1180px;
  margin: 0 auto 24px;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 16px;

  padding: 18px;

  border: 1px solid #e2e8f0;
  border-radius: 18px;

  background: #ffffff;

  box-shadow:
    0 12px 30px
    rgba(15, 23, 42, 0.06);
}

.ngo-search-box {
  min-height: 54px;

  display: flex;
  align-items: center;
  gap: 12px;

  padding: 0 16px;

  border: 1px solid #d6deea;
  border-radius: 13px;

  background: #ffffff;
}

.ngo-search-box span {
  font-size: 20px;
}

.ngo-search-box input {
  width: 100%;

  border: none;
  outline: none;

  color: #0f172a;
  background: transparent;

  font: inherit;
}

.ngo-search-box input::placeholder {
  color: #94a3b8;
}

#ngoCityFilter {
  min-height: 54px;
  padding: 0 15px;

  border: 1px solid #d6deea;
  border-radius: 13px;

  outline: none;

  color: #0f172a;
  background: #ffffff;

  font: inherit;
  cursor: pointer;
}

.ngo-search-box:focus-within,
#ngoCityFilter:focus {
  border-color: #3158f5;

  box-shadow:
    0 0 0 4px
    rgba(49, 88, 245, 0.11);
}


/* OFFICIAL DIRECTORY NOTICE */

.official-directory-notice {
  max-width: 1180px;
  margin: 0 auto 24px;
  padding: 18px 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  border: 1px solid #bfdbfe;
  border-radius: 18px;

  background: #eff6ff;
}

.official-directory-notice > div {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.official-directory-notice > div > span {
  font-size: 24px;
  line-height: 1.3;
}

.official-directory-notice h2 {
  margin-bottom: 4px;
  font-size: 17px;
}

.official-directory-notice p {
  max-width: 760px;

  color: #475569;
  font-size: 14px;
  line-height: 1.55;
}

.official-directory-link {
  min-height: 42px;
  padding: 0 15px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  border-radius: 11px;

  color: #1d4ed8;
  background: #ffffff;

  box-shadow: inset 0 0 0 1px #93c5fd;

  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.official-directory-link:hover {
  color: #ffffff;
  background: #2563eb;
}

.ngo-action-source {
  color: #0f766e;
  background: #ccfbf1;
}


/* EMERGENCY */

.emergency-help {
  max-width: 1180px;
  margin: 0 auto 34px;
  padding: 22px 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;

  border: 1px solid #fecaca;
  border-radius: 20px;

  background:
    linear-gradient(
      135deg,
      #fff1f2,
      #ffffff
    );

  box-shadow:
    0 14px 34px
    rgba(220, 38, 38, 0.08);
}

.emergency-help > div {
  display: flex;
  align-items: center;
  gap: 16px;
}

.emergency-icon {
  width: 58px;
  height: 58px;

  display: grid;
  place-items: center;

  flex-shrink: 0;

  border-radius: 16px;

  background: #dbeafe;

  font-size: 30px;
}

.emergency-help h2 {
  margin-bottom: 5px;
  font-size: 22px;
}

.emergency-help p {
  color: #64748b;
  line-height: 1.55;
}

.emergency-call-button {
  min-height: 48px;
  padding: 0 20px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  border-radius: 12px;

  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      #2563eb,
      #1d4ed8
    );

  text-decoration: none;
  font-weight: 800;

  box-shadow:
    0 10px 24px
    rgba(220, 38, 38, 0.2);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.emergency-call-button:hover {
  transform: translateY(-2px);

  box-shadow:
    0 14px 30px
    rgba(220, 38, 38, 0.27);
}


/* NGO LIST */

.ngo-list-section {
  max-width: 1180px;
  margin: 0 auto;
}

.ngo-list-section .section-heading {
  margin-bottom: 20px;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.ngo-list-section .section-heading h2 {
  margin-bottom: 7px;
  font-size: 29px;
}

.ngo-list-section .section-heading p {
  color: #64748b;
}

#ngoResultCount {
  padding: 8px 13px;

  border-radius: 999px;

  color: #3158f5;
  background: #e8efff;

  font-size: 13px;
  font-weight: 800;
}


/* GRID */

.ngo-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(320px, 1fr)
  );

  gap: 22px;
}


/* CARD */

.ngo-card {
  overflow: hidden;

  display: flex;
  flex-direction: column;

  border: 1px solid #e2e8f0;
  border-radius: 20px;

  background: #ffffff;

  box-shadow:
    0 14px 34px
    rgba(15, 23, 42, 0.08);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.ngo-card:hover {
  transform: translateY(-4px);

  box-shadow:
    0 20px 46px
    rgba(15, 23, 42, 0.13);
}

.ngo-card-header {
  position: relative;

  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;

  padding: 22px;

  border-bottom: 1px solid #edf1f7;

  background:
    linear-gradient(
      135deg,
      #f8fbff,
      #ffffff
    );
}

.ngo-logo-box {
  width: 64px;
  height: 64px;

  display: grid;
  place-items: center;

  overflow: hidden;

  border: 1px solid #dbe5f5;
  border-radius: 17px;

  background: #eef4ff;

  font-size: 32px;
}

.ngo-logo-box img {
  width: 100%;
  height: 100%;

  display: block;
  object-fit: cover;
}

.ngo-card-heading h3 {
  margin-bottom: 6px;

  font-size: 20px;
  line-height: 1.25;
}

.ngo-card-heading p {
  color: #64748b;
  font-size: 14px;
}

.ngo-badge {
  position: absolute;
  top: 14px;
  right: 14px;

  padding: 6px 10px;

  border-radius: 999px;

  font-size: 11px;
  font-weight: 800;
}

.ngo-badge.verified {
  color: #166534;
  background: #dcfce7;
}

.ngo-badge.emergency {
  top: 46px;

  color: #991b1b;
  background: #dbeafe;
}


/* CARD CONTENT */

.ngo-card-content {
  flex: 1;
  padding: 22px;
}

.ngo-card-content strong {
  display: block;
  margin-bottom: 8px;

  color: #0f172a;
  font-size: 14px;
}

.ngo-card-content p {
  margin-bottom: 11px;

  color: #64748b;
  line-height: 1.6;
}

.ngo-address,
.ngo-email {
  font-size: 14px;
}


/* ACTIONS */

.ngo-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;

  padding: 0 22px 22px;
}

.ngo-action-button {
  min-height: 44px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 12px;

  border-radius: 11px;

  text-align: center;
  text-decoration: none;

  font-size: 13px;
  font-weight: 800;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.ngo-action-button:hover {
  transform: translateY(-1px);
}

.ngo-action-call {
  color: #ffffff;
  background: #3158f5;
}

.ngo-action-whatsapp {
  color: #ffffff;
  background: #16a34a;
}

.ngo-action-website {
  color: #7c3aed;
  background: #ede9fe;
}

.ngo-action-map {
  color: #b45309;
  background: #fef3c7;
}

.ngo-contact-unavailable {
  grid-column: 1 / -1;

  padding: 12px;

  border-radius: 10px;

  text-align: center;

  color: #64748b;
  background: #f1f5f9;

  font-size: 13px;
  font-weight: 700;
}


/* EMPTY / LOADING */

.ngo-loading,
.ngo-empty {
  grid-column: 1 / -1;

  padding: 54px 24px;

  text-align: center;

  border: 1px dashed #cbd5e1;
  border-radius: 18px;

  color: #64748b;
  background: #ffffff;
}

.ngo-empty h3 {
  margin-bottom: 9px;

  color: #0f172a;
  font-size: 22px;
}

.ngo-error {
  color: #991b1b;
  border-color: #fca5a5;
  background: #fff1f2;
}


/* REGISTER NGO */

.register-ngo-section {
  max-width: 1180px;
  margin: 42px auto 0;
  padding: 28px 30px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  border: 1px solid #dce6fb;
  border-radius: 22px;

  background:
    linear-gradient(
      135deg,
      #eef4ff,
      #ffffff
    );

  box-shadow:
    0 16px 38px
    rgba(15, 23, 42, 0.07);
}

.register-ngo-section > div {
  display: flex;
  align-items: center;
  gap: 16px;
}

.register-ngo-section > div > span {
  width: 58px;
  height: 58px;

  display: grid;
  place-items: center;

  flex-shrink: 0;

  border-radius: 16px;

  background: #dbeafe;

  font-size: 30px;
}

.register-ngo-section h2 {
  margin-bottom: 6px;
  font-size: 23px;
}

.register-ngo-section p {
  color: #64748b;
  line-height: 1.55;
}


/* TABLET */

@media (max-width: 900px) {
  .ngo-page {
    padding: 34px 22px 58px;
  }

  .ngo-filter-section {
    grid-template-columns: 1fr;
  }

  .emergency-help,
  .register-ngo-section,
  .official-directory-notice {
    align-items: stretch;
    flex-direction: column;
  }

  .emergency-call-button,
  .register-ngo-section .btn,
  .official-directory-link {
    width: 100%;
  }
}


/* MOBILE */

@media (max-width: 600px) {
  .ngo-page {
    padding: 22px 14px 45px;
  }

  .ngo-hero {
    padding: 30px 20px;
    border-radius: 19px;
  }

  .ngo-list-section .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .ngo-grid {
    grid-template-columns: 1fr;
  }

  .emergency-help {
    padding: 20px;
  }

  .emergency-help > div {
    align-items: flex-start;
  }

  .ngo-card-header {
    grid-template-columns: auto 1fr;
  }

  .ngo-badge {
    position: static;
    width: fit-content;
    margin-top: 8px;
  }

  .ngo-card-actions {
    grid-template-columns: 1fr;
  }

  .register-ngo-section {
    padding: 22px;
  }

  .register-ngo-section > div {
    align-items: flex-start;
  }
}
@media (max-width: 768px){

  .ngo-page{
    padding:20px 16px;
  }

  .ngo-hero h1{
    font-size:2rem;
    line-height:1.2;
  }

  .ngo-filter-section{
    flex-direction:column;
    gap:15px;
  }

  .ngo-search-box,
  #ngoCityFilter{
    width:100%;
  }

  .ngo-grid{
    grid-template-columns:1fr;
  }

  .ngo-card{
    width:100%;
  }

  .emergency-help,
  .register-ngo-section{
    flex-direction:column;
    text-align:center;
    gap:20px;
  }

  .emergency-call-button,
  .register-ngo-section .btn{
    width:100%;
  }
}