/* Certificates Page - Exact Figma Design */

/* ================================
   NAVBAR WRAPPER & HERO
================================ */
.certificates-navbar-wrapper {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  min-height: 625px;
}

.certificates-navbar-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.64);
  z-index: 1;
}

/* .certificates-navbar-wrapper .navbar {
  position: relative;
  z-index: 10;
  padding: 18px 0;
  background: rgba(0, 0, 0, 0.09);
  backdrop-filter: blur(1.5px);
}

.certificates-navbar-wrapper .navbar-nav {
  gap: 38px;
} */

/* .certificates-navbar-wrapper .navbar-nav .nav-link {
  color: white;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  padding: 0;
  transition: color 0.3s ease;
} */

.certificates-navbar-wrapper .navbar-nav .nav-link:hover,
.certificates-navbar-wrapper .navbar-nav .nav-link.active {
  color: #e5ba4f;
  font-weight: 500;
}

/* .certificates-navbar-wrapper .header-logo-img {
  height: 61px;
  width: auto;
} */

/* Hero Section */
.certificates-hero-section {
  position: relative;
  z-index: 5;
  padding: 180px 0 100px;
}

.certificates-hero-content {
  max-width: 635px;
  padding-left: 120px;
}

.certificates-hero-title {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 48px;
  line-height: 63px;
  letter-spacing: 0.1px;
  color: #e5ba4f;
  margin-bottom: 20px;
}

.certificates-hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 29px;
  letter-spacing: 0.1px;
  color: #ffffff;
  margin: 0;
}

/* ================================
   BREADCRUMB SECTION
================================ */
.breadcrumb-section {
  background: #ffffff;
  padding: 15px 0;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  padding-left: 120px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 30px;
  letter-spacing: 0.1px;
}

.breadcrumb-nav a {
  color: #333333;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
  color: #e5ba4f;
}

.breadcrumb-nav i {
  color: #333333;
  font-size: 10px;
  transform: rotate(90deg);
  margin: 0 5px;
}

.breadcrumb-nav span {
  color: #747474;
  font-weight: 400;
}

/* ================================
   CERTIFICATES MAIN SECTION
================================ */
.certificates-main-section {
  padding: 80px 0 120px;
  /* margin-bottom: 60px; */
  background: #ffffff;
}

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

.certificates-badge {
  display: inline-block;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
  border: 0.8px solid rgba(212, 175, 55, 0.2);
  border-radius: 26843546px;
  padding: 15px 22px;
  margin-bottom: 20px;
}

.certificates-badge span {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #d4af37;
}

.certificates-title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 36px;
    line-height: 43px;
    letter-spacing: 0.1px;
    color: #222222;
    margin-bottom: 20px;
}

.title-underline {
  width: 256px;
  height: 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #d4af37 50%, rgba(255, 255, 255, 0) 100%);
  box-shadow: 0px 0px 30px 0px rgba(212, 175, 55, 0.5);
  border-radius: 26843546px;
  margin: 0 auto 25px;
}

.certificates-description {
  font-family: Inter;
  font-weight: 400;
  font-size: 16px;
  line-height: 36px;
  letter-spacing: 0.1px;
  color: black;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* ================================
   CERTIFICATE CARDS
================================ */
.certificates-grid {
  /* max-width: 1205px; */
  margin: 0 auto;
  width: 100%;
}

.certificate-card {
  position: relative;
  width: 100%;
  min-height: 300px;
  height: auto;
  margin: 0;
  transition: transform 0.3s ease;
  transform: unset !important;
}

.certificate-card:hover {
  transform: translateY(-5px);
}

/* All cards - same single border style */
.certificate-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  background: white;
  border: 1px solid #e5ba4f;
  border-radius: 10px;
  box-shadow: 0px 25px 70px 0px rgba(0, 0, 0, 0.09);
  padding: 33px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 25px;
  transition: all 0.3s ease;
}

/* Hover effect - add double border on hover */
.certificate-card:hover .certificate-card-inner::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 4px;
  right: 5px;
  bottom: 4px;
  border: 1px solid #e5ba4f;
  border-radius: 8px;
  pointer-events: none;
}

/* Gold gradient line on top on hover */
.certificate-card:hover .certificate-card-inner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 4px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #e5ba4f 50%, rgba(255, 255, 255, 0) 100%);
  border-radius: 0 0 2px 2px;
}

.certificate-icon {
  width: 89px;
  height: 87px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-icon {
  font-size: 60px;
  color: #222222;
}

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

.certificate-text p {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 0.1px;
  color: #000000;
  margin: 0;
}

/* View button - All cards outlined style */
.btn-certificate-view {
  width: 160px;
  height: 36px;
  background: white;
  border: 1px solid #e5ba4f;
  color: black;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.1px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0;
}

.btn-certificate-view:hover {
  background: #e5ba4f;
}

/* ================================
   CERTIFICATE MODAL - EXACT FIGMA DESIGN
================================ */
.certificate-modal-content {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0px 30px 80px rgba(0, 0, 0, 0.2);
}

.certificate-modal-header {
  position: absolute;
  top: 20px;
  right: 20px;
  border: none;
  z-index: 10;
  padding: 0;
  background: transparent;
}

.certificate-close-btn {
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.certificate-close-btn:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

/* .certificate-modal-body {
  padding: 50px;
} */

.certificate-modal-left {
  padding-right: 30px;
}

/* Modal Title Section */
.certificate-modal-title-section {
  margin-bottom: 25px;
}

.certificate-modal-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 34px;
  color: #222222;
  margin-bottom: 8px;
}

.certificate-modal-subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: #e5ba4f;
  margin: 0;
}

