/* LuckeeART Business Preview Styles */
:root {
  --accent: #d97706;
  --accent-light: #f59e0b;
  --accent-dark: #b45309;
  --ink: #1f1f1f;
  --ink-2: #4b5563;
  --ink-3: #6b7280;
  --paper: #faf9f7;
  --surface: #ffffff;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.logo-mark {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.logo-word .accent {
  color: var(--accent);
}

.logo-img {
  display: block;
  height: 36px;
  max-width: 170px;
}

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

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--accent);
}

.nav-cta {
  padding: 10px 20px;
  background: var(--accent);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--accent-dark);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: 2px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.28);
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(31, 31, 31, 0.82) 0%, rgba(31, 31, 31, 0.55) 55%, rgba(31, 31, 31, 0.25) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: left;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}

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

.hero-lead {
  max-width: 640px;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 760px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat strong {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-light);
}

.stat span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Sections */
.section {
  padding: 100px 0;
}

.section-tag {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.section-subtitle {
  color: var(--ink-2);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto;
}

.section-head.center {
  text-align: center;
  margin-bottom: 56px;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-2);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px;
  align-items: center;
}

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

/* About */
.about {
  background: var(--surface);
}

.about-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 32px;
  display: grid;
  gap: 14px;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.icon-check {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.icon-check::after {
  content: "";
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(1px, -1px);
  margin: auto;
}

/* Advantages */
.advantages {
  background: var(--paper);
}

.adv-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}

.adv-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.adv-num {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: var(--accent);
  opacity: 0.18;
  margin-bottom: 12px;
}

.adv-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 12px;
}

.adv-card p {
  color: var(--ink-2);
  margin: 0;
}

/* Brands */
.brands {
  background: var(--surface);
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.brand-logo:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent-light);
}

.brand-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.brand-note {
  text-align: center;
  color: var(--ink-3);
  font-size: 0.9rem;
  margin-top: 28px;
}

/* Products */
.products {
  background: var(--surface);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  padding: 16px 16px 8px;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3em;
}

.product-link {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  padding: 0 16px 16px;
}

/* Channels */
.channels {
  background: var(--paper);
}

.channel-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.channel-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.channel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.channel-card:hover .channel-img img {
  transform: scale(1.05);
}

.channel-body {
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.channel-body h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 12px;
}

.channel-body p {
  color: var(--ink-2);
  margin: 0 0 18px;
}

.channel-body ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-2);
}

.channel-body li + li {
  margin-top: 8px;
}

/* Supply */
.supply {
  background: linear-gradient(180deg, var(--surface) 0%, var(--paper) 100%);
}

.supply-flow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
}

.flow-step {
  padding: 14px 24px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.flow-arrow {
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 800;
}

.supply-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.supply-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

/* Certificates */
.certificates {
  background: var(--surface);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cert-item {
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cert-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.cert-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #fff;
  padding: 16px;
}

.cert-item figcaption {
  padding: 14px 18px;
  font-weight: 700;
  text-align: center;
  border-top: 1px solid var(--border);
}

/* Payment */
.payment {
  background: var(--paper);
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.payment-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.payment-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.payment-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.payment-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 8px;
}

.payment-card p {
  color: var(--ink-2);
  margin: 0;
  font-size: 0.95rem;
}

/* Contact */
.contact {
  background: linear-gradient(135deg, #1f1f1f 0%, #2d2d2d 100%);
  color: #fff;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.contact-text .section-tag {
  color: var(--accent-light);
}

.contact-text .lead {
  color: rgba(255, 255, 255, 0.8);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-form {
  background: var(--surface);
  color: var(--ink);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

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

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.12);
}

.form-note {
  font-size: 0.85rem;
  color: var(--ink-3);
  text-align: center;
  margin: 14px 0 0;
}

/* Footer */
.site-footer {
  background: #171717;
  color: #d1d5db;
  padding: 72px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand p {
  color: #9ca3af;
  margin: 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-links h4 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 18px;
}

.footer-links a,
.footer-links span {
  display: block;
  color: #9ca3af;
  font-size: 0.95rem;
  margin-bottom: 10px;
  transition: color 0.2s;
}

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

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  color: #6b7280;
  font-size: 0.85rem;
}

/* Floating Customer Service Widget */
.cs-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1100;
}

.cs-toggle {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
}

.cs-toggle:hover {
  transform: scale(1.08);
  background: var(--accent-dark);
}

.cs-toggle svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.cs-pulse {
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 14px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid #fff;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.cs-panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: 300px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}

.cs-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cs-header {
  padding: 18px 20px;
  background: var(--accent);
  color: #fff;
}

.cs-header strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
}

.cs-header span {
  font-size: 0.85rem;
  opacity: 0.9;
}

.cs-body {
  padding: 12px;
  display: grid;
  gap: 8px;
}

.cs-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
}

.cs-option:hover {
  background: var(--paper);
}

.cs-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border-radius: 50%;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.cs-option strong {
  display: block;
  font-weight: 700;
}

.cs-option span {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-3);
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-2,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .brand-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .payment-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

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

  .main-nav a {
    font-size: 1.1rem;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

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

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

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

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

  .brand-logo {
    padding: 12px;
  }

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

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-form {
    padding: 28px;
  }

  .cs-widget {
    right: 16px;
    bottom: 16px;
  }

  .cs-panel {
    width: calc(100vw - 32px);
    right: -8px;
  }
}

@media (max-width: 480px) {
  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* ===== Additions: category dropdown, compact certificate grid, lightbox ===== */

/* Nav category dropdown */
.nav-dropdown {
  position: relative;
}

.nav-drop-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-2);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.nav-drop-toggle:hover,
.nav-dropdown.open .nav-drop-toggle {
  color: var(--accent);
}

.nav-dropdown.open .drop-caret {
  transform: rotate(180deg);
}

.drop-caret {
  font-size: 0.7rem;
  transition: transform 0.2s;
}

.nav-drop-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: -12px;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 60;
}

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

.nav-drop-item {
  display: block;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.nav-drop-item:hover {
  background: var(--paper);
  color: var(--accent);
}

.nav-drop-item.active {
  background: var(--accent);
  color: #fff;
}

/* Compact certificate grid (no captions) */
.cert-grid.compact {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.cert-grid.compact .cert-item {
  cursor: pointer;
}

.cert-grid.compact .cert-item img {
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #fff;
  padding: 8px;
  transition: transform 0.2s;
}

.cert-grid.compact .cert-item:hover {
  transform: translateY(-3px);
}

/* Certificate lightbox */
#certLightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17, 18, 15, 0.9);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 32px;
  cursor: zoom-out;
}

#certLightbox.open {
  display: flex;
}

#certLightbox img {
  max-width: min(92vw, 900px);
  max-height: 88vh;
  object-fit: contain;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.cert-lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.cert-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* Mobile: dropdown becomes an inline expandable list */
@media (max-width: 768px) {
  .nav-dropdown {
    width: 100%;
  }

  .nav-drop-toggle {
    padding: 4px 0;
  }

  .nav-drop-menu {
    position: static;
    min-width: 0;
    margin: 8px 0 4px;
    box-shadow: var(--shadow-sm);
  }

  .cert-grid.compact {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
  }

  .cert-grid.compact .cert-item img {
    padding: 5px;
  }
}
