/* ========== Reset & Base Styles ========== */

/* ========== Custom Fonts ========== */

/* Montserrat */
@font-face {
  font-family: 'Montserrat';
  src: url("../fonts/montserrat/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
}
@font-face {
  font-family: 'Montserrat';
  src: url("../fonts/montserrat/Montserrat-SemiBold.ttf") format("truetype");
  font-weight: 600;
}
@font-face {
  font-family: 'Montserrat';
  src: url("../fonts/montserrat/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
}

/* Roboto */
@font-face {
  font-family: 'Roboto';
  src: url("../fonts/roboto/Roboto-Regular.ttf") format("truetype");
  font-weight: 400;
}
@font-face {
  font-family: 'Roboto';
  src: url("../fonts/roboto/Roboto-Medium.ttf") format("truetype");
  font-weight: 500;
}
@font-face {
  font-family: 'Roboto';
  src: url("../fonts/roboto/Roboto-Bold.ttf") format("truetype");
  font-weight: 700;
}

/* Lato */
@font-face {
  font-family: 'Lato';
  src: url("../fonts/lato/Lato-Regular.ttf") format("truetype");
  font-weight: 400;
}
@font-face {
  font-family: 'Lato';
  src: url("../fonts/lato/Lato-Bold.ttf") format("truetype");
  font-weight: 700;
}

/* Open Sans */
@font-face {
  font-family: 'Open Sans';
  src: url("../fonts/open-sans/OpenSans-Regular.ttf") format("truetype");
  font-weight: 400;
}
@font-face {
  font-family: 'Open Sans';
  src: url("../fonts/open-sans/OpenSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
}

/* ========== Font Usage ========== */
body {
  font-family: 'Roboto', 'Open Sans', 'Lato', Arial, sans-serif;
  font-weight: 400;
}

.site-name,
.nav-links a,
.footer-links a,
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Lato', 'Open Sans', Arial, sans-serif;
  font-weight: 600;
}

button,
input,
.alert {
  font-family: 'Roboto', 'Open Sans', Arial, sans-serif;
}



* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background: #f9f9f9;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ========== Header ========== */
.site-header {
  background: #1e1e2f;
  color: #fff;
  padding: 8px 0; /* smaller header height */
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.logo-title {
  display: flex;
  align-items: center;
}

.logo {
  height: 35px;
  margin-right: 8px;
}

.site-name {
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

/* ========== Navigation ========== */
.site-nav {
  margin-left: auto; /* keep nav on right side */
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
}

.nav-links li {
  display: inline-block;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #f39c12;
}

/* ========== Search Form ========== */
.search-form {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  margin-left: 20px;
}

.search-form input {
  border: none;
  padding: 6px 10px;
  outline: none;
  flex: 1;
  font-size: 0.9rem;
}

.search-form button {
  background: #f39c12;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  color: #fff;
  font-size: 0.9rem;
}

.search-form button:hover {
  background: #e67e22;
}

/* ========== Flash Messages ========== */
.flashes {
  margin: 15px 0;
}

.alert {
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  font-size: 0.95rem;
}

.alert-success {
  background: #d4edda;
  color: #155724;
}

.alert-danger {
  background: #f8d7da;
  color: #721c24;
}

.alert-warning {
  background: #fff3cd;
  color: #856404;
}

.alert-info {
  background: #d1ecf1;
  color: #0c5460;
}

/* ========== Footer ========== */
.site-footer {
  background: #1e1e2f;
  color: #ccc;
  padding: 20px 0;
  margin-top: 30px;
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #f39c12;
  text-decoration: none;
  font-weight: 500;
}

/* Make the whole page a flex container */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Let main content expand to push footer down */
.site-content {
  flex: 1;
}

/* Footer styling */
.site-footer {
  background: #222;
  color: #fff;
  padding: 15px 20px;
  text-align: center;
}


.footer-links a:hover {
  text-decoration: underline;
}

/* ========== Responsive Design ========== */
@media (max-width: 992px) {
  .header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .site-nav {
    width: 100%;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 10px;
  }

  .search-form {
    width: 100%;
    margin-left: 0;
  }

  .footer-flex {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .logo {
    height: 28px;
  }

  .site-name {
    font-size: 0.9rem;
  }

  .nav-links {
    gap: 8px;
    font-size: 0.85rem;
  }

  .search-form input {
    font-size: 0.85rem;
  }

  .search-form button {
    font-size: 0.85rem;
  }
}
