/*
Theme Name: Avian Society
Description: A custom WordPress theme for bird conservation and avian society websites
Version: 1.0
Author: Custom Development
*/

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Ensure all text elements are mobile-friendly */
h1, h2, h3, h4, h5, h6 {
  word-wrap: break-word;
  hyphens: auto;
  line-height: 1.2;
}

p, span, div, a {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Prevent horizontal overflow */
img, video, iframe {
  max-width: 100%;
  height: auto;
}

/* Ensure containers don't exceed viewport width */
.container, .content-wrapper, .main-content-wrapper {
  max-width: 100%;
  overflow-x: hidden;
}

/* Top Navigation Layout */
.top-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e9ecef;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  padding: 0;
}

.top-navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

.main-content-wrapper {
  margin-top: 45px;
  min-height: calc(100vh - 80px);
  transition: margin-top 0.3s ease;
}

/* Navigation Container */
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 80px;
  position: relative;
}

/* Navigation Menu Container */
.nav-menu-container {
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100%;
}

/* Logo at the beginning */
.nav-logo {
  flex: 0 0 auto;
  position: relative;
  z-index: 10;
  margin-top: 0;
  padding-top: 10px;
}

.nav-logo .logo {
  color: #333;
  font-size: 2.2rem;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
}

.nav-logo .logo-icon {
  width: 50px;
  height: 50px;
  background: rgba(76, 175, 80, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4CAF50;
  font-size: 1.5rem;
  font-weight: bold;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.nav-logo .logo-text {
  text-align: center;
  line-height: 1.2;
  color: #333;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-logo .custom-logo-link {
  position: relative;
  display: block;
}

.nav-logo .custom-logo-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 8px;
  background: linear-gradient(135deg, rgba(0,0,0,0.1), rgba(0,0,0,0.05));
  border-radius: 50%;
  filter: blur(4px);
  z-index: -1;
}

.nav-logo .custom-logo-link img {
  max-height: 160px;
  max-width: 200px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
  border-radius: 0 0 15px 15px;
  margin-top: 50px;
  padding-top: 10px;
  vertical-align: top;
}

/* Navigation Menu Wrapper */
.nav-menu-wrapper {
  flex: 1;
  display: flex !important;
  justify-content: flex-start;
  align-items: center;
  padding-top: 0;
  visibility: visible;
  opacity: 1;
}

.nav-menu-container .nav-menu {
  display: flex !important;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
  visibility: visible;
  opacity: 1;
}

/* Center Logo with Shadow */
.nav-center .logo {
  color: #333;
  font-size: 2.2rem;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.nav-center .logo-icon {
  width: 50px;
  height: 50px;
  background: rgba(76, 175, 80, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4CAF50;
  font-size: 1.5rem;
  font-weight: bold;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.nav-center .logo-text {
  text-align: center;
  line-height: 1.2;
  color: #333;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-center .custom-logo-link {
  position: relative;
  display: block;
}

.nav-center .custom-logo-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 8px;
  background: linear-gradient(135deg, rgba(0,0,0,0.1), rgba(0,0,0,0.05));
  border-radius: 50%;
  filter: blur(4px);
  z-index: -1;
}

.nav-center .custom-logo-link img {
  max-height: 60px;
  max-width: 200px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

/* Top Navigation Menu */
.nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  display: block;
  padding: 10px 15px;
  color: #2c3e50;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  border-radius: 5px;
  visibility: visible;
  opacity: 1;
}

.nav-menu a:hover {
  background: rgba(76, 175, 80, 0.1);
  color: #4CAF50;
  transform: translateY(-2px);
}

.nav-menu .current-menu-item > a,
.nav-menu .current-page-item > a {
  color: #4CAF50;
  font-weight: 600;
}

/* Dropdown Menu Styles for WordPress Navigation */
.nav-menu .menu-item-has-children {
  position: relative;
}

.nav-menu .menu-item-has-children > a {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Remove CSS arrows since WordPress walker already adds them */

/* WordPress submenu styling */
.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  min-width: 200px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1001;
  padding: 10px 0;
  margin-top: 10px;
  list-style: none;
}

.nav-menu .menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Ensure submenus are properly positioned and visible on hover */
.nav-menu .menu-item-has-children:hover .sub-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

/* WordPress submenu items styling */
.nav-menu .sub-menu li {
  list-style: none;
  margin: 0;
}

.nav-menu .sub-menu a {
  display: block;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: none;
  border-radius: 0;
  background: transparent;
}

.nav-menu .sub-menu a:hover {
  background: #f8f9fa;
  color: #4CAF50;
  transform: none;
}

/* Sub-submenu (nested dropdowns) */
.nav-menu .dropdown-menu .dropdown {
  position: relative;
}

.nav-menu .dropdown-menu .dropdown .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: 0;
  margin-left: 5px;
}

.nav-menu .dropdown-menu .dropdown .dropdown-menu::before {
  content: '';
  position: absolute;
  top: 15px;
  left: -5px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 5px solid rgba(255, 255, 255, 0.98);
}

/* Active menu item */
.nav-menu .active > a {
  color: #4CAF50;
  font-weight: 600;
}

.nav-menu .dropdown-menu .active > a {
  background: #4CAF50;
  color: #fff;
}

/* Mobile Menu Toggle - Hidden on desktop */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 4px;
  transition: all 0.3s ease;
  z-index: 10000;
  position: relative;
}

.mobile-menu-toggle span {
  display: block;
  width: 30px;
  height: 4px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover span {
  background: #aeea00;
}

/* Desktop - Hide mobile elements */
@media (min-width: 769px) {
  .mobile-menu-close {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
  
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 15px;
    height: 80px;
    justify-content: space-between;
    align-items: center;
  }
  
  .main-content-wrapper {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
  }
  
  .nav-menu-container {
    justify-content: space-between;
    align-items: center;
  }
  
  .nav-menu-wrapper {
    display: none;
  }
  
  .top-navbar.mobile-active .nav-menu-wrapper {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    background: linear-gradient(135deg, #1a2e1a 0%, #2c3e50 100%) !important;
    z-index: 9999 !important;
    padding: 80px 20px 20px !important;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }
  
  /* Mobile menu close button - Hidden on desktop */
  .mobile-menu-close {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
  
  .nav-logo .logo {
    font-size: 1.6rem;
  }
  
  .nav-logo .logo-icon {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
  }
  
  .nav-menu {
    display: none !important;
  }
  
  .top-navbar.mobile-active .nav-menu {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  
  .nav-menu-container .nav-menu {
    display: none !important;
  }
  
  /* Hide desktop menu on mobile */
  .nav-menu-wrapper {
    display: none !important;
  }
  
  .top-navbar.mobile-active .nav-menu {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 400px;
  }
  
  .top-navbar.mobile-active .nav-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .top-navbar.mobile-active .nav-menu li:last-child {
    border-bottom: none;
  }
  
  .top-navbar.mobile-active .nav-menu a {
    display: block;
    padding: 20px 0;
    text-align: center;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
  }
  
  .top-navbar.mobile-active .nav-menu a:hover {
    color: #aeea00;
    background: rgba(174, 234, 0, 0.1);
    border-left-color: #aeea00;
    transform: translateX(10px);
  }
  
  /* Mobile submenu styles - Accordion behavior */
  .top-navbar.mobile-active .nav-menu .menu-item-has-children > a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    position: relative;
  }
  
  .top-navbar.mobile-active .nav-menu .menu-item-has-children > a:before {
    content: '';
    flex: 1;
  }
  
  .top-navbar.mobile-active .nav-menu .menu-item-has-children > a:after {
    content: '';
    flex: 1;
  }
  
  .top-navbar.mobile-active .nav-menu .menu-item-has-children .dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #aeea00;
    margin-left: 10px;
    flex-shrink: 0;
    display: inline-block;
    position: absolute;
    right: 15px;
  }
  
  .top-navbar.mobile-active .nav-menu .menu-item-has-children .dropdown-arrow.rotated {
    transform: rotate(180deg);
  }
  
  .top-navbar.mobile-active .nav-menu .sub-menu {
    position: static;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: none;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease-in-out;
    border-left: 4px solid #aeea00;
    margin-left: 0;
    list-style: none;
  }
  
  .top-navbar.mobile-active .nav-menu .sub-menu.show {
    max-height: 1000px;
    padding: 15px 0;
    opacity: 1;
  }
  
  .top-navbar.mobile-active .nav-menu .sub-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
    list-style: none;
  }
  
  .top-navbar.mobile-active .nav-menu .sub-menu li:last-child {
    border-bottom: none;
  }
  
  .top-navbar.mobile-active .nav-menu .sub-menu a {
    display: block;
    padding: 15px 30px;
    font-size: 1rem;
    color: #e0e0e0;
    border-left: none;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
  }
  
  .top-navbar.mobile-active .nav-menu .sub-menu a:hover {
    color: #aeea00;
    background: rgba(174, 234, 0, 0.1);
    transform: translateX(10px);
    padding-left: 40px;
  }
  
  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }
  
  .container {
    padding: 0 15px;
    max-width: 100%;
  }
  
  .nav-logo .custom-logo-link img {
    max-height: 140px !important;
    max-width: 300px !important;
    margin-top: 0;
    padding-top: 10px;
    vertical-align: top;
  }
  
  .mobile-menu-toggle {
    display: flex !important;
    margin-top: 10px;
    position: relative;
    z-index: 10001;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  
  /* Mobile menu close button - Only visible on mobile */
  .mobile-menu-close {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
  }
  
  .mobile-menu-close:hover {
    color: #aeea00;
    transform: rotate(90deg);
  }
  
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: #aeea00;
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    background: #aeea00;
  }
  
  .nav-menu {
    display: none !important;
  }
  
  /* Old mobile menu styles removed - using new slide-in menu */
  
  .top-navbar.mobile-active .sub-menu .dropdown .sub-menu::before {
    display: none;
  }
}

/* Legacy Navigation Styles (keeping for compatibility) */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a2e1a;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 30px;
  height: 30px;
  background: #aeea00;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a2e1a;
  font-weight: bold;
}

