/* ===== Global Font ===== */
body {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  color: #212529;
  line-height: 1.6;
}

/* ===== Logo ===== */
.logo {
  max-height: 80px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

/* ===== Header Top Section ===== */
.header-top {
  padding: 20px 0;
  background: #ffffff;
  background-image: 
    linear-gradient(135deg, rgba(114, 55, 13, 0.03) 25%, transparent 25%),
    linear-gradient(225deg, rgba(114, 55, 13, 0.03) 25%, transparent 25%),
    linear-gradient(45deg, rgba(114, 55, 13, 0.03) 25%, transparent 25%),
    linear-gradient(315deg, rgba(114, 55, 13, 0.03) 25%, transparent 25%);
  background-position: 0 0, 10px 0, 10px -10px, 0px 10px;
  background-size: 20px 20px;
  border-bottom: 3px solid #72370d;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1040;
  transition: all 0.3s ease;
}

.header-top.scrolled {
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* ===== Header Title ===== */
header h2 {
  font-size: clamp(1.2rem, 3vw, 2.2rem);
  color: #72370d;
  font-family: 'UnifrakturMaguntia', cursive;
  transition: font-size 0.3s ease;
  margin-bottom: 5px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

header h5 {
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  color: #6c757d;
  font-weight: 500;
  margin-bottom: 5px;
}

.tagline {
  font-size: clamp(0.7rem, 1.2vw, 0.9rem);
  font-weight: 600;
  color: #036635;
  letter-spacing: 0.5px;
  margin: 0;
  text-transform: uppercase;
}

/* ===== Desktop Navbar ===== */
.navbar-custom {
  background: linear-gradient(135deg, #72370d 0%, #5c2b0b 100%);
  min-height: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-custom .navbar-nav {
  gap: 5px;
}

.navbar-custom .nav-item {
  position: relative;
}

.navbar-custom .nav-link {
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 13px;
  color: #fff !important;
  font-family: 'Raleway', sans-serif;
  transition: all 0.3s ease;
  position: relative;
  border-radius: 6px;
  margin: 0 2px;
}

/* Hover effect with underline animation */
.navbar-custom .nav-link::before {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #036635;
  transition: width 0.3s ease;
}

.navbar-custom .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff !important;
  transform: translateY(-2px);
}

.navbar-custom .nav-link:hover::before {
  width: 70%;
}

/* Active state */
.navbar-custom .nav-link.active {
  background-color: #036635;
  border-radius: 6px;
}

/* ===== Desktop Dropdown Styling ===== */
.navbar .dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
  animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-menu {
  background: linear-gradient(135deg, #72370d 0%, #5c2b0b 100%);
  border: none;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  padding: 8px;
  margin-top: 8px;
  min-width: 240px;
}

.dropdown-menu .dropdown-item {
  text-transform: uppercase;
  color: #fff;
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #036635 !important;
  color: #fff !important;
  transform: translateX(5px);
  padding-left: 20px;
}

/* Dropdown arrow indicator */
.dropdown-toggle::after {
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

/* ===== Mobile Menu Button ===== */
.navbar-toggler {
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1050;
}

.navbar-toggler:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  transform: scale(1.05);
}

.navbar-toggler-icon {
  display: inline-block;
  width: 26px;
  height: 2px;
  background-color: #fff;
  position: relative;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 26px;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.navbar-toggler-icon::before {
  top: -8px;
}

.navbar-toggler-icon::after {
  top: 8px;
}

/* Animated burger icon when clicked */
.navbar-toggler.active .navbar-toggler-icon {
  background-color: transparent;
}

.navbar-toggler.active .navbar-toggler-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.navbar-toggler.active .navbar-toggler-icon::after {
  transform: rotate(-45deg);
  top: 0;
}

/* ===== Mobile Offcanvas Drawer ===== */
.custom-drawer {
  background: linear-gradient(180deg, #72370d 0%, #5c2b0b 100%);
  color: #fff;
  width: 320px;
  max-width: 85vw;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
}

.custom-drawer .offcanvas-header {
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
}

.custom-drawer .offcanvas-body {
  padding: 20px;
  overflow-x: hidden;
}

.custom-drawer .navbar-nav {
  gap: 8px;
}

.custom-drawer .nav-link {
  text-transform: uppercase;
  color: #fff !important;
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 8px;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 4px;
  line-height: 1.3;
  white-space: normal;
}

.custom-drawer .nav-link:hover {
  background: #036635 !important;
  color: #fff !important;
  transform: translateX(8px);
  box-shadow: 0 4px 12px rgba(3, 102, 53, 0.3);
}

/* ===== FIXED: Mobile Dropdown Styling ===== */
/* Remove absolute positioning for mobile dropdowns */
.custom-drawer .nav-item.dropdown {
  position: relative;
}

/* Mobile dropdown - now flows naturally below parent */
.custom-drawer .dropdown-menu {
  background: #a67c52; /* Solid light brown background */
  border: 2px solid #8b6942;
  border-radius: 8px;
  margin: 8px 0 8px 0;
  padding: 8px;
  position: static !important; /* Changed from absolute to static */
  transform: none !important; /* Remove transform */
  width: 100% !important; /* Full width of parent */
  min-width: auto !important;
  max-width: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

.custom-drawer .dropdown-item {
  color: #fff !important;
  text-transform: uppercase;
  font-size: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 500;
  letter-spacing: 0.3px;
  white-space: normal;
  line-height: 1.3;
  transition: all 0.3s ease;
}

.custom-drawer .dropdown-item:hover {
  background: #036635 !important;
  color: #fff !important;
  transform: translateX(5px);
}

/* Style for the dropdown toggle in mobile */
.custom-drawer .dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.custom-drawer .dropdown-toggle::after {
  transition: transform 0.3s ease;
}

/* Rotate arrow when dropdown is open */
.custom-drawer .dropdown.show .dropdown-toggle::after {
  transform: rotate(180deg);
}

/* ===== Brown Buttons ===== */
.btn-brown {
  background: linear-gradient(135deg, #72370d 0%, #5c2b0b 100%);
  color: #fff;
  border: none;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(114, 55, 13, 0.3);
}

.btn-brown:hover {
  background: linear-gradient(135deg, #5c2b0b 0%, #72370d 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(114, 55, 13, 0.4);
}

/* ===== Sidebar Quick Links ===== */
.sidebar {
  top: 90px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.sidebar h5 {
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #036635 0%, #024d27 100%);
  padding: 16px;
  text-align: center;
  margin: 0;
  letter-spacing: 1px;
}

.sidebar a {
  display: block;
  color: #333;
  text-decoration: none;
  padding: 12px 16px;
  transition: all 0.3s ease;
  font-weight: 500;
  border-bottom: 1px solid #f0f0f0;
}

.sidebar a:hover {
  color: #036635;
  background: #f8f9fa;
  padding-left: 24px;
}

.sidebar a.active {
  color: #fff;
  font-weight: 600;
  background: linear-gradient(135deg, #036635 0%, #024d27 100%);
}

/* ===== Latest News ===== */
.latest-news {
  margin-top: 40px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.latest-news h5 {
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #036635 0%, #024d27 100%);
  padding: 16px;
  text-align: center;
  margin: 0;
  letter-spacing: 1px;
}

.news-item {
  display: flex;
  gap: 12px;
  margin: 12px;
  border-radius: 8px;
  padding: 12px;
  background: #f8f9fa;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.news-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  border-color: #036635;
}

.news-item img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.news-item:hover img {
  transform: scale(1.1);
}

.news-item div {
  flex: 1;
}

.news-item a {
  font-weight: 600;
  font-size: 0.9rem;
  color: #036635;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-item a:hover {
  color: #024d27;
}

.news-date {
  display: block;
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 4px;
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
  .navbar-custom .nav-link {
    padding: 12px 14px;
    font-size: 12px;
  }
}

@media (max-width: 992px) {
  .header-top {
    background: #72370d;
    background-image: 
      repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0, 0, 0, 0.1) 10px,
        rgba(0, 0, 0, 0.1) 20px
      ),
      repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.05) 10px,
        rgba(255, 255, 255, 0.05) 20px
      ),
      linear-gradient(135deg, #72370d 0%, #5c2b0b 100%);
    padding: 15px 0;
  }

  .header-top h2,
  .header-top h5 {
    color: #fff;
  }

  .tagline {
    color: #b8e6c9 !important;
  }

  .navbar-custom {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .header-top {
    padding: 12px 0;
  }

  .logo {
    max-height: 60px;
  }

  header h2 {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .logo {
    max-height: 50px;
  }

  header h2 {
    font-size: 1rem;
    text-align: center;
  }

  header h5 {
    font-size: 0.7rem;
    text-align: center;
  }

  .tagline {
    font-size: 0.65rem;
    text-align: center;
  }

  .header-top .container > div:first-child {
    flex-direction: column;
    align-items: center !important;
    text-align: center;
  }

  .header-top .logo {
    margin-bottom: 8px;
  }
}

/* ===== Footer ===== */
.footer {
  position: relative;
  color: #fff;
  padding: 40px 0 20px 0;
  background: url('../images/carousel2.jpg') no-repeat center center/cover;
  font-family: 'Raleway', sans-serif;
}

.footer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(114, 55, 13, 0.9);
  z-index: 0;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer h5 {
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.footer .contact-info p {
  text-align: center;
  margin: 8px 0;
}

@media (min-width: 768px) {
  .footer .contact-info p {
    text-align: left;
  }
}

.footer-bottom {
  background: linear-gradient(135deg, #036635 0%, #024d27 100%);
  border-top: 3px solid rgba(255, 255, 255, 0.2);
  padding: 15px 0;
  color: #fff;
}

/* ===== Smooth Scrolling ===== */
html {
  scroll-behavior: smooth;
}

/* ===== Hide elements properly ===== */
@media (min-width: 992px) {
  .navbar-toggler {
    display: none !important;
  }
}

/* ===== Loading Animation ===== */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.loading {
  animation: shimmer 2s infinite;
  background: linear-gradient(to right, #f0f0f0 4%, #e0e0e0 25%, #f0f0f0 36%);
  background-size: 1000px 100%;
}