/* General Styles */
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Molengo', "Open Sans";
  color: #444;
  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
}

#header {
  height: 70px;
  transition: all 0.5s;
  z-index: 997;
  background: #000;
}

#header .logo h1 {
  font-size: 30px;
  margin: 0;
  padding: 6px 0;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

#header .logo h1 a {
  color: #fff;
  text-decoration: none;
}

#header .logo img {
  max-height: 40px;
}

/* Media Query for header height adjustment */
@media (max-width: 992px) {
  #header {
    height: 60px;
  }
}

/* Navigation Menu */
.navbar {
  padding: 0;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li + li {
  margin-left: 30px;
}

.navbar a,
.navbar a:focus {
  padding: 12px 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  transition: 0.3s;
  position: relative;
}

.navbar a:hover,
.navbar .active {
  color: #fff;
}

.navbar a:hover:before,
.navbar .active:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 3px;
  left: 0;
  background-color: #f4f410;
  visibility: visible;
  width: 100%;
  transition: all 0.4s ease-in-out;
}

/* Dropdown Menu */
.navbar .dropdown ul {
  display: block;
  position: absolute;
  left: 0;
  top: 100%;
  background: #fff;
  box-shadow: 0 0 30px rgba(127, 137, 161, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.navbar .dropdown:hover > ul {
  opacity: 1;
  visibility: visible;
}

.navbar .dropdown ul a {
  padding: 10px 20px;
  font-size: 14px;
  color: #062822;
  transition: 0.3s;
}

.navbar .dropdown ul a:hover {
  color: #1bac91;
}

#main {
  padding-top: 100px;
}

/* Section Titles */
.section-title h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #003366;
}

.section-title p {
  font-size: 1.2rem;
  color: #666;
}

/* Resource Cards */
.resource-card {
  background-color: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.resource-card h4 {
  color: #003366;
  font-size: 1.5rem;
}

.resource-card p {
  font-size: 1rem;
  color: #666;
  margin: 1px;
}

.resource-card .resource-card-description {
  font-size: 0.9rem;
  color: #666;
}

/* Card Buttons */
.card-buttons {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.card-buttons a {
  background-color: #003366;
  color: white;
  padding: 8px 15px;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.card-buttons a:hover {
  background-color: #005099;
}

/* Custom GitHub Button */
.btn-github {
  background-color: gray;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  padding: 10px 15px;
}

.btn-github:hover {
  background-color: darkgray;
}

.btn-github:active {
  background-color: #555;
}

.btn-github[disabled] {
  background-color: lightgray;
  color: #888;
  pointer-events: none;
}

/* Footer */
footer {
  background-color: #003366;
  color: white;
  padding: 20px 0;
}

footer p {
  margin: 0;
  font-size: 1rem;
}

/* Back to Top Button */
.back-to-top {
  background-color: #003366;
  color: white;
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 10px 15px;
  border-radius: 50%;
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}

.back-to-top:hover {
  background-color: #005099;
}

/* Bootstrap Overrides */
.container {
  max-width: 1200px;
}

.resource-card .card-buttons a {
  margin-bottom: 0;
}
