/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #f3f4f8;
  color: #333;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 12px 40px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.logo img {
  height: 80px;
  padding-left: 60px;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1px;
  margin: 0;
  padding-right: 60px;
  align-items: center;
}

.nav-menu li a {
  text-decoration: none;
  color: #050515;
  font-weight: 500;
  font-size: 20px;  
  padding: 8px 18px;
  border-radius: 10px;
  transition: background-color 0.3s, color 0.3s;
}

/* Active and hover states */
.nav-menu li a.active {
  background-color: #00c4b3;
  color: #fff;
}

.nav-menu li a:hover:not(.active) {
  background-color: rgba(0, 196, 179, 0.1);
}

/* Main Section */
.document-section {
  background: white;
  margin: 30px 300px;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Second Document Section for Announcement */
.document-section-2 {
  background: white;
  margin: 30px 300px;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.document-section h2 {
  font-size: 20px;
  border-bottom: 2px solid #00a5b5;
  display: inline-block;
  padding-bottom: 6px;
  margin-bottom: 20px;
}

/* Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 20px;
}

.card {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: all 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.card img {
  max-height: 40px;
  margin-bottom: 10px;
}

.card h3 {
  font-size: 15px;
  margin-bottom: 6px;
  font-weight: 400;
}

.card p {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

/* Notice Page Specific Styles for text*/
.post-text {
  text-align: center;
  font-size: 18px;
 line-height: 25px; 
 padding-bottom: 15px;
}

.notice-title {
  text-align: center;
  font-size: 35px;
  font-weight: bold;
  margin-bottom: 20px;
  padding-top: 10px;
  padding-left: 12px;
 padding-right: 12px;
}

/* Responsive Styles */

.notice-image {
  width: 100%;
  height: auto;
  transition: width 0.3s ease;
}



@media (max-width: 2560px) {
  .notice-image {
    width: 100%;
  }
  .document-section-2 {
    margin: 30px 750px;
  }
   .document-section {
    margin: 30px 450px;
  }
  .post-text {
 padding-left: 90px;
 padding-right: 90px;
}
}

@media (max-width: 2200px) {
  .notice-image {
    width: 100%;
  }
  .document-section-2 {
    margin: 30px 450px;
  }
   .document-section {
    margin: 30px 450px;
  }
  .post-text {
 padding-left: 90px;
 padding-right: 90px;
}
}


@media (max-width: 1920px) {
  .notice-image {
    width: 100%;
  }
  .document-section-2 {
    margin: 30px 400px;
  }
  .document-section {
    margin: 30px 250px;
  }
  .post-text {
    padding-left: 50px;
    padding-right: 50px;
  }
}

@media (max-width: 1440px) {
  .notice-image {
    width: 100%;
  }
  .document-section-2 {
    margin: 30px 250px;
  }
  .document-section {
    margin: 30px 250px;
  }
  .post-text {
    padding-left: 50px;
    padding-right: 50px;
  }
}

@media (max-width: 1024px) {
  .notice-image {
    width: 100%; 
  }
  .document-section-2 {
    margin: 30px 100px;
  }
  .document-section {
    margin: 30px 100px;
  }
}

@media (max-width: 768px) {
  .notice-image {
    width: 100%; 
  }
  .document-section-2 {
    margin: 30px 30px;
  }
  .document-section {
    margin: 30px 100px;
  }
  .post-text {
    padding-left: 10px;
    padding-right: 10px;
  }
   .notice-title {
    font-size: 30px;
  }
}

@media (max-width: 480px) {
  .notice-image {
    width: 100%; 
  }
  .document-section-2 {
    margin: 30px 10px;
  }
  .document-section {
    margin: 30px 10px;
  }
   .notice-title {
    font-size: 27px;
  }
  .card-grid{
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

/* Hide the checkbox input */
#menu-toggle {
  display: none;
}

/* Hamburger icon */
.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

/* --- Responsive Styles --- */
@media (max-width: 1200px) {
  /* Hide nav links by default */
  .nav-menu {
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    background-color: #f7f7f7;
    flex-direction: column;
    align-items: center;
    display: none;
    line-height: 40px;
    padding-top: 20px;
  }

  /* Show nav links when checkbox is checked */
  #menu-toggle:checked + .hamburger + .nav-menu {
    display: flex;
  }

  /* Show hamburger icon */
  .hamburger {
    display: block;
  }
}