/* Shared CSS */

/* General Body Styles */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f4f4f4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
  overflow: hidden;
}

/* Base styles for anchors and buttons */
a {
  text-decoration: none;
  color: inherit;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none; /* Ensure no underline for buttons */
}

.btn-primary {
  background-color: #FF4500; /* Main color */
  color: #fff;
  border: 2px solid #FF4500;
  box-shadow: 0 4px 10px rgba(255, 69, 0, 0.4);
}

.btn-primary:hover {
  background-color: #E63900;
  border-color: #E63900;
  box-shadow: 0 6px 15px rgba(255, 69, 0, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: #1E90FF; /* Auxiliary color */
  color: #fff;
  border: 2px solid #1E90FF;
  box-shadow: 0 4px 10px rgba(30, 144, 255, 0.4);
}

.btn-secondary:hover {
  background-color: #1A7AD9;
  border-color: #1A7AD9;
  box-shadow: 0 6px 15px rgba(30, 144, 255, 0.6);
  transform: translateY(-2px);
}

.btn-tertiary {
  background-color: #4CAF50; /* A vibrant green for download */
  color: #fff;
  border: 2px solid #4CAF50;
  box-shadow: 0 4px 10px rgba(76, 175, 80, 0.4);
}

.btn-tertiary:hover {
  background-color: #45A049;
  border-color: #45A049;
  box-shadow: 0 6px 15px rgba(76, 175, 80, 0.6);
  transform: translateY(-2px);
}

/* Site Header (Desktop First) */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column; /* Stacks header-top and main-nav vertically */
  min-height: 60px; /* Minimum height to ensure content fits */
}

/* Header Top Area */
.header-top {
  background-color: #0A4D8C; /* Darker blue, contrasting with main-nav */
  width: 100%;
  padding: 10px 0; /* Vertical padding */
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px; /* Horizontal padding for desktop */
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  display: block; /* Ensure logo is visible */
}

.desktop-nav-buttons {
  display: flex; /* Visible on desktop */
  gap: 10px;
}

/* Main Navigation Area */
.main-nav {
  background-color: #FF4500; /* Main color, contrasting with header-top */
  width: 100%;
  display: flex; /* Visible on desktop */
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex; /* Desktop: horizontal */
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 10px 30px; /* Horizontal padding for desktop */
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.nav-link {
  color: #fff;
  padding: 10px 15px;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 5px;
  white-space: nowrap; /* Prevent menu items from breaking */
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Hamburger Menu (Hidden on Desktop) */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  cursor: pointer;
  z-index: 1002; /* Above mobile overlay */
  position: relative;
  padding: 5px; /* Add some padding for easier clicking */
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Mobile Button Area (Hidden on Desktop) */
.mobile-button-area {
  display: none; /* Hidden on desktop */
  width: 100%;
  background-color: #0A4D8C; /* Same as header-top for consistency */
  padding: 10px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  z-index: 999; /* Below mobile menu overlay and hamburger */
}

.mobile-button-area .button-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  flex-wrap: wrap; /* Allow buttons to wrap */
}

/* Mobile Menu Overlay (Hidden on Desktop) */
.mobile-menu-overlay {
  display: none; /* Hidden on desktop */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000; /* Below mobile menu, above mobile buttons */
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* Site Footer */
.site-footer {
  background-color: #222;
  color: #f4f4f4;
  padding: 40px 0 20px;
  font-size: 14px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0 30px; /* Horizontal padding for desktop */
}

.footer-col {
  flex: 1 1 220px; /* Allows columns to grow/shrink, min-width 220px */
  margin-bottom: 30px;
}

.footer-col h3 {
  color: #FF4500; /* Main color for headings */
  font-size: 18px;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 5px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: #1E90FF; /* Auxiliary color for underline */
}

.footer-col p {
  margin-bottom: 10px;
}

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

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #ccc;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: #FF4500; /* Hover effect with main color */
}

.footer-branding p {
  font-size: 15px;
  color: #aaa;
}

.footer-contact a {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  margin-top: 20px;
  text-align: center;
  color: #aaa;
}

/* Responsive Styles (Mobile) */
@media (max-width: 768px) {
  /* Header Top Area */
  .header-top {
    padding: 10px 0;
  }

  .header-container {
    width: 100%; /* Occupy full width */
    max-width: none; /* Remove max-width limit */
    padding: 0 15px; /* Smaller horizontal padding for mobile */
    justify-content: space-between;
    flex-wrap: nowrap; /* Prevent wrapping */
  }

  .logo {
    font-size: 24px;
    flex-grow: 1; /* Allow logo to take available space */
    text-align: center; /* Center the logo */
    order: 2; /* Position logo in the middle */
  }

  .desktop-nav-buttons {
    display: none; /* Hide desktop buttons on mobile */
  }

  /* Hamburger Menu (Visible on Mobile) */
  .hamburger-menu {
    display: flex; /* Show hamburger on mobile */
    order: 1; /* Position hamburger on the left */
  }

  .hamburger-menu.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
  }

  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-menu.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
  }

  /* Main Navigation Area (Mobile) */
  .main-nav {
    display: none; /* Hidden by default on mobile */
    position: fixed;
    top: 0;
    left: 0;
    width: 80%; /* Menu takes 80% of screen width */
    height: 100vh; /* Full viewport height */
    background-color: #FF4500; /* Main color */
    flex-direction: column; /* Vertical layout */
    transform: translateX(-100%); /* Slide out from left */
    transition: transform 0.3s ease;
    z-index: 1001; /* Above overlay */
    overflow-y: auto; /* Enable scrolling for long menus */
    padding-top: 60px; /* Space for top fixed header */
  }

  .main-nav.active {
    display: flex; /* Show when active */
    transform: translateX(0); /* Slide in */
  }

  .nav-container {
    width: 100%; /* Occupy full width */
    max-width: none; /* Remove max-width limit */
    flex-direction: column; /* Vertical layout */
    padding: 20px 15px; /* Smaller horizontal padding for mobile */
    align-items: flex-start; /* Align menu items to the left */
  }

  .nav-link {
    width: 100%; /* Full width for each menu item */
    padding: 15px 0;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  /* Mobile Button Area (Visible on Mobile) */
  .mobile-button-area {
    display: block; /* Show on mobile */
  }

  .mobile-button-area .button-container {
    width: 100%; /* Occupy full width */
    max-width: none; /* Remove max-width limit */
    padding: 0 15px; /* Smaller horizontal padding */
    justify-content: space-around; /* Distribute buttons */
  }

  .mobile-button-area .btn {
    flex: 1 1 auto; /* Allow buttons to grow/shrink */
    max-width: 120px; /* Limit button width */
    padding: 8px 10px; /* Smaller padding for mobile buttons */
    font-size: 14px;
    border-radius: 20px;
  }

  /* Footer Responsive */
  .footer-container {
    padding: 0 15px; /* Smaller horizontal padding for mobile */
  }

  .footer-col {
    flex: 1 1 100%; /* Stack columns vertically on mobile */
    text-align: center;
  }

  .footer-col h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-col ul {
    text-align: center;
  }

  .footer-contact {
    text-align: center;
  }
}
