:root {
  --bg-color: #ffffff;
  --text-color: #333333;
  --accent-color: #4a90e2;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
}

header {
  background: var(--accent-color);
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#menu-toggle {
  font-size: 1.5rem;
  background: transparent;
  border: none;
  color: white;
}

nav {
  display: flex;
  gap: 1rem;
}

nav.hidden {
  display: none;
}

nav a {
  color: white;
  text-decoration: none;
}

main {
  padding: 2rem;
  text-align: center;
}

button {
  padding: 0.5rem 1rem;
  margin-top: 1rem;
  cursor: pointer;
}

footer {
  background: #f0f0f0;
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
}

.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
}

h1 {
  text-align: center;
}

@media (max-width: 768px) {
  /* Footer stays at bottom */
footer {

background-color: #4a90e2;
 color: black;
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
} 

}


@media (min-width: 768px) {
  .blog-grid {
    flex-direction: row;
  }
/* Footer stays at bottom */
footer {
  background: #918787;
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
}

}

.blog-column {
  flex: 1;
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 5px;
}

form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: auto;
  gap: 1rem;
}

form input,
form textarea {
  padding: 0.5rem;
  font-size: 1rem;
}

#confirmation {
  text-align: center;
  margin-top: 2rem;
  font-weight: bold;
  color: green;
}

.hidden {
  display: none;
}

.back {
  display: inline-block;
  margin-left: 1rem;
  color: var(--accent-color);
  text-decoration: none;
}

/* Make the page take full height */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Content stretches to fill space */
main {
  flex: 1;
}


.announcement {
  background: #ffecb3;
  color: #a67c00;
  padding: 0.5rem;
  font-size: 1.2rem;
  text-align: center;
  font-weight: bold;
  border-bottom: 2px solid #ffd54f;
}

.announcement-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background: #ffeeba;
  padding: 0.5rem;
  border-bottom: 2px solid #f0ad4e;
  font-size: 1rem;
}

.status-tag {
  font-weight: bold;
  color: #856404;
  margin-right: 1rem;
}

.topic-scroll {
  flex: 1;
  color: #5c4216;
  font-weight: 500;
}

marquee {
  white-space: nowrap;
}


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px; /* Max width for content */
    margin: 0 auto; /* Center the navbar */
    padding: 0 1.5rem; /* Padding on sides for smaller screens */
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ecf0f1; /* Light text color for logo */
    text-decoration: none;
    padding: 0.5rem 0; /* Add some padding for better click area */
}

/* Nav Menu (Desktop Styles) */
.nav-menu {
    display: flex; /* Horizontal layout for desktop */
    list-style: none; /* Remove bullet points */
    margin: 0;
    padding: 0;
}

.nav-item {
    margin-left: 2rem; /* Spacing between menu items */
}

.nav-link {
    color: #ecf0f1; /* Light text color for links */
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease-in-out; /* Smooth transition for hover */
}

.nav-link:hover {
    color: #3498db; /* Blue on hover */
}

/* Hamburger Menu (Hidden by default on desktop) */
.hamburger {
    display: none; /* Hidden on large screens */
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    padding: 0.2rem;
}

.hamburger .bar {
    width: 100%;
    height: 3px;
    background-color: #ecf0f1; /* Light color for bars */
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

/* --- Media Queries for Responsiveness --- */

/* Mobile Styles (Max-width 768px for tablets/phones) */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap; /* Allow items to wrap */
        padding: 0 1rem;
    }

    .hamburger {
        display: flex; /* Show hamburger on small screens */
    }

    .nav-menu {
        flex-direction: column; /* Stack menu items vertically */
        width: 100%; /* Take full width */
        text-align: center;
        max-height: 0; /* Hidden by default */
        overflow: hidden; /* Hide overflowing content */
        transition: max-height 0.3s ease-in-out; /* Smooth slide effect */
        background-color: #34495e; /* Slightly lighter dark blue for dropdown */
        margin-top: 1rem; /* Space below logo */
    }

    .nav-menu.active {
        max-height: 300px; /* Adjust as needed to fit all menu items */
        /* You can also use height: auto; but max-height with transition is smoother */
    }

    .nav-item {
        margin: 0; /* Remove horizontal margin */
        padding: 0.8rem 0; /* Vertical padding for each item */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Separator */
    }

    .nav-item:last-child {
        border-bottom: none; /* No border on last item */
    }

    .nav-link {
        display: block; /* Make links block-level for full click area */
        font-size: 1.2rem;
    }

    /* Hamburger Animation (Optional: X icon) */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0; /* Hide middle bar */
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg); /* Rotate top bar */
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg); /* Rotate bottom bar */
    }
}


