* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

.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;
}

.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;
}

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%;
}

.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;
}

#navbar {
  list-style-type: none;
  overflow: hidden;
  background-color: #333;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-around;
  z-index: 99;
}

#navbar li {
  /* float: left; */
  width: 100%;
}

#navbar li a {
  display: block;
  color: white;
  text-align: center;
  padding: 1rem;
  text-decoration: none;
}

#navbar li a:hover {
  background-color: #f5ab29;
}

#navbar li a.active {
  background-color: #f5ab29;
}

li.active {
  background-color: #f5ab29;
}

.text-box {
  width: 90%;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.text-box h1 {
  font-size: 62px;
}

.text-box p {
  margin: 10px 0 40px;
  font-size: 14px;
  color: #fff;
}

.hero-btn {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  border: 1px solid #fff;
  padding: 12px 34px;
  font-size: 13px;
  background: transparent;
  position: relative;
  cursor: pointer;
}

.hero-btn:hover {
  border: 1px solid #444;
  background: #a60212;
  transition: 1s;
}

nav .fa {
  display: none;
}

@media (max-width: 700px) {
  .site-name {
    font-size: 24px;
  }
    
  #navbar {
    flex-wrap: wrap;
  }

  #navbar li {
    /* float: left; */
    width: 50%;
  }
  
  #navbar li a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }


  .text-box h1 {
    font-size: 20px;
    margin-top: 5rem;
  }

  .nav-links ul li {
    display: block;
  }

  .nav-links {
    position: absolute;
    background: #f44336;
    height: 100vh;
    width: 200px;
    top: 0;
    right: -200px;
    text-align: left;
    z-index: 1000;
    transition: 1s;
    display: none;
  }

  nav .fa {
    display: block;
    color: #fff;
    margin: 10px;
    font-size: 22px;
    cursor: pointer;
  }

  .nav-links ul {
    padding: 30px;
  }
}

/*------ trends -----*/
#icon {
  max-width: 15px;
}

.trends {
  width: 100%;
  padding: 30px 0;
  background: rgba(241, 77, 77, 0.473);
}

.trends > h1 {
  color: white;
}

.trends-grid {
  position: relative;
  background: #fff;
  border-radius: 5px;
  overflow: hidden;
  transition: all 0.3;
  border: 1px solid #ddd;
  box-shadow: 0px 10px 30px 0px rgba(50, 50, 50, 0.16);
  margin: 10px 0px 10px 0px;
}

.trends-grid-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.trends-grid-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.trends-grid-box {
  display: block;
  position: absolute;
  text-align: center;
  background: #a60212;
  left: -80px;
  top: 15px;
  padding: 10px;
  transition: 0.5s;
  overflow-x: auto;
  flex-direction: column;
  align-items: center;
  flex-grow: 0;
  flex-basis: auto;
}

.trends-grid-box h1 {
  color: #fff;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 2px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 5px;
}

.trends-grid-box p {
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 0px;
}

.trends-grid-txt {
  padding: 25px;
}

.trends-grid-txt span {
  color: #f44336;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.trends-grid-txt h2 {
  color: #111;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 1px;
  margin: 10px 0px 5px 0px;
}

.trends-grid-txt ul {
  padding: 0;
  margin: 0;
}

.trends-grid-txt ul li {
  list-style: none;
  display: inline;
  color: #999;
  font-size: 14px;
  font-weight: 300;
  margin: 8px 10px 8px 0px;
  letter-spacing: 1px;
}

.trends-grid-txt ul li i {
  color: rgba(240, 97, 97, 0.767);
  font-size: 14px;
  font-weight: 500;
  margin-right: 5px;
}

.trends-grid-txt p {
  color: rgba(165, 0, 0, 0.904);
  font-size: 14px;
  font-weight: 300;
  line-height: 170%;
  letter-spacing: 1.5px;
  border-bottom: 1px solid #ececec;
  padding-bottom: 15px;
  margin-bottom: 25px;
}

.trends-grid-txt a {
  color: #fff;
  background: rgb(230, 76, 76);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 300;
  line-height: 30px;
  letter-spacing: 1px;
  text-decoration-line: none;
  transition: 0.5s;
}

/*Hover-Section*/
.trends-grid:hover .trends-grid-box {
  left: 15px;
  transition: 0.5s;
}

.trends-grid:hover .trends-grid-image img {
  filter: grayscale(1);
  transform: scale(1.1);
  transition: 0.5s;
}

.trends-grid:hover .trends-grid-txt a {
  text-decoration-line: none;
  color: #fff;
  letter-spacing: 2px;
  transition: 0.5s;
}

/*------ course -----*/

.course {
  width: 80%;
  margin: auto;
  text-align: center;
  padding-top: 100px;
}

h1 {
  font-size: 36px;
  font-weight: 600;
}

p {
  color: #777;
  font-size: 14px;
  font-weight: 300;
  line-height: 22px;
  padding: 10px;
}

.row {
  margin-top: 5%;
  display: flex;
  justify-content: space-between;
}

