/* Main stylesheet for CACLOUKY website */

/* Import Source Sans Pro font */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;600;700&display=swap');

/* Reset styles */
body, html {
  margin: 0;
  padding: 0;
  font-family: 'Source Sans Pro', sans-serif;
  height: 100%;
}

/* Main color scheme for CACLOUKY */
:root {
  --primary-color: #0c3c60;      /* Updated blue */
  --secondary-color: #8b0000;    /* Deep red, for accents */
  --accent-color: #f4eab1;       /* Lite, for highlights */
  --text-color: #333333;         /* Dark gray for text */
  --light-background: #f8f8f8;   /* Off white for backgrounds */
  --white: #ffffff;              /* Pure white */
  --page-background: #0c3c60;    /* Page background #fafafa */
  --nav-background: #4c6e88;     /* Navigation background */
  --top-nav-background: #f4eab1; /* Top navigation background */
  --livestream-color: #e21c21;   /* Live stream text color */
}

body {
  background-color: var(--page-background);
  color: var(--text-color);
  line-height: 1.6;
}

/* Top Navigation */
.top-nav {
  background-color: #f4eab1;
  display: flex;
  justify-content: center;
  padding: 8px 0;
}

.top-nav a {
  color: #0c3c60;
  text-decoration: none;
  padding: 5px 15px;
  margin: 0 10px;
  font-weight: bold;
  transition: all 0.15s ease;
  font-size: 1.2em;
  letter-spacing: 0.5px;
  position: relative;
  border-radius: 4px;
}

.top-nav a.livestream {
  color: #e21c21;
}

.top-nav a:hover {
  background-color: rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.2), 
              inset 1px 0 0 rgba(255, 255, 255, 0.1), 
              inset 0 1px 0 rgba(255, 255, 255, 0.1), 
              inset -1px 0 0 rgba(0, 0, 0, 0.1), 
              inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

/* Header styles */
.header {
  background-color: #0c3c60;
  background-image: none;
  color: var(--white);
  padding: 20px 0;
  text-align: center;
  border-bottom: 3px solid var(--accent-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header h1 {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 700;
}

.logo {
  max-width: 600px;
  width: 100%;
  height: auto;
  margin: 0 auto 15px;
  border-radius: 5px;
  display: block;
}

.nav, .main-nav {
  background-color: #4c6e88; /* Updated navigation color */
  background-image: none;
  display: flex;
  justify-content: center;
  padding: 10px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  border-bottom: 2px solid var(--accent-color);
  position: relative;
}

.nav a, .main-nav a {
  color: var(--white);
  text-decoration: none;
  padding: 12px 20px;
  margin: 0 1px;
  font-weight: normal;
  transition: all 0.15s ease; /* Faster transition for more responsive button feel */
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 1em;
  letter-spacing: 0.5px;
  position: relative; /* For proper positioning */
}

.nav a:hover, .main-nav a:hover {
  background-color: rgba(0, 0, 0, 0.3); /* Darker background for pressed effect */
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.3), 
              inset 1px 0 0 rgba(255, 255, 255, 0.1), 
              inset 0 1px 0 rgba(255, 255, 255, 0.1), 
              inset -1px 0 0 rgba(0, 0, 0, 0.2), 
              inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

/* Meeting button special styling */
.nav a.meeting-button, .main-nav a.meeting-button {
  background-color: var(--secondary-color);
  color: var(--white);
  border: 2px solid var(--accent-color);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(139, 0, 0, 0.3);
}

.nav a.meeting-button:hover, .main-nav a.meeting-button:hover {
  background-color: #a50000;
  border-color: var(--accent-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 0, 0, 0.4);
}

/* Mobile meeting button styling */
.mobile-menu-links a.meeting-button {
  background-color: var(--secondary-color);
  color: var(--white) !important;
  border: 2px solid var(--accent-color);
  font-weight: 600;
  border-radius: 4px;
}

.nav a.active, .main-nav a.active {
  /* Background and shadow removed as requested */
  /* background-color: rgba(240, 192, 90, 0.2); */
  /* box-shadow: 0 0 5px rgba(255, 255, 255, 0.3); */
}

/* Dropdown menu styles */
.nav-item, .main-nav .dropdown {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 0;
}

.dropdown-toggle, .main-nav .dropdown-btn {
  cursor: pointer;
  position: relative;
  display: inline-block;
}

.dropdown-toggle::after, .main-nav .dropdown-arrow {
  content: "▼";
  font-size: 0.6em;
  margin-left: 6px;
  vertical-align: middle;
}

.dropdown-menu, .main-nav .dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #4c6e88;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1000;
  display: none;
  border-radius: 0 0 4px 4px;
  overflow: hidden;
}

.dropdown-menu a, .main-nav .dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
  margin: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: all 0.15s ease;
  position: relative;
}

