/* Maa Durga Charitable Trust Website Stylesheet */
:root {
  --primary: #990000;
  --primary-dark: #7a0000;
  --secondary: #d97706;
  --accent: #f59e0b;
  --dark: #1e293b;
  --light: #fefce8;
  --white: #ffffff;
  --gray: #64748b;
  --light-gray: #f8fafc;
  --border: #e2e8f0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
  background-color: #faf8f5;
  color: var(--dark);
  line-height: 1.6;
}

/* Top bar */
.top-bar {
  background: var(--primary-dark);
  color: var(--white);
  padding: 8px 5%;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Header & Nav */
header {
  background: var(--white);
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 5%;
  max-width: 1200px;
  margin: auto;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--primary);
}

.logo-area img {
  height: 68px;
  width: auto;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.logo-text h1 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.logo-text p {
  font-size: 0.8rem;
  color: var(--secondary);
  font-weight: 700;
  letter-spacing: 1px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 12px;
}

nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

nav a:hover, nav a.active {
  background: var(--primary);
  color: var(--white);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(122, 0, 0, 0.85), rgba(20, 20, 20, 0.82)), url('images/Hawan.jpeg') center/cover no-repeat;
  color: var(--white);
  padding: 90px 20px;
  text-align: center;
}

.hero h2 {
  font-size: 2.3rem;
  margin-bottom: 15px;
  color: #fde047;
  text-shadow: 1px 2px 4px rgba(0,0,0,0.4);
}

.hero p {
  font-size: 1.15rem;
  max-width: 820px;
  margin: 0 auto 25px;
  color: #fef08a;
}

.btn {
  display: inline-block;
  padding: 11px 26px;
  background: var(--secondary);
  color: var(--white);
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #b45309;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Containers */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 50px 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--primary);
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3.5px;
  background: var(--secondary);
  border-radius: 2px;
}

.section-title p {
  margin-top: 8px;
  color: var(--gray);
  font-size: 1.05rem;
}

/* Grids & Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

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

.card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  padding: 26px;
  border-top: 4px solid var(--primary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.card h3 {
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.card p {
  color: #475569;
  font-size: 0.95rem;
}

/* Gallery Styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  background: var(--white);
  border: 1px solid var(--border);
  transition: 0.3s;
}

.gallery-item:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.gallery-item img, .gallery-item video {
  width: 100%;
  height: 290px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-caption {
  padding: 14px;
  background: var(--white);
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark);
  border-top: 1px solid #f1f5f9;
}

/* Table Styles */
.trustee-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  margin-top: 20px;
}

.trustee-table th, .trustee-table td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.trustee-table th {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
}

.trustee-table tr:hover {
  background-color: #fffbeb;
}

/* Forms */
.contact-form {
  background: var(--white);
  padding: 32px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
  color: var(--dark);
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.95rem;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(153, 0, 0, 0.12);
}

/* Footer */
footer {
  background: #111827;
  color: #cbd5e1;
  padding: 45px 5% 20px;
  margin-top: 60px;
}

.footer-content {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 35px;
}

.footer-col h3 {
  color: #fde047;
  margin-bottom: 16px;
  font-size: 1.15rem;
}

.footer-col ul {
  list-style: none;
}

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

.footer-col ul a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: #fde047;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #1f2937;
  padding-top: 22px;
  margin-top: 35px;
  font-size: 0.85rem;
  color: #94a3b8;
}

@media (max-width: 820px) {
  .nav-container {
    flex-direction: column;
    gap: 15px;
  }
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero h2 {
    font-size: 1.8rem;
  }
}
