/* frontend/assets/css/style.css */
:root {
  --primary-green: #1e4d2b;
  --secondary-green: #2e6b40;
  --accent-gold: #d4a017;
  --earth-beige: #f9f7f2;
  --text-dark: #2c3e50;
  --text-light: #ffffff;
  --border-color: #e0e0e0;
}

body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background-color: var(--earth-beige);
  color: var(--text-dark);
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* --- TOP BAR --- */
.top-bar {
  background-color: var(--primary-green);
  color: var(--text-light);
  padding: 10px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}
.social-icons {
  display: flex;
  gap: 15px;
}
.social-icons a {
  color: rgba(255, 255, 255, 0.8);
  transition: 0.2s;
  cursor: pointer;
}
.social-icons a:hover {
  color: var(--accent-gold);
  opacity: 1;
}
.contact-info {
  display: flex;
  gap: 15px;
}

/* --- HEADER & NAVIGATION --- */
header {
  background: white;
  padding: 0 5%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.logo-section {
  display: flex;
  align-items: center;
  gap: 15px;
}
.logo-img {
  width: 60px; /* Adjusted size for better visibility */
  height: 60px;
  object-fit: contain; /* Ensures the logo doesn't stretch or look squashed */
  background: transparent; /* Removes the old green background */
  display: block;
}
.school-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-green);
  text-transform: uppercase;
  line-height: 1;
}

.nav-menu {
  display: flex;
  gap: 30px;
  align-items: center;
  height: 100%;
}
.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.nav-link {
  font-weight: 600;
  padding: 25px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-link::after {
  content: "▼";
  font-size: 0.6rem;
  color: var(--secondary-green);
  transition: 0.3s;
}
.portal-btn {
  background: var(--primary-green);
  color: white;
  padding: 12px 25px;
  border-radius: 50px;
  border: 2px solid var(--primary-green);
  font-weight: 600;
  margin-left: 20px;
  white-space: nowrap;
}

/* --- DROPDOWN MENU (The Fix) --- */
/* Base Styles (Hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  /* Default desktop transform */
  transform: translateX(-50%) translateY(10px);
  background: white;
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-radius: 0 0 8px 8px;
  border-top: 4px solid var(--primary-green);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1001;
}

.dropdown-content li a {
  display: block;
  padding: 12px 20px;
  border-bottom: 1px solid #f5f5f5;
  font-size: 0.9rem;
  color: #555;
}
.dropdown-content li a:hover {
  background: #f0f7f2;
  color: var(--primary-green);
  padding-left: 25px;
}

/* === DESKTOP ONLY HOVER EFFECTS === */
/* We wrap this so it NEVER runs on mobile */
@media (min-width: 769px) {
  .nav-item:hover .nav-link {
    color: var(--primary-green);
  }
  .nav-item:hover .nav-link::after {
    transform: rotate(180deg);
  }

  .nav-item:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* --- HERO --- */
.hero {
  height: 400px;
  background: linear-gradient(rgba(30, 77, 43, 0.7), rgba(30, 77, 43, 0.4)),
    url("https://placehold.co/1920x800/1e4d2b/ffffff?text=Springfield+Campus");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding-left: 10%;
  color: white;
}
.hero h1 {
  font-size: 3rem;
  font-family: serif;
  margin-bottom: 15px;
}
.cta-btn {
  padding: 15px 35px;
  background: white;
  color: var(--primary-green);
  font-weight: bold;
  border-radius: 4px;
}

/* --- PRAYER SECTION --- */
.prayer-section {
  background: var(--earth-beige);
  padding: 40px 5%;
  border-bottom: 1px solid var(--border-color);
}
.prayer-container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border-top: 4px solid var(--primary-green);
}
.prayer-header {
  text-align: center;
  margin-bottom: 25px;
}
.date-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
}
.nav-arrow {
  background: var(--primary-green);
  color: white;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  padding-bottom: 4px;
}
.nav-arrow:hover {
  background: var(--accent-gold);
  transform: scale(1.1);
}
.prayer-dates {
  font-weight: 600;
  color: #555;
  font-size: 1.1rem;
  min-width: 250px;
  text-align: center;
}
.prayer-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}
.prayer-box {
  background: #f4f7f5;
  padding: 20px 15px;
  border-radius: 8px;
  text-align: center;
  transition: 0.3s;
}
.prayer-name {
  display: block;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 8px;
}
.prayer-time {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
}
.prayer-box.active-prayer {
  background: var(--primary-green);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(30, 77, 43, 0.2);
  border-bottom: 4px solid var(--accent-gold);
}
/* --- Active State Text Tweaks for Readability --- */

