/* Krav Maga Website Styles */

/* Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', sans-serif;
  margin-bottom: 0.75em;
  color: #212529;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }

p {
  margin-bottom: 1em;
}

/* Layout */
.container {
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
}

/* Header */
header {
  background-color: #ffffff;
  padding: 10px 0;
  border-bottom: 1px solid #dee2e6;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  flex-wrap: wrap;
}

.logo a {
  display: inline-block;
}

.logo-image {
  width: 200px;
  height: auto;
  display: block;
}

.burger-menu {
  display: none; /* Hidden by default, shown in media query */
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  color: #333;
}

/* Navigation Menu Base Styles */
.nav-menu {
  /* display: flex; <-- REMOVED from base style */
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-menu a {
  color: #333;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 12px;
  transition: color 0.3s ease, background-color 0.3s ease;
  border-radius: 4px;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #0056b3;
  background-color: #e9ecef;
}

/* Main Content */
main {
  flex-grow: 1;
  padding: 40px 0;
}

/* General Content Styles */
main section {
    padding: 40px 0;
}

main section .container {
    padding-top: 20px;
    padding-bottom: 20px;
}

.page-title {
    background-color: #e9ecef; /* Light background for titles */
    padding: 20px 0;
    margin-bottom: 30px;
}

.page-title h1 {
    margin-bottom: 0; /* Remove margin below title */
    text-align: center;
}

.content-image {
    margin: 20px auto; /* Center image and add spacing */
    max-width: 80%; /* Control image size */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Specific Section Styles (Example: Hero on index.html) */
.hero {
  padding: 60px 0;
  text-align: center;
  background-color: #e9ecef;
}
.hero h1 {
  font-size: 2.8rem; /* Slightly larger */
  margin-bottom: 0.5em;
}
.hero p {
  font-size: 1.2rem; /* Slightly larger */
  margin-bottom: 1.5em;
  color: #6c757d;
  max-width: 700px; /* Limit width for readability */
  margin-left: auto;
  margin-right: auto;
}
.cta-button {
  display: inline-block;
  background-color: #007bff;
  color: #ffffff;
  padding: 14px 30px; /* Larger button */
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  margin: 20px;
}
.cta-button:hover {
  background-color: #0056b3;
  text-decoration: none;
  color: #ffffff;
}
.hero-image {
  margin-top: 40px;
  max-width: 60%; /* Adjust size */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Other Section Styles (Intro, Why Online, Course Preview on index.html) */
.intro, .why-online-preview, .course-preview {
  padding: 50px 0;
  border-bottom: 1px solid #eee;
  text-align: center;
}
.intro .container, .why-online-preview .container, .course-preview .container {
  max-width: 800px;
}
.intro h2, .why-online-preview h2, .course-preview h2 {
  margin-bottom: 1em;
}
.intro a, .why-online-preview a, .course-preview a {
  display: inline-block;
  margin-top: 1em;
  font-weight: 600;
}

/* Footer */
footer {
  background-color: #343a40;
  color: #f8f9fa;
  padding: 30px 0;
  margin-top: auto;
}

footer .container {
  text-align: center;
}

footer p {
  margin-bottom: 0.5em;
}

footer a {
  color: #adb5bd;
}

footer a:hover {
  color: #ffffff;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 1rem !important; }
.mt-2 { margin-top: 2rem !important; }
.mb-1 { margin-bottom: 1rem !important; }
.mb-2 { margin-bottom: 2rem !important; }

/* Responsive Design */

/* Styles for medium screens and up (>= 769px) */
@media (min-width: 769px) {
    .nav-menu {
        display: flex; /* Show nav menu as flex row */
    }
}

/* Styles for medium screens (adjustments between mobile and desktop) */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    .hero-image { max-width: 70%; }
    .logo-image { width: 180px; }
    /* Adjust nav menu gap/padding if needed for this breakpoint */
    .nav-menu { gap: 15px; }
    .nav-menu a { padding: 8px 10px; }
}

/* Styles for small screens (<= 768px) */
@media (max-width: 768px) {
  .container {
    width: 95%;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }

  header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
  }

  .logo-image {
    width: 150px; /* Further reduce logo size */
  }

  .burger-menu {
    display: block; /* Show burger icon */
  }

  .nav-menu {
    display: none; /* Hide nav menu by default */
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%; /* Position below header */
    left: 0;
    background-color: #ffffff;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    padding: 10px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    align-items: center;
    gap: 5px;
  }

  .nav-menu.show {
    display: flex; /* Show menu when .show class is added */
  }

  .nav-menu a {
    padding: 10px 15px;
    width: 100%;
    text-align: center;
    border-radius: 0;
  }
  .nav-menu a:hover {
      background-color: #e9ecef;
  }

  /* Adjust main content padding */
  main {
    padding: 20px 0;
  }
  main section {
      padding: 25px 0;
  }

  /* Adjust hero section */
  .hero {
    padding: 40px 0;
  }
  .hero h1 {
    font-size: 2.2rem; /* Adjust size */
  }
  .hero p {
    font-size: 1rem;
  }
  .hero-image {
    max-width: 85%; /* Adjust size */
    margin-top: 25px;
  }
  .cta-button {
      padding: 12px 25px;
      font-size: 1rem;
  }

  /* Adjust other sections */
  .intro, .why-online-preview, .course-preview {
    padding: 30px 0;
  }

  .content-image {
      max-width: 95%; /* Allow image to take more width */
      margin: 15px auto;
  }

  .page-title {
      padding: 15px 0;
      margin-bottom: 20px;
  }
}

/* Add Google Font Import Link to HTML Head:
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Roboto:wght@700&display=swap" rel="stylesheet">
*/

