/* global */
@font-face {
  font-family: "Outfit";
  src: url("../@fonts/outfit/Outfit-VariableFont_wght.ttf");
  font-weight: 100 900; /* Define the range of weights available in the variable font */
  font-display: swap; /* Optimize font loading */
}

:root {
  --primary-color: #ff0037; /* A slightly darker, more saturated blue */
  --secondary-color: #495057; /* Darker gray */
  --accent-color: #ff335f; /* A more vibrant red */
  --text-color: #050606; /* Very dark gray, almost black */
  --light-bg: #f8f9fa; /* Keep light gray */
  --dark-bg: #212529; /* Same as text-color for consistency */
  --border-color: #ced4da; /* Slightly darker border */
  --font-family: "Outfit", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--light-bg);
}

h1,
h2:not(.NewslettweHeader),
h3,
h4,
h5,
h6 {
  color: var(--dark-bg);
  margin-bottom: 20px;
}

.page-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 50px 30px;
}

.page-section h2 {
  margin-top: 50px;
}
/*  */
/* header */
.main-header {
  display: flex;
  gap: 25px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  justify-content: space-between;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px; /* Max width for content */
  align-items: center;
}

.header-left,
.header-center,
.header-right {
  text-align: center; /* Default text alignment */
  display: flex;
  align-items: center;
}

.header-center {
  flex: 1; /* Distribute space equally */
}

.header-left {
  text-align: left;
}

.header-right {
  text-align: right;
}

.ad-space {
  border: 1px dashed var(--border-color);
  padding: 10px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--secondary-color);
}

.ad-space.header-center {
  max-height: 100px;
}

.burger-menu {
  width: fit-content;
  position: relative;
  cursor: pointer;
  padding: 5px;
  transition: transform 0.3s ease;
  font-size: 25px; /* Apply font size directly to the button */
  color: var(--dark-bg); /* Apply color directly to the button */
}

.burger-menu a {
  font-size: 18px;
}

.burger-menu:hover {
  transform: scale(1.1);
}

.menu-links {
  position: absolute;
  top: 40px; /* Adjusted for better positioning */
  right: 0;
  background-color: #fff;
  border: 1px solid var(--border-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  z-index: 1;
  min-width: 150px;
  border-radius: 5px;
  opacity: 0; /* Start hidden */
  visibility: hidden; /* Start hidden */
  transform: translateY(-10px); /* Start slightly above */
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.menu-links.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-links a {
  display: block;
  padding: 8px 15px;
  text-decoration: none;
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.menu-links a:hover {
  background-color: var(--primary-color);
  color: white;
}
/*  */
/* footer */
.main-footer {
  padding: 30px 20px;
  background-color: var(--dark-bg);
  color: white;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px; /* Max width for content */
  margin: 0 auto; /* Center the content */
}

.footer-left {
  text-align: left;
}

.footer-right {
  text-align: right;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
}

.logo {
  width: clamp(200px, 20vw, 400px);
}

.logo.footer_logo {
  filter: brightness(0) invert(1); /* Make logo white for dark background */
}

footer a {
  margin-left: 20px;
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--primary-color);
}

#scrollToTopBtn {
  display: none; /* Hidden by default */
  position: fixed; /* Fixed position */
  bottom: 30px; /* Place the button at the bottom */
  right: 30px; /* Place the button at the right */
  z-index: 99; /* Make sure it does not overlap */
  border: none; /* Remove borders */
  outline: none; /* Remove outline */
  background-color: var(--primary-color); /* Set a background color */
  color: white; /* Text color */
  cursor: pointer; /* Add a mouse pointer on hover */
  padding: 15px; /* Some padding */
  border-radius: 50%; /* Rounded corners */
  font-size: 18px; /* Increase font size */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.3s ease;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#scrollToTopBtn:hover {
  background-color: var(--accent-color); /* Darker background on hover */
  transform: translateY(-3px);
}
/*  */
/* header and footer (responsive) */

@media (max-width: 768px) {
  .header-left,
  .header-center,
  .header-right {
    flex: none; /* Remove flex grow */
  }

  .header-center {
    width: 100%;
  }

  .header-right {
    text-align: center; /* Center burger menu */
  }

  .menu-links {
    top: 50px; /* Adjust position for stacked header */
    transform: translateY(-10px); /* Center horizontally */
    right: 0; /* Reset right */
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-left,
  .footer-right {
    width: 100%;
    margin-bottom: 15px;
    text-align: center;
  }

  footer a {
    margin: 0 10px; /* Adjust link spacing */
  }

  .footer-bottom {
    margin-top: 10px;
  }
}
@media (max-width: 480px) {
  .main-header {
    padding: 10px 15px;
    flex-wrap: wrap;
  }

  .ad-space {
    min-height: 60px;
    font-size: 14px;
    order: 3;
  }

  #scrollToTopBtn {
    bottom: 20px;
    right: 20px;
    padding: 12px;
    font-size: 16px;
  }
}
/*  */
/* newsletter */

.newsletter-section {
  padding: 40px 20px;
  background-color: #343a40; /* A darker background for newsletter */
  color: white;
  text-align: center;
  margin-bottom: 0; /* Remove margin to connect with footer */
}

.newsletter-section h3 {
  margin-bottom: 20px;
  color: white;
  font-weight: 400;
}

.newsletter-section form {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px; /* Space between form elements */
}

.newsletter-section form input {
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  width: clamp(200px, 100%, 400px);
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  outline: none;
  transition: border-color 0.3s ease;
  font-size: 16px;
}

.newsletter-section form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-section form input:focus {
  border-color: white;
}

.newsletter-section form button {
  padding: 12px 25px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: clamp(200px, 100%, 400px);
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-weight: 900;
  font-size: 16px;
}

.newsletter-section form button:hover {
  background-color: var(--accent-color); /* Darker blue on hover */
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .newsletter-section form input {
    padding: 10px;
  }

  .newsletter-section form button {
    padding: 10px 20px;
  }
}
/*  */
