/* Mobile-First CSS for MoonGiant Website */

/* CSS Variables for consistent theming */
:root {
  --primary-bg: #0a0a0a;
  --secondary-bg: #1a1a1a;
  --accent-bg: #2a2a2a;
  --primary-text: #ffffff;
  --secondary-text: #cccccc;
  --accent-text: #ffd700;
  --moon-glow: #e6e6fa;
  --border-color: #333333;
  --hover-bg: #333333;
  --transition: all 0.3s ease;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--primary-bg);
  color: var(--primary-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-text);
}

h1 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.5rem;
  color: var(--accent-text);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  color: var(--secondary-text);
}

a {
  color: var(--accent-text);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--moon-glow);
  text-decoration: underline;
}

/* Container and layout */
.container {
  max-width: 100%;
  padding: 0 1rem;
  margin: 0 auto;
}

/* Header and Navigation */
.navbar {
  background: var(--secondary-bg) !important;
  border-bottom: 1px solid var(--border-color);
  padding: 0.5rem 0;
}

.navbar-brand {
  color: var(--accent-text) !important;
  font-size: 1.5rem;
  font-weight: bold;
}

.navbar-nav .nav-link {
  color: var(--secondary-text) !important;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover {
  color: var(--accent-text) !important;
  background: var(--hover-bg);
  border-radius: 4px;
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Main content area */
.main-content {
  min-height: calc(100vh - 120px);
  padding: 1rem 0;
}

/* Moon phase display */
.moon-display {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--secondary-bg);
  border-radius: 8px;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

.moon-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--moon-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: 0 0 20px rgba(230, 230, 250, 0.3);
  transition: var(--transition);
}

.moon-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(230, 230, 250, 0.5);
}

.moon-phase-name {
  font-size: 1.5rem;
  color: var(--accent-text);
  margin-bottom: 0.5rem;
}

.moon-description {
  color: var(--secondary-text);
  max-width: 600px;
  margin: 0 auto;
}

