:root {
  --primary-color: #0E9F6E; /* Green color from image */
  --primary-hover: #057A55;
  --secondary-color: #1A56DB; /* Blue color from image */
  --bg-color: #F9FAFB;
  --text-dark: #111928;
  --text-gray: #6B7280;
  --border-color: #E5E7EB;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  --gradient-blue: linear-gradient(135deg, #E1EFFE 0%, #F3F4F6 100%);
  --gradient-green: linear-gradient(135deg, #DEF7EC 0%, #F3F4F6 100%);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.5;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

/* Typography */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
}

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

.text-muted {
  color: var(--text-gray);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: var(--white);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background-color: var(--bg-color);
}

.btn-icon {
  margin-right: 0.5rem;
}

/* Header Component */
.header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background-color: var(--primary-color);
  border-radius: var(--radius-full);
  margin-right: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.logo span.blue {
  color: var(--secondary-color);
}

.search-bar {
  flex: 1;
  max-width: 500px;
  margin: 0 2rem;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  background-color: var(--bg-color);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}

.search-bar input:focus {
  border-color: var(--primary-color);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-gray);
  width: 16px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.icon-btn {
  background: none;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
  position: relative;
  font-size: 1.25rem;
}

.badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--primary-color);
  color: var(--white);
  font-size: 0.625rem;
  font-weight: bold;
  height: 16px;
  width: 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Account Dropdown */
.user-account-dropdown {
  position: relative;
}

.account-icon-btn {
  background: none;
  border: 2px solid transparent;
  color: var(--text-dark);
  cursor: pointer;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  background-color: var(--bg-color);
}

.account-icon-btn:hover {
  background-color: #DEF7EC;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.user-account-dropdown.active .account-icon-btn {
  background-color: #DEF7EC;
  color: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(14, 159, 110, 0.12);
}

.account-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 240px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.account-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 14px;
  width: 12px;
  height: 12px;
  background: var(--white);
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  transform: rotate(45deg);
  border-radius: 2px;
}

.user-account-dropdown.active .account-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.dropdown-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dropdown-username {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.2;
}

.dropdown-role {
  font-size: 0.75rem;
  color: var(--text-gray);
  font-weight: 500;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 0.4rem 0.5rem;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: all 0.15s ease;
  text-decoration: none;
}

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

.dropdown-item svg {
  color: var(--text-gray);
  transition: color 0.15s ease;
  flex-shrink: 0;
}

.dropdown-item:hover svg {
  color: var(--primary-color);
}

.dropdown-item-danger {
  color: #ef4444;
}

.dropdown-item-danger:hover {
  background-color: #fef2f2;
  color: #dc2626;
}

.dropdown-item-danger svg {
  color: #ef4444;
}

.dropdown-item-danger:hover svg {
  color: #dc2626;
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  background: radial-gradient(circle at top right, #EBF5FF 0%, transparent 50%),
              radial-gradient(circle at bottom left, #Def7ec 0%, transparent 50%);
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-content {
  flex: 1;
  max-width: 500px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero h1 span {
  color: var(--primary-color);
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-gray);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  position: relative;
}

.hero-image img {
  max-width: 100%;
  border-radius: var(--radius-xl);
  height: auto;
  box-shadow: var(--shadow-lg);
}

/* Quick Links */
.quick-links {
  margin-top: -2rem;
  position: relative;
  z-index: 10;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.quick-link-card {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  background-color: var(--bg-color);
  justify-content: space-between;
}

.quick-link-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
  background-color: #E1EFFE;
}

.ql-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ql-icon {
  width: 75px;
  height: 75px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--secondary-color);
  flex-shrink: 0;
}
.ql-icon svg {
  width: 60px;
  height: 60px;
}

.ql-text {
  font-weight: 600;
  font-size: 0.95rem;
}
.ql-subtext {
  font-size: 0.75rem;
  color: var(--text-gray);
  margin-top: 2px;
}

.ql-arrow {
  color: var(--text-gray);
}

/* Sections General */
.section {
  padding: 4rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.5rem;
}

.view-all {
  color: #4B5563;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.3rem 0.6rem;
  border-radius: 2rem;
  border: 1px solid #E5E7EB;
  background-color: #F9FAFB;
  transition: all 0.2s ease;
}

.view-all:hover {
  background-color: #F3F4F6;
  color: #111928;
}

/* Categories Section */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem; /* Reduced grid gap */
}

.category-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 0.75rem; /* Reduced internal padding */
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem; /* Reduced gap between icon and name */
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1px solid #f1f5f9;
  text-align: left;
  overflow: hidden; /* Added to handle long text */
}