.logo-text {
  display: inline-block;
}

/* Custom Logo Styles */
.custom-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.custom-logo-link img {
  max-height: 50px;
  width: auto;
  height: auto;
  max-width: 200px;
}

/* Logo Position Styles */
.logo-position-left {
  justify-content: flex-start;
}

.logo-position-center {
  justify-content: center;
}

.logo-position-right {
  justify-content: flex-end;
}

/* Logo Size Styles */
.logo-size-small img {
  max-height: 30px;
  max-width: 120px;
}

.logo-size-medium img {
  max-height: 50px;
  max-width: 200px;
}

.logo-size-large img {
  max-height: 70px;
  max-width: 280px;
}

/* Logo State Styles */
.logo.has-custom-logo .logo-icon,
.logo.has-custom-logo .logo-text {
  display: none;
}

.logo:not(.has-custom-logo) .custom-logo-link {
  display: none;
}

/* Mobile Logo Styles */
.logo.mobile-view {
  flex-direction: column;
  text-align: center;
}

.logo.mobile-view .custom-logo-link img {
  margin-bottom: 5px;
}

.logo.mobile-view .logo-icon {
  margin-bottom: 5px;
}

/* Responsive logo */
@media (max-width: 768px) {
  .custom-logo-link img {
    max-height: 100px !important;
    max-width: 250px !important;
  }
  
  .logo-size-small img {
    max-height: 25px;
    max-width: 100px;
  }
  
  .logo-size-medium img {
    max-height: 40px;
    max-width: 150px;
  }
  
  .logo-size-large img {
    max-height: 50px;
    max-width: 200px;
  }
  
  .logo-text {
    font-size: 1.5rem;
  }
  
  .logo.mobile-view .custom-logo-link img {
    max-height: 100px !important;
    max-width: 250px !important;
  }
  
  .logo.mobile-view .logo-size-small img {
    max-height: 40px;
    max-width: 120px;
  }
  
  .logo.mobile-view .logo-size-large img {
    max-height: 100px !important;
    max-width: 250px !important;
  }
}