/* Calendar styles */
.calendar-container {
  background: var(--secondary-bg);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid var(--border-color);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.calendar-nav {
  background: var(--accent-bg);
  border: none;
  color: var(--primary-text);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.calendar-nav:hover {
  background: var(--hover-bg);
  color: var(--accent-text);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.calendar-day {
  background: var(--accent-bg);
  padding: 0.75rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  min-height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.calendar-day:hover {
  background: var(--hover-bg);
  color: var(--accent-text);
}

.calendar-day.today {
  background: var(--accent-text);
  color: var(--primary-bg);
  font-weight: bold;
}

.calendar-day-header {
  background: var(--secondary-bg);
  font-weight: bold;
  color: var(--accent-text);
  padding: 0.5rem;
}

/* Cards and content blocks */
.content-card {
  background: var(--secondary-bg);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.content-card:hover {
  border-color: var(--accent-text);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.1);
}

/* Buttons */
.btn-primary {
  background: var(--accent-text);
  border: none;
  color: var(--primary-bg);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--moon-glow);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
  background: var(--accent-bg);
  border: 1px solid var(--border-color);
  color: var(--primary-text);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  transition: var(--transition);
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--hover-bg);
  border-color: var(--accent-text);
}

/* Footer */
.footer {
  background: var(--secondary-bg);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-content {
  text-align: center;
  color: var(--secondary-text);
}

.footer-links {
  margin-bottom: 1rem;
}

.footer-links a {
  margin: 0 1rem;
  color: var(--secondary-text);
}

.footer-links a:hover {
  color: var(--accent-text);
}

/* Social share buttons */
.share-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.share-btn {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.share-btn.facebook {
  background: #1877f2;
  color: white;
}

.share-btn.twitter {
  background: #1da1f2;
  color: white;
}

.share-btn.whatsapp {
  background: #25d366;
  color: white;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Responsive design - Tablet */
@media (min-width: 768px) {
  .container {
    max-width: 750px;
    padding: 0 2rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  .moon-icon {
    width: 150px;
    height: 150px;
    font-size: 4rem;
  }
  
  .calendar-day {
    min-height: 80px;
    padding: 1rem 0.75rem;
  }
  
  .content-card {
    padding: 2rem;
  }
}

/* Responsive design - Desktop */
@media (min-width: 992px) {
  .container {
    max-width: 970px;
  }
  
  h1 {
    font-size: 3rem;
  }
  
  .moon-icon {
    width: 180px;
    height: 180px;
    font-size: 5rem;
  }
  
  .calendar-day {
    min-height: 100px;
    padding: 1.25rem 1rem;
  }
  
  .main-content {
    padding: 2rem 0;
  }
}

/* Responsive design - Large Desktop */
@media (min-width: 1200px) {
  .container {
    max-width: 1170px;
  }
}

/* Loading animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for keyboard navigation */
button:focus,
a:focus,
.calendar-day:focus {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  body {
    background: white;
    color: black;
  }
  
  .navbar,
  .footer,
  .share-buttons {
    display: none;
  }
}


/* Moon Data Cards */
.moon-data-cards {
  margin-top: 2rem;
}

.moon-data-card {
  background: var(--secondary-bg);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  height: 100%;
  position: relative;
}

.moon-data-card:hover {
  border-color: var(--accent-text);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.1);
  transform: translateY(-2px);
}

.moon-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
  color: white;
  font-weight: bold;
}

.moon-card-title {
  color: var(--accent-text);
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.moon-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.moon-card-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
}

.moon-card-label {
  color: var(--secondary-text);
  font-size: 0.9rem;
  font-weight: 500;
}

.moon-card-value {
  color: #ff6b35;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: right;
}

/* Responsive adjustments for moon data cards */
@media (max-width: 767px) {
  .moon-data-cards .row {
    gap: 1rem;
  }
  
  .moon-data-card {
    margin-bottom: 1rem;
  }
  
  .moon-card-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .moon-card-value {
    text-align: left;
  }
}








/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
  /* Typography adjustments for mobile */
  h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  h2 {
    font-size: 1.25rem;
  }
  
  h3 {
    font-size: 1.1rem;
  }
  
  /* Container padding for mobile */
  .container {
    padding: 0 0.75rem;
  }
  
  /* Content cards mobile optimization */
  .content-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  /* Calendar grid mobile optimization */
  .calendar-grid {
    font-size: 0.85rem;
  }
  
  .calendar-day {
    min-height: 50px;
    padding: 0.5rem 0.25rem;
  }
  
  .calendar-day-number {
    font-size: 0.9rem;
  }
  
  .moon-icon {
    font-size: 1rem;
  }
  
  .moon-percentage {
    font-size: 0.7rem;
  }
  
  /* Calendar header mobile */
  .calendar-header {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  .calendar-nav {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  /* Navigation mobile */
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
  }
  
  /* Moon details mobile */
  .moon-details {
    font-size: 0.9rem;
  }
  
  .moon-details-item {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
  }
  
  /* Selected date info mobile */
  .moon-icon-large {
    font-size: 3rem;
  }
  
  /* Footer mobile */
  .footer-links a {
    display: block;
    margin: 0.5rem 0;
  }
  
  /* Form elements mobile */
  .form-select,
  .form-control {
    font-size: 1rem; /* Prevents zoom on iOS */
  }
  
  /* Touch-friendly buttons */
  .btn {
    min-height: 44px;
    padding: 0.75rem 1rem;
  }
  
  /* Calendar settings mobile */
  .calendar-settings {
    flex-direction: column;
    gap: 1rem;
  }
  
  .calendar-settings .col-md-6 {
    width: 100%;
  }
}

@media (max-width: 480px) {
  /* Extra small mobile devices */
  .container {
    padding: 0 0.5rem;
  }
  
  .content-card {
    padding: 0.75rem;
  }
  
  .calendar-day {
    min-height: 45px;
    padding: 0.25rem;
  }
  
  .calendar-day-number {
    font-size: 0.8rem;
  }
  
  .moon-percentage {
    font-size: 0.65rem;
  }
  
  .moon-icon {
    font-size: 0.9rem;
  }
  
  h1 {
    font-size: 1.25rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem !important;
  }
  
  /* Stack calendar navigation vertically on very small screens */
  .calendar-header {
    gap: 0.25rem;
  }
  
  .calendar-nav {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
  .calendar-day {
    min-height: 40px;
  }
  
  .content-card {
    padding: 0.75rem;
  }
  
  h1 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .moon-icon,
  .calendar-day-number {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Dark mode support for devices that prefer it */
@media (prefers-color-scheme: dark) {
  /* Already using dark theme, but ensure compatibility */
  :root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #1a1a1a;
    --accent-bg: #2a2a2a;
  }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* Navigation Logo */
.navbar-brand {
    display: flex;
    align-items: center; /* Vertically center the logo */
    padding: 0; /* Override Bootstrap's default padding if needed */
}

.brand-logo {
    height: 70px; /* Default height for desktop */
    width: auto; /* Maintain aspect ratio */
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .brand-logo {
        height: 60px; /* Smaller logo on mobile */
    }
}






/* Core Styles */
:root {
  --navbar-height: 60px; /* Default height, will be updated by JS */
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  /* Use a smooth transition for transform */
  transition: transform 0.2s ease-out;
  will-change: transform; /* Hint to browser for smoother animations */
  background: #f8f9fa; /* IMPORTANT: Replace with your actual navbar color */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional subtle shadow */
  -webkit-backface-visibility: hidden; /* Helps prevent flickering on iOS */
  backface-visibility: hidden; /* Standard property */
}

/* Body Padding - Ensures content starts below the navbar */
body {
  padding-top: var(--navbar-height);
  margin: 0; /* Reset default body margin */
}

/* iPhone X / Newer models - Handle Safe Area Insets */
/* This positions the navbar below the notch/status bar and pushes content down */
@supports (padding-top: env(safe-area-inset-top)) {
  .navbar {
    top: env(safe-area-inset-top);
  }
  body {
    padding-top: calc(var(--navbar-height) + env(safe-area-inset-top));
  }
}

/* Class to hide the navbar */
.navbar.hidden {
  transform: translateY(-100%);
}

/* Ensure no conflicts with other frameworks that might apply transforms */
/* If you use a framework like Bootstrap, check if it has conflicting 'fixed-top' or similar classes.
   You might need to override them or ensure your custom class has higher specificity. */
   
   
/* Custom CSS for nested Bootstrap dropdowns (add this to your main stylesheet) */

/* Ensures nested dropdowns are hidden by default */
.dropdown-menu .dropdown-submenu .dropdown-menu {
    display: none;
    position: absolute;
    /* Positions the nested dropdown to the right of its parent */
    left: 100%; 
    top: 0;
    /* Optional: Fine-tune vertical alignment */
    margin-top: -1px; 
}

/* Shows the nested dropdown when its parent .dropdown-submenu is hovered */
.dropdown-menu .dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

/* Ensures the dropdown toggle (with arrow) aligns correctly */
.dropdown-submenu .dropdown-toggle::after {
    float: right;
    margin-left: .5em; /* Adjust spacing of the arrow */
    margin-top: .3em; /* Adjust vertical alignment of the arrow */
}

/* Optional: If you want specific behavior for 'dropstart' (opens left) */
.dropdown-menu .dropdown-submenu.dropstart > .dropdown-menu {
    left: auto;
    right: 100%;
}

/* Optional: If you want specific behavior for 'dropup' (opens above) */
.dropdown-menu .dropdown-submenu.dropup > .dropdown-menu {
    top: auto;
    bottom: 0;
}

/* Custom CSS for ALL Bootstrap dropdowns to show on hover */

/* Makes top-level dropdowns open on hover for larger screens */
@media (min-width: 992px) { /* Applies to desktop screens and larger (Bootstrap 'lg' breakpoint) */
    .navbar-nav .dropdown:hover > .dropdown-menu {
        display: block;
    }
}

/* --- Existing CSS for nested dropdowns (Zodiac Signs) --- */

/* Ensures nested dropdowns are hidden by default */
.dropdown-menu .dropdown-submenu .dropdown-menu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    margin-top: -1px;
}

/* Shows the nested dropdown when its parent .dropdown-submenu is hovered */
.dropdown-menu .dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

/* Ensures the dropdown toggle (with arrow) aligns correctly */
.dropdown-submenu .dropdown-toggle::after {
    float: right;
    margin-left: .5em;
    margin-top: .3em;
}

/* Optional: If you want specific behavior for 'dropstart' (opens left) */
.dropdown-menu .dropdown-submenu.dropstart > .dropdown-menu {
    left: auto;
    right: 100%;
}

/* Optional: If you want specific behavior for 'dropup' (opens above) */
.dropdown-menu .dropdown-submenu.dropup > .dropdown-menu {
    top: auto;
    bottom: 0;
}






/* Footer */
.footer {
    background: #1a1a1a; /* Dark background */
    color: #fff;        /* Default text color */
    padding: 2.5rem 1rem; /* Generous vertical padding */
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the entire footer content horizontally */
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the footer content */
    width: 100%; /* Ensure footer-content takes full width */
}

/* NEW: Styles for the simplified single line of footer links */
.footer-links-simple {
    width: 100%; /* Take full width */
    margin-bottom: 1.5rem; /* Space below links before copyright */
    padding-bottom: 1rem; /* Add padding below links */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtle separator above copyright */
}

/* Style the navigation list within footer-links-simple */
.footer-links-simple nav ul {
    list-style: none; /* Remove bullets */
    padding: 0;
    margin: 0;
    display: flex; /* Arrange links horizontally */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center; /* Center the links */
    gap: 15px 25px; /* Spacing between links (vertical and horizontal) */
}

.footer-links-simple nav ul li {
    margin-bottom: 0; /* No vertical margin needed for horizontal list items */
}

.footer-links-simple nav ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease, text-decoration 0.3s ease;
    line-height: 1.4;
}

.footer-links-simple nav ul li a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Copyright and Tagline Styles (remain largely the same) */
.copyright {
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    margin: 0.8rem 0 0.4rem 0; /* Adjusted spacing for copyright line */
}

.copyright a {
    color: #ccc;
    text-decoration: none;
}

.copyright a:hover {
    color: #fff;
    text-decoration: underline;
}

.tagline {
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    margin: 0.4rem 0 0 0;
    max-width: 800px;
    line-height: 1.5;
}

/* --- Responsive Adjustments for the simpler footer --- */

/* No specific tablet query needed as it's just one horizontal row that wraps */

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
    .footer-links-simple nav ul {
        gap: 10px 15px; /* Tighter spacing for links on mobile */
    }
    .copyright,
    .tagline {
        margin: 0.5rem 0 0.2rem 0; /* Adjust spacing for mobile */
    }
}


/* Style the site name in the copyright */
.copyright a .site-name {
    color: #ffff00; /* A common bright yellow hex code */
    /* You can use 'yellow' directly or a different hex code like #FFD700 (gold) */
}


/* Custom CSS for Mobile Navigation Optimization */
/* General styling for the body */

/* Navbar styling */
.navbar {
    background-color: #2c3e50; /* Darker background for contrast */
    padding: 0.75rem 1rem;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.navbar-brand .brand-logo {
    max-height: 40px; /* Adjust logo size */
    width: auto;
    border-radius: 5px;
}

.navbar-toggler {
    border: none;
    border-radius: 5px;
    padding: 0.5rem 0.75rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-item {
    margin-right: 15px; /* Spacing between desktop nav items */
}

.navbar-nav .nav-link {
    color: #ecf0f1; /* Light text for nav links */
    padding: 10px 15px;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: #34495e; /* Slightly lighter background on hover/active */
    color: #ffffff;
}

/* Dropdown menu styling */
.dropdown-menu {
    background-color: #34495e; /* Darker background for dropdown */
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    padding: 5px 0;
}

.dropdown-item {
    color: #ecf0f1; /* Light text for dropdown items */
    padding: 10px 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 5px; /* Rounded corners for dropdown items */
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #2c3e50; /* Even darker on hover/focus */
    color: #ffffff;
}

.dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Lighter divider */
    margin: 5px 0;
}

/* Mobile specific adjustments */
@media (max-width: 991.98px) { /* Applies to screens smaller than 992px (Bootstrap's lg breakpoint) */
    .navbar-nav {
        padding-top: 15px; /* Add some space at the top when collapsed */
    }

    .navbar-nav .nav-item {
        margin-right: 0; /* Remove horizontal margin */
        margin-bottom: 5px; /* Add vertical margin between items */
    }

    .navbar-nav .nav-link {
        text-align: left; /* Align links to the left */
        padding: 12px 20px; /* Increase padding for easier tapping */
        font-size: 1.1rem; /* Slightly larger font size */
    }

    .dropdown-menu {
        position: static !important; /* Allow dropdown to flow naturally */
        float: none !important;
        width: 100%; /* Take full width */
        margin-top: 0;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        box-shadow: none; /* Remove shadow to blend better */
        padding: 10px 0;
    }

    .dropdown-item {
        padding: 12px 30px; /* Increase padding for dropdown items */
        font-size: 1.05rem;
    }

    /* Ensure dropdown toggle looks good on mobile */
    .navbar-nav .dropdown-toggle::after {
        display: inline-block;
        margin-left: 0.255em;
        vertical-align: 0.255em;
        content: "";
        border-top: 0.3em solid;
        border-right: 0.3em solid transparent;
        border-bottom: 0;
        border-left: 0.3em solid transparent;
        float: right; /* Keep arrow to the right */
        margin-top: 0.5em; /* Adjust vertical alignment */
    }
}


/* Remove underline from all links on hover site-wide */
a:hover {
    text-decoration: none;
}


.newsletter-container {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.moon-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.newsletter-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 1rem;
}

.newsletter-subtitle {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.form-container {
    max-width: 500px;
    margin: 0 auto;
}

.email-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.email-input:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.subscribe-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000000;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.subscribe-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.4);
}

.features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.feature {
    text-align: center;
    padding: 1rem;
    color: #cccccc;
    font-size: 0.9rem;
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #FFD700;
}

@media (max-width: 768px) {
    .newsletter-container {
        padding: 2rem 1rem;
        margin: 1rem;
        border-radius: 15px;
    }
    
    .newsletter-title {
        font-size: 2rem;
    }
    
    .newsletter-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .email-input {
        padding: 0.9rem 1.2rem;
        font-size: 16px;
    }
    
    .subscribe-btn {
        width: 100%;
        padding: 1rem 2rem;
    }
    
    .features {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .newsletter-container {
        padding: 1.5rem 1rem;
    }
    
    .newsletter-title {
        font-size: 1.8rem;
    }
    
    .moon-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

