/* ====================================================================
 * insightinfo CSS Library - Narayan Maharaj Datta Sansthan Trust Theme
 * Developed by: insightinfo-dd (Data to Decision)
 * Version: 1.0.0
 * Palette: Saffron, Off-White, Creams, Dark Charcoal (Strictly zero green)
 * ==================================================================== */

/* Import Premium Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- 1. DESIGN TOKENS (Variables) --- */
:root {
  /* Color Hues */
  --saffron-primary: #E06B26;      /* Rich spiritual saffron */
  --saffron-hover: #F27C35;        /* Radiant saffron hover */
  --saffron-light: #FBECE4;        /* Very light soft saffron background */
  --saffron-glow: rgba(224, 107, 38, 0.15);
  
  --bg-cream-soft: #FAF6F0;        /* Spiritual warm cream white background */
  --bg-white: #FFFFFF;
  --bg-card: #FFFFFF;
  
  --text-dark: #1C1A17;            /* Deep charcoal text for readability */
  --text-muted: #625E59;           /* Secondary muted elements */
  --text-white: #FFFFFF;
  
  /* Status Colors (NO GREEN AT ALL. Red for errors, Orange/Amber for warnings/pending, Saffron for confirmed) */
  --status-confirmed: #D9601A;
  --status-pending: #E0A926;
  --status-cancelled: #D13E3E;
  
  /* Borders and Shadow tokens */
  --border-color: #EFE6DA;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  
  --shadow-sm: 0 2px 8px rgba(28, 26, 23, 0.04);
  --shadow-md: 0 8px 24px rgba(224, 107, 38, 0.06);
  --shadow-lg: 0 16px 40px rgba(224, 107, 38, 0.1);
  --shadow-glow: 0 0 20px rgba(224, 107, 38, 0.25);
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 2. GLOBAL RESET & BASE STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-cream-soft);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
}

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

/* --- 3. THE SPINDLE LAYOUT & GRID SYSTEM --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: -12px;
}

.col {
  flex: 1;
  padding: 12px;
}
/*
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
*/
.grid-3 {
    display: grid;
    /* This creates 3 columns that will stack to 1 on mobile */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 30px;
  }
  
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 32px;
}

/* --- 4. NAVIGATION SHELL & BRANDING --- */
.insightinfo-header {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-block img {
  height: 52px;
  width: auto;
  border-radius: 50%;
  border: 2px solid var(--saffron-primary);
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--saffron-primary);
  letter-spacing: -0.5px;
}

.insightinfo-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  font-size: 15px;
  color: var(--text-dark);
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
}

.nav-link:hover, .nav-link.active {
  color: var(--saffron-primary);
  background-color: var(--saffron-light);
}

.btn-donate-nav {
  background-color: var(--saffron-primary);
  color: var(--text-white);
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(224, 107, 38, 0.2);
}

.btn-donate-nav:hover {
  background-color: var(--saffron-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* Mobile Navigation Toggle Button */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-dark);
  cursor: pointer;
}

/* --- 5. COMPONENT: BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background-color: var(--saffron-primary);
  color: var(--text-white);
  box-shadow: 0 6px 18px rgba(224, 107, 38, 0.25);
}

.btn-primary:hover {
  background-color: var(--saffron-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background-color: transparent;
  color: var(--saffron-primary);
  border: 2px solid var(--saffron-primary);
}

.btn-secondary:hover {
  background-color: var(--saffron-light);
  transform: translateY(-2px);
}

.btn-danger {
  background-color: var(--status-cancelled);
  color: var(--text-white);
}

.btn-danger:hover {
  opacity: 0.9;
}

/* --- 6. COMPONENT: FORMS & INPUTS --- */
.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--saffron-primary);
  box-shadow: 0 0 0 4px var(--saffron-glow);
}

/* Password with Eye Icon Input Wrapper */
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper .form-control {
  padding-right: 48px;
}

.password-eye-btn {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.password-eye-btn:hover {
  color: var(--saffron-primary);
}

/* --- 7. COMPONENT: CARDS & MODULES --- */
.card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

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

.card-title {
  font-size: 20px;
  margin-bottom: 12px;
}

/* --- 8. TABLES & PAGINATION --- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.insightinfo-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.insightinfo-table th {
  background-color: var(--saffron-light);
  color: var(--text-dark);
  font-weight: 700;
  padding: 16px;
  font-size: 14px;
  border-bottom: 2px solid var(--border-color);
  font-family: 'Outfit', sans-serif;
}

.insightinfo-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--text-dark);
}

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

.insightinfo-table tr:hover td {
  background-color: rgba(224, 107, 38, 0.02);
}

/* Pagination design */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.pagination-btn {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.pagination-btn:hover, .pagination-btn.active {
  background-color: var(--saffron-primary);
  color: var(--text-white);
  border-color: var(--saffron-primary);
  box-shadow: 0 4px 10px rgba(224, 107, 38, 0.2);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- 9. STATUS BADGES --- */
.badge {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-confirmed {
  background-color: rgba(217, 96, 26, 0.1);
  color: var(--status-confirmed);
}

.badge-pending {
  background-color: rgba(224, 169, 38, 0.1);
  color: var(--status-pending);
}

.badge-cancelled {
  background-color: rgba(209, 62, 62, 0.1);
  color: var(--status-cancelled);
}

/* --- 10. SCROLL TO TOP & TRANSITION ANIMATIONS --- */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--saffron-primary);
  color: var(--text-white);
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 16px rgba(224, 107, 38, 0.3);
  z-index: 999;
  transition: var(--transition-smooth);
}

.scroll-top-btn:hover {
  background-color: var(--saffron-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

/* Micro-animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* --- 11. INDIAN SANATAN CULTURE DECORATIVE ELEMENTS --- */
.cultural-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 32px 0;
}

.cultural-divider::before, .cultural-divider::after {
  content: '';
  height: 2px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--saffron-primary), transparent);
}

.cultural-symbol {
  font-size: 24px;
  color: var(--saffron-primary);
  font-weight: bold;
}

/* --- 12. HERO SECTION WITH TEMPLE WATERMARK BACKGROUND --- */
.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-color: var(--bg-cream-soft);
  overflow: hidden;
  padding: 60px 0;
}

.hero-watermark-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: auto;
  opacity: 0.1; /* Controlled dynamically by Admin site settings */
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  text-align: left;
}

.hero-subtitle {
  color: var(--saffron-primary);
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.hero-title span {
  color: var(--saffron-primary);
}

.hero-description {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* --- 13. RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }
  
  .insightinfo-nav {
    display: none; /* Controlled via JS for mobile menus */
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    border-bottom: 2px solid var(--border-color);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
  }
  
  .insightinfo-nav.open {
    display: flex;
  }
  
  .hero-title {
    font-size: 38px;
  }
}

@media (max-width: 575px) {
  .hero-title {
    font-size: 32px;
  }
  
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding: 0 16px;
  }
  
  .header-container {
    height: 70px;
  }
}