/* Extra mobile styling for smaller screens (iPhone) */
@media (max-width: 480px) {
  .nav-logo .custom-logo-link img,
  .custom-logo-link img,
  .logo.mobile-view .custom-logo-link img {
    max-height: 160px !important;
    max-width: 320px !important;
    margin-top: 0;
    padding-top: 10px;
    vertical-align: top;
  }
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #aeea00;
}

.nav-donate {
  background: #aeea00;
  color: #1a2e1a !important;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
}

.nav-donate:hover {
  background: #1a2e1a;
  color: #fff !important;
}

/* Dropdown Menu Styles */
.nav-menu .dropdown {
  position: relative;
}

.nav-menu .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropdown-arrow {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.nav-menu .dropdown:hover .dropdown-arrow,
.nav-menu .dropdown .dropdown-arrow.rotated {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  min-width: 200px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1001;
  padding: 10px 0;
  margin-top: 10px;
}

.nav-menu .dropdown:hover .dropdown-menu,
.nav-menu .dropdown .dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 0;
  background: transparent;
}

.dropdown-menu a:hover {
  background: #f8f9fa;
  color: #aeea00;
  transform: translateX(5px);
}

/* Sub-submenu (nested dropdowns) */
.dropdown-menu .dropdown {
  position: relative;
}

