@charset "UTF-8";

/* ---------- Global Reset & Base Styles ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}


html {
    min-height: 100%;
}

body {
    min-height: 100%;
    background-color: #e0f7fa;
    color: #333;
    display: flex;
    flex-direction: column;
}

/* ---------- Header & NavBar ---------- */
header {
    background-color: transparent; /* Allows the body’s background to show */
    padding: 20px 10%;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header nav .logo img {
    max-height: 65px; /* Consistent logo size across pages */
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-grow: 1;
}

header nav ul li {
    margin: 0 15px;
    position: relative;
}

header nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 1.3em;
}

/* ---------- Dropdown Menu ---------- */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(255,255,255,0.9);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-radius: 5px;
    padding: 10px 0;
    width: 240px;
}

.dropdown-content li {
    display: block;
    text-align: left;
}

.dropdown-content li a {
    color: #333;
    padding: 8px 15px;
    display: block;
    text-decoration: none;
    font-size: 1em;
}

.navbar .dropdown .dropdown-arrow {
    margin-left: 5px;
    font-size: 0.8em;
}

.dropdown-content li a:hover {
    background-color: #f0f0f0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-toggle::after{
	content: ' ▼';
	transition: all 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after{
	content: ' ▲';
}

/* ---------- Footer (Sticky) ---------- */
footer {
    text-align: center;
    padding: 15px 0;
    background-color: #222222;
    color: #f8c146;
    margin-top: auto; /* Pushes footer to the bottom */
}

/* ---------- Global Main Content Wrapper ---------- */
main {
    flex: 1; /* This makes sure main content grows to fill the space */
}


/* ---------- Responsive Styles for NavBar ---------- */
/* 1. Hamburger icon styling */
.menu-icon {
  display: none;        /* hidden by default (desktop) */
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
}

.menu-icon span {
  height: 5px;
  width: 30px;
  background-color: #333;
  margin: 4px 0;
  transition: 0.4s;
}

/* 2. Hide the nav links on smaller screens by default */
#nav-links {
  display: flex;        /* default for larger screens */
  flex-direction: row;
}

/* 3. Breakpoint: transform the navbar at smaller widths */
@media (max-width: 768px) {
  .menu-icon {
    display: flex;      /* show the hamburger icon */
  }

  #nav-links {
    display: none;      /* hide the nav links by default */
    flex-direction: column;
    background-color: #fff;
    position: absolute;
    top: 70px;          /* adjust to appear below the navbar */
    right: 10px;        /* or left: 0, etc. */
    width: 200px;       /* adjust as needed */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  #nav-links.active {
    display: flex;      /* show links when toggled */
  }

  /* Adjust dropdown styling for smaller screens if needed */
  .dropdown-content {
    position: static;   /* so it flows in the vertical stack */
    box-shadow: none;
    background-color: #fff;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  
  .dropdown-content li a {
    padding: 8px 15px;
    display: block;
  }
}

/* ---------- Responsive Styles for NavBar with a Higher Breakpoint ---------- */
@media (max-width: 1500px) {
  .menu-icon {
    display: flex;      /* show the hamburger icon */
  }

  #nav-links {
    display: none;      /* hide the nav links by default */
    flex-direction: column;
    background-color: #fff;
    position: absolute;
    top: 70px;          /* adjust to appear below the navbar */
    right: 10px;        /* or left: 0, etc. */
    width: 250px;       /* adjust as needed */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 10px auto;
    padding: 10px;
  }

  #nav-links.active {
    display: flex;      /* show links when toggled */
  }

  /* Adjust dropdown styling for smaller screens if needed */
  .dropdown-content {
    position: static;   /* so it flows in the vertical stack */
    box-shadow: none;
    background-color: #fff;
    width: 100%;
  }
  
  .dropdown-content li a {
    padding: 8px 10px;
    display: block;
  }
  
}
