html,
body {
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background-color: #DCD7C9;
}

main {
  flex: 1;
}

/* Footer */
.custom-footer {
    background-color: #2C3639;
    background-size: cover;
    background-position: center;
    padding: 0 0 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #e2e8f0;
    font-weight: 400;
    margin: 0;
    margin-top: auto;
}

.footer-content {
    padding: 0 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.footer-column p,
.footer-column li {
    color: #e2e8f0;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    text-decoration: none;
    color: #e2e8f0;
    transition: all 0.3s ease;
}

.footer-column a:hover {
    color: #f00557;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0;
}

.copyright {
    font-size: 0.9rem;
    color: inherit;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #f00557;
    color: white;
}

.back-to-top {
    background-color: #f00557;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-to-top.is-hidden {
    display: none;
}

.back-to-top:hover {
    background-color: #d6064f;
}

.footer-hover-scale a:hover {
    transform: scale(1.05);
}

.footer-hover-glow a:hover {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.footer-hover-slide a:hover {
    transform: translateY(-3px);
}

.footer-floating {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.footer-fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.footer-slide-up {
    transform: translateY(50px);
    opacity: 0;
    animation: slideUp 1s forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.footer-sticky {
    position: sticky;
    bottom: 0;
    z-index: 100;
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-column {
        min-width: 100%;
    }

    .social-icons a {
        width: 32px;
        height: 32px;
    }

    .back-to-top {
        width: 35px;
        height: 35px;
    }
}

/* Navigation */
.gen-nav {
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #2b3738, #3F4E4F);
  min-height: 51px;
  border-radius: 0;
  border: 0 solid #1e3a8a;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  padding: 0 16px;
  position: relative;
  flex-wrap: wrap;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  box-sizing: border-box;
}

.gen-nav *,
.gen-nav *::before,
.gen-nav *::after {
  box-sizing: border-box;
}

.gen-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gen-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-right: auto;
}

.gen-logo a {
    cursor: default;
}

.gen-logo-text {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
}

.gen-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
}

.gen-hamburger span {
  display: block;
  background: #ffffff;
  transition: all 0.3s;
  width: 22px;
  height: 3px;
  border-radius: 2px;
  margin: 2.5px 0;
}

.gen-nav > ul {
  display: flex;
  justify-content: center;
  flex: 1;
  flex-wrap: wrap;
}

.gen-nav > ul > li {
  position: relative;
}

.gen-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 21px;
  height: 51px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.gen-nav > ul > li > a:hover,
.gen-nav > ul > li:hover > a {
  background: #1d4ed8;
  color: #bfdbfe;
}

.gen-arrow {
  font-size: 0.7em;
  opacity: 0.8;
  vertical-align: middle;
}

.gen-nav > ul > li > ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #1e3a8a;
  min-width: 170px;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  z-index: 1000;
  overflow: hidden;
}

.gen-nav > ul > li:hover > ul {
  display: block;
}

.gen-nav > ul > li > ul > li > a {
  display: block;
  padding: 10px 18px;
  color: #dbeafe;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.gen-nav > ul > li > ul > li > a:hover {
  background: #1d4ed8;
  color: #ffffff;
}

.gen-nav > ul > li > ul > li:last-child {
  border-radius: 0 0 6px 6px;
  overflow: hidden;
}

.gen-nav > ul > li > ul > li:last-child > a {
  border-radius: 0 0 6px 6px;
}

@media (max-width: 768px) {
  .gen-hamburger { display: flex; margin-left: 0; }
  .gen-nav { display: flex; flex-wrap: wrap; }
  .gen-logo { margin-right: auto; margin-left: 0; justify-self: unset; order: -1; }
  .gen-nav > ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: linear-gradient(90deg, #233867, #273f72);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    padding: 8px 0;
    overflow: hidden;
  }
  .gen-nav > ul.open { display: flex; }
  .gen-nav.mobile-open { border-radius: 14px 14px 0 0; }
  .gen-nav > ul > li > a { height: auto; padding: 14px 20px; }
  .gen-nav > ul > li:last-child { border-radius: 0; overflow: visible; }
  .gen-nav > ul > li:last-child > a { border-radius: 0; }
  .gen-nav > ul > li > ul {
    display: none;
    position: static;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    background: rgba(0, 0, 0, 0.15);
    min-width: 0;
  }
  .gen-nav > ul > li > ul.sub-open { display: block; }
  .gen-nav > ul > li.has-sub > a .gen-arrow { display: inline-block; }
  .gen-nav > ul > li > ul > li:last-child { border-radius: 0; overflow: visible; }
  .gen-nav > ul > li > ul > li:last-child > a { border-radius: 0; }
  .gen-nav > ul > li > ul > li > a { padding: 10px 32px; }
  .gen-nav.mobile-open .gen-hamburger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .gen-nav.mobile-open .gen-hamburger span:nth-child(2) { opacity: 0; }
  .gen-nav.mobile-open .gen-hamburger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}