.dropdown-menu a:last-child, .main-nav .dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover, .main-nav .dropdown-content a:hover {
  background-color: rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.3), 
              inset 1px 0 0 rgba(255, 255, 255, 0.1), 
              inset 0 1px 0 rgba(255, 255, 255, 0.1), 
              inset -1px 0 0 rgba(0, 0, 0, 0.2), 
              inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.nav-item:hover .dropdown-menu, .main-nav .dropdown:hover .dropdown-content {
  display: block;
}

/* Main content area */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: var(--white);
  border-radius: 0 0 12px 12px; /* Rounded corners on the bottom */
  overflow: hidden; /* Ensures content respects the border radius */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Subtle shadow for depth */
}

.hero-section {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 20px 30px; /* Hero Title Text Padding */
  margin-bottom: 40px; /* Spacing between the Cards */
  text-align: center;
  border-radius: 8px; /* Hero Section Radius on Card */
  box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Shadow Under the Card */
  border: 1px solid #eaeaea; /* border thickness and color */
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* height: 4px; /* Hero Section Accent Border on Top of Card */
  /* background: linear-gradient(to right, var(--primary-color), var(--accent-color)); /* Hero Section Gradient Accent Color on Top of Card */
}

.hero-section h1 {
  font-size: 2.5em; /* This changes the Title font size on the card */
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.8);
  font-family: 'Source Sans Pro', sans-serif;
}

.hero-section p {
  font-size: 1.1em; /* This changes the paragraph font size on the card */
  margin-bottom: 20px;
  color: #444;
  line-height: 1.6;
}

