/* Set html and body to full height for flex layout */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  line-height: 1.5;
  background: #f4f4f4;
  color: #333;
}

/* Use flex layout for the body to push footer to the bottom */
body {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Ensure main expands to push footer down */
main {
  flex: 1;
  width: 100%;
  max-width: 1450px;
  margin: auto;
  padding: 20px;
}

/* Header */
header {
  background: linear-gradient(90deg, #353535, #080808);
  color: #fff;
  width: 100%;
  flex: 1;
  max-width: 1420px;
  margin: auto;
  padding: 20px;
}

/* Header container */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Logo */
.logo a {
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
}

/* Navigation Menu */
.nav-menu {
  display: none;
  flex-direction: column;
  background: #353535;
  position: absolute;
  top: 60px;
  right: 0;
  width: 200px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  z-index: 2000;
}

/* Navbar */
.navbar {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-direction: column;
}

.navbar li {
  padding: 10px;
  text-align: center;
}

.navbar li a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 10px;
  transition: background 0.3s ease;
}

.navbar li a:hover {
  background: #444;
}

/* Menu Button */
.menu-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  display: block;
  z-index: 3000;
}

/* Show dropdown menu when toggled */
.nav-menu.show {
  display: flex;
}

/* Desktop Navigation */
@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }

  .nav-menu {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: none;
    width: auto;
    box-shadow: none;
  }

  .navbar {
    flex-direction: row;
    display: flex;
  }

  .navbar li {
    padding: 0;
    margin-left: 20px;
  }

  .navbar li a {
    padding: 10px;
  }
}

/* Hero Section */
.hero {
  background: url('images/hero-background.jpg') center/cover no-repeat;
  padding: 100px 0;
  text-align: center;
  color: #353535;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 20px;
}

/* Form Section (Ad Generator) */
.ad-generator {
  background: #fff;
  padding: 40px 20px;
  margin: 40px 0;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ad-generator h2 {
  margin-bottom: 20px;
  text-align: center;
  font-size: 28px;
  color: #353535;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.form-group label {
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group select, 
.form-group input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

.btn {
  background: #353535;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease;
  width: 100%;
  margin-top: 10px;
}

.btn:hover {
  background: #0c0c0c;
}

.result {
  margin-top: 20px;
  text-align: center;
  font-size: 18px;
  padding: 10px;
}

/* Content Sections (About, How It Works, Contact, etc.) */
.content {
  background: #fff;
  padding: 40px 20px;
  margin: 40px 0;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(161, 167, 169, 0.866);
}

.content h1 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #1f2021;
}

.content p {
  margin-bottom: 15px;
  font-size: 18px;
}

.content ul {
  list-style: disc;
  margin-left: 20px;
}

/* Partners Section */
.partners {
  background: #fff;
  padding: 40px 20px;
  margin: 40px 0;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: center;
}

.partners h2 {
  font-size: 28px;
  color: #353535;
  margin-bottom: 20px;
}

.partner-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.partner-logos img {
  max-width: 150px;
  height: auto;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.partner-logos img:hover {
  filter: grayscale(0%);
}

/* Footer */
footer {
  background: #353535;
  color: #fff;
  text-align: center;
  margin-top: 40px;
  width: 100%;
  flex: 1;
  max-width: 1420px;
  margin: auto;
  padding: 20px;
}
