/* ==========================================================================
   TNTAFO Welfare Trust - Mobile-First Responsive Stylesheet
   Pure CSS3 - Fast, Lightweight, Zero Bloat
   ========================================================================== */

:root {
  --primary: #0a3663;
  --primary-dark: #062341;
  --primary-light: #1e5288;
  --secondary: #d97706;
  --secondary-light: #fffbeb;
  --accent-green: #059669;
  --accent-green-light: #ecfdf5;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --radius: 10px;
  --radius-sm: 6px;
  --transition: all 0.25s ease-in-out;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ==========================================================================
   Top Info Bar (Government Reg & Tax Exemption Badges)
   ========================================================================== */
.top-bar {
  background-color: var(--primary-dark);
  color: #e2e8f0;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 2px solid var(--secondary);
}

.top-bar-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.top-bar-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.top-badge {
  background: rgba(255, 255, 255, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
  white-space: nowrap;
}

.top-bar-contact {
  display: flex;
  gap: 14px;
}

.top-bar-contact a {
  color: #cbd5e1;
}
.top-bar-contact a:hover {
  color: #ffffff;
}

/* ==========================================================================
   Header Brand Section
   ========================================================================== */
.site-header {
  background: var(--white);
  padding: 16px 0;
  box-shadow: var(--shadow-sm);
}

.header-brand-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hdrlogo {
  width: 20px;
  height: 20px;	
}

.trust-logo-box {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 1px;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
  border: 3px solid var(--secondary);
}

.brand-text h1 {
  font-size: 1.25rem;
  color: var(--primary-dark);
  line-height: 1.25;
  font-weight: 800;
  text-transform: uppercase;
}

.brand-text p {
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 2px;
}

/* ==========================================================================
   Navigation Bar (Mobile Drawer + Desktop Menu)
   ========================================================================== */
.main-nav {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-toggle-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 24px;
  padding: 12px 16px;
  cursor: pointer;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-links li a {
  display: block;
  padding: 14px 16px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 3px solid transparent;
}

.nav-links li a:hover,
.nav-links li a.active {
  background: rgba(255, 255, 255, 0.1);
  border-bottom-color: var(--secondary);
  color: #ffffff;
}

.nav-cta a {
  background: var(--secondary);
  color: #ffffff !important;
  font-weight: 700 !important;
  border-radius: var(--radius-sm);
  margin: 8px 6px;
  padding: 6px 14px !important;
  border-bottom: none !important;
}

.nav-cta a:hover {
  background: #b45309;
}

/* ==========================================================================
   Alerts & Announcement Marquee Banner
   ========================================================================== */
.announcement-bar {
  background: #fef3c7;
  border-bottom: 1px solid #fde68a;
  color: #92400e;
  padding: 8px 0;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

.announcement-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.announcement-label {
  background: var(--secondary);
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* ==========================================================================
   Celebrity of the Day (Automated Birthday Banner)
   ========================================================================== */
.celebrity-card {
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
  border: 2px solid #f59e0b;
  border-radius: var(--radius);
  padding: 20px;
  margin: 20px 0;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.celebrity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 2px dashed #fcd34d;
  padding-bottom: 10px;
}

.celebrity-title {
  color: #b45309;
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.celebrity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.celebrity-person {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #fed7aa;
}

.celebrity-avatar {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f59e0b;
  flex-shrink: 0;
}

.celebrity-details h4 {
  color: var(--primary-dark);
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.celebrity-details p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.3;
}

.celebrity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.btn-whatsapp {
  background: #25d366;
  color: white;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-whatsapp:hover {
  background: #1eb954;
  color: white;
}

.btn-msgboard {
  background: var(--primary);
  color: white;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-msgboard:hover {
  background: var(--primary-dark);
  color: white;
}

/* ==========================================================================
   Hero Section / Quick Info Cards
   ========================================================================== */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 40px 0;
  border-radius: 0 0 var(--radius) var(--radius);
  margin-bottom: 30px;
}

.hero-content {
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
}

.hero-content h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.25;
}

.hero-content p {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 24px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #fbbf24;
}

.stat-label {
  font-size: 0.9rem;
  color: #e2e8f0;
  margin-top: 4px;
}

.stat-qrlabel {
  font-size: 1rem;
  font-weight: 400;
  color: #fbbf24;
}

/* ==========================================================================
   Content Cards, Grids & Sections
   ========================================================================== */
.section {
  padding: 30px 0;
}

.section-title {
  color: var(--primary-dark);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-title {
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
}

/* ==========================================================================
   Bank Details Card & 80G Tax Exemption
   ========================================================================== */
.bank-card {
  background: var(--accent-green-light);
  border: 2px solid #a7f3d0;
}

.bank-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed #d1fae5;
  font-size: 0.95rem;
}

.bank-row:last-child {
  border-bottom: none;
}

.bank-row .label {
  color: #065f46;
  font-weight: 600;
}

.bank-row .value {
  color: var(--text-dark);
  font-weight: 700;
  text-align: right;
}

/* ==========================================================================
   Members Directory Cards (Mobile-Friendly)
   ========================================================================== */
.member-card {
  display: flex;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.member-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.member-photo {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
  background: #f1f5f9;
}

.member-info {
  flex-grow: 1;
}

.member-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.badge-active { background: #dcfce7; color: #15803d; }
.badge-associate { background: #e0e7ff; color: #4338ca; }
.badge-deceased { background: #f1f5f9; color: #64748b; }

.member-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.member-desig {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.member-meta {
  font-size: 0.8rem;
  color: #475569;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   Responsive Tables (For Donations, Financials & Reports)
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.table th {
  background: var(--primary);
  color: var(--white);
  padding: 12px 16px;
  font-weight: 600;
}

.table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.table tr:last-child td {
  border-bottom: none;
}

.table tbody tr:hover {
  background: #f8fafc;
}

.table tfoot th,
.table tfoot td {
  background: #f1f5f9;
  font-weight: 800;
  color: var(--primary-dark);
  border-top: 2px solid var(--primary);
}

/* ==========================================================================
   Filter, Search & Form Controls
   ========================================================================== */
.search-box-wrap {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.form-control {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  flex-grow: 1;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 54, 99, 0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  min-height: 44px; /* Mobile touch friendly target */
}

.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
}

.btn-secondary {
  background: var(--secondary);
  color: white;
}
.btn-secondary:hover {
  background: #b45309;
  color: white;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--primary-dark);
  color: #cbd5e1;
  padding: 40px 0 20px;
  margin-top: 50px;
  border-top: 4px solid var(--secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h3 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 6px;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--secondary);
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: #94a3b8;
}

/* ==========================================================================
   Mobile Responsive Breakpoints
   ========================================================================== */
@media (max-width: 900px) {
  .nav-toggle-btn {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--primary-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li a {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-cta a {
    margin: 10px 20px;
    text-align: center;
  }

  .header-brand-wrap {
    flex-direction: column;
    text-align: center;
  }

  .trust-logo-box {
    margin: 0 auto;
  }

  .top-bar-content {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .hero-content h2 {
    font-size: 1.4rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .celebrity-person {
    flex-direction: column;
    text-align: center;
  }

  .celebrity-actions {
    justify-content: center;
  }
}