/* Footer styles */
.footer {
  background-color: var(--primary-color);
  background-image: linear-gradient(to top, #041a3c, var(--primary-color));
  color: var(--white);
  margin-top: 40px;
  border-top: 3px solid var(--accent-color);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  padding: 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-contact, .footer-links, .footer-social {
  flex: 1;
  min-width: 250px;
  margin-bottom: 30px;
  padding: 0 15px;
}

.footer h3 {
  color: var(--accent-color);
  margin-bottom: 15px;
  font-size: 1.3em;
  position: relative;
  padding-bottom: 10px;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
}

.footer h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer p {
  margin: 8px 0;
  font-size: 1.05em;
  line-height: 1.5;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.social-icons {
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
}

.social-icons a {
  color: var(--white);
  margin: 0 15px 15px 0;
  font-size: 1.8em;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icons a:hover {
  color: var(--accent-color);
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.2);
}

/* Copyright section styling */
.copyright-section {
  background-color: #4c6e88;
  text-align: center;
  padding: 10px 0; /* Further reduced vertical padding */
  font-size: 0.95em;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

.copyright-section p {
  margin: 0;
  font-size: 0.9em;
  color: white;
}

/* Keep old styling for backward compatibility */
.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  text-align: center;
  padding: 15px 0;
  margin-top: 20px;
  font-size: 0.95em;
}

.footer-bottom a {
  color: var(--accent-color);
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Content sections */
.content-section {
  margin-bottom: 40px;
  padding: 30px;
  background-color: var(--light-background);
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  border: 1px solid #eaeaea;
  position: relative;
  overflow: hidden;
}

.content-section:nth-child(even) {
  background-color: var(--white);
}

.content-section h2 {
  color: var(--primary-color); /* This controls the Color in the text in the Service Times Section */
  border-bottom: 2px solid var(--primary-color); /* This controls the thickness of the line in the Service Times Section */
  padding-bottom: 10px; /* This controls the Margin between the Line and the Title in the Service Times Section */
  margin-bottom: 15px; /* This controls the Margin between the text and line in the Service Times Section */
  margin-top: 5px; /* This controls the Margin Top like Service Times Title */
  font-size: 1.8em; /* This controls the font size like Service Times Title */
  position: relative;
  font-weight: 600; /* This controls the font weight like Service Times Title */
  font-family: 'Source Sans Pro', sans-serif;
}

.content-section h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px; /* This controls the width of the line like Service Times Title */
  height: 2px;/* This controls the height of the beginning of the line like Service Times Title */
  background-color: var(--primary-color); /* This controls the Color of the line in the Service Times Section */
}

/* Service times styling */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  text-align: center;
  margin-top: 20px;
  background-color: var(--white);
  border-radius: 8px;
  padding: 20px;
  padding-top: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border: 1px solid #eee; /* service times border and color */
}

.service-day {
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  border-bottom: 2px solid var(--primary-color);
}

.service-day:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.service-day h3 {
  color: #0c3c60;
  margin-top: 0;
  font-size: 1.4em;
  margin-bottom: 15px;
  font-weight: 600;
  font-family: 'Source Sans Pro', sans-serif;
}

.service-day .time {
  font-weight: bold;
  color: var(--secondary-color);
  font-size: 1.3em;
  margin: 10px 0;
}

/* List styling */
.content-section ul {
  padding-left: 25px; /* Special Services section move the list to the left */
  margin: 20px 0; /* Special Services section moves the list down */
}

.content-section li {
  margin-bottom: 12px; /* Special Services section adds padding in each text of the list */
  position: relative;
  padding-left: 5px; /* Special Services section adds padding between the bulletsand the text in the list */
  line-height: 1.5;
}

.content-section li::marker {
  color: var(--primary-color);
}

/* Leadership profiles */
.leadership-profile {
  background-color: var(--white);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  text-align: center;
  max-width: 320px;
  margin: 0 auto;
  border: 1px solid #eee;
  transition: all 0.3s ease;
}

.leadership-profile:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.profile-image {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 3px solid var(--primary-color);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.leadership-profile h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.4em;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
}

/* Image styling */
.content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 25px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  border: 1px solid #eee;
  transition: all 0.3s ease;
}

.content-image:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Additional styling for quotes and scripture */
.scripture, .prayer-quote {
  font-style: italic;
  padding: 20px 30px;
  background-color: rgba(26, 61, 124, 0.05);
  border-left: 4px solid var(--primary-color);
  border-radius: 0 8px 8px 0;
  margin: 30px 0;
  position: relative;
  font-size: 1.1em;
  line-height: 1.7;
  color: #444;
}

.scripture::before, .prayer-quote::before {
  content: '"';
  font-size: 4em;
  color: rgba(26, 61, 124, 0.1);
  position: absolute;
  top: -10px;
  left: 10px;
  font-family: Georgia, serif;
}

/* Call to Action Section */
.cta-section {
  background-color: var(--light-background);
  text-align: center;
}

.cta-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.cta-item {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  background-color: var(--white);
  padding: 30px 25px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

/* Remove decorative border for Online Giving */
.cta-section .cta-item::before {
  display: none;
}

.cta-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.cta-item i {
  font-size: 2.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
  background-color: rgba(26, 61, 124, 0.05);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.cta-item:hover i {
  background-color: rgba(240, 192, 90, 0.1);
  color: var(--secondary-color);
  transform: scale(1.1);
}

.cta-item h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.4em;
  font-weight: 600;
  font-family: 'Source Sans Pro', sans-serif;
}

.cta-item p {
  margin-bottom: 25px;
  flex-grow: 1;
}

.cta-btn {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 12px 25px;
  font-size: 0.95em;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(26, 61, 124, 0.2);
  display: inline-block;
  text-decoration: none;
  margin: 0 auto;
}

.cta-btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(139, 0, 0, 0.3);
}

/* Custom giving title without the bottom border */
.giving-title {
  font-size: 1.8em;
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 20px;
  margin-top: 5px;
  font-weight: 600;
  font-family: 'Source Sans Pro', sans-serif;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.giving-title::after {
  display: none !important;
}

/* Centered content container for the giving section */
.centered-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}

/* Button styling */
.form-submit, .giving-btn {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 12px 25px;
  font-size: 1em;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(26, 61, 124, 0.2);
  display: inline-block;
  text-decoration: none;
}

.form-submit:hover, .giving-btn:hover {
  background-color: #0d2c5c;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(26, 61, 124, 0.3);
}

/* Mobile Menu Styles */
.mobile-menu-btn {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: white;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: background-color 0.3s ease;
}

.mobile-menu-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.mobile-menu-btn svg {
  display: block;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 250px;
  height: 100vh;
  background-color: #0c3c60;
  z-index: 1000;
  transition: right 0.3s ease-in-out;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.mobile-menu.active {
  right: 0;
}

.close-menu-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.close-menu-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* Mobile submenu styles */
.mobile-dropdown {
  display: inline-flex !important;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
  margin: 0 auto;
  padding-right: 0 !important;
}

.mobile-dropdown .dropdown-arrow {
  font-size: 0.7em;
  margin-left: 4px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.mobile-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.mobile-submenu {
  display: none;
  overflow: hidden;
  background-color: transparent;
  margin: 0;
  padding: 0;
  flex-direction: column;
  width: 100%;
}

.mobile-submenu.active {
  display: flex;
}

.mobile-submenu a {
  text-align: center !important;
  font-size: 1.2em !important; /* Match parent menu size */
  padding: 15px 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  display: block;
  font-weight: 600;
  color: white !important;
}

.mobile-submenu a:last-child {
  border-bottom: none !important;
}

.mobile-submenu a:hover {
  color: var(--accent-color);
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  padding: 70px 25px 60px;
  flex: 1;
  box-sizing: border-box;
  justify-content: flex-start;
}

.mobile-menu-links a {
  color: white;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 600;
  padding: 12px 0;
  margin: 6px 0;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.mobile-menu-links a:not(.meeting-button) {
  padding: 12px 0;
  margin: 6px 0;
}

.mobile-menu-links a:last-child {
  border-bottom: none;
}

.mobile-menu-links a:hover {
  color: var(--accent-color);
}

/* Ensure Meeting button is fully visible in mobile menu */
.mobile-menu-links a.meeting-button {
  margin: 10px 0 30px 0 !important;
  border-bottom: none !important;
  padding: 10px 20px !important;
  font-size: 0.9em !important;
  display: block !important;
  width: auto !important;
  box-sizing: border-box !important;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-overlay.active {
  display: block;
  opacity: 1;
}

/* FAQ Styles */
.faq-container {
  margin-top: 20px;
}

.faq-item {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.2em;
  font-weight: 600;
}

.content-placeholder {
  text-align: center;
  padding: 40px 20px;
  background-color: rgba(0,0,0,0.02);
  border-radius: 4px;
  margin: 20px 0;
  border: 1px dashed #ccc;
}

/* Responsive styles */
@media (max-width: 768px) {
  /* Footer for mobile */
  .copyright-section {
    background-color: #4c6e88 !important; /* Force the color with !important */
    padding: 8px 0 !important; /* Even more compact padding for mobile with !important */
  }
  
  /* Top Navigation */
  .top-nav {
    flex-wrap: wrap;
  }
  
  .top-nav a {
    margin: 3px 5px;
    font-size: 0.8em;
  }
  
  /* Navigation */
  .nav, .main-nav {
    display: none; /* Hide standard navigation on mobile */
  }
  
  /* Show mobile menu button */
  .mobile-menu-btn {
    display: flex;
  }
  
  /* Mobile meeting badge styling */
  .mobile-meeting-badge {
    background-color: #f5f5f5;
    border-radius: 8px;
    margin: 25px 5px 20px 5px;
    padding: 18px 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: calc(100% - 10px);
    max-width: 240px;
    box-sizing: border-box;
  }
  
  .mobile-meeting-badge .badge-header {
    color: #1a4b73;
    font-weight: 700;
    font-size: 0.85em;
    line-height: 1.1;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
  }
  
  .mobile-meeting-badge .badge-subheader {
    color: #8b1538;
    font-weight: 600;
    font-size: 0.8em;
    line-height: 1.1;
    margin-bottom: 15px;
    letter-spacing: 0.2px;
  }
  
  .mobile-meeting-badge .badge-button {
    background-color: #1a4b73;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.65em;
    font-weight: 600;
    display: inline-block;
    letter-spacing: 0.1px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    width: calc(100% - 15px);
    max-width: 210px;
    box-sizing: border-box;
  }
  
  .mobile-meeting-badge .badge-button:hover {
    background-color: #0c3c60;
  }
  
  /* Position header content */
  .header {
    position: relative;
    padding: 15px 0;
  }
  
  /* Adjust logo for mobile */
  .logo {
    max-width: 80%;
    width: 300px;
    margin: 0 auto 10px;
  }
  
  /* Headers and text */
  .hero-section h1 {
    font-size: 1.8em;
  }
  
  .content-section h2 {
    font-size: 1.5em;
  }
  
  /* Layout */
  .content-section {
    padding: 20px 15px;
    margin-bottom: 25px;
  }
  
  /* Service items and other flex containers */
  .service-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .giving-options,
  .cta-container,
  .footer-content {
    gap: 15px;
    flex-direction: column;
  }
  
  .giving-option,
  .cta-item, 
  .footer-contact, 
  .footer-links, 
  .footer-social {
    min-width: 100%;
    margin-bottom: 20px;
  }
  
  .cta-item {
    max-width: 280px;
    margin: 0 auto;
  }
  
  .cta-container {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* Footer */
  .footer {
    padding: 0;
    background-color: var(--primary-color);
    background-image: linear-gradient(to top, #041a3c, var(--primary-color));
    color: var(--white);
    border-top: 3px solid var(--accent-color);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  }
  
  .footer-content {
    padding: 0 15px;
    text-align: center;
  }
  
  .footer h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .copyright-section {
    width: 100%;
    padding: 20px 0;
    background-color: #041a3c;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .copyright-section p {
    color: white;
    margin: 0;
    font-size: 0.9em;
  }
  
  .social-icons {
    justify-content: center;
  }
  
  /* Images */
  .profile-image {
    width: 150px;
    height: 150px;
  }
  
  /* Scripture quotes */
  .scripture, .prayer-quote {
    padding: 15px 20px;
    font-size: 1em;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  body {
    font-size: 16px;
  }
  
  .header h1 {
    font-size: 1.5em;
  }
  
  /* Make logo smaller on very small screens */
  .logo {
    max-width: 90%;
    width: 250px;
  }
  
  /* Adjust mobile menu button position */
  .mobile-menu-btn {
    top: 15px;
    right: 15px;
  }
  
  .hero-section h1 {
    font-size: 1.6em;
  }
  
  .hero-section p {
    font-size: 1.1em;
  }
  
  .content-section {
    padding: 15px 10px;
  }
  
  .content-image {
    margin: 15px auto;
  }
}

/* Tab Navigation Styles */
.tab-container {
  margin: 30px 0;
}

.tab-nav {
  display: flex;
  flex-wrap: wrap;
  background-color: var(--nav-background);
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tab-nav button {
  flex: 1;
  min-width: 150px;
  padding: 15px 20px;
  background-color: transparent;
  border: none;
  color: var(--white);
  font-size: 1em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.tab-nav button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.tab-nav button.active {
  background-color: var(--primary-color);
  border-bottom-color: var(--accent-color);
  color: var(--white);
}

.tab-nav button i {
  margin-right: 8px;
  font-size: 1.4em;
}

.tab-content {
  background-color: var(--white);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  min-height: 300px;
}

.tab-pane {
  display: none;
  padding: 30px;
}

.tab-pane.active {
  display: block;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.schedule-item {
  background-color: var(--light-background);
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.schedule-item h3 {
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.3em;
  font-weight: 600;
}

.schedule-item .time {
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 1.3em;
  margin-bottom: 10px;
}

.schedule-item .details {
  color: var(--text-color);
  line-height: 1.5;
  font-size: 1.1em;
}

.event-header {
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--nav-background) 100%);
  color: var(--white);
  padding: 40px 20px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.event-header h1 {
  margin: 0 0 15px 0;
  font-size: 2.5em;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.event-header h1.large-title {
  font-size: 3.5em;
  font-weight: 800;
}

/* Information Sections Styles */
.info-sections {
  margin: 40px 0;
}

.info-nav {
  display: flex;
  flex-wrap: wrap;
  background-color: var(--nav-background);
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.info-button {
  flex: 1;
  min-width: 150px;
  padding: 15px 20px;
  background-color: transparent;
  border: none;
  color: var(--white);
  font-size: 1em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.info-button i {
  margin-right: 8px;
  font-size: 1.4em;
}

.info-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.info-button.active {
  background-color: var(--primary-color);
  border-bottom-color: var(--accent-color);
  color: var(--white);
}

.info-content {
  background-color: var(--white);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  min-height: 200px;
}

.info-pane {
  display: none;
  padding: 30px;
}

.info-pane.active {
  display: block;
}

.info-text {
  text-align: center;
  line-height: 1.6;
}

.info-text p {
  margin-bottom: 15px;
  color: var(--text-color);
}

.info-text strong {
  color: var(--primary-color);
}

.info-subsection {
  margin-bottom: 25px;
}

.info-subsection:last-child {
  margin-bottom: 0;
}

.info-subsection h3 {
  color: var(--primary-color);
  font-size: 1.3em;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 8px;
}

/* Side by side layout for Band & Youth Choir */
.info-pane#band-choir.active {
  display: flex;
  gap: 30px;
}

.info-pane#band-choir .info-subsection {
  flex: 1;
  margin-bottom: 0;
}

/* Side by side layout for Transportation */
.info-pane#transportation.active {
  display: flex;
  gap: 30px;
}

.info-pane#transportation .info-subsection {
  flex: 1;
}

/* Grid layout for Youth Activities */
.info-grid {
  display: flex;
  gap: 30px;
}

.info-grid .info-subsection {
  flex: 1;
  margin-bottom: 0;
}

/* Header text styling for info sections */
.info-text p.header-text {
  color: var(--primary-color) !important;
  font-size: 1.3em;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
}

/* Time styling for info sections */
.info-text .time {
  color: var(--secondary-color) !important;
  font-weight: bold;
  font-size: 1.3em;
  margin-bottom: 10px;
  text-align: center;
}

/* Schedule item info text sizing */
.schedule-item .info-text p {
  font-size: 1.1em;
}

/* Mobile responsive for side by side */
@media (max-width: 768px) {
  .info-pane#band-choir {
    flex-direction: column;
    gap: 20px;
  }
  
  .info-pane#band-choir .info-subsection {
    margin-bottom: 20px;
  }
  
  .info-pane#band-choir .info-subsection:last-child {
    margin-bottom: 0;
  }

  .info-pane#transportation {
    flex-direction: column;
    gap: 20px;
  }
  
  .info-pane#transportation .info-subsection {
    margin-bottom: 20px;
  }
  
  .info-pane#transportation .info-subsection:last-child {
    margin-bottom: 0;
  }
  
  /* Justify text alignment for Diabetic Snack tab on mobile */
  .info-pane#diabetic .info-text {
    text-align: justify;
  }
  
  /* Justify text alignment for Band section only on mobile */
  .info-pane#band-choir .info-subsection:first-child .info-text {
    text-align: justify;
  }
  
  /* Keep Youth Choir Practice text centered on mobile */
  .info-pane#band-choir .info-subsection:last-child .info-text {
    text-align: center;
  }
  
  /* Justify text alignment for Transportation / RVs tab on mobile */
  .info-pane#transportation .info-text {
    text-align: justify;
  }
  
  /* Center contact info in Transportation tab on mobile */
  .info-pane#transportation .contact-info {
    text-align: center;
  }
  
  /* Center the intro text in Transportation tab on mobile */
  .info-pane#transportation .info-text p:first-child {
    text-align: center;
  }
  
  /* Hide desktop line break on mobile */
  .desktop-break {
    display: none;
  }
}