.dropdown-menu .dropdown .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: 0;
  margin-left: 5px;
}

.dropdown-menu .dropdown .dropdown-menu::before {
  content: '';
  position: absolute;
  top: 15px;
  left: -5px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 5px solid rgba(255, 255, 255, 0.98);
}

/* Active menu item */
.nav-menu .active > a {
  color: #aeea00;
  font-weight: 600;
}

.dropdown-menu .active > a {
  background: #aeea00;
  color: #1a2e1a;
}


/* Hero Section */
.hero-header {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 80px);
  background: linear-gradient(rgba(20,40,30,0.7), rgba(20,40,30,0.7)), url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1500&q=80') center/cover no-repeat;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: none;
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
}

/* Remove margin-bottom from hero-title on all pages except blog and homepage */
.hero-title {
  margin-bottom: 0;
}

/* Keep margin-bottom for blog and homepage */
.blog-hero-title,
.home .hero-title {
  margin-bottom: 20px;
}

.hero-title span {
  color: #aeea00;
}

.hero-description {
  font-size: 1.3rem;
  margin-bottom: 40px;
  color: #e0e0e0;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 50px;
}

.btn-primary {
  background: #aeea00;
  color: #1a2e1a;
  border: none;
  border-radius: 30px;
  padding: 15px 30px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 30px;
  padding: 15px 30px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background: #fff;
  color: #1a2e1a;
  transform: translateY(-2px);
}

.btn-secondary:hover {
  background: #fff;
  color: #1a2e1a;
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  display: block;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 1rem;
  color: #e0e0e0;
}

/* Section Styles */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1a2e1a;
}

.section-description {
  text-align: center;
  font-size: 1.2rem;
  color: #666;
  max-width: 100%;
  margin: 0 auto 60px;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}

.about-image {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-content h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #1a2e1a;
}

.about-content p {
  margin-bottom: 20px;
  line-height: 1.7;
  color: #555;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.feature-card {
  text-align: center;
  padding: 30px 20px;
  background: #f8f9fa;
  border-radius: 15px;
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: #aeea00;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  color: #1a2e1a;
}

.feature-card h4 {
  margin-bottom: 15px;
  color: #1a2e1a;
}

/* Species Section */
.species-carousel {
  position: relative;
  background: #f8f9fa;
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 60px;
}

