/* ==========================================================================
   Galapesca S.A. - Corporate Stylesheet
   Color Palette:
   - Primary Blue: #0a70b9
   - Deep Navy: #0f3460
   - Accent Orange: #f37021
   - Text Dark: #222222
   - Muted Gray: #666666
   - Border Gray: #e2e8f0
   ========================================================================== */

:root {
  --primary: #0a70b9;
  --primary-dark: #08548c;
  --primary-light: #e6f2fb;
  --navy: #152c4e;
  --text-main: #2b2b2b;
  --text-muted: #555555;
  --bg-light: #f8fafc;
  --border-color: #e5e7eb;
  --danger-color: #dc2626;
  --danger-bg: #fef2f2;
  --font-heading: 'Raleway', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 1200px;
  --transition: all 0.25s ease-in-out;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: #ffffff;
  background-image: url('../images/14_enlarged.jpg');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 85px;
}

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

.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #111827;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-link:hover,
.nav-item.active > .nav-link {
  color: var(--primary);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background-color: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  list-style: none;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}

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

.dropdown-menu li a {
  display: block;
  padding: 10px 18px;
  font-size: 13.5px;
  font-family: var(--font-heading);
  font-weight: 500;
  color: #444444;
  border-bottom: 1px solid #f3f4f6;
  transition: var(--transition);
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

.dropdown-menu li a:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  padding-left: 22px;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 15px;
  padding-left: 15px;
  border-left: 1px solid rgba(0, 0, 0, 0.15);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  opacity: 0.75;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  padding: 2px;
  border-radius: 3px;
}

.lang-btn.active,
.lang-btn:hover {
  opacity: 1;
  border-color: #94a3b8;
}

.flag-icon {
  width: 22px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: #333333;
  cursor: pointer;
  padding: 6px;
}

/* ==========================================================================
   Hero Carousel
   ========================================================================== */
.hero-slider-section {
  position: relative;
  background: transparent;
  overflow: visible;
  padding: 15px 0 35px;
}

.slider-container {
  position: relative;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(10, 112, 185, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.slide {
  min-width: 100%;
  box-sizing: border-box;
}

.slide img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  color: #1e293b;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: var(--transition);
  z-index: 10;
}

.slider-btn:hover {
  background: #ffffff;
  color: var(--primary);
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--primary);
  width: 26px;
  border-radius: 6px;
}

/* ==========================================================================
   Quick Navigation Cards (Products, About, Contact)
   ========================================================================== */
.quick-nav-section {
  padding: 40px 0 30px;
}

.quick-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.quick-card {
  display: block;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #f1f5f9;
}

.quick-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(10, 112, 185, 0.15);
}

.quick-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.quick-card:hover img {
  transform: scale(1.02);
}

/* ==========================================================================
   Security Alert Banner (Recruitment Warning)
   ========================================================================== */
.security-alert-section {
  padding: 25px 0;
}