/* 1. Make labels (Begins/Iqamah) thicker and clearer */
.active-prayer .label-small {
  color: rgba(255, 255, 255, 0.95); /* Almost pure white */
  font-weight: 800; /* Extra bold */
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Strong shadow */
}

/* 2. Make times (06:48, 07:00) heavy with depth */
.active-prayer .time-small,
.active-prayer .jamaat-time,
.active-prayer .single-time {
  color: white;
  font-weight: 900; /* Maximum boldness */
  font-size: 1.3rem; /* Slightly larger for the active one */
  /* Deep drop shadow for contrast against dark green */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

/* Ensure the main prayer name (e.g., FAJR) is also crisp */
.active-prayer .prayer-name {
  color: rgba(255, 255, 255, 0.95); /* Almost pure white */
  font-weight: 800; /* Extra bold */
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Strong shadow */
}

/* --- MAIN CONTENT (Restored Hover) --- */
.container {
  padding: 60px 10%;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
}
.section-header {
  font-size: 1.5rem;
  color: var(--primary-green);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
}
.news-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}
.news-card:hover {
  transform: translateY(-5px);
}
.news-img {
  height: 300px;
  background-size: cover;
}
.news-body {
  padding: 25px;
}
.update-item {
  background: white;
  padding: 20px;
  margin-bottom: 15px;
  border-left: 4px solid var(--secondary-green);
  transition: 0.3s;
}
.update-item:hover {
  border-left-color: var(--accent-gold);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
footer {
  background: var(--primary-green);
  color: white;
  text-align: center;
  padding: 50px 0;
  margin-top: 50px;
}

/* --- MOBILE --- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger div {
  width: 25px;
  height: 3px;
  background: var(--primary-green);
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  header {
    padding: 0 5%;
  }

  .nav-menu {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    height: auto;
    max-height: 0;
    overflow: hidden;
    transition: 0.4s;
    padding: 0;
  }
  .nav-menu.active {
    max-height: 100vh;
    overflow-y: auto;
  }

  /* FIXED: Mobile Dropdown Logic */
  .nav-item {
    width: 100%;
    display: block;
    border-bottom: 1px solid #eee;
    height: auto;
  }
  .nav-link {
    width: 90%;
    padding: 15px 20px;
    justify-content: space-between;
  }

  /* Reset Desktop properties completely */
  .dropdown-content {
    position: static;
    transform: none; /* This is crucial! */
    box-shadow: none;
    border: none;
    background: #f9f9f9;
    width: 100%;
    display: none;
    opacity: 1;
    min-width: unset;
  }

  /* Javascript adds .open when clicked */
  .nav-item.open .dropdown-content {
    display: block;
  }

  .portal-btn {
    margin: 20px auto;
    display: block;
    width: fit-content;
  }
  .container {
    grid-template-columns: 1fr;
    padding: 40px 5%;
  }
  .prayer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}
/* --- PRAYER SECTION UPDATES (RESTORED THEME) --- */

/* 1. Header Layout */
.header-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
}

/* 2. Grid Layout */
.prayer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 15px;
  width: 100%;
}

/* 3. Prayer Box Styling (Original Theme) */
.prayer-box {
  background: #f4f7f5; /* RESTORED: The original light greenish-grey */
  padding: 15px 10px;
  border-radius: 8px;
  text-align: center;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: none;
  box-shadow: none;
}
.prayer-box:hover {
  background: #a3f0aa; /* Slightly darker on hover */
  transform: translateY(-3px);
}
/* Header Text (Fajr, Dhuhr) */
.prayer-name {
  display: block;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 8px;
  text-transform: uppercase;
  font-size: 0.95rem;
}

/* 4. Internal Rows (Begins vs Iqamah) */
.prayer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.label-small {
  font-size: 0.7rem;
  color: #888;
  text-transform: uppercase;
}

.time-small {
  font-size: 0.9rem;
  color: #555;
  font-weight: 600;
}

