* {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.body {
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(4, 9, 30, 0.7), rgba(4, 9, 30, 0.7)),
        url("../images/BulSU.jpg");
    background-position: center;
    background-size: cover;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

nav {
    display: flex;
    padding: 15px 6%;
    justify-content: space-between;
    align-items: center;
    background-color: #a60212;
}

nav image {
    width: 150px;
}

.nav-links {
    flex: 1;
    text-align: right;
}

.nav-links ul li {
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}

.nav-links ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
}

.nav-links ul li::after {
    content: "";
    width: 0%;
    height: 2px;
    background: #f5ab29;
    display: block;
    margin: auto;
}

.nav-links ul li:hover::after {
    width: 100%;
}

.bulsu-logo {
    width: 100px;
    height: auto;
    margin-right: 10px;
}

.site-name {
    font-size: 30px;
    font-weight: bold;
    color: #ffffff;
    text-transform: none;
    letter-spacing: 2px;
}

.menu {
    list-style-type: none;
    display: flex;
    padding: 10px;
    justify-content: center;
}

.menu li {
    position: relative;
}

.menu li a {
    color: white;
    padding: 14px 20px;
    text-decoration: none;
    display: block;
}

/* Dropdown menu style */
.dropdown {
    position: relative;
    z-index: 999;
}

.dropdown .dropbtn {
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #444;
    min-width: 200px;
    max-width: 90vw;
    z-index: 1;
    border-radius: 5px;
    padding: 10px;
}

.dropdown-content .dropdown-section {
    margin-bottom: 10px;
    z-index: 1;
}

.dropdown-content h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: bold;
}

.dropdown-content ul {
    list-style-type: none;
}

.dropdown-content ul li a {
    color: white;
    padding: 8px 0;
    text-decoration: none;
    display: block;
    padding-left: 10px;
    font-size: 16px;
}

.dropdown-content ul li a:hover {
    background-color: #555;
}

/* Show the dropdown on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* publication header */
.publication-header {
    text-align: center;
    padding: 20px 0;
}

.publication-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: bold;
}

.publication-caption {
    font-size: 14px;
    font-style: italic;
    opacity: 0.8;
    margin-top: 5px;
}

/* campus-header
  .pacesetter-header {
      background-image: url('plumalaya.jpg');
  }
  .dambana-header {
      background-image: url('plumalaya.jpg');
  }
  .laurel-header {
      background-image: url('plumalaya.jpg');
  }
  .theforerunner-header {
      background-image: url('plumalaya.jpg');
  }
  .piscatores-header {
      background-image: url('plumalaya.jpg');
  }
  .plumalaya-header {
      background-image: url('');
  }*/

/* Main Container */
.news-container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Individual News Item */
.news-item {
    background: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    border: 1px solid #a60212;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.2);
}

/* News Image */
.news-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
}

/* Category */
h3 {
    color: #a60212;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Headline */
h2 {
    font-size: 18px;
    color: black;
    font-weight: bold;
    margin: 5px 0;
}

/* Timestamp */
p {
    font-size: 14px;
    color: gray;
}

/* Responsive Design */
@media (max-width: 992px) {
    .news-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .news-container {
        grid-template-columns: 1fr;
    }
}

/*-----footer-----*/

.footer {
    text-align: center;
    background-color: #333;
    color: #fff;
    padding: 10px;
    margin-top: 20px;
}

#iconmenu,
#collapseBtn {
  width: 1.5rem;
  display: none;
  cursor: pointer;
}

#collapseBtn {
  rotate: 180deg;
}

@media screen and (max-width: 700px) {
  #iconmenu, #collapseBtn {
    display: block;
  }
}