/* No underline in new design */
.certificate-modal-underline {
  display: none;
}

/* Modal Description */
.certificate-modal-description {
  margin-bottom: 30px;
}

.certificate-desc-text {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  color: black;
  margin-bottom: 15px;
}

.certificate-desc-detail {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 24px;
  color: black;
  margin-bottom: 15px;
  text-align: justify;
}

/* Modal Info Section - Two Columns */
.certificate-modal-info {
  display: flex;
  gap: 40px;
  margin-bottom: 30px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.certificate-info-item {
  flex: 1;
}

.certificate-info-label {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #999999;
  margin-bottom: 8px;
}

.certificate-info-value {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: black;
  margin: 0;
}

.certificate-number {
  color: #e5ba4f !important;
  font-weight: 600 !important;
}

/* Registered Badge */
.certificate-registered-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  padding: 14px 20px;
  border-radius: 8px;
}

.certificate-registered-badge i {
  color: #e5ba4f;
  font-size: 18px;
}

.certificate-registered-badge span {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #222222;
}

/* Modal Right Side - Certificate Image */
.certificate-modal-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 20px;
}

.certificate-image-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.certificate-image-frame {
  position: relative;
  background: white;
  border: 2px solid #e5ba4f;
  border-radius: 12px;
  padding: 8px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0px 20px 60px rgba(0, 0, 0, 0.08);
}

/* .certificate-image-frame::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid rgba(229, 186, 79, 0.5);
  border-radius: 8px;
  pointer-events: none;
} */

.certificate-image-inner {
  position: relative;
  z-index: 1;
}

.certificate-document-image {
  width: 100%;
  /* height: auto;
  min-height: 400px;
  max-height: 500px;
  object-fit: contain;
  border-radius: 6px;
  display: block; */
}

/* ================================
   NAVBAR TOGGLER
================================ */
.certificates-navbar-wrapper .navbar-toggler {
  border: none;
  padding: 0;
}

.certificates-navbar-wrapper .navbar-toggler:focus {
  box-shadow: none;
}

.certificates-navbar-wrapper .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 1200px) {
  .certificates-hero-content {
    padding-left: 60px;
  }

  .breadcrumb-nav {
    padding-left: 60px;
  }

  .certificate-card {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 992px) {
  .certificates-navbar-wrapper {
    min-height: 500px;
  }

  .certificates-hero-section {
    padding: 120px 0 80px;
  }

  .certificates-hero-title {
    font-size: 42px;
    line-height: 50px;
  }

  .certificates-hero-content {
    padding-left: 30px;
    max-width: 100%;
  }

  .breadcrumb-nav {
    padding-left: 30px;
  }

  .certificate-modal-body {
    padding: 40px 30px;
  }

  .certificate-modal-left {
    padding-right: 0;
    margin-bottom: 30px;
  }

  .certificate-modal-right {
    padding-left: 0;
  }

  .certificate-modal-info {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .certificates-navbar-wrapper {
    min-height: 450px;
  }

  .certificates-hero-section {
    padding: 100px 0 60px;
  }

  .certificates-hero-title {
    font-size: 36px;
    line-height: 44px;
  }

  .certificates-hero-subtitle {
    font-size: 14px;
    line-height: 24px;
  }

  .certificates-hero-content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .breadcrumb-nav {
    padding-left: 20px;
  }

  .certificates-main-section {
    padding: 60px 0 80px;
  }

  .certificates-title {
    font-size: 28px;
  }

  .certificates-description {
    font-size: 16px;
    line-height: 26px;
  }

  .certificate-card {
    height: auto;
    min-height: 280px;
  }

  .certificate-modal-body {
    padding: 30px 20px;
  }

  .certificate-modal-title {
    font-size: 24px;
    line-height: 30px;
  }

  .certificate-image-frame {
    max-width: 100%;
  }

  .certificate-document-image {
    min-height: 300px;
  }
}

@media (max-width: 576px) {
  .certificates-hero-title {
    font-size: 30px;
    line-height: 38px;
  }

  .certificates-badge {
    padding: 10px 15px;
  }

  .certificates-badge span {
    font-size: 9px;
    letter-spacing: 2px;
  }

  .title-underline {
    width: 200px;
  }

  .certificate-card-inner {
    padding: 25px 30px;
  }

  .cert-icon {
    font-size: 50px;
  }

  .certificate-modal-title {
    font-size: 22px;
  }

  .certificate-modal-subtitle {
    font-size: 14px;
  }

  .certificate-registered-badge {
    padding: 12px 16px;
  }
}