.security-box {
  background-color: #fff9f9;
  border-left: 5px solid var(--danger-color);
  padding: 24px 30px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.security-box p {
  margin-bottom: 10px;
  font-size: 15px;
}

.security-box p:last-child {
  margin-bottom: 0;
}

.security-box .highlight-quote {
  font-size: 17px;
  font-weight: 700;
  font-style: italic;
  color: #111827;
}

.security-box .alert-title {
  color: var(--danger-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   HR Banner
   ========================================================================== */
.hr-banner-section {
  padding: 20px 0 40px;
}

.hr-banner-link {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.hr-banner-link:hover {
  box-shadow: 0 8px 24px rgba(10, 112, 185, 0.2);
  transform: translateY(-3px);
}

.hr-banner-img {
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Certifications Section
   ========================================================================== */
.certifications-section {
  padding: 40px 0 60px;
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-color);
}

.section-title-center {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 26px;
  font-style: italic;
  color: #333333;
  margin-bottom: 25px;
}

.certifications-img-wrapper {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.certifications-img {
  margin: 0 auto;
}

/* ==========================================================================
   Inner Pages Shared Layout
   ========================================================================== */
.page-hero {
  background: linear-gradient(135deg, #0a70b9 0%, #152c4e 100%);
  color: #ffffff;
  padding: 45px 0;
  margin-bottom: 40px;
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-hero-subtitle {
  font-size: 16px;
  opacity: 0.9;
  margin-top: 6px;
}

/* Sub-nav Category Tabs */
.category-tabs {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  max-width: 1160px;
  margin: 15px auto 45px auto;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--border-color);
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  flex: 1 1 180px;
  max-width: 215px;
  padding: 15px 10px;
  border-radius: 8px;
  transition: var(--transition);
}

.tab-item:hover {
  background-color: var(--primary-light);
  transform: translateY(-6px);
}

.tab-icon {
  width: 100%;
  max-width: 185px;
  height: 140px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.tab-item:hover .tab-icon {
  transform: scale(1.06);
}

.tab-label {
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 800;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

/* Section Header styling */
.content-section {
  padding: 40px 0;
  border-bottom: 1px solid #edf2f7;
}

.content-section:last-child {
  border-bottom: none;
}

.section-headline {
  font-family: var(--font-heading);
  color: var(--primary);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
}

.headline-bar {
  width: 50px;
  height: 4px;
  background-color: #cbd5e1;
  margin-bottom: 18px;
}

.section-desc {
  font-size: 15.5px;
  color: #4b5563;
  margin-bottom: 25px;
}

/* Product & About Content Grid */
.two-col-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: center;
}

.two-col-grid > * {
  min-width: 0;
  max-width: 100%;
}

.two-col-grid.reverse {
  grid-template-columns: 1fr 2fr;
}

.two-col-grid.reverse > * {
  min-width: 0;
  max-width: 100%;
}

.table-graphic-wrapper {
  background: #ffffff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #f1f5f9;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-graphic-wrapper img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.product-photo-wrapper {
  text-align: center;
}

.product-photo {
  max-width: 320px;
  margin: 0 auto;
  border-radius: 8px;
}

/* About Us Sections */
.company-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  margin-bottom: 30px;
  border: 1px solid var(--border-color);
}

.company-header-banner {
  margin-bottom: 25px;
  text-align: center;
}

.company-header-banner img {
  max-height: 80px;
  margin: 0 auto;
  object-fit: contain;
}

.info-bullet-list {
  list-style: none;
}

.info-bullet-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: #374151;
}

.info-bullet-list li::before {
  content: "•";
  position: absolute;
  left: 5px;
  top: -2px;
  color: var(--primary);
  font-size: 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.stat-box {
  background: var(--bg-light);
  border-left: 4px solid var(--primary);
  padding: 15px 20px;
  border-radius: 4px;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}

.stat-desc {
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   Contact Page
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  margin-top: 30px;
}

.contact-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: #374151;
}

.form-label .req {
  color: var(--danger-color);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  color: #1f2937;
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 112, 185, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-primary {
  display: inline-block;
  background-color: var(--primary);
  color: #ffffff;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(10, 112, 185, 0.3);
}

.contact-info-block {
  margin-bottom: 25px;
}

.contact-info-block h4 {
  font-family: var(--font-heading);
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 12px;
}

.contact-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14.5px;
}

.contact-detail-icon {
  color: var(--primary);
  font-size: 18px;
  margin-top: 2px;
}

.map-container {
  width: 100%;
  height: 260px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-top: 20px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid #e5e7eb;
  padding: 40px 0 25px;
  margin-top: 50px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 35px;
  padding-bottom: 30px;
  border-bottom: 1px solid #f1f5f9;
}

.footer-logo {
  max-width: 240px;
  margin-bottom: 15px;
}

.footer-desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #64748b;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 25px;
  text-align: center;
  color: #94a3b8;
  font-size: 13.5px;
}

.footer-bottom img {
  max-width: 180px;
  margin: 0 auto 12px;
}

/* ==========================================================================
   Modal (Security Notice for Careers)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 20px;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #ffffff;
  max-width: 540px;
  width: 100%;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-backdrop.active .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 18px;
  background: none;
  border: none;
  font-size: 24px;
  color: #94a3b8;
  cursor: pointer;
}

.modal-close:hover {
  color: #1e293b;
}

.modal-header {
  margin-bottom: 18px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--danger-color);
  font-weight: 700;
}

.modal-body {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-secondary {
  background: #e2e8f0;
  color: #334155;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.btn-secondary:hover {
  background: #cbd5e1;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .site-header {
    background-color: #ffffff;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }

  .header-inner {
    height: 70px;
  }
  
  .logo-img {
    height: 42px;
  }

  .mobile-toggle {
    display: block;
    font-size: 28px;
    background: transparent;
    border: none;
    color: var(--navy);
    cursor: pointer;
    padding: 6px 10px;
    line-height: 1;
  }

  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - 70px);
    height: calc(100dvh - 70px);
    background-color: #ffffff;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 20px 24px 80px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99999;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    gap: 0;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid #f1f5f9;
  }

  .nav-link {
    padding: 16px 4px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: #f8fafc;
    border-radius: 6px;
    margin: 4px 0 12px;
    padding: 6px 12px;
    display: none;
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-item.open-dropdown .dropdown-menu {
    display: block;
  }

  .dropdown-menu li a {
    padding: 11px 8px;
    font-size: 14px;
    color: #4b5563;
    border-bottom: 1px solid #edf2f7;
  }

  .dropdown-menu li:last-child a {
    border-bottom: none;
  }

  .lang-switcher {
    margin-left: 0;
    padding: 20px 4px 0;
    margin-top: 15px;
    border-left: none;
    border-top: 2px solid #e2e8f0;
    display: flex;
    gap: 16px;
  }

  .lang-btn {
    padding: 6px 14px;
    background: #f1f5f9;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13.5px;
  }

  .lang-btn.active {
    background: var(--primary-light);
    border-color: var(--primary);
  }

  /* Category tabs in Tablet */
  .category-tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    align-items: stretch;
    margin: 15px auto 35px;
  }

  .tab-item {
    max-width: 100%;
    padding: 12px 6px;
    gap: 8px;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    background: #ffffff;
  }

  .tab-icon {
    max-width: 125px;
    height: 95px;
  }

  .tab-label {
    font-size: 12px;
  }

  .quick-nav-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .two-col-grid,
  .two-col-grid.reverse,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* Mobile Screens (Phones < 768px) */
@media (max-width: 768px) {
  .page-hero {
    padding: 30px 0;
    margin-bottom: 25px;
  }

  .page-hero-title {
    font-size: 24px;
  }

  .page-hero-subtitle {
    font-size: 14px;
  }

  .hero-slider-section {
    padding: 10px 0 20px;
  }

  .slider-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .slider-prev { left: 8px; }
  .slider-next { right: 8px; }

  /* Category tabs layout for Mobile - ALL 5 BUTTONS VISIBLE */
  .category-tabs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin: 10px auto 30px;
    padding-bottom: 15px;
  }

  .category-tabs .tab-item:nth-child(1) { grid-column: span 2; }
  .category-tabs .tab-item:nth-child(2) { grid-column: span 2; }
  .category-tabs .tab-item:nth-child(3) { grid-column: span 2; }
  .category-tabs .tab-item:nth-child(4) { grid-column: 2 / span 2; }
  .category-tabs .tab-item:nth-child(5) { grid-column: 4 / span 2; }

  /* Handling pages with 3 items (About Us) */
  .category-tabs:has(.tab-item:nth-last-child(3):first-child) {
    grid-template-columns: repeat(3, 1fr);
  }
  .category-tabs:has(.tab-item:nth-last-child(3):first-child) .tab-item {
    grid-column: auto;
  }

  .tab-item {
    max-width: 100%;
    padding: 10px 4px;
    border: 1px solid #eef2f6;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  }

  .tab-icon {
    max-width: 90px;
    height: 70px;
  }

  .tab-label {
    font-size: 11px;
    font-weight: 800;
  }

  .section-headline {
    font-size: 21px;
  }

  .company-card {
    padding: 20px 16px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-value {
    font-size: 19px;
  }

  .security-box {
    padding: 18px 20px;
  }
}

/* Small Phones (< 480px) */
@media (max-width: 480px) {
  .category-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .category-tabs .tab-item:nth-child(1) { grid-column: auto; }
  .category-tabs .tab-item:nth-child(2) { grid-column: auto; }
  .category-tabs .tab-item:nth-child(3) { grid-column: auto; }
  .category-tabs .tab-item:nth-child(4) { grid-column: auto; }
  .category-tabs .tab-item:nth-child(5) { 
    grid-column: 1 / -1; 
    max-width: 190px; 
    margin: 0 auto; 
    width: 100%;
  }

  .tab-item {
    padding: 10px 6px;
  }

  .tab-icon {
    max-width: 100px;
    height: 75px;
  }

  .tab-label {
    font-size: 12px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}
