body {
  font-family: sans-serif;
  background-color: white;
}
html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  padding-top: 80px;
}

/* Navbar container */
nav {
  background-color: #004466;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  z-index: 1000;

  left: 0; /* anchor navbar to left edge */
  right: 0; /* anchor navbar to right edge */
  width: 100%; /* full width */
  box-sizing: border-box; /* include padding inside width */
}

/* Logo styling */
nav .logo {
  font-size: 1.6rem;
  font-weight: bold;
  letter-spacing: 1px;
  color: white;
}

/* Links container */
nav ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
}

/* Each link */
nav ul li {
  display: inline;
}

body.no-scroll {
  overflow: hidden;
}

nav ul li a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

nav ul li a:hover {
  background: rgba(0, 173, 239, 0.15);
  color: #efeb00;
}

/* Active link underline */
nav ul li a.active {
  position: relative;
  color: #efd700;
}

nav ul li a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 3px;
  background: #efd700;
  box-shadow: 0 0 6px rgba(221, 216, 166, 0.6);
  border-radius: 2px;
}

/* Menu toggle (mobile) */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  user-select: none;
  color: white;
}

/* dropdwon */

/* Mobile responsiveness */
@media (max-width: 768px) {
  #nav-links {
    max-height: calc(100vh - 80px); /* account for fixed navbar height */
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 1rem; /* extra space so last item isn’t cut off */
  }

  nav {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
    background-color: #004466;
    border-top: 2px solid rgba(0, 173, 239, 0.3);
  }

  nav ul.active {
    display: flex;
    animation: fadeIn 0.3s ease;
  }

  nav ul li a.active::after {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
  }

  nav ul li {
    text-align: center;
    padding: 0.5rem 0;
  }

  nav ul li a {
    display: block;
    width: 100%;
  }
}

/* zoomout */

/* @media (max-width: 1024px) {
  .menu-toggle {
    display: block;
  }
  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
  }
}
 */

/* Fade-in animation for mobile menu */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  background-image: url("./images/banner_img.png");
  background-size: cover;
  background-position: center;
  padding: 3rem 1rem;
  height: 40vh;
  /* display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
  text-align: center; */
}

@media screen and (max-width: 768px) {
  .hero {
    height: auto;
  }
}

.dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  padding: 2rem;
}

.card {
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card h3 {
  color: #24344d;
  margin-bottom: 0.5rem;
}

/* heading intro */

#dynamic-intro {
  font-family: "Segoe UI", sans-serif;
  padding: 30px;
  font-weight: 500;
  font-size: x-large;
  text-align: center;
  font-size: 1.2rem;
  margin: 20px;
  letter-spacing: 0.5px;
  color: #24344d;
}

@media screen and (max-width: 768px) {
  #dynamic-intro {
    font-size: x-large;
    font-weight: 500;
  }
}

/* announcemnt card */

.announcement-card {
  background-color: #eef4f6;
  padding: 1rem 1.2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  font-family: sans-serif;
  /* text-align: center; */
}

.announcement-card h3 {
  margin: 0;
  font-size: 1.3rem;
  color: #24344d;
  border-bottom: 2px solid #2f8d96;
  padding-bottom: 0.3rem;
}

.announcement-card ul {
  margin-top: 1rem;
  padding-left: 0;
  list-style: none;
}

.announcement-card li {
  background-color: #ffffff;
  padding: 0.7rem 1rem;
  margin-bottom: 0.7rem;
  border-left: 4px solid #2f8d96;
  border-radius: 6px;
  color: #333;
  transition: background-color 0.3s ease;
}

.announcement-card li:hover {
  background: #f1f1f1;
}

.semtrack-card {
  background: linear-gradient(to bottom right, #cceeff, #e6f7ff);
  /* padding: 2rem 1rem;  */
  font-family: "Segoe UI", sans-serif;
  color: #003344;
  text-align: center;
}

.lms-link {
  margin-top: 30px;
  display: inline-block;
  padding: 10px 20px;
  background-color: #004466;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-family: Arial, sans-serif;
  transition: background-color 0.3s ease;
  text-align: center;
}

.lms-link:hover {
  background-color: #26767f;
}

.img-cap {
  margin: auto;
  width: 180px;
  height: 150px;
  display: block;
}

/* semester menu */

.semester-menu {
  text-align: center;
  margin: 20px 0;
  background-color: #ffffff;
  padding: 15px;
  border-radius: 10px;
}

.semester-menu select {
  padding: 10px 15px;
  border: 2px solid #2f8d96;
  border-radius: 8px;
  font-weight: bold;
  color: #2f8d96;
  background-color: #ffffff;
  transition: border-color 0.3s, color 0.3s;
  cursor: pointer;
}

.semester-menu select:hover {
  border-color: #26767f;
  color: #26767f;
  outline: none;
}

/* current semester */

#curr-semester {
  cursor: pointer;
}
.sem-image {
  width: 100%;
  max-width: 150px;
  border-radius: 10px;
}

