/* The Safe Shelter India Theme Main Stylesheet - Exact Ayde Replica */

/* Global Reset & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-dmsans);
  color: var(--color-text-main);
  background-color: #ffffff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Header & Sticky Navigation */
.tssi-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: linear-gradient(to right, var(--color-header-from), var(--color-header-via), var(--color-header-to));
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-container {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.header-nav {
  display: none;
  width: 100%;
  align-items: center;
  gap: 2.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-inter);
}

@media (min-width: 1280px) {
  .header-nav {
    display: flex;
  }
}

.nav-link {
  transition: color 0.2s ease;
  color: #1f2937;
}

.nav-link:hover {
  color: #000000;
}

.header-logo-wrap {
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

@media (min-width: 1280px) {
  .header-logo-wrap {
    justify-content: center;
  }
}

.header-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.header-actions {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.btn-primary {
  background-color: #000000;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-family: var(--font-geist);
  transition: background-color 0.2s ease, transform 0.1s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.btn-primary:active {
  transform: scale(0.98);
}

.btn-outline {
  border: 1px solid #000000;
  color: #000000;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-family: var(--font-geist);
  transition: background-color 0.2s ease;
}

.btn-outline:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.mobile-menu-btn {
  color: #1f2937;
  padding: 0.25rem;
}

@media (min-width: 1280px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Announcement Marquee Ticker */
.ticker-bar {
  width: 100%;
  overflow: hidden;
  background-color: var(--color-ticker-bg);
  padding: 0.375rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-ticker-text);
  border-top: 1px solid rgba(0,0,0,0.03);
}

.ticker-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
  gap: 2rem;
}

@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Off-canvas Mobile Menu */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background-color: #ffffff;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.drawer-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  font-size: 1.5rem;
}

.drawer-body a {
  font-weight: 600;
}

/* Layout Grid Container */
.page-container {
  padding-top: 5rem;
}

.split-layout {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .split-layout {
    flex-direction: row;
    position: relative;
  }
}

.main-column {
  width: 100%;
  padding: 2.5rem 1.5rem;
}

@media (min-width: 1024px) {
  .main-column {
    width: 60%;
    padding: 3rem 4rem 3rem 4rem;
  }
}

.sidebar-column {
  width: 100%;
  padding: 1.5rem;
  z-index: 30;
}

@media (min-width: 1024px) {
  .sidebar-column {
    width: 40%;
    padding: 3rem 2.5rem 3rem 1rem;
    position: sticky;
    top: 5rem;
    align-self: flex-start;
  }
}

/* Campaign Title & Header Section */
.campaign-header {
  margin-bottom: 1.5rem;
}

.campaign-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #dcfce7;
  color: #166534;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.campaign-title {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.25;
  color: #111827;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .campaign-title {
    font-size: 2.15rem;
  }
}

.organizer-subtitle {
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
  margin-top: 0.75rem;
}

/* Hero Gallery / Carousel */
.hero-gallery {
  margin-bottom: 2.5rem;
}

.main-image-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.85rem;
  overflow: hidden;
  background-color: #f3f4f6;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.main-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.hero-logo-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 10;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: background-color 0.2s;
  z-index: 10;
}

.gallery-nav-btn:hover {
  background-color: #ffffff;
}

.gallery-nav-btn.prev { left: 0.75rem; }
.gallery-nav-btn.next { right: 0.75rem; }

/* Sticky Donation Form Card */
.donation-card {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sticky);
}

.donation-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.amount-raised-lg {
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  line-height: 1;
}

.goal-subtitle {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.tax-badge-sm {
  background-color: #dcfce7;
  color: #166534;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
}

.progress-bar-bg {
  width: 100%;
  height: 0.6rem;
  background-color: #e5e7eb;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0.85rem 0 1.25rem 0;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: var(--radius-full);
}

.section-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.6rem;
}

.amount-pills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.pill-btn {
  border: 1.5px solid #e5e7eb;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  text-align: center;
  transition: all 0.2s ease;
  background-color: #ffffff;
}

.pill-btn.active,
.pill-btn:hover {
  border-color: #000000;
  background-color: #000000;
  color: #ffffff;
}

.custom-amount-wrap {
  margin-bottom: 1.25rem;
  position: relative;
}

.currency-symbol {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  font-weight: 700;
  color: #374151;
}

.custom-amount-input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.25rem;
  border: 1.5px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  outline: none;
}

.btn-donate-submit {
  width: 100%;
  background-color: #000000;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: center;
  transition: background-color 0.2s ease;
}

.btn-donate-submit:hover {
  background-color: #1f2937;
}

/* Social Share Block in Donation Box */
.share-section-box {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f3f4f6;
  font-size: 0.85rem;
  color: #4b5563;
}

.social-share-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.social-circle-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: opacity 0.2s;
}

.social-circle-btn.fb { background-color: #1877F2; }
.social-circle-btn.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-circle-btn.tw { background-color: #000000; }

.copy-link-pill-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  background-color: #ffffff;
}

.copy-link-pill-btn:hover {
  background-color: #f9fafb;
}

/* About Section */
.story-section {
  background: linear-gradient(to right, #FFF5EB, #FFFFFF, #E8FDF0);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  margin-bottom: 3rem;
}

.section-heading {
  font-size: 1.75rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 1.5rem;
}

.story-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #374151;
}

.story-content p {
  margin-bottom: 1.25rem;
}

.read-more-btn {
  color: #111827;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: underline;
  cursor: pointer;
}

/* Wall of Love Section */
.wall-of-love-section {
  background-color: #F4FDF7;
  padding: 4rem 1.5rem;
  margin-bottom: 3rem;
  text-align: center;
}

.wall-grid {
  max-width: 1200px;
  margin: 2.5rem auto 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  text-align: left;
}

@media (min-width: 768px) {
  .wall-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.comments-slider-container {
  position: relative;
}

.comment-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.comment-text {
  font-size: 1rem;
  font-weight: 500;
  color: #111827;
  margin-bottom: 1rem;
}

.comment-author {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.comment-form-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.comment-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
  outline: none;
}

/* FAQ Section */
.faq-bg-wrapper {
  background: linear-gradient(to bottom, #FFF8F0, #ffffff);
  padding: 4rem 1.5rem;
  position: relative;
}

.faq-container {
  max-width: 48rem;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
  background-color: #ffffff;
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 1.5rem 1.25rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Bottom CTA Gradient Card ("Be the Reason Someone Gets Help Today") */
.cta-gradient-banner {
  max-width: 80rem;
  margin: 3rem auto;
  background: linear-gradient(135deg, #FFE8D6 0%, #FFFFFF 50%, #D8FBE4 100%);
  border-radius: 1.25rem;
  padding: 4rem 2rem;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.06);
}

.cta-banner-title {
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .cta-banner-title {
    font-size: 2.5rem;
  }
}

.cta-banner-subtitle {
  font-size: 1.05rem;
  color: #4b5563;
  margin-bottom: 2rem;
}

.cta-buttons-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Footer Section */
.tssi-footer {
  background-color: #ffffff;
  border-top: 1px solid #e5e7eb;
  padding: 3rem 1.5rem 2rem 1.5rem;
}

.footer-container {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-brand {
  max-width: 24rem;
}

.footer-tagline {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 1.25rem;
}

.footer-buttons {
  display: flex;
  gap: 0.75rem;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  font-family: var(--font-geist);
  font-size: 1rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-column a {
  color: #374151;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: #000000;
}

.footer-bottom {
  max-width: 80rem;
  margin: 2.5rem auto 0 auto;
  padding-top: 1.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  text-align: right;
}
