/* General Body & Typography */
body {
  font-family: "Open Sans", sans-serif;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll on some mobile devices */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Great Vibes", cursive; /* Elegant script font for headings */
  color: #a36a7e; /* Dusty Rose/Deep Pink */
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 4rem; /* Adjust for responsiveness */
  font-weight: bold;
}

h2 {
  font-size: 3rem;
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 10px;
}

h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #d4af37; /* Light Gold/Accent */
  border-radius: 5px;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: url("../images/hero-bg.jpg") no-repeat center center/cover; /* Initial background, replaced by JS */
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3); /* Dark overlay */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 5rem; /* Larger for desktop */
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.hero-content .tagline {
  font-family: "Open Sans", sans-serif;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

.date-countdown {
  font-family: "Open Sans", sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 5px;
  display: inline-block;
  margin-bottom: 2rem;
}

.scroll-down-btn {
  background-color: #d4af37; /* Light Gold */
  border-color: #d4af37;
  color: #fff;
  padding: 12px 30px;
  border-radius: 50px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.scroll-down-btn:hover {
  background-color: #b8972c; /* Darker Gold on hover */
  border-color: #b8972c;
  transform: translateY(-3px);
}

/* Navigation Bar */
.navbar {
  transition: background-color 0.3s ease, padding 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  font-family: "Great Vibes", cursive;
  font-size: 2.5rem;
  color: #a36a7e !important;
}

.nav-link {
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  color: #555 !important;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #d4af37 !important;
}

/* Sections General */
section {
  padding: 80px 0;
  overflow: hidden;
}

/* Image Placeholder Styling */
.placeholder {
  background-color: #f0f0f0; /* Light grey background for placeholder */
  display: block; /* Ensure it takes up space */
}

/* Our Story Section */
#our-story img {
  max-width: 300px;
  height: auto;
  object-fit: cover;
  border: 5px solid #d4af37;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  /* Set a min-height for placeholders in this section */
  min-height: 250px;
}

/* Gallery Section */
.gallery-thumbnail {
  width: 100%;
  height: 250px; /* Fixed height for consistent look, also acts as placeholder height */
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Apply placeholder styles to gallery thumbnails directly */
  background-color: #f0f0f0; /* Default background for placeholder */
  display: block; /* Ensures it takes up space */
}

.gallery-thumbnail:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Lightbox specific styling (adjust as needed for Lightbox2) */
#lightboxOverlay {
  background-color: rgba(0, 0, 0, 0.8) !important;
}
#lightboxOuter {
  background-color: #fff !important;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}
#lightbox-nav a {
  color: #d4af37 !important; /* Arrows */
}
#lightboxCaption {
  color: #333 !important;
  font-family: "Open Sans", sans-serif;
}

/* Wedding Details Section */
.detail-card {
  border: none;
  border-radius: 10px;
  padding: 30px;
  background-color: #fff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.detail-icon {
  font-size: 3.5rem;
  color: #a36a7e;
  margin-bottom: 20px;
}

.card-title {
  font-family: "Great Vibes", cursive;
  font-size: 2.2rem;
  color: #a36a7e;
}

.card-text {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.card-text i {
  color: #d4af37; /* Icon color */
  margin-right: 8px;
}

.btn-outline-primary {
  color: #a36a7e;
  border-color: #a36a7e;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: #a36a7e;
  color: #fff;
}

/* RSVP Section */
.btn-success {
  background-color: #6b8e23; /* Olive Green, or a color that complements the theme */
  border-color: #6b8e23;
  transition: background-color 0.3s ease;
}

.btn-success:hover {
  background-color: #5a7c1e;
  border-color: #5a7c1e;
}

/* Contact Section */
.contact-item {
  padding: 20px;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-icon {
  font-size: 3rem;
  color: #a36a7e;
  margin-bottom: 15px;
}

/* New: Social Media Category Styling */
.social-category-heading {
  font-family: "Open Sans", sans-serif; /* Use a clean sans-serif font */
  font-size: 1.4rem;
  font-weight: 700; /* Bold */
  color: #555;
  margin-top: 15px;
  margin-bottom: 10px;
  text-align: center; /* Center these sub-headings */
}

/* Styling for individual social media items */
.social-media-item {
  display: flex; /* Use flexbox for icon and text alignment */
  align-items: center; /* Vertically align items */
  margin-bottom: 8px; /* Slightly less space between items now that they are grouped */
}

/* To align items within their column, if needed */
#brideSocialsContainer,
#groomSocialsContainer,
#weddingSocialsContainer {
  padding-left: 15px; /* Default Bootstrap padding */
  padding-right: 15px; /* Default Bootstrap padding */
}

/* On small screens, text will be centered, so align social items center */
@media (max-width: 767.98px) {
  #brideSocialsContainer,
  #groomSocialsContainer,
  #weddingSocialsContainer {
    text-align: center;
  }
  .social-media-item {
    justify-content: center; /* Center align individual social items on small screens */
  }
}

