:root {
  --main-bg: #e52e02;
  --text-color: #ffffff;
  --accent-color: #ffc916;
  --font-primary: "Inter", sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  background: #fff;
  font-family: var(--font-primary);
}

.main-containerf {
  background-color: #aa1c00;
  color: var(--text-color);
  width: 100%;
  padding: 60px 80px;
  box-sizing: border-box;
}

.footer {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  text-align: left;
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo */
.logo {
  width: 320px;
  height: 90px;
  background: url("../assets/images/goldlogo.png") no-repeat left center;
  background-size: contain;
}

/* Footer content: nav + categories */
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  width: 100%;
}

/* Left side: nav + categories */
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 30px;
  flex: 1;
}

.footer-columns {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

/* Column Titles */
.col-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 14px;
  letter-spacing: 0.8px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent-color);
  transform: translateX(4px);
}

/* --- Modern Custom Dropdown UI --- */
.categories-dropdown-container {
  display: flex;
  flex-direction: column;
}

.custom-dropdown {
  position: relative;
  width: 220px;
}

.dropdown-toggle {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-color);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-family: var(--font-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-color);
}

.dropdown-toggle i {
  font-size: 12px;
  transition: transform 0.3s ease;
  color: var(--accent-color);
}

.custom-dropdown.active .dropdown-toggle i {
  transform: rotate(180deg);
}

.dropdown-menu-list {
  position: absolute;
  bottom: calc(100% + 8px); /* Pops upward so it doesn't get cut off by bottom of screen */
  left: 0;
  width: 100%;
  background: #7c1400;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  max-height: 250px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.custom-dropdown.active .dropdown-menu-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu-list::-webkit-scrollbar {
  width: 5px;
}
.dropdown-menu-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
}

.dropdown-menu-list a {
  padding: 10px 14px;
  text-decoration: none;
  color: #ddd;
  font-size: 13px;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.2s, color 0.2s;
}

.dropdown-menu-list a:last-child {
  border-bottom: none;
}

.dropdown-menu-list a:hover {
  background: rgba(255, 201, 22, 0.1);
  color: var(--accent-color);
  padding-left: 18px;
}

/* Right side: Publications */
.footer-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.publications-title {
  color: var(--accent-color);
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

/* Publications stack */
.publications {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  position: relative;
  height: 340px;
}

.pub-item {
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), z-index 0.3s ease;
}

.pub-item:not(:first-child) {
  margin-left: -240px;
}

.pub-item img {
  width: 220px;
  height: 310px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pub-item:hover {
  z-index: 10;
  transform: translateY(-8px) scale(1.03);
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 20px;
  padding-top: 15px;
  font-size: 13px;
  color: #aaa;
  text-align: left;
  width: 100%;
}

/* Feedback section styles (kept intact) */
.feedback-section {
    background-color: #fff;
    max-width: 600px;
    margin: 40px auto 60px auto;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    text-align: center;
} 

.feedback-section h2 {
    color: #e52e02;
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: bold;
}

.feedback-section p {
    color: #555;
    font-size: 15px;
    margin-bottom: 25px;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feedback-form input, .feedback-form textarea {
    font-family: var(--font-primary);
    font-size: 15px;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1.5px solid #ddd;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.feedback-form input:focus, .feedback-form textarea:focus {
    border-color: #004c03;
    box-shadow: 0 0 0 3px rgba(0, 76, 3, 0.1);
}

.feedback-form button {
    background-color: #e52e02;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    padding: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.feedback-form button:hover {
    background-color: #003802;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .main-containerf {
    padding: 40px 30px;
  }

  .footer-content {
    flex-direction: column;
    align-items: center; 
    text-align: center;  
    gap: 40px;
  }

  .footer-left {
    align-items: center; 
    width: 100%;
  }

  .nav-links, .categories-dropdown-container {
    align-items: center; 
  }

  .custom-dropdown {
    width: 260px;
  }

  .dropdown-menu-list {
    bottom: auto;
    top: calc(100% + 8px); /* Flip dropdown downward on smaller screens if space permits */
  }

  .footer-right {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .publications {
    justify-content: center;
    height: auto;
  }

  .pub-item:not(:first-child) {
    margin-left: -140px; 
  }

  .footer-bottom {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .logo {
    width: 260px;
    height: 75px;
  }

  .footer-columns {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }
}