/* Desktop-specific styles for Transportation tab */
@media (min-width: 769px) {
  /* Center the intro text in Transportation section on desktop */
  .info-pane#transportation .info-subsection:first-child .info-text p:first-child {
    text-align: center;
  }
  
  /* Show desktop line break on desktop */
  .desktop-break {
    display: inline;
  }
}

.event-header p {
  margin: 0;
  font-size: 1.2em;
  opacity: 0.9;
}

/* High definition screens */
@media (min-width: 1440px) {
  .main-content {
    max-width: 1400px;
  }
  
  body {
    font-size: 18px;
  }
}

/* Tab responsive styles */
@media (max-width: 768px) {
  .tab-nav {
    flex-direction: column;
  }

  .tab-nav button {
    min-width: auto;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-left: 45px;
    text-align: center;
  }
  
  .tab-nav button i {
    position: absolute;
    left: 15px;
    font-size: 1.2em;
  }

  .schedule-grid {
    grid-template-columns: 1fr;
  }

  .event-header h1 {
    font-size: 2em;
  }

  .event-header h1.large-title {
    font-size: 1.6em;
    line-height: 1.6;
    text-align: center;
  }

  /* Tighter line spacing for General Meeting title on mobile */
  .event-header h1.general-meeting-title {
    line-height: 1.2;
  }

  /* Ensure both lines fit properly on mobile */
  .event-header h1.general-meeting-title .main-title {
    font-size: 0.9em;
    white-space: nowrap;
  }

  .event-header h1.general-meeting-title .sub-title {
    font-size: 0.75em;
    white-space: nowrap;
  }

  .info-nav {
    flex-direction: column;
  }

  .info-button {
    min-width: auto;
    flex: none;
    font-size: 0.8em;
    padding: 12px 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .info-button i {
    position: absolute;
    left: 15px;
    font-size: 1.2em;
  }
  
  /* Show mobile break on mobile, hide desktop break */
  .mobile-break {
    display: inline;
  }
  
  .desktop-break {
    display: none;
  }
  
  /* Mobile Youth Activities section adjustments */
  .info-grid {
    flex-direction: column;
    gap: 15px;
  }
  
  .info-grid .info-subsection {
    margin-bottom: 15px;
  }
  
  .info-grid .info-subsection h3 {
    font-size: 1.1em;
    margin-bottom: 10px;
  }
  
  .info-grid .info-text p {
    font-size: 0.9em;
    margin-bottom: 8px;
  }
  
  .info-grid .time {
    font-size: 1.0em !important;
  }
  
  /* Improve Diabetic Snack text layout on mobile */
  .info-pane#diabetic .info-text p {
    line-height: 1.4;
    font-size: 0.9em;
    margin-bottom: 12px;
    word-spacing: -0.5px;
  }
  
  /* Prevent breaking between "allergies." and "Therefore," on mobile */
  .info-pane#diabetic .info-text p:nth-child(2) {
    font-size: 0.85em;
  }

}



