/* Base styles */
:root {
  font-size: 18px; /* Increased base font size for better readability */
}
body {
  font-family: 'Arial', sans-serif; /* Modern font family */
}

html, body {
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  background: linear-gradient(135deg, #6f4c3e 0%, #d9b89b 50%, #ffcc99 100%) fixed;
  color: #fff;
  overflow-x: hidden;
  min-height: 100vh;
  font-size: 1rem;
}

.cover-container {
  max-width: 1200px;
  width: 100%;
  padding: 0 1rem;
}

/* Header styles */
header {
  width: 100%;
  padding: 1rem;
}

header .container {
  padding: 0;
}

.logo {
  font-size: clamp(1.125rem, 4vw, 1.5rem);
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  transform: translateY(-20px);
  opacity: 0;
  animation: slideDown 0.6s ease forwards;
  margin: 0;
  line-height: 1.2;
}

.nav-buttons {
  transform: translateY(-20px);
  opacity: 0;
  animation: slideDown 0.6s ease forwards 0.2s;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Hero section */
.hero-section {
  padding: 4rem 0;
  width: 100%;
}

.hero-section h1 {
  transform: translateX(-30px);
  opacity: 0;
  animation: slideRight 0.8s ease forwards 0.4s;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
}

.hero-section .lead {
  transform: translateX(-30px);
  opacity: 0;
  animation: slideRight 0.8s ease forwards 0.6s;
  font-size: clamp(1rem, 3vw, 1.25rem);
}

.hero-section .cta-buttons {
  transform: translateY(20px);
  opacity: 0;
  animation: slideUp 0.8s ease forwards 0.8s;
}

.hero-image {
  transform: translateX(30px);
  opacity: 0;
  animation: slideLeft 0.8s ease forwards 1s;
}

.hero-image img {
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  max-width: 100%;
  height: auto;
  width: 100%;
}

/* Button styles */
.btn {
  transition: all 0.3s ease;
  white-space: nowrap;
  touch-action: manipulation;
}

.nav-buttons .btn {
  padding: 0.5rem 1rem;
  font-size: clamp(0.875rem, 2.5vw, 1rem);
}

.nav-buttons .btn-outline-light {
  border-width: 2px;
}

.nav-buttons .btn-primary,
.cta-buttons .btn-primary {
  background-color: #fff;
  border-color: #fff;
  color: #7f9cf5;
}

.nav-buttons .btn-primary:hover,
.cta-buttons .btn-primary:hover {
  background-color: #f8f9fa;
  border-color: #f8f9fa;
  color: #6c63ff;
  transform: translateY(-2px);
}

.btn-outline-light:hover {
  transform: translateY(-2px);
}

/* FAQ Section */
.faq-section {
  margin-top: 6rem; /* Increased margin to create more space above FAQ section */
  padding: 2rem; /* Increased padding for better spacing */
  width: 100%;
  background-color: #fff; /* Added background color */
  border-radius: 10px; /* Rounded corners */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}


.faq-item {
  margin-bottom: 1rem; /* Space between FAQ items */
  padding: 10px; /* Added padding for better spacing */
}

.faq-item h5 {
  color: #000; /* Updated font color to black for better visibility */
  font-size: 1.2rem; /* Adjusted font size for better readability */
}

.faq-item p {
  color: #000; /* Updated font color to black for better readability */
  font-size: 1rem; /* Adjusted font size for better readability */
}

/* Footer */
footer {
  background: linear-gradient(135deg, #3a270b, #5c3a2b); /* Richer gradient for premium look */
  color: #fff; /* Ensure text is readable */
  padding: 2rem 0; /* Increased padding for spacious feel */
  text-align: center; /* Center align text */
  font-size: 1.1rem; /* Slightly larger font size */
  transform: translateY(20px);
  opacity: 0;
  animation: slideUp 0.8s ease forwards 1.2s;
  padding: 1rem 0;
  width: 100%;
}

/* Animation Keyframes */

@media (max-width: 768px) {
  .prayer-drive-section {
      margin-bottom: 30px;
  }
  .fade-in {
      margin-bottom: 20px; /* Add some margin to all fade-in elements */
  }
}

@keyframes slideDown {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideRight {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideLeft {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .hero-section {
    padding: 2rem 0;
    text-align: center;
  }
  
  .hero-section .text-start {
    text-align: center !important;
  }
  
  .hero-image {
    margin-top: 2rem;
  }
  
  .cta-buttons {
    justify-content: center;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
}

/* Details page styles */
.details-container {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.content-section {
  flex: 1;
}

.images-section {
  flex: 1;
  position: sticky;
  top: 6rem;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1.5rem;
  justify-content: flex-start;
  align-items: flex-start;
  padding-left: 1rem;
}

/* Image size variations */
.images-section img {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin: 0 auto;
  border-radius: 12px;
}

.img-size-xs {
  max-width: 200px !important;
}

.img-size-sm {
  max-width: 250px !important;
}

.img-size-md {
  max-width: 300px !important;
}

.img-size-lg {
  max-width: 400px !important;
}

.img-size-xl {
  max-width: 500px !important;
}

.img-size-full {
  max-width: 100% !important;
}

/* Mobile Specific Styles */
@media (max-width: 768px) {
  .faq-section {
    padding: 2rem; /* Adjusted padding for mobile responsiveness */
  }

  .faq-item {
    margin-bottom: 1rem; /* Space between FAQ items */
    padding: 10px; /* Added padding for better spacing */
  }

  .faq-item h5 {
    font-size: 1.2rem; /* Adjusted font size for better readability */
  }

  .faq-item p {
    font-size: 1rem; /* Adjusted font size for better readability */
  }

  .images-section {
    position: static;
    width: 100%;
    align-items: center;
  }

  .images-section img {
    max-width: 350px;
    width: 100%;
    margin-bottom: 0;
  }
}

@media (max-width: 576px) {
  header {
    padding: 0.75rem 0.5rem;
  }

  header .container {
    max-width: 100%;
    padding: 0 0.5rem;
  }

  header .d-flex {
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
    width: 100%;
  }

  .logo {
    font-size: 0.9rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 45%;
  }

  .nav-buttons {
    width: auto;
    gap: 0.5rem;
    margin: 0;
    flex-shrink: 0;
  }

  .nav-buttons .btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    min-width: auto;
    border-radius: 4px;
  }

  .nav-buttons .btn-outline-light {
    border-width: 1px;
  }
  
  .hero-section {
    padding: 1.5rem 0;
  }
  
  .cta-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .cta-buttons .btn {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  footer {
    font-size: 0.875rem;
  }
}

/* Lightbox styles */
.lightbox-trigger {
  cursor: zoom-in;
  display: block;
  transition: transform 0.3s ease;
  position: relative;
}

.lightbox-trigger::after {
  content: '🔍';
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-trigger:hover {
  transform: scale(1.02);
}

.lightbox-trigger:hover::after {
  opacity: 1;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
  background: rgba(93, 55, 31, 0.85);
  backdrop-filter: blur(5px);
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  cursor: default;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  position: relative;
  z-index: 1000;
}

/* Fix for mobile zoom */
@viewport {
  width: device-width;
  zoom: 1.0;
}

@-ms-viewport {
  width: device-width;
}
/* Design System Variables */
:root {
    --color-primary: #5c3a2b;
    --color-primary-hover: #7b5a3a;
    --color-primary-light: #d9b89b;
    --color-background: #faf8f6;
    --color-surface: #ffffff;
    --color-text: #2c1810;
    --color-text-secondary: #6b5347;
    --color-border: rgba(92, 58, 43, 0.15);
    --color-shadow: rgba(92, 58, 43, 0.08);
    --color-shadow-hover: rgba(92, 58, 43, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    background: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Header */
header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* Main Container */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 12px var(--color-shadow);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--color-shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(92, 58, 43, 0.15);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 70px rgba(92, 58, 43, 0.2);
}

/* FAQ Section */
.faq-section {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: 0 4px 20px var(--color-shadow);
    margin-bottom: 4rem;
}

.faq-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 2.5rem;
    text-align: center;
}

.faq-item {
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h5 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.faq-item p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.faq-item a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.faq-item a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: var(--color-primary);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.footer-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.footer-content span {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content, .hero-image, .faq-section {
    animation: fadeInUp 0.8s ease-out;
}

.hero-image {
    animation-delay: 0.2s;
}

.faq-section {
    animation-delay: 0.4s;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 1.5rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.875rem;
    }

    .main-container {
        padding: 2rem 1.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .faq-section {
        padding: 2rem 1.5rem;
    }

    .faq-section h2 {
        font-size: 2rem;
    }

    .faq-item h5 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1rem;
    }

    .logo-image, .footer-logo {
        width: 32px;
        height: 32px;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .faq-section h2 {
        font-size: 1.75rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-content span {
        font-size: 0.85rem;
    }
}
