/* Base Variables and Reset */
:root {
  --primary-color: #e8640c; /* High contrast orange from the brand */
  --text-color: #000000; /* Max contrast pure black for senior readability */
  --bg-color: #ffffff;
  --bg-secondary: #f4f4f4; /* Slightly darker gray for better separation */
  --bg-paper: #ffffff;
  --border-color: #e0e0e0;
  --navbar-bg: #f5f5f5;
  --heading-font: 'Arial', sans-serif;
  --body-font: 'Arial', sans-serif;
  --base-font-size: 18px; /* Increased base font size for 60+ audience */
  --line-height: 1.6;
}

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

html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

body {
  font-family: var(--body-font);
  font-size: var(--base-font-size);
  color: var(--text-color);
  background-color: var(--bg-secondary);
  line-height: var(--line-height);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.5rem; }

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

p {
  margin-bottom: 1.5rem;
}

/* Card & Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.card {
  background: var(--bg-paper);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 2rem;
  margin-bottom: 2rem;
}

.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s;
  min-height: 48px; /* Minimum touch target 48x48 */
  min-width: 48px;
}
.btn:hover {
  background-color: #c9550b;
  text-decoration: none;
}
.btn-secondary {
  background-color: #666;
}
.btn-secondary:hover {
  background-color: #444;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.form-control {
  width: 100%;
  padding: 0.8rem;
  font-size: 1.1rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
}
textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Grid Layout */
.grid {
  display: grid;
  gap: 2rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Banners Structure for Home */
.banner-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}
.banner-item {
  text-align: center;
  flex: 1;
  min-width: 300px;
}
.banner-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Ensure images are responsive */
img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}

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

/* Mobile Adjustments (Tablets and Phones) */
@media (max-width: 992px) {
  .grid, .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  .grid > * {
    width: 100% !important;
    min-width: 0 !important;
  }
  
  .img-mobile-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  body {
    font-size: 18px;
  }
  .container {
    padding: 0 1rem !important;
  }
  .card {
    padding: 1.2rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    overflow-x: hidden;
  }
}

/* Universal Loader */
.loader-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  width: 100%;
}

.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

.guru-quote-box {
  width: 80%;
  margin: 30px auto;
  text-align: center;
  border: 2px solid var(--primary-color);
  padding: 20px;
  border-radius: 10px;
  background-color: #fff9f0;
}

@media (max-width: 992px) {
  .guru-quote-box {
    width: 100% !important;
    padding: 15px !important;
    margin: 20px 0 !important;
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

