/* Custom styles for Redeemer URC website */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap');

body {
  font-family: 'Montserrat', 'Roboto', 'Arial', sans-serif;
  font-weight: 400; /* Default for body text */
  overflow-x: hidden; /* Prevent horizontal scrolling */
  margin: 0; /* Remove default body margin */
}

.welcome {
  text-align: center;
  font-family: 'Canela', 'Montserrat', 'Roboto', 'Arial', sans-serif;
  font-size: 1.8rem; /* Compact size */
  font-weight: 700; /* Bold for masculinity */
  color: #1a1a1a; /* Darker for strength */
  letter-spacing: 0.05rem; /* Slight spacing for clarity */
}

.linkcol div {
  text-align: center;
  font-family: 'Montserrat', 'Roboto', 'Arial', sans-serif;
  font-weight: 600; /* Bolder for emphasis */
  color: #666; /* Slightly darker gray */
  font-size: 0.75rem; /* Compact */
  padding: 0.5rem;
}

.linkcol div:first-child {
  text-align: center;
  font-weight: 700; /* Bolder */
  color: #666;
  font-size: 0.85rem; /* Compact */
  padding: 0.5rem;
}

.linkcol a {
  color: #1e88e5; /* Stronger blue */
  text-decoration: none;
}

.linkcol a:hover {
  color: #0d47a1; /* Darker blue for hover */
}

a {
  color: #1e88e5;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #0d47a1;
  text-decoration: underline;
}

td {
  padding: 0.5rem;
}

td:first-of-type {
  text-align: center;
  font-weight: 700;
}

hr {
  height: 6px;
  background: url('img/hr-11.png') repeat-x 0 0;
  border: 0;
  color: #000;
  opacity: 1;
  margin: 0;
}

.navbar {
  background: transparent;
  z-index: 2000;
  padding: 0.5rem 1rem;
  position: sticky;
  top: 0;
  transition: background-color 0.3s ease-in-out;
}