/* The Big Time (Iqamah) */
.jamaat-time {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
}

.single-time {
  font-size: 1.4rem;
  font-weight: 700;
  color: #555;
  margin-top: 5px;
}

/* 5. Jumu'ah Box (Distinct Gold Theme) */
.jumah-box {
  background: #fff9e6; /* Soft Gold Background */
  border: 1px solid #ffeeba;
}
.jumah-box .prayer-name {
  color: #d4a017;
}
.jumah-row {
  margin-bottom: 5px;
  border-bottom: 1px dashed #eaddb8;
  padding-bottom: 2px;
}
.jumah-row:last-child {
  border-bottom: none;
}

/* 6. Active Prayer Highlight (Original Style) */
.active-prayer {
  /* Using a slightly deeper green than primary-green for better contrast */
  background: #1a4024;
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(20, 50, 30, 0.4);
  border-bottom: 4px solid var(--accent-gold);
}

/* Force white text when active */
.active-prayer .prayer-name,
.active-prayer .label-small,
.active-prayer .time-small,
.active-prayer .jamaat-time,
.active-prayer .single-time {
  color: white;
}

/* 7. Buttons (Restored) */
.view-month-btn {
  background: #d4a017; /* Original Gold */
  color: #fff;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}
.view-month-btn:hover {
  background: #b88b14;
}

.table-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.pdf-btn {
  background-color: #3498db; /* Blue Download */
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
}

.btn-close {
  background-color: #e74c3c; /* Red Close */
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  margin-left: 0;
}

/* 8. Table View Styling */
.prayer-table-view {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-top: 10px;
}

.public-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}
.public-table th {
  background: #1e4d2b;
  color: white;
  padding: 12px;
}
.public-table td {
  padding: 8px;
  border-bottom: 1px solid #eee;
}
.today-row-public {
  background: #e8f5e9;
  border-left: 4px solid #d4a017;
  font-weight: bold;
}

@media (max-width: 768px) {
  .header-top-row {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .table-actions {
    margin-left: 0;
    justify-content: center;
    width: 100%;
  }
  .btn-close {
    width: 100%;
  }
}
/* --- UPDATED PRAYER STYLES --- */

/* 1. Card View: Bigger Jamaat Time */
.jamaat-time {
  font-size: 1.1rem; /* INCREASED from 0.85rem */
  color: #1e4d2b; /* Darker green for visibility */
  margin-top: 6px;
  font-weight: 700; /* Bolder */
  background: #a3f0aa;
  padding: 4px 12px;
  border-radius: 12px;
  display: inline-block;
}

/* 2. Table Layout Updates */
.public-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 0.85rem; /* Slightly smaller to fit all columns */
}

/* Header Styling */
.public-table th {
  background: #1e4d2b;
  color: white;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sub-header-row th {
  background: #14361e; /* Darker green for sub-headers */
  font-size: 0.75rem;
  text-transform: uppercase;
  padding: 5px;
}

.public-table td {
  padding: 8px 4px;
  border: 1px solid #eee;
  vertical-align: middle;
}

/* Column Highlighting */
.public-table td:nth-child(odd) {
  background-color: #fafafa;
} /* Striping columns slightly */

.today-row-public {
  background: #e8f5e9;
  border-left: 4px solid #d4a017;
  font-weight: bold;
}

/* Actions Area (Buttons) */
.table-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

.pdf-btn {
  background-color: #3498db; /* Blue for download */
}
.pdf-btn:hover {
  background-color: #2980b9;
}

.btn-close {
  background-color: #e74c3c; /* Red for close */
}

/* Responsive Table */
.prayer-table-view {
  overflow-x: auto;
}

/* Hide PDF-specific styles normally */
@media print {
  .table-actions {
    display: none;
  }
}
/* --- PDF & TABLE FIXES --- */

/* 1. Control Bar (Buttons) */
.table-controls-bar {
  display: flex;
  justify-content: flex-end; /* Push buttons to right */
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

/* 2. Printable Container Styling */
#printable-timetable {
  background: white;
  padding: 20px;
  /* We ensure background is white for the PDF screenshot */
}

/* 3. PDF Header Styling */
.pdf-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
  text-align: center;
  border-bottom: 2px solid #1e4d2b;
  padding-bottom: 15px;
}