.species-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.species-image {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
}

.species-image img {
  width: 100%;
  height: auto;
  display: block;
}

.featured-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #aeea00;
  color: #1a2e1a;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.species-info h3 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #1a2e1a;
}

.species-scientific {
  color: #666;
  font-style: italic;
  margin-bottom: 20px;
}

.species-description {
  line-height: 1.7;
  margin-bottom: 30px;
  color: #555;
}

.read-more {
  color: #aeea00;
  text-decoration: none;
  font-weight: 600;
}

/* Events Section */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.event-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.event-card:hover {
  transform: translateY(-5px);
}

.event-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #aeea00;
  color: #1a2e1a;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.event-content {
  padding: 25px;
}

.event-content h4 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #1a2e1a;
}

.event-details {
  margin-bottom: 20px;
  color: #666;
}

.event-details p {
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.event-price {
  font-weight: 600;
  color: #aeea00;
  margin-bottom: 15px;
}

/* Newsletter Section */
.newsletter-section {
  background: #f8f9fa;
  padding: 60px 0;
  text-align: center;
  border-radius: 20px;
  margin: 60px 0;
}

.newsletter-form {
  display: flex;
  max-width: 400px;
  margin: 30px auto 0;
  gap: 10px;
}

.newsletter-input {
  flex: 1;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 25px;
  font-size: 1rem;
}

.newsletter-input:focus {
  outline: none;
  border-color: #aeea00;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #1a2e1a, #2c4a2c);
  color: #fff;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  margin-bottom: 20px;
  color: #aeea00;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: #aeea00;
}

/* Footer Menu Styles */
.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 10px;
}

.footer-menu a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-menu a:hover {
  color: #aeea00;
}

/* Blog Content Section */
.blog-content-section {
  padding: 80px 0;
  background: #fff;
}

.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.blog-post-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.blog-post-card:hover {
  transform: translateY(-5px);
}

.post-thumbnail {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-post-card:hover .post-thumbnail img {
  transform: scale(1.05);
}

.post-content {
  padding: 25px;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #666;
}

.post-date {
  color: #4CAF50;
  font-weight: 500;
}

.post-category a {
  color: #666;
  text-decoration: none;
  background: #f8f9fa;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.post-category a:hover {
  background: #4CAF50;
  color: #fff;
}

.post-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.4;
}

.post-title a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-title a:hover {
  color: #4CAF50;
}