.category-card:hover { 
  border-color: var(--primary-color); 
  transform: translateY(-5px); 
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); 
}

.category-icon { 
  width: 50px; /* Slightly smaller icon to give more room for text */
  height: 50px; 
  flex-shrink: 0; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  background: #f8fafc; 
  border-radius: 10px;
  padding: 8px;
  transition: 0.3s;
}

.category-card:hover .category-icon { 
  background: #f0fdf4; 
}

.category-icon img { width: 100%; height: 100%; object-fit: contain; }
.category-icon svg { width: 30px; height: 30px; color: var(--primary-color); }

.category-name { 
  font-size: 0.85rem; 
  font-weight: 700; 
  color: #1e293b; 
  margin: 0; 
  line-height: 1.2;
  white-space: nowrap; /* Prevent breaking into two lines */
  overflow: hidden;
  text-overflow: ellipsis; /* Add dots if still too long */
}

/* Offers Section */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  padding: 1rem 0;
  /* Slight negative overlap achievable via grid or margins. 
     Instead we just rely on the middle scale to create the overlap illusion */
}

.offer-card {
  border-radius: 1.2rem;
  padding: 1.5rem 2rem;
  min-height: 160px;
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}

.offer-card:nth-child(2) {
  background: white !important;
  z-index: 10;
  transform: scale(1.08);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  border-radius: 1.5rem;
}