/* Default center alignment for Diabetic Snack section */
.info-pane#diabetic .info-text p {
  text-align: center;
}



/* Mobile-specific styles */
@media (max-width: 768px) {
  /* Left align all text in Band and Singers sections by default */
  .info-pane#band-choir .info-subsection .info-text {
    text-align: left;
  }
  
  /* Left align all paragraph text in Band and Singers sections */
  .info-pane#band-choir .info-subsection .info-text p {
    text-align: left;
  }
  
  /* Center only the submit buttons */
  .info-pane#band-choir .info-subsection .info-text .form-submit-btn {
    display: block;
    margin: 15px auto 0 auto;
    text-align: center;
  }
  
  /* Center the planning text on mobile */
  .info-pane#band-choir .info-subsection .info-text p:last-of-type {
    text-align: center !important;
  }
  
  /* Left justify housing text paragraphs on mobile */
  .info-pane#housing .info-text .housing-text-p1,
  .info-pane#housing .info-text .housing-text-p2 {
    text-align: left !important;
  }
  
  /* Show mobile-only paragraph on mobile */
  .mobile-only {
    display: block;
  }
  
  /* Reduce button margin on mobile */
  .info-pane#band-choir .info-subsection .info-text .form-submit-btn {
    margin: 1px auto 0 auto;
  }
}

