@import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");

* {
  margin: 0;
  padding: 0;
}
html body {
  height: 100%;
  font-family: "Roboto", sans-serif;
  background-color: white;
}

/* Navigation Bar */
.navbar {
  overflow-x: auto; /* horizontal scroll if links overflow */
  white-space: nowrap; /* keep links in one line */
}

nav {
    margin-bottom: 0.3cm;
    background-color: white;
    width: 100%;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Adds a soft shadow for depth */
    padding: 10px 20px; /* Add padding for spacing */
    position: fixed; /* Makes it stay on top when scrolling */
    top: 0;
    left: 0;
    z-index: 1000; /* Ensures it stays above other elements */
}

.navbar-nav {
    display: flex;       /* Ensure flex layout */
    flex-wrap: nowrap;   /* Prevent links from going to the next line */
}

/* Navigation links */
.navbar-nav a {
    font-weight: bold;
    color: black;
    padding: 8px 12px; /* Increased padding for better clickability */
    text-decoration: none; /* Remove underline */
    font-size: 16px;
    transition: color 0.3s ease, transform 0.2s ease;
}

/* Hover effect */
.navbar-nav a:hover {
    color: #0990A7;
    transform: translateY(-2px); /* Slight lift effect */
}

/* Active link */
.navbar-nav a.active {
    color: #0990A7; /* Highlight active page */
    border-bottom: 3px solid #0990A7; /* Underline effect */
}

/* Navbar Toggler (Mobile Menu Button) */
.navbar-toggler {
    background-image: url(images/menu.png);
    background-size: 40px 40px;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    opacity: 0.9;
    border: none;
    width: 50px;
    height: 50px;
    background-color: transparent;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Toggler Hover Effect */
.navbar-toggler:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* Heading */

.header-row{
  height:450px;
  width: 100%;
  background-image: linear-gradient(rgba(3, 64, 80, 0.7), rgba(3, 64, 80, 0.7)), url(images/resources.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
}

#Header .text-center {
  width: 100%;
  position:absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#Header .text-center h1 {
  font-size: 55px;
  font-weight: bold;
  color: white;
  }
  
#Header .text-center hr{
  width: 15%;
  height: 5px;
  border: 0 none;
  margin-right: auto;
  margin-left: auto;
  margin-top: 10px;
  margin-bottom: 10px;
  background-color:white;
  color: white;
  }

 /* Content */
.text-container {
  text-align: left;
  margin-top: 500px;
  margin-left: 30px;
  margin-right: 30px;
}

.note-para {
  font-size: 18px;
  color: black;
  margin-left: 30px;
  margin-right: 30px;
}

/* container */
.document-container {
  margin: 50px;
  padding: 20px;
  max-width: auto;
  background-color: #005f70;
  border-radius: 5px;
}

.document-container h1{
  color: white;
}

/* document cards */
.card {
  margin-bottom: 30px;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 5px;
}

.card-date {
  font-size: 20px;
  margin-bottom: 10px;
}

.card-text{
  font-size: 18px;
}

/* search input and sort select */
.row {
  margin-bottom: 20px;
}

.form-control {
  height: 40px;
  font-size: 14px;
}

#searchInput {
  border-radius: 5px;
  width: 70%; 
  padding-left: 40px;
  background-image: url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/icons/search.svg');
  background-repeat: no-repeat;
  background-position: 5px center;
  background-size: 20px 20px;
}

#sortSelect {
  border-radius: 5px;
  width: 30%; 
  float: right;
  padding-right: 30px;
  background-image: url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/icons/sort-down.svg');
  background-repeat: no-repeat;
  background-position: right 5px center;
  background-size: 20px 20px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

#searchInput:focus,
#searchInput:active,
#sortSelect:focus,
#sortSelect:active {
  border-color: #00434e ;
  box-shadow: 0 0 0 2px #00434e;
  outline: none;
}

/* download button */
.card-body a {
  color: white;
}

.card-body a:hover {
  color: white;
}

.download-btn{
  float: right;
  font-size: 14px;
  padding: 5px 10px;
  border-radius: 5px;
  background-color: #005f70 !important;
  border: none;
}

.download-btn:hover {
  background-color: #0990A7 !important;
}

.download-btn:active {
  background-color: #005f70 !important;
}

/* Footer */
.footer {
background-color: #005f70;
  color: #fff;
  padding: 4rem 0 2rem;
}

.footer h5 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.footer p, .footer a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

.Links p a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.Links p a:hover {
  color: #0990A7;
}

.Contact i {
  margin-right: 0.5rem;
}

.Social i {
  font-size: 2rem;
  margin-right: 1rem;
  transition: color 0.3s ease;
}

.Social i:hover {
  color: #0990A7;
}


.footer-image {
  margin-top: 2rem;
  text-align: center;
}

.footer-image img {
  max-width: 120px;
  height: auto;
  margin-bottom: 1rem;
}

.footer-image p {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
}

@media (min-width: 768px) and (max-width: 1024px) {
  /* tablet devices */

  #Header .text-center h1 {
    font-size: 40px;
  }
  .card-title {
    font-size: 20px;
  }
  #searchInput {
    width: 90%; 
  }
  #sortSelect {
    width: 70%; 
  }
}

@media (max-width: 768px) {
  
  #Header .text-center h1 {
    font-size: 30px;
  }
  .note-para{
    text-align: justify;
  }
  .card-title {
    font-size: 18px;
  }
  #searchInput {
    width: 50%; 
  }
  .select{
    padding-top: 20px;
  }
  #sortSelect {
    width: 50%;
    float: left;
    padding-right: 10px;
    background-image: url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/icons/sort-down.svg');
    border: none;
  }
  .footer {
    margin-top: 300px;
  }
  .Social {
    text-align: left;
  }
}