.social-media-item .social-icon-link {
  font-size: 1.3rem; /* Icon size slightly smaller for list */
  color: #a36a7e;
  margin-right: 8px; /* Space between icon and text */
  transition: color 0.3s ease;
  flex-shrink: 0; /* Prevent icon from shrinking */
}

.social-media-item .social-icon-link:hover {
  color: #d4af37;
}

.social-media-item .social-label {
  font-size: 1rem;
  color: #555;
  text-decoration: none; /* Remove underline from link text */
  transition: color 0.3s ease;
  overflow: hidden; /* Hide overflow text */
  white-space: nowrap; /* Prevent text wrap */
  text-overflow: ellipsis; /* Add ellipsis for long text */
}

.social-media-item .social-label:hover {
  color: #d4af37; /* Change color on hover */
}

/* Footer */
.footer {
  background-color: #333;
  color: #fff;
  padding: 30px 0;
  font-size: 0.9rem;
}

.footer i {
  margin-right: 5px;
}

.branding-footer a {
  color: #d4af37; /* Link color for branding footer */
  text-decoration: none;
  transition: color 0.3s ease;
}

.branding-footer a:hover {
  color: #b8972c;
  text-decoration: underline;
}

/* Responsive Adjustments (Media Queries) */
@media (max-width: 991.98px) {
  /* Medium devices and down */
  .hero-content h1 {
    font-size: 3.5rem;
  }
  .hero-content .tagline {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 2.5rem;
  }
  .navbar-brand {
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  /* Small devices and down */
  .hero-content h1 {
    font-size: 2.8rem;
  }
  .hero-content .tagline {
    font-size: 1.2rem;
  }
  .date-countdown {
    font-size: 1.2rem;
    padding: 8px 15px;
  }
  h2 {
    font-size: 2rem;
  }
  .gallery-thumbnail {
    height: 180px; /* Smaller height for small screens */
  }
  .detail-card {
    margin-bottom: 20px; /* Space between cards on mobile */
  }
  /* Adjusted alignment for social media section */
  .contact-item h3.text-center,
  .contact-item p.text-center {
    text-align: center !important;
  }
  #brideSocialsContainer,
  #groomSocialsContainer {
    margin-bottom: 20px; /* Add space between bride/groom sections on small screens */
  }
}

@media (max-width: 575.98px) {
  /* Extra small devices */
  h1 {
    font-size: 2.5rem;
  }
  .hero-content .tagline {
    font-size: 1rem;
  }
  .date-countdown {
    font-size: 1rem;
    padding: 5px 10px;
  }
  .scroll-down-btn {
    padding: 10px 25px;
    font-size: 0.9rem;
  }
  .gallery-thumbnail {
    height: 150px; /* Even smaller for very small screens */
  }
  #our-story img {
    min-height: 200px;
  }
}

/* New Combined Footer */
#main-footer {
  background-color: #333;
  color: #fff; /* Soft charcoal text */
}

#main-footer p {
  font-family: "Cormorant Garamond", serif; /* New elegant serif font */
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

#main-footer .footer-credit {
  margin-bottom: 0.5rem;
}

#main-footer .footer-cta {
  font-style: italic;
  font-family: "Cormorant Garamond", serif; /* New elegant serif font */
  font-size: 1.2rem;
  color: #fff; /* Lighter color for the CTA line */
}

#main-footer .happinest-link {
  color: #fff; /* Soft rose gold/muted pink for links */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

#main-footer .happinest-link:hover {
  color: #fff; /* Muted brown on hover */
  text-decoration: underline;
}