@media screen and (max-width: 1024px) {
  .dashboard {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .dashboard {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .card iframe {
    width: 100% !important;
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

.quick-links {
  /* padding: 2rem; */
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 1rem;
  text-align: center;
  border-radius: 10px;
  margin-right: 20px;
  margin-left: 20px;
}

@media screen and (max-width: 1024px) {
  .quick-links {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    padding: 1.5rem;
  }
}

@media screen and (max-width: 768px) {
  .quick-links {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
}

a {
  text-decoration: none;
  color: rgb(31, 30, 30);
}

.card-semester {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 100%;
  padding-bottom: 14px;
}

.card-semester p {
  font-weight: bold;
}

.card-semester img {
  width: 20%;
  max-height: 200px;
  margin-top: 20px;
  margin-bottom: 10px;
}

.card-text {
  font-size: 1.5rem;
  color: #24344d;
  font-weight: 500;
}

.card-semester:hover,
.book-card:hover {
  background-color: rgb(226, 241, 247);
  transform: scale(1.05);
  cursor: pointer;
  transition: transform 0.2s;
  transition: all 0.3s ease;
}

.heading {
  color: #24344d;
  margin-bottom: 1rem;
  text-align: center;
  font-size: 1rem;
}

.heading1 {
  color: #24344d;
  margin-bottom: 1rem;
  text-align: center;
  font-size: 2rem;
}
.heading2 {
  color: #24344d;
  margin-bottom: 1rem;
  text-align: center;
  font-size: 2rem;
}
@media (max-width: 768px) {
  .heading2 {
    font-size: 1rem;
  }
}

/* .resource-links {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.resource-links a img {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.resource-links a img:hover {
  transform: scale(1.2);
  opacity: 0.8;
} */

/* books.html */

.search-container {
  text-align: center;
  margin-top: 1rem;
}

.search-wrapper {
  position: relative;
  display: inline-block;
  width: 60%;
}

#searchBar {
  width: 100%;
  padding: 12px 40px 12px 12px;
  border: 1px solid #ccc;
  border-radius: 20px;
  background-color: #fcf8f8;
  font-size: 25px;
  box-sizing: border-box;
}

.search-icon {
  width: 25px;
  height: 25px;
  position: absolute;
  right: 15px;
  top: 45%;
  transform: translateY(-50%);
  cursor: pointer;
}

.search-container input:focus {
  outline: none;
}

@media (max-width: 600px) {
  .search-wrapper {
    width: 90%;
  }

  #searchBar {
    font-size: 18px;
    padding: 10px 35px 10px 10px;
  }

  .search-icon {
    width: 20px;
    height: 20px;
    right: 8px;
  }
}

.book-container {
  display: flex;
  justify-content: center;
  text-align: center;
  gap: 2rem; /* more space between cards */
  padding: 2rem;
  flex-wrap: wrap;
}

.book-card {
  background: white;
  flex: 1 1 calc(20% - 2rem);
  max-width: 250px;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column; /* allows button to stick to bottom */
}

.book-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 280px;
  object-fit: cover;
  border-radius: 4px;
}

.info {
  padding: 0.8rem 0 0 0;
  text-align: center;
  flex-grow: 1; /* pushes button down */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.info h3 {
  margin: 0.4rem 0;
  font-size: 1rem;
  color: #24344d;
}

.info p {
  font-size: 0.85rem;
  color: #26767f;
  margin-bottom: 0.8rem;
}

.info a {
  align-self: center; /* centers the button */
  padding: 0.5rem 1.5rem;
  background-color: #158b82;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1rem;
  margin-top: auto; /* keeps it at bottom */
}

.info a:hover {
  background-color: #2c909b;
}

/* Medium screens (tablets) */
@media screen and (max-width: 1024px) {
  .book-card {
    flex: 1 1 calc(40% - 2rem);
  }
}

/* Small screens (mobiles) */
@media screen and (max-width: 768px) {
  .book-card {
    flex: 1 1 90%;
    max-width: 300px;
    margin: auto;
  }

  .book-card img {
    max-height: 220px;
  }
}

/* subjects.html */
.instructor-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 30px;
}

.instructor-card {
  color: #24344d;

  padding: 25px;
  /* margin: 12px; */
  display: inline-block;
  width: 20%;
  height: auto;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 30px;
  margin-bottom: 1rem;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}
.instructor-card a {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.instructor-card img {
  border-radius: 50%;
  object-fit: cover;
}

.instructor-card h2 {
  margin: 8px 0;
}

.instructor-card p,
a {
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
}

.resources {
  margin-top: 10px;
}

.resources a {
  display: inline-block;
  margin-top: 0.7rem;
  padding: 0.5rem 1rem;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  /* background-color: #2f8d96; */
  border: none;
  color: white;
  /* border: 3px solid #1e6268;   */
}

.notes {
  background-color: #00796b;
}

.notes:hover {
  background-color: #004d40;
}
.youtube {
  background-color: #d32f2f;
}

.youtube:hover {
  background-color: #b71c1c;
}

.resources a:hover {
  /* background-color: #258088; */
  color: white;
}
@media screen and (max-width: 1024px) {
  .instructor-card {
    width: 40%;
  }
}

@media screen and (max-width: 768px) {
  .instructor-card {
    width: 80%;
  }
}

/* resources.html */

.resources-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 90%;
  margin: 0 auto;
  padding: 40px 20px;
}
.intro {
  text-align: center;
  margin: 30px auto 20px;
  /* padding: 10px; */
  max-width: 800px;
}

.intro p {
  font-size: 1.5rem;
  color: #24344d;
  line-height: 1.6;
}

.resources-card {
  background-color: #ffffff;

  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 500px;
  text-align: center;
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: #24344d;
  box-sizing: border-box;
}

.resources-card img {
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  margin-bottom: 10px;
}

.resources-card h2 {
  font-size: 20px;
  margin: 10px 0;
  color: #333;
}

.resources-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.resources-card:hover {
  transform: scale(1.05);
}

@media screen and (max-width: 1024px) {
  .resources-card {
    width: 80%;
  }
}

@media screen and (max-width: 768px) {
  .resources-card {
    width: 100%;
  }
}

/* exams.html */
/* .exam-container {
  display: flex;
  justify-content: center;
  text-align: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  padding: 0 1rem;
  color: #24344d;
}

.heading-exams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
}

.heading-exams img {
  width: 40px;
  height: auto;
}

.next-exam {
  background-color: #f0f0f0;
  padding: 20px;
  border-radius: 10px;
  width: 250px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin: 10px;
  width: 40vw;
}

.exam-table {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

table {
  border-collapse: collapse;
  width: 100%;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.1);
  margin: 30px;
  color: #24344d;
}

th,
td {
  padding: 10px;
  border: 1px solid #ccc;
}

th {
  background-color: #2f8d96;
  color: white;
}

#clock {
  margin: 30px auto 25px auto;
  font-size: 24px;
  font-weight: bold;
  color: white;
  padding: 15px 30px;
  border-radius: 10px;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  width: 30%;
  text-align: center;
  background-color: #2f8d96;
}

#clock:hover {
  background-color: #e0e0e0;
  transform: scale(1.02);
} */

/* .heading-exams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 40px auto 25px;
  flex-wrap: wrap;
  text-align: center;
  padding: 0 15px;
}

.heading-exams h1 {
  font-size: 2rem;
  color: #2a3d66;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
}

.heading-exams img {
  width: 48px;
  height: 48px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.heading-exams img:hover {
  transform: rotate(10deg) scale(1.1);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}
@media (max-width: 768px) {
  .heading-exams {
    flex-direction: column;
    gap: 8px;
    margin-top: 30px;
  }

  .heading-exams h1 {
    font-size: 1.6rem;
  }

  .heading-exams img {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .heading-exams h1 {
    font-size: 1.4rem;
  }

  .heading-exams img {
    width: 36px;
    height: 36px;
  }
} */

/* Clock */
/* #clock {
  text-align: center;
  font-size: 18px;
  margin-bottom: 20px;
  color: #555;
} */



/* Exam Container Boxes */
/* .exam-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 30px;
} */

/* .next-exam {
  background: #ffffff;
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.08);
  width: 300px;
}

.next-exam h2 {
  font-size: 20px;
  color: #444;
  margin-bottom: 10px;
}

.next-exam p {
  margin: 6px 0;
  color: #555;
  font-size: 14px;
} */

/* Countdown */
/* #countdown {
  font-weight: bold;
  font-size: 15px;
  color: #d32f2f;
  margin-top: 8px;
}

.exam-table {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.08);
}

.exam-table table {
  width: 100%;
  border-collapse: collapse;
}

.exam-table th,
.exam-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

.exam-table th {
  background: #fbc02d;
  color: #333;
  font-weight: bold;
}

.exam-table tr:nth-child(even) {
  background: #f9f9f9;
}
  */

@media (max-width: 600px) {
  .exam-container {
    flex-direction: column;
    align-items: center;
  }
  .next-exam {
    width: 90%;
  }

  
}
/* .exam-table tr.next-exam-row {
  background-color: #fff3cd !important; 
  font-weight: bold;
  border-left: 4px solid #fbc02d;
}

.exam-table tr.next-exam-row:hover {
  background-color: #ffe69c !important;
} 
 */
/* about.html */
.about-container {
  display: flex;
  width: 80%;
  justify-content: center;
  margin: auto;
  align-items: center;
}

.about-info {
  width: 30%;
  font-size: 16px;
  color: #24344d;
  line-height: 1.5;
  padding: 100px;
}

.about-container img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

@media screen and (max-width: 1024px) {
  .about-info {
    width: 80%;
    padding: 50px;
  }
}

@media screen and (max-width: 768px) {
  .about-container {
    flex-direction: column;
    padding: 1rem;
  }

  .about-info {
    width: 100%;
    padding: 20px;
    text-align: center;
  }
}

/* contact.html */

.form-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  margin: 2%;
}

.contact {
  background: linear-gradient(135deg, #e0f7fa, #fce4ec);
  border-radius: 16px;
  padding: 40px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.contact:hover {
  transform: translateY(-4px);
}

.contact h2 {
  margin-bottom: 15px;
  font-size: 2.2rem;
  text-align: center;
  color: #24344d;
  font-weight: 700;
}

.contact p {
  font-size: 1.1rem;
  color: #666;
  text-align: center;
  margin-bottom: 20px;
}

.contact form label {
  font-weight: 600;
  color: #333;
}

.contact form input,
.contact form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-top: 6px;
  margin-bottom: 16px;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  background-color: #fafafa;
}

.contact form input:focus,
.contact form textarea:focus {
  border-color: #2f8d96;
  box-shadow: 0 0 8px rgba(47, 141, 150, 0.3);
  background-color: #fff;
}

.contact form button {
  background: linear-gradient(135deg, #2f8d96, #3fc1c9);
  color: white;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  width: 100%;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.contact form button:hover {
  background: linear-gradient(135deg, #26767f, #38b0b5);
  box-shadow: 0 4px 15px rgba(47, 141, 150, 0.4);
  transform: translateY(-2px);
}

.button-wrapper {
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .form-wrapper {
    padding: 1.5rem;
    margin: 0;
  }

  .contact {
    padding: 25px;
  }

  .contact h2 {
    font-size: 1.8rem;
  }

  .contact p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .contact h2 {
    font-size: 1.6rem;
  }

  .contact p {
    font-size: 0.95rem;
  }
}

.wrapper {
  min-height: 85vh;
  padding-bottom: 15vh;
}

.footer {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 25px 15px;
  font-size: 14px;
  margin-top: 40px;
  border-top: 3px solid #004466;
}

.footer a {
  color: #ffd700;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer .social-icons {
  margin-top: 15px;
}

.footer .social-icons a {
  color: white;
  font-size: 18px;
  margin: 0 8px;
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer .social-icons a:hover {
  color: #00adef;
  transform: translateY(-3px);
}

@media screen and (max-width: 768px) {
  .footer {
    padding: 20px 10px;
  }

  .footer p,
  .footer a {
    display: block;
    margin: 8px 0;
    word-break: break-word;
  }

  .footer .social-icons a {
    font-size: 20px;
    margin: 5px;
  }
}

/* assignments.html */

/* .assignment-container {
  max-width: 70%;
  margin: 0 auto;
  padding: 20px;
  background: #00796b;
  border-radius: 10px;
}

.subject-info p {
  text-align: center;
  margin: 5px 0;
  font-size: 20px;
  font-weight: 400;
}

.assignment-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.assignment {
  background: #ffffff;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.assignment.completed {
    background: #ebe9e9;
}

.assignment .status {
  display: inline-block;
  margin-top: 10px;
  font-weight: bold;
  color: #04aa6d;
}

.assignment.completed .status {
  color: gray;
  
}

.assignment-link {
  display: inline-block;
  background-color: #00796b; 
  color: white;
  padding: 12px 20px;
  text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}



.assignment-link:hover {
    background-color: #2aafa0; 
} */

/* //events.html */
.events-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.event-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #ffffff40;
  border-radius: 15px;
  padding: 25px;
  width: 270px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.event-card:hover {
  transform: translateY(-10px);
}

.event-card h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #24344d;
}

.event-card p {
  font-size: 0.95rem;
  margin: 6px 0;
  color: #24344d;
}

.event-card button {
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #fff;
  color: #24344d;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.event-card button:hover {
  background-color: #ddd;
}

/* help page */
/* ===== Help Page ===== */
.discussion-box {
  max-width: 750px;
  margin: 30px auto;
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.08);
  font-family: "Segoe UI", Roboto, sans-serif;
}

/* ===== Form Inputs ===== */
input,
textarea {
  width: 96%;
  padding: 12px;
  margin-top: 5px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: none;
  font-size: 14px;
  transition: border-color 0.2s;
}

input:focus,
textarea:focus {
  border-color: #fbc02d;
}

/* ===== Buttons ===== */
button {
  padding: 10px 18px;
  background-color: #fbc02d;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.3s, transform 0.1s;
}

button:hover {
  background-color: #f9a825;
  transform: translateY(-1px);
}

.reply-btn {
  margin-top: 8px;
  font-size: 14px;
}

/* ===== Question Post ===== */
.question-post {
  border: none;
  padding: 15px;
  margin-top: 20px;
  background: #fff8e1;
  color: #24344d;
  border-radius: 10px;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.05);
}

/* ===== Reply Form ===== */
.reply-form {
  margin-top: 12px;
  background: #fff9db;
  padding: 10px;
  border-radius: 8px;
}

.reply-form input,
.reply-form textarea {
  background: #ffffff;
  border: 1px solid #ccc;
  padding: 8px;
}

/* ===== Replies ===== */
.replies {
  margin-top: 12px;
  padding-left: 18px;
  border-left: 2px solid #fbc02d;
}

.reply {
  background: #ffffff;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.03);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .discussion-box {
    padding: 15px;
    margin: 15px;
  }

  input,
  textarea {
    font-size: 13px;
    padding: 10px;
  }

  button {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
  }

  .question-post {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .discussion-box {
    border-radius: 8px;
    box-shadow: none;
    padding: 12px;
  }

  input,
  textarea {
    font-size: 12px;
  }

  .reply-btn {
    font-size: 12px;
  }

  .question-post {
    font-size: 14px;
  }

  .reply {
    font-size: 13px;
  }
}

/* login page */
.index-wrapper {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.login-button {
  margin: 10px;
  color: #24344d;
}

.login-card {
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.login-card h2 {
  color: #1e3a5f;
  margin-bottom: 20px;
}

.login-card input[type="email"],
.login-card input[type="password"] {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
}

.login-card .login-btn {
  background-color: #00695c;
}
.login-card .login-btn:hover {
  background-color: #004d40;
}

.login-card .register-btn {
  background-color: #f5f5f5;
  color: #333;
  border: 1px solid #ccc;
}

.login-card .register-btn:hover {
  background-color: #e0e0e0;
}

.login-card .forgot {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: #0066cc;
  text-decoration: none;
}

.login-card .forgot:hover {
  text-decoration: underline;
}

/* gallery page */
.project-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 30px;
  padding-bottom: 100px;
}

.project-card {
  background: linear-gradient(145deg, #ffffff, #f0f8fb);
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 173, 239, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 350px;
  margin: auto;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px rgba(0, 173, 239, 0.6);
  background: linear-gradient(145deg, #f8fdff, #e6f7fa);
}

.image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.project-card img {
  width: 100%;
  /* height: 100%; */
  object-fit: cover;
  background-color: #f0f0f0;
  transition: transform 0.4s ease;
  max-width: 350px;
  margin: auto;
}

.project-card img {
  height: auto; /* Keep aspect ratio */
  display: block; /* Remove inline gap */
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card h3 {
  font-size: 1.2rem;
  margin: 12px 0 6px;
  color: #004466;
}

.project-card p {
  font-size: 0.95rem;
  color: #555;
  margin: 4px 0;
  padding: 0 10px;
  margin-bottom: 20px;
}

.project-card a {
  color: #00adef;
  font-weight: bold;
  margin-top: auto;
  display: inline-block;
  padding: 8px 12px;
  border-radius: 6px;
  transition: 0.3s ease, color 0.3s ease;
}

.project-card a:hover {
  color: #004466;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .project-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .project-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .project-container {
    grid-template-columns: 1fr;
  }
}

/* announcement page */

.announcementAll-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: auto;
  padding: 0 20px 50px;
}

/* Card Styling */
.announcementAll-card {
  position: relative;

  display: flex;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 35px; /*   fix this setting the text in box was 15 */
  align-items: center;
}
.status {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 8px;
  color: #fff;
}

.status.ongoing {
  background: #28a745; /* green */
}

.status.completed {
  background: #6c757d; /* grey */
}

.announcementAll-card:hover {
  transform: translateY(-3px);
  box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.1);
}

/* Icon section */
.announcementAll-card .icon {
  flex-shrink: 0;
  margin-right: 15px;
}

.announcementAll-card .icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* Content section */
.announcementAll-card .content {
  flex: 1;
}

.announcementAll-card .content h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #34495e;
}

.announcementAll-card .content p {
  margin: 6px 0;
  color: #555;
  font-size: 0.95rem;
}

.due-date {
  font-weight: bold;
  color: #e67e22;
}

.announcementAll-link {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  background: #00796b;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.2s ease;
}

.announcementAll-link:hover {
  background: #004d40;
}

@media (max-width: 500px) {
  .announcementAll-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .announcementAll-card .icon {
    margin-bottom: 10px;
  }
}

@media screen and (max-width: 768px) {
  .padding {
    padding: 0 30px;
  }
}
@media (max-width: 768px) {
  .intro p {
    font-size: 1rem;
  }
}

/* ===== Modal Overlay ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 15px; /* ensures spacing from edges on mobile */
  box-sizing: border-box;
}

/* ===== Modal Box ===== */
.modal-content {
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.3s ease;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
  box-sizing: border-box;
  margin: auto; /* ensures centering */
}

/* ===== Close Button (Top Right) ===== */
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 2rem; /* bigger for mobile */
  line-height: 1;
  color: #555;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s;
}

.modal-close:hover {
  color: #111;
  transform: scale(1.1);
}

/* ===== Title & Content ===== */
.modal-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #333;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

.modal-body ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.modal-body li {
  padding: 10px;
  margin-bottom: 8px;
  background: #f9f9f9;
  border-radius: 8px;
  font-size: 1rem;
  color: #444;
  transition: background 0.2s ease;
}

.modal-body li:hover {
  background: #f1f1f1;
}

/* ===== Buttons ===== */
.modal-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.btn {
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  min-width: 120px;
}

.btn:active {
  transform: scale(0.95);
}

.btn-primary {
  background: #00796b;
  color: white;
}

.btn-primary:hover {
  background: #004d40;
}

.btn-secondary {
  background: #e5e7eb;
  color: #111;
}

.btn-secondary:hover {
  background: #d1d5db;
}

/* ===== Animations ===== */
@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ===== Responsive Fixes ===== */
@media (max-width: 768px) {
  .modal-content {
    padding: 20px;
    max-width: 90%; /* leaves space from sides */
  }
  .modal-title {
    font-size: 1.2rem;
  }
  .modal-close {
    font-size: 1.6rem; /* scale down slightly */
    top: 8px;
    right: 8px;
  }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 18px;
    border-radius: 12px;
    max-width: 95%; /* extra space on smallest screens */
  }
  .modal-title {
    font-size: 1.1rem;
  }
  .btn {
    flex: 1; /* stack full-width buttons */
    font-size: 0.9rem;
    padding: 10px;
  }
  .modal-close {
    font-size: 1.5rem; /* readable but not oversized */
  }
}

