/* Base Styles */
:root {
  --primary-color: #00CC99;
  --dark-primary: #00b386;
  --accent-color: #a3d39c;
  --light-accent: #8fc987;
  --text-color: #333;
  --gray-light: #f9fafb;
  --gray-medium: #e5e7eb;
  --gray-dark: #6b7280;
  --dark-color: #1A202C;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  line-height: 1.5;
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Layout */
.min-h-screen {
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-grow {
  flex-grow: 1;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

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

.justify-between {
  justify-content: space-between;
}

.space-x-1 > * + * {
  margin-left: 0.25rem;
}

.space-x-2 > * + * {
  margin-left: 0.5rem;
}

.space-x-4 > * + * {
  margin-left: 1rem;
}

.space-x-6 > * + * {
  margin-left: 1.5rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-8 {
  gap: 2rem;
}

.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-12 {
  margin-top: 3rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.mr-3 {
  margin-right: 0.75rem;
}

.ml-1 {
  margin-left: 0.25rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mx-2 {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.pt-8 {
  padding-top: 2rem;
}

.pt-16 {
  padding-top: 4rem;
}

.pb-8 {
  padding-bottom: 2rem;
}

.p-2 {
  padding: 0.5rem;
}

.p-5 {
  padding: 1.25rem;
}

/* Typography */
.text-xs {
  font-size: 0.75rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.text-4xl {
  font-size: 2.25rem;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

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

.text-white {
  color: #fff;
}

.text-primary {
  color: var(--primary-color);
}

.text-gray-200 {
  color: #e5e7eb;
}

.text-gray-300 {
  color: #d1d5db;
}

.text-gray-600 {
  color: #4b5563;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

/* Backgrounds */
.bg-white {
  background-color: #fff;
}

.bg-primary {
  background-color: var(--primary-color);
}

.bg-dark-primary {
  background-color: var(--dark-primary);
}

.bg-accent {
  background-color: var(--accent-color);
}

.bg-light-accent {
  background-color: var(--light-accent);
}

.bg-gray-50 {
  background-color: #f9fafb;
}

.bg-gray-100 {
  background-color: #f3f4f6;
}

.bg-black {
  background-color: #000;
}

.bg-cover {
  background-size: cover;
}

.bg-center {
  background-position: center;
}

/* Borders */
.border {
  border-width: 1px;
  border-style: solid;
}

.border-t {
  border-top-width: 1px;
  border-top-style: solid;
}

.border-gray-200 {
  border-color: #e5e7eb;
}

.border-gray-300 {
  border-color: #d1d5db;
}

.border-white {
  border-color: #fff;
}

.border-primary {
  border-color: var(--primary-color);
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-full {
  border-radius: 9999px;
}

.rounded-lg {
  border-radius: 0.5rem;
}

/* Effects */
.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.opacity-10 {
  opacity: 0.1;
}

.opacity-60 {
  opacity: 0.6;
}

.hover\:bg-gray-100:hover {
  background-color: #f3f4f6;
}

.hover\:bg-white\/10:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.hover\:bg-primary:hover {
  background-color: var(--primary-color);
}

.hover\:bg-dark-primary:hover {
  background-color: var(--dark-primary);
}

.hover\:bg-light-accent:hover {
  background-color: var(--light-accent);
}

.hover\:text-gray-200:hover {
  color: #e5e7eb;
}

.hover\:text-primary:hover {
  color: var(--primary-color);
}

.hover\:text-white:hover {
  color: #fff;
}

.hover\:underline:hover {
  text-decoration: underline;
}

.hover\:shadow-lg:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.hover\:border-primary:hover {
  border-color: var(--primary-color);
}

.transition-colors {
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

.transition-shadow {
  transition-property: box-shadow;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

/* Position */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.top-0 {
  top: 0;
}

.top-4 {
  top: 1rem;
}

.right-0 {
  right: 0;
}

.left-4 {
  left: 1rem;
}

.z-10 {
  z-index: 10;
}

/* Components */
.logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.blog-card {
  background-color: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: box-shadow 300ms;
}

.blog-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 204, 153, 0.2);
  border-color: transparent;
}

/* Enhanced Mobile Header Styles */
.mobile-header {
  display: none;
  padding: 15px 0;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

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

.mobile-logo a {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary-color);
  letter-spacing: 2px;
  text-decoration: none;
}

.mobile-nav-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #eef5f4;
  border-radius: 50%;
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-nav-icon:hover {
  background-color: var(--primary-color);
  color: white;
  transform: scale(1.05);
}

.mobile-nav-icon i {
  font-size: 1.1rem;
}

/* Enhanced Mobile Sidebar */
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background-color: white;
  z-index: 999;
  padding: 30px;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease-in-out;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-sidebar.active {
  right: 0;
}

/* Mobile Sidebar Header */
.logosicon-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.logos {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary-color);
  letter-spacing: 2px;
}

.menu-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #eef5f4;
  border-radius: 50%;
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-close:hover {
  background-color: var(--primary-color);
  color: white;
  transform: scale(1.05);
}

.menu-close i {
  font-size: 1.1rem;
}

/* Enhanced Mobile Navigation List */
.mobile-nav {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.mobile-nav-list li {
  margin-bottom: 0;
  border-bottom: 1px solid #f5f5f5;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
}

.mobile-nav-list li:last-child {
  border-bottom: none;
}

.mobile-sidebar.active .mobile-nav-list li {
  opacity: 1;
  transform: translateX(0);
}

.mobile-nav-list li a {
  display: block;
  padding: 15px 0;
  font-weight: 500;
  color: var(--dark-color);
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
}

.mobile-nav-list li a:hover {
  color: var(--primary-color);
  padding-left: 10px;
}

.mobile-nav-list li a.active {
  color: var(--primary-color);
  font-weight: 600;
}

.mobile-nav-list li a.active::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* Staggered animation delay */
.mobile-sidebar.active .mobile-nav-list li:nth-child(1) { transition-delay: 0.1s; }
.mobile-sidebar.active .mobile-nav-list li:nth-child(2) { transition-delay: 0.15s; }
.mobile-sidebar.active .mobile-nav-list li:nth-child(3) { transition-delay: 0.2s; }
.mobile-sidebar.active .mobile-nav-list li:nth-child(4) { transition-delay: 0.25s; }
.mobile-sidebar.active .mobile-nav-list li:nth-child(5) { transition-delay: 0.3s; }
.mobile-sidebar.active .mobile-nav-list li:nth-child(6) { transition-delay: 0.35s; }

/* Enhanced Mobile Login Section */
.mobile-login-section {
  margin-top: 30px;
  padding: 30px 0 0;
  background: linear-gradient(180deg, transparent 0%, rgba(248, 250, 252, 0.8) 30%, #f8fafc 100%);
  backdrop-filter: blur(10px);
  position: relative;
}

.mobile-login-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -30px;
  right: -30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.mobile-login-btn {
  width: 100%;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  color: #00CC99;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
}

.mobile-login-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(0, 204, 153, 0.1) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
  border-radius: 50%;
}

.mobile-login-btn:hover::after {
  width: 300px;
  height: 300px;
}

.mobile-login-btn:hover {
  border-color: #00CC99;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 204, 153, 0.15);
}

.login-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 1rem;
}

.mobile-login-btn:hover .login-arrow {
  transform: translateX(4px);
}

/* Mobile Overlay */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Ripple Animation */
@keyframes ripple {
  to {
    transform: scale(2);
    opacity: 0;
  }
}

/* Media Queries */
@media (min-width: 768px) {
  .md\:flex-row {
    flex-direction: row;
  }

  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:justify-center {
    justify-content: center;
  }

  .md\:space-x-6 > * + * {
    margin-left: 1.5rem;
  }

  .md\:mb-0 {
    margin-bottom: 0;
  }

  .md\:mt-0 {
    margin-top: 0;
  }

  .md\:text-5xl {
    font-size: 3rem;
  }

  .md\:py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

@media (max-width: 991px) {
  .mobile-header {
    display: block;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 640px) {
  .sm\:flex-row {
    flex-direction: row;
  }

  .sm\:space-x-4 > * + * {
    margin-left: 1rem;
  }

  .sm\:space-y-0 > * + * {
    margin-top: 0;
  }
}

@media (max-width: 767px) {
  .mobile-sidebar {
    width: 280px;
    padding: 25px 20px;
  }

  .mobile-nav-list li a {
    font-size: 1rem;
    padding: 12px 0;
  }

  .logos {
    font-size: 1.3rem;
  }
}

@media (max-width: 479px) {
  .mobile-sidebar {
    width: 260px;
    padding: 20px 15px;
  }
}

.w-10 {
  width: 2.5rem;
}

.h-10 {
  height: 2.5rem;
}

.w-full {
  width: 100%;
}

.h-56 {
  height: 14rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.object-cover {
  object-fit: cover;
}

.overflow-hidden {
  overflow: hidden;
}

.inline-flex {
  display: inline-flex;
}

.focus\:outline-none:focus {
  outline: none;
}

.focus\:ring-2:focus {
  box-shadow: 0 0 0 2px rgba(0, 204, 153, 0.5);
}

.focus\:border-transparent:focus {
  border-color: transparent;
}

.focus\:ring-primary:focus {
  box-shadow: 0 0 0 2px rgba(0, 204, 153, 0.5);
}