.pdf-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.pdf-title-text h3 {
  margin: 0;
  color: #1e4d2b;
  font-size: 1.8rem;
  text-transform: uppercase;
}

.pdf-title-text p {
  margin: 5px 0 0 0;
  font-size: 1.1rem;
  color: #555;
  font-weight: bold;
}

.pdf-address {
  font-size: 0.85rem;
  color: #777;
  font-weight: normal;
}

/* 4. Compact Table for PDF */
/* We make the table slightly tighter so 31 days fit on one A4 page */
.public-table td {
  padding: 6px 2px; /* Less padding */
  font-size: 0.8rem; /* Slightly smaller text */
}

.public-table th {
  padding: 8px;
  font-size: 0.85rem;
}

.pdf-footer-note {
  margin-top: 15px;
  text-align: center;
  font-size: 0.7rem;
  color: #aaa;
}
/* --- PDF COMPACT STYLES --- */

/* This ID wraps the logo + table. We force it to be compact. */
#printable-timetable {
  background: white;
  padding: 10px; /* Reduced padding */
  width: 100%;
}

/* Make the header smaller for PDF */
.pdf-header {
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid #1e4d2b;
}
.pdf-logo {
  width: 50px;
  height: 50px;
} /* Smaller logo */
.pdf-title-text h3 {
  font-size: 1.2rem;
  margin: 0;
}
.pdf-title-text p {
  font-size: 0.9rem;
}

/* Force Table to be VERY compact */
.compact-table {
  font-size: 0.6rem; /* Tiny font to fit 31 days */
  width: 100%;
}

.compact-table th {
  padding: 4px 2px;
  font-size: 0.65rem;
}

.compact-table td {
  padding: 3px 1px; /* Minimal padding */
  height: auto;
}

/* Ensure rows don't split across pages */
.compact-table tr {
  page-break-inside: avoid;
  page-break-after: auto;
}

.pdf-footer-note {
  font-size: 0.6rem;
  margin-top: 5px;
}
/* --- PDF GENERATION STYLES (Professional A4 Fit) --- */

/* 1. Main Container (The Page) */
#printable-timetable.pdf-mode {
  background-color: white;
  /* Pull width in slightly to ensure borders don't get cut off */
  width: 96%;
  margin: 0 auto;
  padding: 15px;
  box-sizing: border-box;
  border: 3px solid #1e4d2b; /* Thick Green Border */
  font-family: "Segoe UI", sans-serif;
  color: #000;
}

/* 2. Header Section */
#printable-timetable.pdf-mode .pdf-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  border-bottom: 2px solid #1e4d2b;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

#printable-timetable.pdf-mode .pdf-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

#printable-timetable.pdf-mode .pdf-title-text h3 {
  font-size: 1.4rem;
  margin: 0;
  color: #1e4d2b;
  text-transform: uppercase;
  text-align: center;
}

#printable-timetable.pdf-mode .pdf-title-text p {
  font-size: 0.85rem;
  color: #555;
  margin: 2px 0 0 0;
  text-align: center;
}

/* 3. The Table */
#printable-timetable.pdf-mode .public-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9px; /* Optimal size for 31 days on A4 */
  table-layout: fixed; /* Ensures columns don't shift */
}

/* --- HEADER FIXES (Resolves the White Blocks) --- */
#printable-timetable.pdf-mode .public-table thead {
  background-color: #1e4d2b;
  color: white;
}

/* Headers */
#printable-timetable.pdf-mode .public-table th {
  font-size: 10px;
  background-color: #1e4d2b;
  color: white;
  padding: 5px 2px;
  border: 1px solid #14361e;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* 4. Data Rows */
#printable-timetable.pdf-mode .public-table td {
  padding: 3px 1px; /* Tight padding to fit page */
  border: 1px solid #ccc;
  color: #333;
  text-align: center;
  font-weight: 600;
}

/* Alternating Row Colors */
#printable-timetable.pdf-mode .public-table tr:nth-child(even) td {
  background-color: #f4f7f5;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* Remove "Today" Highlight for Print */
#printable-timetable.pdf-mode .today-row-public {
  background-color: transparent;
  border-left: none;
}