.post-excerpt {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.read-more {
  color: #4CAF50;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.read-more:hover {
  color: #2c3e50;
  text-decoration: underline;
}

.blog-navigation {
  text-align: center;
}

.no-posts {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 1.1rem;
}

/* Responsive Blog Grid */
@media (max-width: 768px) {
  .blog-posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 20px;
  text-align: center;
  color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Mobile menu toggle is already styled above */
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 30px;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .species-content {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
}

/* iPhone and small mobile devices */
@media (max-width: 480px) {
  .nav-container {
    padding: 0 10px;
    height: 70px;
  }
  
  .main-content-wrapper {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
  }
  
  .nav-logo .logo {
    font-size: 1.4rem;
  }
  
  .nav-logo .logo-icon {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
  
  .container {
    padding: 0 10px;
  }
  
  /* Ensure all text is readable on small screens */
  h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    hyphens: auto;
  }
  
  p, span, div {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .nav-logo .custom-logo-link img {
    max-height: 80px !important;
    max-width: 200px !important;
    padding-top: 10px;
  }
}

/* Extra small devices (320px and down) */
@media (max-width: 320px) {
  .nav-container {
    padding: 0 8px;
    height: 65px;
  }
  
  .main-content-wrapper {
    margin-top: 65px;
    min-height: calc(100vh - 65px);
  }
  
  .nav-logo .logo {
    font-size: 1.2rem;
  }
  
  .nav-logo .logo-icon {
    width: 25px;
    height: 25px;
    font-size: 0.9rem;
  }
  
  .container {
    padding: 0 8px;
  }
  
  /* Ensure all text is readable on very small screens */
  h1 { font-size: 1.6rem !important; }
  h2 { font-size: 1.4rem !important; }
  h3 { font-size: 1.3rem !important; }
  h4 { font-size: 1.2rem !important; }
  h5 { font-size: 1.1rem !important; }
  h6 { font-size: 1rem !important; }
  
  p, span, div {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }
  
  .btn-primary, .btn-secondary {
    padding: 8px 15px !important;
    font-size: 0.85rem !important;
  }
  
  .nav-logo .logo {
    font-size: 1.5rem;
  }
  
  .nav-logo .logo-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  
  .hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 12px 25px;
    font-size: 1rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  
  .section-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .feature-card {
    padding: 20px 15px;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .species-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .events-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .event-card {
    margin-bottom: 20px;
  }
  
  .blog-posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .blog-post-card {
    margin-bottom: 20px;
  }
  
  .blog-post-content {
    padding: 20px 15px;
  }
  
  .blog-post-title {
    font-size: 1.2rem;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .newsletter-form {
    flex-direction: column;
    gap: 15px;
  }
  
  .newsletter-input {
    padding: 12px 15px;
    font-size: 0.9rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .footer-section {
    margin-bottom: 30px;
  }
  
  .footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }
  
  .footer-section p,
  .footer-section ul {
    font-size: 0.9rem;
  }
  
  .footer-bottom {
    padding-top: 15px;
    font-size: 0.9rem;
  }
  
  /* Mobile menu improvements for iPhone */
  .top-navbar.mobile-active .nav-menu-wrapper {
    padding: 15px;
    gap: 5px;
  }
  
  .top-navbar.mobile-active .nav-menu a {
    padding: 12px 15px;
    font-size: 0.95rem;
  }
  
  .top-navbar.mobile-active .sub-menu a {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
  
  /* Single post mobile improvements */
  .single-post-title {
    font-size: 2.2rem;
  }
  
  .single-post-meta {
    flex-direction: column;
    gap: 10px;
  }
  
  .single-post-meta span {
    font-size: 1rem;
    padding: 6px 12px;
  }
  
  .single-post-content {
    padding: 25px 15px;
  }
  
  .single-post-content h1 {
    font-size: 2rem;
  }
  
  .single-post-content h2 {
    font-size: 1.6rem;
  }
  
  .single-post-content h3 {
    font-size: 1.4rem;
  }
  
  .single-post-content p {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .post-nav-links {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .related-posts-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .related-post-item {
    margin-bottom: 15px;
  }
  
  .related-post-content {
    padding: 15px;
  }
  
  .related-post-title {
    font-size: 1rem;
  }
  
  /* Blog hero mobile improvements */
  .blog-hero-title {
    font-size: 2.5rem;
  }
  
  .blog-hero-subtitle {
    font-size: 1.1rem;
  }
  
  .blog-stats {
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
  }
  
  .blog-stat-number {
    font-size: 2rem;
  }
  
  .blog-section-title {
    font-size: 2.2rem;
  }
  
  .blog-section-description {
    font-size: 1rem;
  }
  
  .blog-filters {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
    gap: 10px;
  }
  
  .blog-filter-btn {
    padding: 8px 15px;
    font-size: 0.9rem;
    white-space: nowrap;
  }
}

/* Elementor Support Styles */
.site-main {
  padding-top: 0;
}

.entry-content {
  max-width: 100%;
}

.entry-content .elementor {
  max-width: 100%;
}

.entry-content .elementor-section {
  margin: 0;
  padding: 0;
}

.entry-content .elementor-container {
  max-width: 100%;
}

.entry-content .elementor-widget {
  margin-bottom: 0;
}

/* Post and Page Styles */
.entry-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 40px 0;
  background: #f8f9fa;
}

.entry-title {
  font-size: 2.5rem;
  color: #1a2e1a;
  margin-bottom: 20px;
}

.entry-meta {
  color: #666;
  font-size: 0.9rem;
}

.entry-meta span {
  margin-right: 20px;
}

.entry-meta span:last-child {
  margin-right: 0;
}

.entry-content {
  line-height: 1.7;
  color: #333;
}

.entry-content p {
  margin-bottom: 20px;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  color: #1a2e1a;
  margin: 30px 0 20px;
}

.entry-content h1 { font-size: 2rem; }
.entry-content h2 { font-size: 1.8rem; }
.entry-content h3 { font-size: 1.6rem; }
.entry-content h4 { font-size: 1.4rem; }
.entry-content h5 { font-size: 1.2rem; }
.entry-content h6 { font-size: 1.1rem; }

.entry-content ul,
.entry-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.entry-content li {
  margin-bottom: 10px;
}

.entry-content blockquote {
  border-left: 4px solid #aeea00;
  padding-left: 20px;
  margin: 20px 0;
  font-style: italic;
  color: #666;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

.entry-content a {
  color: #aeea00;
  text-decoration: none;
}

.entry-content a:hover {
  text-decoration: underline;
}

/* Archive and Search Styles */
.page-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 40px 0;
  background: #f8f9fa;
}

.page-title {
  font-size: 2.5rem;
  color: #1a2e1a;
  margin-bottom: 20px;
}

.archive-description {
  color: #666;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.post-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.post-card:hover {
  transform: translateY(-5px);
}

.post-thumbnail img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-content {
  padding: 25px;
}

.post-content .entry-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.post-content .entry-title a {
  color: #1a2e1a;
  text-decoration: none;
}

.post-content .entry-title a:hover {
  color: #aeea00;
}

.post-content .entry-meta {
  margin-bottom: 15px;
}

.post-content .entry-summary {
  margin-bottom: 20px;
  color: #666;
  line-height: 1.6;
}

.post-content .read-more {
  color: #aeea00;
  text-decoration: none;
  font-weight: 600;
}

.post-content .read-more:hover {
  text-decoration: underline;
}

/* Pagination */
.page-links,
.posts-pagination {
  text-align: center;
  margin: 40px 0;
}

.page-links a,
.posts-pagination a,
.posts-pagination .current {
  display: inline-block;
  padding: 10px 15px;
  margin: 0 5px;
  background: #f8f9fa;
  color: #333;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s;
}

.page-links a:hover,
.posts-pagination a:hover {
  background: #aeea00;
  color: #1a2e1a;
}

.posts-pagination .current {
  background: #aeea00;
  color: #1a2e1a;
}

/* 404 Page */
.error-404 {
  text-align: center;
  padding: 60px 0;
}

.error-404 .page-title {
  font-size: 3rem;
  margin-bottom: 30px;
  color: #1a2e1a;
}

.error-404 .page-content {
  max-width: 600px;
  margin: 0 auto;
}

.error-404 .page-content p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 30px;
}

.error-404 .widget-area {
  margin-top: 40px;
}

.error-404-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: left;
}

.error-404 .widget {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 15px;
}

.error-404 .widget h2 {
  color: #1a2e1a;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.error-404 .widget ul {
  list-style: none;
  padding: 0;
}

.error-404 .widget li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e9ecef;
}

.error-404 .widget li:last-child {
  border-bottom: none;
}

.error-404 .widget a {
  color: #666;
  text-decoration: none;
}

.error-404 .widget a:hover {
  color: #aeea00;
}

/* Search Form */
.search-form {
  display: flex;
  max-width: 400px;
  margin: 30px auto;
  gap: 10px;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 25px;
  font-size: 1rem;
}

.search-form input[type="search"]:focus {
  outline: none;
  border-color: #aeea00;
}

.search-form button[type="submit"] {
  background: #aeea00;
  color: #1a2e1a;
  border: none;
  border-radius: 25px;
  padding: 15px 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.search-form button[type="submit"]:hover {
  background: #1a2e1a;
  color: #fff;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 60px 0;
}

.no-results p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 30px;
} 