.course-col {
  flex-basis: 31%;
  background: #fff3f3;
  border-radius: 10px;
  margin-bottom: 5%;
  padding: 20px 12px;
  box-sizing: border-box;
  transition: 0.5s;
}

h3 {
  text-align: center;
  font-weight: 600;
  margin: 10px 0;
}

.course-col:hover {
  box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.2);
}

@media (max-width: 700px) {
  .row {
    flex-direction: column;
  }
}

/*----- campus -----*/

.campus {
  width: 80%;
  margin: auto;
  text-align: center;
  padding-top: 50px;
}

.campus-col {
  text-align: center;
  padding: 15px;
}

.campus-col h3 {
  color: black;
  text-decoration: none;
  font-size: 18px;
  margin-bottom: 10px;
}

.campus-col a {
  display: inline-block;
}

.campus-col img {
  width: 250px;
  height: auto;
  border-radius: 5px;
  transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.campus-col a:hover img {
  transform: scale(1.1);
  filter: brightness(1.1);
  box-shadow: none;
}

.layer {
  background: transparent;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  top: 0;
  transition: 0.5s;
}

.layer:hover {
  background: rgba(226, 0, 0, 0.7);
}

.layer h3 {
  width: 100%;
  font-weight: 500;
  color: #fff;
  font-size: 26px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  position: absolute;
  opacity: 0;
  transition: 0.5s;
}

.layer:hover h3 {
  bottom: 49%;
  opacity: 1;
}

/*----- announcement -----*/

.announcement {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  text-align: center;
  padding: 80px 20px;
}

.announcement h1 {
  font-size: 36px;
  color: #222;
  margin-bottom: 10px;
}

.announcement .subtitle {
  font-size: 20px;
  color: #444;
  margin-bottom: 10px;
}

.announcement .description {
  font-size: 16px;
  color: #666;
  max-width: 700px;
  margin: 0 auto 40px;
}

.announcement-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.announcement-col {
  background-color: #f4f4f4;
  flex: 1 1 300px;
  max-width: 360px;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.announcement-col:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.announcement-col h3 {
  color: #333;
  font-size: 20px;
  margin-bottom: 10px;
}

.announcement-col p {
  color: #555;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .announcement-grid {
    flex-direction: column;
    align-items: center;
  }

  .announcement-col {
    width: 100%;
    max-width: 90%;
  }
}

/*----- facilities -----*/

.facilities {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  text-align: center;
  padding: 80px 20px;
}

.facilities h1 {
  font-size: 36px;
  color: #222;
  margin-bottom: 10px;
}

.section-description {
  font-size: 16px;
  color: #666;
  max-width: 700px;
  margin: 0 auto 40px;
}

.facilities-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.facilities-col {
  background-color: #f9f9f9;
  flex: 1 1 300px;
  max-width: 360px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.facilities-col:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.facilities-col img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.facilities-col h3 {
  font-size: 20px;
  margin: 16px 20px 10px;
  color: #333;
}

.facilities-col p {
  font-size: 14px;
  margin: 0 20px 20px;
  color: #555;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .facilities-grid {
    flex-direction: column;
    align-items: center;
  }

  .facilities-col {
    width: 100%;
    max-width: 90%;
  }
}

/*----- call to action -----*/

.cta {
  margin: 100px auto;
  width: 80%;
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url(images/bg.jpg);
  background-position: center;
  background-size: cover;
  border-radius: 10px;
  text-align: center;
  padding: 100px 0;
}

.cta h1 {
  color: #fff;
  margin-bottom: 40px;
  padding: 0;
}

@media (max-width: 700px) {
  .cta h1 {
    font-size: 24px;
  }
  .dropdown-content {
    right: 0;
  }
}

/*-----footer-----*/

.footer {
  background: #202020;
  color: #f2f2f2;
  font-size: 14px;
  padding: 60px 20px 30px;
}

.footer .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
}

.footer-col-1,
.footer-col-2,
.footer-col-3,
.footer-col-4 {
  flex: 1 1 250px;
  margin: 20px;
  text-align: center;
}

.footer h3 {
  color: #f00;
  font-size: 18px;
  margin-bottom: 15px;
}

.footer p {
  color: #cccccc;
  line-height: 1.6;
  font-size: 14px;
}

.footer-col-2 img {
  width: 100px;
  height: auto;
  margin-bottom: 15px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .footer .row {
    flex-direction: column;
    align-items: center;
  }

  .footer-col-1,
  .footer-col-2,
  .footer-col-3,
  .footer-col-4 {
    flex: 1 1 100%;
    max-width: 500px;
  }
}

ul {
  list-style-type: none;
}

.copyright {
  text-align: center;
}

#iconmenu,
#collapseBtn {
  width: 1.5rem;
  display: none;
  cursor: pointer;
}

#collapseBtn {
  rotate: 180deg;
}

@media screen and (max-width: 700px) {
  #iconmenu,
  #collapseBtn {
    display: block;
  }
}