/* Desktop styles - hide mobile break, show desktop break */
@media (min-width: 769px) {
  .mobile-break {
    display: none;
  }
  
  .desktop-break {
    display: inline;
  }
  
  /* Desktop housing text formatting - center first paragraph */
  .info-pane#housing .info-text .housing-text-p1 {
    text-align: center !important;
  }
  
  /* Hide mobile-only paragraph on desktop */
  .mobile-only {
    display: none;
  }
  
  /* Center TRANSPORTATION tab text on desktop */
  .info-button[onclick="openInfoTab(event, 'transportation')"] {
    text-align: center;
    position: relative;
  }
  
  .info-button[onclick="openInfoTab(event, 'transportation')"] i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
  }
  
  /* Single row layout for Saturday, Sunday and Monday tabs on desktop */
  #saturday .schedule-grid,
  #sunday .schedule-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
  }
  
  #monday .schedule-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }
  
  #saturday .schedule-item,
  #sunday .schedule-item,
  #monday .schedule-item {
    min-width: 0;
    padding: 18px 8px;
  }
  
  #saturday .schedule-item h3,
  #sunday .schedule-item h3,
  #monday .schedule-item h3 {
    font-size: 1.1em;
    margin-bottom: 10px;
    line-height: 1.2;
  }
  
  #saturday .schedule-item .time,
  #sunday .schedule-item .time,
  #monday .schedule-item .time {
    font-size: 1.0em;
    font-weight: 500;
  }
  
  /* Adjust font size for Band Room location text on Saturday and Sunday */
  #saturday .schedule-item .info-text p,
  #sunday .schedule-item .info-text p {
    font-size: 0.85em;
    margin: 2px 0;
    line-height: 1.1;
  }
  
  /* Reduce tab content padding on desktop */
  .tab-content {
    padding: 15px;
  }
}