.offer-green {
  background: linear-gradient(135deg, #F0FDF4 0%, #E0F2FE 100%);
  box-shadow: inset 0 0 20px rgba(255,255,255,0.5);
}

.offer-blue {
  background: linear-gradient(135deg, #E0F2FE 0%, #ECFEFF 100%);
  box-shadow: inset 0 0 20px rgba(255,255,255,0.5);
}

.offer-content {
  width: 60%;
  flex-shrink: 0;
}

.offer-title {
  color: #111827;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.offer-desc {
  color: #4B5563;
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.offer-img {
  width: 35%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.offer-img svg, .offer-img img {
  max-width: 100%;
  height: auto;
  max-height: 120px;
  width: 90px;
}

/* Why Us Section */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
  position: relative;
}

.why-step {
  padding: 2rem;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 2;
}

.step-icon {
  width: 90px;
  height: 90px;
  background-color: #E1EFFE;
  color: var(--secondary-color);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
}
.step-icon svg {
  width: 60px;
  height: 60px;
}

.step-title {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.step-desc {
  color: var(--text-gray);
  font-size: 0.875rem;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  justify-content: space-between;
  padding: 2rem 0 0 0;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.trust-icon {
  color: var(--primary-color);
  font-size: 2rem;
}

.trust-text {
  font-weight: 600;
}

/* Footer */
.footer {
  background-color: #f6f6f7;
  padding: 4rem 0 0 0;
  border-top: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 2fr;
  gap: 2rem;
  padding-bottom: 3rem;
}

.footer-col-title {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links a {
  color: #4b5563;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-newsletter-desc {
  color: #4b5563;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.newsletter-form {
  display: flex;
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.5rem;
  align-items: center;
}

.newsletter-form input {
  border: none;
  background: transparent;
  flex-grow: 1;
  outline: none;
  font-size: 1rem;
  color: var(--dark);
}

.newsletter-form button {
  background: #a7f3d0;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}
.newsletter-form button:hover {
  background: var(--primary-color);
}

.copyright {
  text-align: left;
  border-top: 1px solid #e5e7eb;
  padding: 1.5rem 0;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
/* Mobile Nav Component */
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text-dark); cursor: pointer; padding: 5px; }
.mobile-nav { position: fixed; top: 0; left: -100%; width: 280px; height: 100vh; background: white; z-index: 2000; transition: 0.33s cubic-bezier(0.4, 0, 0.2, 1); flex-direction: column; display: flex; box-shadow: 10px 0 30px rgba(0,0,0,0.1); }
.mobile-nav.active { left: 0; }
.mobile-nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1999; display: none; }
.mobile-nav-overlay.active { display: block; }

.mobile-nav-header { padding: 1.5rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #f1f5f9; }
.mobile-nav-header .close-btn { font-size: 1.5rem; border: none; background: none; cursor: pointer; }
.mobile-nav-search { padding: 1rem 1.5rem; }
.mobile-nav-search input { width: 100%; padding: 10px; border: 1px solid #e2e8f0; border-radius: 8px; outline: none; }
.mobile-nav-links { list-style: none; padding: 1rem 0; margin: 0; }
.mobile-nav-links li a { display: block; padding: 12px 1.5rem; font-weight: 600; color: #334155; transition: 0.2s; }
.mobile-nav-links li a:hover { background: #f8fafc; color: var(--primary-color); }

@media (max-width: 1200px) {
  .container { max-width: 95%; }
  .quick-links-grid { grid-template-columns: repeat(3, 1fr); }
  .categories-grid { grid-template-columns: repeat(5, 1fr); }
  .footer-container { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1024px) {
  .hero-container { flex-direction: column-reverse; text-align: center; gap: 2rem; }
  .hero-text h1 { font-size: 2.5rem; }
  .hero-image { display: flex; width: 100%; justify-content: center; }
  .hero-image img { max-width: 80%; }
  .quick-links-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  html { font-size: 14px; }
  body { font-size: 0.95rem; }
  h1 { font-size: 1.75rem !important; }
  h2 { font-size: 1.5rem !important; }
  h3 { font-size: 1.25rem !important; }
  
  .mobile-menu-btn { display: block; }
  .header-actions .icon-btn:not(.mobile-menu-btn), .header-actions a:not(.mobile-menu-btn), .account-icon-btn { display: none; }
  .header-container .search-bar { display: none; }
  .section { padding: 2rem 0; }
  .section-header { flex-direction: row !important; justify-content: space-between !important; align-items: center !important; gap: 10px; margin-bottom: 1.5rem; }
  .section-title { font-size: 1.25rem !important; }
  .quick-links { margin-top: 1.5rem; }
  .quick-links-grid { grid-template-columns: 1fr; border-radius: 12px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 0.75rem !important; }
  .category-card { 
    flex-direction: column !important; 
    padding: 1rem 0.5rem !important; 
    gap: 0.75rem !important; 
    align-items: center !important; 
    text-align: center !important; 
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03) !important;
    border: 1px solid #f1f5f9 !important;
  }
  .category-icon { 
    width: 60px !important; 
    height: 60px !important; 
    margin: 0 auto !important;
    background: #f1f5f9 !important;
    border-radius: 50% !important;
    padding: 10px !important;
  }
  .category-icon img, .category-icon svg { 
    width: 100% !important; 
    height: 100% !important; 
    object-fit: contain !important;
  }
  .category-name { 
    font-size: 0.75rem !important; 
    font-weight: 600 !important;
    line-height: 1.2 !important;
    color: #475569 !important;
  }
  .category-card::after { display: none !important; }
  .offers-grid, .why-us-grid { grid-template-columns: 1fr; }
  .footer-container { 
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 1.5rem !important; 
  }
  .footer-container > div:last-child { 
    grid-column: 1 / -1 !important; 
    margin-top: 1rem !important;
    border-top: 1px solid #f1f5f9;
    padding-top: 2rem;
  }
  .footer { padding: 2rem 1rem 0 1rem !important; }
  .footer-col-title { font-size: 0.85rem !important; margin-bottom: 0.75rem !important; }
  .footer-links a { font-size: 0.85rem !important; margin-bottom: 0.5rem !important; }
  .trust-badges { 
    flex-direction: column !important; 
    gap: 2rem !important; 
    align-items: flex-start !important; 
    padding: 1rem 0 !important;
  }
}

@media (max-width: 480px) {
  .logo img { height: 50px !important; }
  .logo span { font-size: 1.25rem !important; }
  .hero-text h1, .hero h1 { font-size: 1.6rem !important; line-height: 1.2; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn { width: 100% !important; text-align: center; }
  .footer-col-title { font-size: 1rem; margin-bottom: 1rem; }
}