.navbar-nav .nav-link {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  font-family: 'Montserrat', 'Roboto', 'Arial', sans-serif;
  font-size: 0.85rem; /* Compact */
  font-weight: 700; /* Bolder */
  padding: 0.5rem 0.75rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.navbar .text-white {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  font-size: 0.9rem; /* Compact */
  font-weight: 600; /* Bolder */
}

.navbar .text-white:hover {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.navbar-toggler {
  padding: 0.2rem 0.5rem;
}

.navbar-toggler-icon {
  filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(180deg) brightness(100%) contrast(100%);
}

.dropdown-menu {
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  pointer-events: none;
  background-color: #cadfed;
  border: 1px solid #bbdefb;
  overflow: hidden;
  display: block;
}

.dropdown-menu.show {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-item {
  color: #0d47a1 !important; /* Darker blue for masculinity */
  font-family: 'Montserrat', 'Roboto', 'Arial', sans-serif;
  font-weight: 700;
  padding: 0.5rem 1rem !important;
}

.dropdown-item:hover {
  background-color: #90caf9 !important;
  color: #1a1a1a !important; /* Darker on hover */
}

.church-image {
  width: 100%;
  height: 90vh;
  max-height: 90vh;
  background-image: url('../img/church.jpg');
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-color: #f0f0f0;
  transition: transform 0.5s ease;
  z-index: 0;
  position: absolute;
  top: 0;
  left: 0;
}

.church-image:hover {
  transform: scale(1.02);
}

.church-image-circle {
  width: 30%;
  aspect-ratio: 1/1;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

/* Phone number hover styles */
.phone-link {
  position: relative;
}

.phone-number {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem; /* Compact */
  font-weight: 600; /* Bolder */
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  z-index: 2100;
}

.phone-link:hover .phone-number {
  display: block;
}

/* Spacer to reserve space for church-image */
.church-image-spacer {
  height: 70vh;
  width: 100%;
  position: relative;
}

/* Ensure content below church-image stays in place */
.bg-light {
  position: relative;
  z-index: 2;
  margin-top: 0;
}

h2, h3, h4 {
  font-family: 'Canela', 'Montserrat', 'Roboto', 'Arial', sans-serif;
  color: #1a1a1a; /* Darker for strength */
  font-weight: 700; /* Bold for masculinity */
}

h2 {
  font-size: 2.2rem; /* Compact */
}

h3 {
  font-size: 1.8rem; /* Compact */
}

h4 {
  font-size: 1.3rem; /* Compact */
}

.info-box h4 {
  color: #fff; /* White for info-box titles */
}

a.text-primary:hover {
  color: #0d47a1 !important;
}

/* Footer styles */
footer {
  background-color: #1a1a1a; /* Darker for masculinity */
  color: #fff;
  padding: 1.5rem 0;
  text-align: center;
  position: relative;
  z-index: 2;
  font-family: 'Montserrat', 'Roboto', 'Arial', sans-serif;
  font-weight: 600; /* Bolder */
  font-size: 0.85rem; /* Compact */
}

footer a {
  color: #90caf9;
  text-decoration: none;
}

footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Fade-in animation for sections */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

#container > div, #container > nav {
  animation: fadeInUp 0.6s ease forwards;
}

/* Logo styling in navbar */
.navbar-brand .logo {
  height: 60px;
  width: auto;
  margin-right: 15px;
  transition: height 0.3s ease-in-out;
}

/* Ensure navbar items align properly */
.navbar-brand {
  padding: 0;
  display: flex;
  align-items: center;
}

/* Ensure columns are flex containers for equal height */
.col-md-3 {
  display: flex;
}

/* Info box styling for four-column section */
.info-box {
  background: linear-gradient(to bottom, #5a5a5a, #3a3a3a); /* Lighter gradient */
  padding: 40px 20px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  position: relative;
  flex: 1;
  overflow: visible;
  border: 1px solid #222; /* Slightly lighter border */
}

/* Styling for p tags inside info-box */
.info-box p {
  font-family: 'Montserrat', 'Roboto', 'Arial', sans-serif;
  font-size: 14px; /* Reverted to original */
  font-weight: 400; /* Reverted to original (implied) */
  color: #fff;
  line-height: 1.2;
  padding-bottom: 30px;
}

/* Position links in first three info-box columns */
.col-md-3:nth-child(-n+3) .info-box .info-link {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  width: 80%;
}

/* Icon circle styling */
.info-box .icon-circle {
  width: 70px;
  height: 70px;
  background-color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.info-box .icon-circle i {
  color: #fff;
  font-size: 1.8rem;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 576px) {
  .navbar-brand .logo {
    height: 45px;
  }
  .navbar {
    background-color: #000 !important;
  }
  .navbar-collapse {
    text-align: center; /* Center the menu items */
  }
  .navbar-nav {
    align-items: center; /* Center the nav items vertically */
  }
  .navbar-nav .nav-item {
    width: 100%; /* Ensure full width for centering */
  }
  .navbar-nav .nav-link {
    font-size: 0.8rem; /* Compact */
    padding: 0.5rem 0; /* Adjust padding for better spacing */
  }
  .church-image-circle {
    width: 80%;
  }
  .info-box .icon-circle {
    width: 60px;
    height: 60px;
    top: -30px;
  }
  .info-box .icon-circle i {
    font-size: 1.5rem;
  }
  .info-box {
    padding: 30px 15px 15px;
    flex: 1;
    overflow: visible;
    margin-bottom: 20px;
  }
  .welcome {
    font-size: 1.4rem; /* Compact for mobile */
  }
  .col-md-3:nth-child(-n+3) .info-box .info-link {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    width: 80%;
  }
  h2 {
    font-size: 1.8rem; /* Compact */
  }
  h3 {
    font-size: 1.5rem; /* Compact */
  }
  h4 {
    font-size: 1.1rem; /* Compact */
  }
  .info-box p {
    font-size: 13px; /* Slightly smaller for mobile, close to original */
  }
  footer {
    font-size: 0.8rem; /* Compact */
  }
}

/* Desktop hover for dropdown (applies above mobile breakpoint) */
@media (min-width: 577px) {
  .dropdown:hover .dropdown-menu,
  .dropdown .dropdown-menu:hover {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* Resources Dropdown Styling */
.resources-dropdown {
  background-color: #cadfed !important;
  border: 1px solid #bbdefb !important;
}

.resources-dropdown .dropdown-item {
  color: #0d47a1 !important;
  font-family: 'Montserrat', 'Roboto', 'Arial', sans-serif;
  font-weight: 700;
  padding: 0.5rem 1rem !important;
}

.resources-dropdown .dropdown-item:hover {
  background-color: #90caf9 !important;
  color: #1a1a1a !important;
}

/* Ensure all social icons have consistent spacing */
.navbar .text-white.mx-1 {
  margin: 0 0.25rem !important;
}