/* Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background-color: #fdf5e6;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #4b2e05;
  overflow-x: hidden;
  text-align: justify;
}

/* Header base */
#main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 4rem;
  background-color: #fdf5e6;
  border-bottom: 1px solid #fdf5e6;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#main-header.scrolled {
  background-color: #fdf5e6;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  color: #663399;
  text-decoration: none;
  font-size: 30px;
  font-weight: 900;
}

.logo img {
  max-height: 24px;
  height: auto;
  width: auto;
}

.logo::after {
  content: "";
  position: absolute;
  width: 0.4rem;
  height: 0.4rem;
  background: #ff0000;
  bottom: 5%;
  right: -0.7rem;
}

/* Nav links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  position: relative;
  color: #4b2e05;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 4px 0;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background: #663399;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a:focus-visible::after {
  width: 100%;
}

.nav-links li a:hover {
  font-weight: 600;
  color: #663399;
}

.nav-links li a.active {
  color: #663399;
  font-weight: 600;
}

.nav-links li a.active::after {
  width: 100%;
  background: #663399;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: #4b2e05;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Mobile responsive */
@media (max-width: 768px) {
  #main-header .nav-links {
    position: absolute;
    display: none;
    top: 100%;
    right: -100%;
    flex-direction: column;
    background: #fdf5e6;
    width: 100%;
    text-align: left;
    padding: 1rem;
    gap: 1rem;
    transition: right 0.3s ease-in-out;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  }

  #main-header {
    padding: 1.25rem 2rem;
  }

  #main-header .nav-links.active {
    right: 0;
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}

/* Hamburger animation when active */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.responsive-tab-image {
  max-width: 100%;
  height: auto;
  display: block;
}

.image-container {
  padding: 1rem;
  max-width: 100%;
}

.profile-img-large {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.read-more {
  color: #663399;
}

/* Footer */
footer {
  background: #fdf5e6;

  color: #4b2e05;
}

.footer-top {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 4rem;
  padding: 3rem 3.5rem;
}

.footer-top h1 {
  color: #663399;
}

.footer-top > div:nth-child(1) {
  flex: 3;
}

.footer-top .overlay {
  max-width: 70%;
}

.footer-top > div {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.footer-text {
  display: flex;
  max-width: 600px;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-text h2 {
  font-size: 1rem;
  margin-left: 2rem;
  border-left: 2px solid #4b2e05;
  padding-left: 2rem;
}

.footer-top .navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
}

.footer-top .logo {
  font-size: 3rem;
  font-weight: bold;
  max-height: min-content;
}

.footer-top .nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.footer-top .nav-links li:not(:first-child):not(:last-child) {
  border-inline: 2px solid #1a1a1a;
  padding-inline: 1.5rem;
}

.footer-top .nav-links a {
  color: #1a1a1a;
  text-decoration: none;
}

.footer-links ul {
  margin-top: 1rem;
  list-style: none;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #4b2e05;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #663399;
  font-weight: bolder;
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  padding: 3rem 7rem;
  background-color: #4b2e05;
  color: #fdf5e6;
}

.footer-bottom a {
  color: #fdf5e6;
  text-decoration: none;
  font-weight: bold;
}

.footer-bottom a:hover,
.footer-bottom a:focus {
  font-weight: bolder;
  text-decoration: underline;
  line-height: 1.2;
  color: #fff;
  transform: translateY(-1px);
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 4px rgba(229, 9, 20, 0.1);
}

/* ============================
   Responsive Styles
=============================== */

/* Tablets (max-width: 1024px) */
@media (max-width: 1024px) {
  footer {
    margin-top: 2rem;
  }

  .footer-top {
    flex-wrap: wrap;
    gap: 2rem;
  }

  .footer-top .nav-links {
    justify-content: center;
    gap: 0.5rem;
  }

  .footer-text {
    max-width: 100%;
    margin-left: 0;
    padding-left: 0;
    gap: 1rem;
  }
  .footer-text h2 {
    font-size: 1.3rem;
  }

  .footer-top .overlay {
    max-width: 100%;
  }
}

/* Mobile (max-width: 600px) */
@media (max-width: 600px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    padding: 3rem 2rem;
  }
  .footer-top .logo {
    font-size: 2rem;
  }

  .footer-top .nav-links li:not(:first-child):not(:last-child) {
    padding-inline: 0.5rem;
  }
  .footer-bottom {
    font-size: 0.9rem;
    padding: 3rem 2rem;
  }
}

/* Scrolling Words */
.footer-categories {
  overflow: hidden;
  background: var(--footer-bg);
}

.scroll-track {
  overflow: hidden;
  position: relative;
  background-color: #4b2e05;
  padding-block: 1rem;
  color: #fdf5e6;
}

.scroll-content {
  display: inline-flex;
  gap: 3.5rem;
  white-space: nowrap;
  animation: scrollLeft 35s linear infinite;
}

.scroll-content span {
  color: var(--footer-text);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.scroll-content strong {
  color: var(--accent-color);
  font-weight: 800;
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}
