/* ==========================================================================
   RESPONSIVE BREAKPOINTS - Temple Website
   Mobile-first: base styles are already mobile. This file adds enhancements
   for larger screens.
   ========================================================================== */

/* Touch target minimums (accessibility) */
.mobile-nav-link {
  min-height: 48px;
  display: flex;
  align-items: center;
}

.faq-header {
  min-height: 48px;
}

.social-icon {
  min-width: 44px;
  min-height: 44px;
}

/* Extra small devices (under 576px) */
@media (max-width: 575px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .info-cards-section {
    padding: 24px 16px;
  }

  .toast-container {
    right: 12px;
    left: 12px;
  }

  .toast {
    max-width: 100%;
  }

  /* Gallery: single column on small screens */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gallery-preview .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Amount options: 3 columns on small screens */
  .amount-options {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .amount-option {
    padding: 10px 8px;
    font-size: 14px;
  }

  /* Bank detail: stack on very small screens */
  .bank-detail {
    flex-direction: column;
    gap: 2px;
  }

  /* Date filter: stack vertically */
  .date-filter {
    flex-direction: column;
    align-items: stretch;
  }

  .date-filter-row {
    flex-direction: column;
  }

  .btn-search {
    width: 100%;
    justify-content: center;
  }

  /* Inner hero: smaller on mobile */
  .inner-hero {
    height: 180px;
  }

  .inner-hero-content h1,
  .inner-hero-title {
    font-size: 22px;
  }

  .inner-hero-subtitle {
    font-size: 12px;
  }

  .breadcrumb {
    font-size: 11px;
    gap: 4px;
  }

  /* Donation CTA */
  .donation-cta h2 {
    font-size: 22px;
  }

  .donation-cta p {
    font-size: 14px;
  }

  .donation-cta .cta-btn {
    padding: 12px 28px;
    font-size: 14px;
  }

  /* Tables: ensure horizontal scroll */
  .table-wrapper {
    margin-left: -16px;
    margin-right: -16px;
    border-radius: 0;
  }

  .data-table th,
  .data-table td {
    padding: 8px 10px;
    font-size: 12px;
  }

  /* Map smaller on mobile */
  .map-container iframe {
    height: 250px;
  }

  /* Event card on mobile */
  .event-card {
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .event-card i {
    font-size: 22px;
  }

  .event-card h3 {
    font-size: 14px;
  }

  /* Quick links: 2 columns */
  .quick-links {
    gap: var(--spacing-sm);
  }

  .quick-link-card {
    padding: var(--spacing-md);
  }

  .quick-link-card i {
    font-size: 24px;
  }

  .quick-link-card h4 {
    font-size: 13px;
  }

  /* Mantra block */
  .mantra-block {
    padding: var(--spacing-md);
  }

  .mantra-block .mantra-sanskrit {
    font-size: 14px;
  }

  /* Footer */
  .footer-container {
    padding: 0 var(--spacing-md);
  }

  .links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  .links-grid a {
    font-size: 13px;
  }

  /* Lightbox on mobile */
  .lightbox-prev,
  .lightbox-next {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }

  .lightbox-close {
    top: 10px;
    right: 10px;
    font-size: 22px;
  }

  /* Seva cards spacing */
  .seva-cards {
    gap: var(--spacing-md);
    padding: 0;
  }

  /* Transport cards */
  .transport-cards {
    padding: 0;
  }

  /* Visitor info */
  .visitor-info-grid {
    padding: 0;
  }

  /* Committee grid */
  .committee-grid {
    padding: 0;
  }

  /* Contact form */
  .contact-form-section {
    padding: var(--spacing-lg) 0;
  }

  /* Carousel */
  .hero-carousel {
    height: 250px;
  }

  .carousel-slide .slide-overlay h2 {
    font-size: 18px;
  }

  .carousel-slide .slide-overlay p {
    font-size: 12px;
  }

  .hero-cta {
    font-size: 13px;
    padding: 8px 20px;
  }

  .carousel-arrow {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .carousel-arrow.prev { left: 8px; }
  .carousel-arrow.next { right: 8px; }
}

/* ===== Small Devices (landscape phones, 576px and up) ===== */
@media (min-width: 576px) {

  .carousel-slide .slide-overlay h2 {
    font-size: 22px;
  }

  .carousel-slide .slide-overlay p {
    font-size: 14px;
  }

  .carousel-arrow {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  /* --- Page Titles --- */
  .page-title {
    font-size: 22px;
  }

  .page-subtitle {
    font-size: 14px;
  }

  /* --- Gallery Grid: 3 columns at 576px --- */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  /* --- Forms --- */
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px 14px;
    font-size: 14px;
  }

  .form-group label {
    font-size: 14px;
  }

  /* --- Content Sections --- */
  .content-section {
    padding: 20px 16px;
  }

  /* --- Data Tables --- */
  .data-table th,
  .data-table td {
    padding: 10px 12px;
    font-size: 14px;
  }

  /* --- Donation Amount Options: 3 columns at 576px --- */
  .amount-options {
    grid-template-columns: repeat(3, 1fr);
  }

  /* --- FAQ --- */
  .faq-header {
    padding: 14px 16px;
    font-size: 15px;
  }

  .faq-answer {
    padding: 0 16px;
    font-size: 14px;
  }
}

/* ===== Medium Devices / Tablets (768px and up) ===== */
@media (min-width: 768px) {

  /* --- Hero Carousel --- */
  .carousel-slide .slide-overlay h2 {
    font-size: 26px;
    letter-spacing: 0.5px;
  }

  .carousel-slide .slide-overlay p {
    font-size: 15px;
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .carousel-indicators {
    bottom: 16px;
  }

  .carousel-indicators .indicator {
    width: 10px;
    height: 10px;
  }

  .inner-hero-title {
    font-size: 34px;
  }

  /* --- Page Titles --- */
  .page-title {
    font-size: 26px;
    margin-bottom: 8px;
  }

  .page-subtitle {
    font-size: 15px;
    margin-bottom: 24px;
  }

  /* --- Content Sections --- */
  .content-section {
    padding: 28px 24px;
    margin-bottom: 24px;
    border-radius: 10px;
  }

  .content-section p {
    font-size: 15px;
    line-height: 1.7;
  }

  /* --- Form Rows: 2-column grid --- */
  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .form-row .form-group {
    margin-bottom: 0;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px 16px;
    font-size: 15px;
  }

  .form-group label {
    font-size: 15px;
    margin-bottom: 6px;
  }

  .form-group textarea {
    min-height: 120px;
  }

  .submit-btn,
  .donate-btn {
    padding: 12px 32px;
    font-size: 16px;
  }

  /* --- Gallery Grid --- */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .gallery-item {
    border-radius: 8px;
  }

  .gallery-item img {
    height: 180px;
  }

  /* --- Data Tables (Donors) --- */
  .data-table {
    font-size: 14px;
  }

  .data-table th,
  .data-table td {
    padding: 12px 16px;
    font-size: 14px;
  }

  .data-table th {
    font-size: 13px;
    letter-spacing: 0.5px;
  }

  .table-container {
    border-radius: 8px;
  }

  /* --- Donors Date Filter --- */
  .date-filter {
    flex-direction: row;
    align-items: flex-end;
    gap: 16px;
  }

  .date-filter .filter-group {
    flex: 1;
  }

  .date-filter .filter-btn {
    align-self: flex-end;
  }

  /* --- Donation Amount Options --- */
  .amount-options {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }

  .amount-option {
    padding: 14px 16px;
    font-size: 16px;
  }

  /* --- FAQ Accordion --- */
  .faq-item {
    margin-bottom: 10px;
    border-radius: 8px;
  }

  .faq-header {
    padding: 16px 20px;
    font-size: 16px;
  }

  .faq-answer {
    padding: 0 20px;
    font-size: 15px;
    line-height: 1.7;
  }

  /* --- Footer --- */
  .footer-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
  }

  .footer-section {
    flex: 1;
    min-width: 200px;
  }

  .footer-section h3 {
    font-size: 16px;
  }

  .footer-bottom {
    margin-top: 24px;
    padding-top: 16px;
    font-size: 13px;
  }

  /* --- Contact Info --- */
  .contact-info-item {
    padding: 16px;
  }

  .contact-info-item .icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  /* --- Committee Section --- */
  .committee-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .committee-card {
    padding: 20px;
  }

  /* --- History / About Section --- */
  .history-content {
    display: flex;
    gap: 24px;
    align-items: flex-start;
  }

  .history-content img {
    max-width: 300px;
    border-radius: 8px;
  }

  .history-content .text-content {
    flex: 1;
  }
}

/* ===== Large Devices / Desktop (992px and up) ===== */
@media (min-width: 992px) {

  .desktop-nav a {
    padding: 8px 16px;
    font-size: 15px;
    white-space: nowrap;
  }

  .desktop-nav a:hover {
    opacity: 0.85;
  }

  .desktop-nav a.active {
    font-weight: 600;
  }

  .header-container {
    padding: 0 24px;
  }

  .header-logo img {
    height: 48px;
  }

  /* --- Hero Carousel --- */
  .hero-carousel {
    height: 400px;
  }

  .carousel-slide .slide-overlay h2 {
    font-size: 32px;
    letter-spacing: 1px;
  }

  .carousel-slide .slide-overlay p {
    font-size: 17px;
    max-width: 600px;
  }

  .carousel-arrow {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .carousel-arrow.prev {
    left: 24px;
  }

  .carousel-arrow.next {
    right: 24px;
  }

  .inner-hero-title {
    font-size: 40px;
  }

  /* --- Page Titles --- */
  .page-title {
    font-size: 30px;
    margin-bottom: 10px;
  }

  .page-subtitle {
    font-size: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  /* --- Content Sections --- */
  .content-section {
    padding: 32px;
    margin-bottom: 28px;
  }

  .content-section p,
  .content-text {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
    line-height: 1.8;
  }

  /* --- Main Container --- */
  .container,
  .main-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
  }

  /* --- Gallery Grid --- */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .gallery-item img {
    height: 220px;
  }

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

  /* --- Data Tables --- */
  .data-table th,
  .data-table td {
    padding: 14px 20px;
    font-size: 15px;
  }

  .table-container {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }

  /* --- Forms --- */
  .form-container {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding: 32px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px 18px;
    font-size: 15px;
    border-radius: 6px;
  }

  /* --- Contact Info --- */
  .contact-info-grid {
    display: flex;
    flex-direction: row;
    gap: 20px;
  }

  .contact-info-item {
    flex: 1;
    padding: 20px;
    text-align: center;
  }

  .contact-info-item .icon {
    margin: 0 auto 12px;
  }

  /* --- Footer: 4-column grid --- */
  .footer {
    padding: 32px 24px 16px;
  }

  .footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 1140px;
    margin: 0 auto;
  }

  .footer-section {
    min-width: unset;
  }

  .footer-section h3 {
    font-size: 17px;
    margin-bottom: 14px;
  }

  .footer-section p,
  .footer-section a,
  .footer-section li {
    font-size: 14px;
    line-height: 1.7;
  }

  .footer-bottom {
    text-align: center;
    margin-top: 28px;
    padding-top: 20px;
  }

  /* --- FAQ Accordion --- */
  .faq-container {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }

  .faq-header {
    padding: 18px 24px;
    font-size: 17px;
  }

  .faq-answer {
    padding: 0 24px;
    font-size: 15px;
  }

  /* --- Donation Amount Options: 6 columns at 992px --- */
  .amount-options {
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  .amount-option {
    padding: 16px;
    font-size: 17px;
    border-radius: 8px;
  }

  /* --- Committee Grid --- */
  .committee-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
  }

  .committee-card {
    padding: 24px;
    border-radius: 10px;
  }

  .committee-card img {
    width: 100px;
    height: 100px;
  }

  /* --- History / About --- */
  .history-content {
    gap: 32px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }

  .history-content img {
    max-width: 380px;
  }
}

/* ===== Extra Large Devices (1200px and up) ===== */
@media (min-width: 1200px) {

  .carousel-slide .slide-overlay h2 {
    font-size: 36px;
  }

  .carousel-slide .slide-overlay p {
    font-size: 18px;
    max-width: 700px;
  }

  /* --- Inner Hero --- */
  .inner-hero {
    height: 340px;
  }

  /* --- Main Container --- */
  .container,
  .main-container {
    max-width: 1200px;
    padding: 0 40px;
  }

  /* --- Gallery Grid: 4 columns --- */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }

  .gallery-item img {
    height: 240px;
  }

  /* --- Content Sections --- */
  .content-section {
    padding: 36px 40px;
  }

  .content-section p,
  .content-text {
    max-width: 860px;
    font-size: 16px;
  }

  /* --- Page Titles --- */
  .page-title {
    font-size: 34px;
  }

  /* --- Footer --- */
  .footer-container {
    max-width: 1200px;
    gap: 40px;
  }

  /* --- Forms --- */
  .form-container {
    max-width: 760px;
    padding: 36px 40px;
  }

  /* --- Data Tables --- */
  .table-container {
    max-width: 1000px;
  }

  .data-table th,
  .data-table td {
    padding: 14px 24px;
  }

  /* --- Committee Grid: 4 columns --- */
  .committee-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
  }

  /* --- FAQ --- */
  .faq-container {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
  }

  /* --- Contact Info --- */
  .contact-info-grid {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ===== Ultra Wide (1400px and up) ===== */
@media (min-width: 1400px) {

  .hero-carousel {
    height: 500px;
  }

  .inner-hero {
    height: 380px;
  }

  .container,
  .main-container {
    max-width: 1320px;
  }

  .footer-container {
    max-width: 1320px;
  }

  .gallery-grid {
    gap: 20px;
  }

  .gallery-item img {
    height: 260px;
  }
}

/* ===== Print Styles ===== */
@media print {

  .header,
  .footer,
  .hamburger-btn,
  .mobile-nav,
  .overlay,
  .carousel-arrow,
  .carousel-indicators {
    display: none !important;
  }

  .hero-carousel {
    height: auto;
  }

  .content-section {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