/* Announcement Overlay Styles */
.announcement-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.announcement-overlay.show {
  opacity: 1;
  visibility: visible;
}

.announcement-content {
  background-color: var(--white);
  border-radius: 12px;
  padding: 40px 30px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 3px solid var(--accent-color);
}

.close-announcement {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-color);
  padding: 5px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-announcement:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.announcement-text h2 {
  color: var(--primary-color);
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 700;
  font-size: 1.8em;
  margin: 0 0 10px 0;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.announcement-text h3 {
  color: var(--secondary-color);
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  font-size: 1.3em;
  margin: 0 0 30px 0;
  line-height: 1.3;
}

.announcement-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 6px;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  font-size: 1.1em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  border: 2px solid var(--primary-color);
}

.announcement-btn:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Prevent scrolling when overlay is active */
body.overlay-active {
  overflow: hidden;
}

/* Mobile responsive styles for announcement */
@media (max-width: 768px) {
  .announcement-content {
    padding: 30px 20px;
    max-width: 350px;
    width: 85%;
  }
  
  .announcement-text h2 {
    font-size: 1.5em;
  }
  
  .announcement-text h3 {
    font-size: 1.1em;
    margin-bottom: 25px;
  }
  
  .announcement-btn {
    padding: 10px 20px;
    font-size: 1em;
  }
  
  .close-announcement {
    top: 10px;
    right: 10px;
  }
}

/* Form submit buttons - matching site's button style */
.form-submit-btn {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 12px 25px;
  font-size: 1em;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(26, 61, 124, 0.2);
  display: inline-block;
  text-decoration: none;
  margin-top: 2px;
  font-family: 'Source Sans Pro', sans-serif;
}

/* Reduce margin on planning text above buttons */
.info-pane#band-choir .info-subsection .info-text p:last-of-type {
  margin-bottom: 2px;
  font-style: italic;
}

.form-submit-btn:hover {
  background-color: #0d2c5c;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(26, 61, 124, 0.3);
  color: var(--white);
  text-decoration: none;
}