/* Hide UI Elements */
#printable-timetable.pdf-mode .nav-arrow-small,
#printable-timetable.pdf-mode .pdf-footer-note,
#printable-timetable.pdf-mode .table-actions {
  display: none;
}
/* --- READ MORE LINK --- */
.read-more {
  color: var(--primary-green);
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
  border-bottom: 2px solid transparent;
  transition: 0.3s;
}
.read-more:hover {
  border-bottom: 2px solid var(--accent-gold);
  transform: translateX(5px);
}

/* --- STORY MODAL STYLES --- */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Darker background for focus */
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  backdrop-filter: blur(5px); /* Nice blur effect on background */
}

.modal-content {
  background: white;
  width: 90%;
  max-width: 600px;
  border-radius: 16px; /* Softer rounded corners */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Header: Clean White with Green Text */
.modal-header {
  background: white;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
}

.modal-header h3 {
  color: var(--primary-green);
  font-family: "Segoe UI", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
}

.close-x {
  font-size: 2rem;
  color: #999;
  cursor: pointer;
  line-height: 0.8;
  transition: 0.2s;
}
.close-x:hover {
  color: var(--accent-gold);
  transform: rotate(90deg);
}

/* Body: Storybook Feel */
.card-body {
  padding: 0;
  overflow-y: auto;
  max-height: 60vh; /* Scrollable content */
}

/* The Image */
#modal-story-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-radius: 0; /* Full width, no corners */
  margin-bottom: 0;
}

/* The Text */
#modal-story-content {
  padding: 25px 30px;
  font-family: "Georgia", "Times New Roman", serif; /* Story Font */
  font-size: 1.1rem;
  line-height: 1.8; /* Breathable spacing */
  color: #444;
  margin: 0;
}

/* Footer Actions */
.modal-actions {
  padding: 15px 25px;
  background: #f9f9f9;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
}

.btn-primary {
  background-color: var(--primary-green);
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s;
}
.btn-primary:hover {
  background-color: var(--secondary-green);
}

/* Animation */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* Navbar Donate Button */
.nav-donate-btn {
  background-color: #134b05;
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  margin-left: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
  border: 2px solid #e9dc24;
}

.nav-donate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(4, 66, 4, 0.4);
  background-color: #05531f;
  color: white;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .nav-donate-btn {
    margin: 10px 20px;
    text-align: center;
    display: block;
    width: fit-content;
  }
}
/* Table Navigation Arrows */
.nav-arrow-small {
  background: var(--primary-green);
  color: white;
  border: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.nav-arrow-small:hover {
  background: var(--accent-gold);
  transform: scale(1.1);
}

/* HIDE arrows when generating PDF */
.pdf-mode .nav-arrow-small {
  display: none;
}
/* =======================================================
   FAQ SECTION (Index Page)
   ======================================================= */

.faq-section {
  margin-top: 60px;
  margin-bottom: 60px;
  padding: 0 20px; /* Prevents touching edges on mobile */
}

.faq-section h2 {
  text-align: center;
  color: #1e4d2b;
  margin-bottom: 30px;
  font-size: 2rem;
}

/* THE CONTAINER (This creates the centered white box) */
.faq-container {
  max-width: 800px; /* Limits width */
  margin: 0 auto; /* Centers it */
  background: transparent; /* White background */
  border: 1px solid #ddd; /* Thin border */
  border-radius: 10px; /* Rounded corners */
  overflow: hidden; /* Keeps content inside corners */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05); /* Subtle shadow */
}

/* FAQ ITEMS */
.faq-item {
  border-bottom: 1px solid #eee;
}

.faq-item:last-child {
  border-bottom: none; /* No border on the last item */
}

/* QUESTION BUTTON */
.faq-question {
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}

.faq-question:hover {
  background-color: #fcfcfc;
  color: #1e4d2b; /* Green Text on Hover */
}

/* ACTIVE STATE (When Open) */
.faq-question.active {
  background-color: #f0fdf4; /* Light Green Background */
  color: #1e4d2b;
}

/* ANSWER PANEL */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: #fff;
}

.faq-answer p {
  color: #555;
  line-height: 1.6;
  margin: 0;
  padding: 0 20px 20px 20px; /* Padding inside the answer */
}

.icon {
  font-size: 1.5rem;
  color: #1e4d2b;
  font-weight: bold;
}
