/* ==========================================================================
   1. Design Tokens & Core Styling
   ========================================================================== */
:root {
    --sacred-blue: #1e2d42;        /* Deep, peaceful blue for contemplation */
    --sacred-gold: #c5a059;        /* Warm gold representing divine grace */
    --sacred-cream: #fbf9f5;       /* Soft ivory background */
    --text-main: #333d47;          /* High readability dark charcoal */
    --text-muted: #626f7c;         /* Subdued text for descriptions */
    --white: #ffffff;
    --border-soft: 1px solid rgba(197, 160, 89, 0.2);
    --shadow-soft: 0 10px 30px rgba(30, 45, 66, 0.05);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--sacred-cream);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo {
    display: flex;
    align-items: center;
}

header .logo img {
    width: 60px;
    margin-right: 15px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: #173f33d3;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: #E6A400;
}

/* ==========================================================================
   3. Main Container & Structures
   ========================================================================== */
.devotion-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 60px 24px;
}

.grid-two-cols {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(197, 160, 89, 0.4), transparent);
    margin: 60px 0;
}

/* ==========================================================================
   4. Spiritual Core Section
   ========================================================================== */
.core-text h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    color: var(--sacred-blue);
    margin-bottom: 20px;
}

.core-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--text-main);
}

.spiritual-quote {
    border-left: 3px solid var(--sacred-gold);
    padding-left: 20px;
    margin-top: 30px;
}

.spiritual-quote i {
    font-size: 1.5rem;
    color: var(--sacred-gold);
    margin-bottom: 8px;
}

.spiritual-quote p {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--sacred-blue);
}

.core-pillars {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pillar-card {
    background-color: var(--white);
    border: var(--border-soft);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.pillar-icon {
    font-size: 2rem;
    color: var(--sacred-gold);
    margin-bottom: 15px;
}

.pillar-card h3 {
    font-family: 'Cinzel', serif;
    color: var(--sacred-blue);
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.pillar-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   5. Timetable Section (Prayer Timetable)
   ========================================================================== */
.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.section-title span {
    font-family: 'Cinzel', serif;
    color: var(--sacred-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

.section-title h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    color: var(--sacred-blue);
    margin: 8px 0 15px 0;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1rem;
}

.timetable-wrapper {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    border: var(--border-soft);
    overflow: hidden;
}

.timetable {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.timetable th {
    background-color: var(--sacred-blue);
    color: var(--white);
    font-family: 'Cinzel', serif;
    padding: 20px 24px;
    font-size: 1rem;
    letter-spacing: 1px;
}

.timetable td {
    padding: 22px 24px;
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
}

.timetable tr:last-child td {
    border-bottom: none;
}

.time-col {
    font-weight: 700;
    color: var(--sacred-blue);
    width: 15%;
}

.prayer-title {
    font-weight: 600;
    color: var(--sacred-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

.prayer-title i {
    color: var(--sacred-gold);
}

/*DEVOTION GALLERY*/
/*FORMATION GALLERY*/
 /* Base reset for safety */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Gallery Section Layout */
.gallery-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.gallery-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  color: #333;
}

/* The Grid Container */
/* Default for mobile: 1 column */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
}

/* Tablets (768px and up): 2 columns */
@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktops (1024px and up): Exactly 4 columns */
@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* The Grid Items */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: #f0f0f0;
  aspect-ratio: 4 / 3; /* Forces all images to share the same proportions */
}

/* The Images */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crops and centers the image without stretching it */
  transition: transform 0.3s ease; /* Smooth hover transition */
  display: block;
}

/* Hover Effect */
.gallery-item:hover img {
  transform: scale(1.05); /* Gentle zoom effect */
}
/* CTA SECTION */
.cta {
    background-color: #00563F;
    color: white;
    text-align: center;
    padding: 60px 20px;
}

.cta .btn {
    background-color: #E6A400;
    margin-top: 20px;
}
    /* Container to center the button horizontally */
.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* The Button Styling */
.btn-get-involved {
  /* Layout & Sizing (Medium size) */
  display: inline-block;
  padding: 10px 30px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  border-radius: 30px; /* Gives it a friendly pill shape */
  
  /* Colors */
  background-color: #FFC72C; /* Warm, energetic yellow */
  color: #ffffff;            /* Dark charcoal for high, accessible contrast */
  
  /* Depth & Interaction */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.25s ease-in-out;
  cursor: pointer;
  border: 2px solid transparent;
}

/* Hover & Focus States for Interaction and Accessibility */
.btn-get-involved:hover {
  background-color: #E5B220; /* Slightly darker gold on hover */
  transform: translateY(-2px); /* Gentle lift effect */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-get-involved:active {
  transform: translateY(0); /* Returns to normal on click */
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.btn-get-involved:focus {
  outline: none;
  border-color: #1A1A1A; /* Clear focus ring for keyboard navigation */
}

/*FORMATION GALLERY*/


/* FOOTER */
footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 30px 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-logo img {
    width: 70px;
}

.footer-links a {
    color: #E6A400;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   8. Responsive Media Queries
   ========================================================================== */
@media (max-width: 900px) {
    .grid-two-cols {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .devotion-header h1 {
        font-size: 2.2rem;
    }
    
    .timetable, .timetable tbody, .timetable tr, .timetable td {
        display: block;
        width: 100%;
    }
    
    .timetable thead {
        display: none;
    }
    
    .timetable tr {
        border-bottom: 2px solid rgba(197, 160, 89, 0.15);
        padding: 15px 0;
    }
    
    .timetable td {
        border: none;
        padding: 8px 16px;
    }
}