/* Header style3: remove image background, separate block like footer */
.header-section--style3,
.header-section--style3.header-fixed {
  background-image: none !important;
  background-color: var(--header-bg-color, #0f0f0f);
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.2);
}
.header-section--style3::before,
.header-section--style3.header-fixed::before {
  display: none !important;
}
.header-section--style3 .header-bottom {
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}

/* Header buttons: responsive on small/phone screens */
.header-wrapper .menu-area .header-btn {
  flex-wrap: wrap;
}
@media (max-width: 991px) {
  .header-wrapper .menu-area .header-btn .trk-btn {
    font-size: 0.875rem;
    padding: 0.55rem 0.85rem;
  }
}
@media (max-width: 767px) {
  .header-wrapper .menu-area .header-btn {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    max-width: 200px;
    gap: 0.5rem;
    margin-left: auto;
  }
  .header-wrapper .menu-area .header-btn .trk-btn {
    width: 100%;
    font-size: 0.8125rem;
    padding: 0.5rem 0.65rem;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .header-wrapper .header-content {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .header-wrapper .header-action {
    width: 100%;
    order: 3;
  }
  .header-wrapper .menu-area .header-btn {
    max-width: 100%;
    flex-direction: column;
  }
  .header-wrapper .menu-area .header-btn .trk-btn {
    width: 100%;
  }
}

/* ========== Footer ========== */

/* Grid: mobile stacks, desktop 3 columns */
.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.footer-col--brand {
  display: none;
}

/* Brand link */
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.footer-brand__img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}
.footer-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.footer-brand__primary {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}
.footer-brand__secondary {
  font-size: 0.875rem;
  font-weight: 400;
  color: #D4AF37;
}

/* Tagline */
.footer-col__tagline {
  margin: 1rem 0 0;
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  line-height: 1.55;
  max-width: 260px;
}

/* Social row */
.footer-social {
  display: flex;
  gap: 0.625rem;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(212,175,55,0.5);
  border-radius: 50%;
  color: #fff;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.footer-social a:hover {
  background: #D4AF37;
  border-color: #D4AF37;
  color: #0f0f0f;
}

/* Column titles */
.footer-col__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #D4AF37;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1rem;
}

/* Links list */
.footer-col__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col__list li + li {
  margin-top: 0.5rem;
}
.footer-col__list a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col__list a:hover {
  color: #D4AF37;
}

/* Contact / CTA column */
.footer-col__desc {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  line-height: 1.55;
  margin: 0 0 1rem;
  max-width: 240px;
}
.footer-col__btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border: 1.5px solid rgba(212,175,55,0.6);
  border-radius: 6px;
  color: #D4AF37;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
  background: transparent;
  font-family: inherit;
}
.footer-col__btn:hover {
  background: #D4AF37;
  color: #0f0f0f;
  border-color: #D4AF37;
}

/* Contact method modal */
.contact-modal-content {
  background-color: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.contact-modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* Desktop: 3-column layout, brand visible on left */
@media (min-width: 992px) {
  .footer-grid {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    justify-content: space-between;
  }
  .footer-col--brand {
    display: block;
    flex: 0 0 280px;
    padding-right: 2rem;
    border-right: 1px solid rgba(255,255,255,0.08);
  }
  .footer-col--links {
    flex: 0 0 auto;
    padding: 0 3rem;
  }
  .footer-col--contact {
    flex: 0 0 auto;
    max-width: 260px;
  }
  .footer-brand__img {
    width: 56px;
    height: 56px;
  }
  .footer-social a {
    width: 42px;
    height: 42px;
  }
}

/* ========== Certificates section ========== */
.certificates__wrapper {
  max-width: 960px;
  margin: 0 auto;
}
.cert-card {
  background: var(--wh-color, #1A1A1A);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  height: 100%;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.cert-card:hover {
  border-color: var(--brand-color, #D4AF37);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.12);
  transform: translateY(-4px);
}
.cert-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.15);
  color: var(--brand-color, #D4AF37);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.cert-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--title-color);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}
.cert-card__desc {
  font-size: 0.9375rem;
  color: var(--text-color);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
}
.cert-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-color, #D4AF37);
  text-decoration: none;
  transition: color 0.25s ease, gap 0.25s ease;
  cursor: pointer;
  position: relative;
  z-index: 2;
  pointer-events: auto;
}
.cert-card__link:hover {
  color: var(--brand-color-hover, #C19B2E);
  gap: 0.5rem;
}
.cert-card__link i {
  font-size: 0.75rem;
}

/* PDF viewer modal */
.cert-pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.25s ease, opacity 0.25s ease;
}
.cert-pdf-modal--open {
  visibility: visible;
  opacity: 1;
}
.cert-pdf-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}
.cert-pdf-modal__box {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 90vh;
  max-height: 800px;
  background: var(--wh-color, #1A1A1A);
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cert-pdf-modal__watermark {
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  opacity: 0.12;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 1.25rem;
  color: #f5f5f5;
  text-transform: uppercase;
  transform: rotate(-12deg);
}
.cert-pdf-modal__header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}
.cert-pdf-modal__title {
  font-weight: 600;
  color: var(--title-color);
}
.cert-pdf-modal__open-new {
  margin-left: auto;
  font-size: 0.875rem;
  color: var(--brand-color, #D4AF37);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.cert-pdf-modal__open-new:hover {
  color: var(--brand-color-hover, #C19B2E);
}
.cert-pdf-modal__close {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.cert-pdf-modal__close:hover {
  background: rgba(212, 175, 55, 0.25);
}
.cert-pdf-modal__iframe {
  flex: 1;
  width: 100%;
  min-height: 400px;
  border: none;
  background: #fff;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}
