
@font-face {
  font-family: 'Helvetica Light';
  font-style: normal;
  font-weight: normal;
  src: local('Helvetica Light'), url('fonts/helvetica/helvetica-light-587ebe5a59211.woff') format('woff');
  }

@font-face {
  font-family: 'Helvetica Rounded Bold';
  font-style: normal;
  font-weight: normal;
  src: local('Helvetica Rounded Bold'), url('helvetica-rounded-bold-5871d05ead8de.woff') format('woff');
  }

@font-face {
  font-family: 'Helvetica';
  font-style: normal;
  font-weight: normal;
  src: local('Helvetica'), url('Helvetica-Bold.woff') format('woff');
  }

  @font-face {
    font-family: 'Helvetica Bold Oblique';
    font-style: normal;
    font-weight: normal;
    src: local('Helvetica Bold Oblique'), url('Helvetica-BoldOblique.woff') format('woff');
  }
    
body {
  font-family: 'Helvetica Light', sans-serif;
  margin: 0;
  box-sizing: border-box;
  background-color: #ffffff;
}

::selection {
  color: rgb(255, 255, 255);
  background: rgb(0, 0, 0);
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px 20px 30px;
  background-color: white;
  transition: background 2s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/*
header.scrolled {
  background: rgba(255, 255, 255, 0.8); 
  backdrop-filter: blur(10px); 
}
  */

.logo {
  display: flex;
  flex-direction: row;
  gap: 0px;
  align-items: center;
  justify-content: center;
}

.logo img {
  height: 50px;
  width: auto; 
}

.search-container {
  display: flex;
  align-items: center;
  position: relative;
}

.search-icon {
  width: 24px; 
  height: 24px;
  margin-right:10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-container:hover .search-input {
  width: 150px;
  padding: 10px;
}

.search-input {
  width: 0;
  padding: 0;
  border: none;
  outline: none;
  transition: width 0.3s ease, padding 0.3s ease;
  background: white;
  border-bottom: 1px solid black;
  height: 14px;
  position: absolute;
  right: 0;
  color: gray;
}

.search-lang a {
  font-size: 13px;
  text-decoration: none;
  padding:10px;
  background-color: black;
  color: white;
}

nav {
  display: flex;
}

/* Hide hamburger menu on large screens */
.hamburger {
  display: none;
  font-size: 30px;
  cursor: pointer;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 70px;
}

nav ul li {
  display: inline;
}

nav ul li a {
  text-decoration: none;
  color: black;
}

nav ul li a:hover{
  font-style: italic;
}

.search-lang {
  display: flex;
}

.hero {
  position: relative;
}

.hero img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 10px 10px 20px 20px;
}

.tagline {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  position: absolute;
  top: 0;
  right: 10%;
  width: 140px;
  height: 170px;
  background: white;
  padding: 10px;
  font-size: 1.5em;
  font-weight: bold;
  text-align: end;
}

.tagline p {
  align-self: flex-end;
  margin-block: 0; 
}

h2 {
  font-family: 'Helvetica', sans-serif;
  letter-spacing: -1px;
  font-size: 32px;
  font-style: bold;
  margin-left: 7%;
  margin-bottom: 0; 
  line-height: 30px; 
}

.divider {
  border-bottom: 0.2px solid rgb(207, 207, 207);
  width: 100%;
  margin-block: 0; 
}

.departments {
  padding: 0px 100px; 
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.departments h3 {
  font-family: 'Helvetica', sans-serif;
  font-size: 20px; 
  padding: 14px 0px 0px 0px;
  margin-block: 0; 
  border-bottom: 0.2px solid rgb(156, 156, 156);
  transition: ease-in-out 0.6s;
  z-index: 1000;
  line-height: 20px;
}

.departments h3:hover {
  background-color: black;
  color: white;
  text-align: left;
  border-bottom: none;
}

.department-list {
  text-align: left;
  gap: 0; 
  width: 70%;
}

.subcategories {
  display: none;
  align-items: right;
  justify-items: right;
  justify-content: right;
  margin-bottom: 0px;
  z-index: -2; 
}

.subcategories li { 
  padding: 10px 0px 5px 0px;
  border-bottom: 0.1px solid rgb(52, 52, 52);
  width: 65%;
  text-align: left;
  font-size: 14px;
  font-family:'Helvetica Light', sans-serif;
  font-style:italic;
}

.department:hover > .subcategories {
  margin-top: -40px;
  display: block;
  background-color: black;
  color: white;
  list-style: none;
  text-decoration: none;
}

.departments .department:hover h3 {
  background-color: black;
  padding: 12px 20px;
  color: white;
  text-align: left;
  border-bottom: none;
}

.explore-grid {
  margin-top: 15px; 
  padding: 0px 100px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* 3 cols */
  grid-template-rows: auto auto; /* 2 rows */
  gap: 10px;
  height: 500px;
  margin-bottom: 50px; 
}

.explore-item.left {
  grid-column: 1 / 2; 
  grid-row: 1 / 3; 
  background-image: url('assets/explore1.jpg');
}
.explore-item.middle-top {
  grid-column: 2 / 3; 
  grid-row: 1 / 2; 
  background-image: url('assets/explore2.jpg');
}
.explore-item.middle-bottom {
  grid-column: 2 / 3;
  grid-row: 2 / 3; 
  background-image: url('assets/explore3.jpg');
}
.explore-item.right {
  grid-column: 3 / 4; 
  grid-row: 1 / 3; 
  background-image: url('assets/explore4.png');
}

.explore-item {
  font-family: 'Helvetica Light', sans-serif;
  font-style: italic;
  font-size: 16px;
  font-weight: bold;
  border-radius: 10px;
  object-fit: cover;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  transition: all 0.3s;
  position: relative;
}

.explore-item h3 {
  margin: 0; 
  background-color: white; 
  padding: 20px 20px; 
  width: 20%;
  height: 8%;
  color: black;
  position: absolute;
  right: 0; 
  top: 0;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0px 10px 0px 0px;
}

.explore-item:hover{
  filter: drop-shadow(0 0 10px rgb(77, 77, 77));
  scale: 1.02;
}

.recent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  grid-auto-flow: row;
  width: auto; 
  overflow-y: hidden; 
  overflow-x:scroll;
  scroll-behavior: smooth;
  margin-bottom: 20px;
  margin-bottom: 30px; 
  scrollbar-width: thin;
  scrollbar-color: black white;
}

.small-article {
  width: 25vw; 
  background: rgb(255, 255, 255);
  padding: 10px;
  border: 0.2px solid rgb(207, 207, 207);
  border-top: none;
  border-bottom: none; 
  transition: all 0.2s;
}

.small-article:hover {
  background: black; 
  color: white; 
}

.small-article img { 
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}
.small-article h3 {
  margin-bottom: 0px;
}

.small-article p { 
  text-align: justify;
  font-size: 70%; 
}
.recent {
  position: relative; 
}

.arrow {
  position: absolute;
  width: 50px;
  height: 50px;
  right: 0; 
  bottom: 0;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.1));
  transform: scaleX(-1); /* Flips the arrow horizontally */
}

footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  justify-content:left;
  background: black;
  color: white;
  height: 240px; 
  margin: 0;
  padding-left: 20px; 
  grid-gap: 0; 
  padding-top: 30px; 
  padding-right: 40px; 
}

footer h3 { 
  font-family: 'Helvetica', sans-serif;
  font-size: 50px;
  letter-spacing:-2px;
  padding: 0; 
  margin: 0;
}

footer p {
  color: rgb(167, 167, 167); 
  font-family: 'Helvetica Light', sans-serif;
  font-size: 14px; 
}

.contact-form {
  align-items: end;
  display: flex;
  flex-direction: column;
  font-family: 'Helvetica Light', sans-serif;
  font-style: italic;
}

.contact-form input {
  display: block;
  margin-bottom: 10px;
  padding: 5px;
  width: 200px;
  background-color: transparent;
  border: none; 
  border-bottom: 0.1px solid rgb(118, 118, 118);
  box-shadow: none;
  width: 100%; 
  font-style: italic;
  color: white; 
}

.contact-form input:focus {
  outline: none;
}

.contact-form input::selection {
  color: black;
  background: white;
}

.contact-form h4{ 
  margin-top: 0px; 
  margin-bottom: 10px;
  font-style: normal; 
  font-size: 20px; 
  font-family: 'Helvetica', sans-serif;
}

button {
  align-self: flex-start;
  background: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 30px; 
  color: black; 
  width: 35%; 
  margin-top: 24px; 
  margin-left: -10px;
  transition: all ease-in-out 0.3s;
}

button:hover {
  box-shadow: 0 0 15px rgba(255, 255, 255, 1);
}

/* Mobile Styles */
@media (max-width: 992px) {
  header {
    justify-content: space-between;
    padding: 20px; /* Reduced padding for mobile */
    position: sticky; /* Needed for absolute positioning of menu */
  }

  .hero img {
    border-radius: 0; 
  }
  
  nav {
    display: none; /* Hide navbar by default */
    position: absolute;
    top: 100%; /* Position below header */
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    transition: all 0.3s ease;
    transform: translateY(-10px);
  }

  /* Show menu when active */
  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column; /* Stack items vertically */
    gap: 0; /* Remove gap between items */
    padding: 0;
    margin: 0;
  }

  nav ul li {
    padding: 15px 20px;
    text-align: center;
  }

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

  .search-lang {
    align-items: center;
    gap: 15px;
  }

  .search-lang a {
    display: none; /* Hide language toggle on mobile */
  }

  .search-input {
    right: 35px; 
  }

  .hamburger {
    display: block; /* Show hamburger icon */
    order: 1; /* Ensure it's at the end */
  }

  .explore-grid {
    grid-template-columns: repeat(2, 1fr); /* 4 equal columns */
    grid-template-rows: repeat(2, 1fr);  /* Single row */
    height: auto; /* Remove fixed height */
    gap: 10px;
    padding: 0 15px;
  }

  /* Reset all grid item positions */
  .explore-item.left,
  .explore-item.middle-top,
  .explore-item.middle-bottom,
  .explore-item.right {
    grid-column: auto;
    grid-row: auto;
    height: 200px; /* Uniform height */
  }

  .explore-item h3 {
    width: 30%; /* Smaller title box on mobile */
  }

  .small-article {
    width: 30vw; /* Full width */
    padding: 10px; 
  }

  .small-article img {
    height: 100px; /* Fixed height */
    width: 100%; 
  }

  footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    grid-template-columns: 1fr; /* Single column */
    grid-template-rows: auto auto auto; /* 3 rows */
    padding: 20px; /* Padding on all sides */
    text-align: center; /* Center align text */
    height: auto;
  }

  footer h3 {
    font-size: 40px; /* Smaller heading */
  }

  footer p {
    margin-left: 0; /* Reset margin */
  }

  footer .contact-form {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center align form */
    justify-content: center;
    width: 80%;
  }

  footer .contact-form input {
    width: 100%; /* Full width input */
  }

  footer .contact-form button {
    width: 100%; /* Full width button */
    margin: 0px;
    margin-top: 15px;
  }

  .departments {
    padding: 0 20px; /* Reduced padding */
  }

  .departments h3 {
    border: none; 
    text-align: center;
  }
  .department-list {
    width: 100%;
  }
}