/* ==========================================================================
   TAMOOH - Verified Credentials & Certificate Verification Styles
   Awwwards-Level Cyberpunk/Dark Luxury Aesthetic
   ========================================================================== */

/* Page Hero */
.credentials-hero {
  position: relative;
  padding: 8rem 0 4rem;
  background: radial-gradient(circle at 50% 20%, rgba(0, 242, 254, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 80% 40%, rgba(112, 0, 255, 0.07) 0%, transparent 50%),
              var(--bg-primary);
  overflow: hidden;
  text-align: center;
}

.credentials-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.25rem;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 999px;
  color: #00f2fe;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
  backdrop-filter: blur(10px);
}

.credentials-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1.2rem;
  color: var(--text-primary);
}

[data-theme="dark"] .credentials-hero h1 {
  color: #ffffff;
}

.credentials-hero h1 span {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #7000ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.credentials-hero p {
  max-width: 750px;
  margin: 0 auto 2.5rem;
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Verification Search Bar */
.verify-search-container {
  max-width: 680px;
  margin: 0 auto 3rem;
  position: relative;
}

.verify-search-box {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-color);
  border-radius: 60px;
  padding: 0.5rem 0.6rem 0.5rem 1.5rem;
  box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 188, 212, 0.08);
  backdrop-filter: blur(16px);
  transition: all 0.3s ease;
}

[data-theme="dark"] .verify-search-box {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(0, 242, 254, 0.35);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.5),
              0 0 25px rgba(0, 242, 254, 0.15);
}

.verify-search-box:focus-within {
  border-color: #00f2fe;
  box-shadow: 0 20px 45px -10px rgba(0, 242, 254, 0.35),
              0 0 35px rgba(0, 242, 254, 0.3);
}

.verify-search-box i.search-icon {
  font-size: 1.2rem;
  color: #00f2fe;
  margin-left: 0.8rem;
}

.verify-search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1.05rem;
  color: var(--text-primary);
  font-family: inherit;
  letter-spacing: 0.5px;
}

[data-theme="dark"] .verify-search-box input {
  color: #ffffff;
}

.verify-search-box input::placeholder {
  color: var(--text-tertiary);
}

.verify-btn {
  background: linear-gradient(135deg, #00f2fe 0%, #0072ff 100%);
  color: #050b14;
  font-weight: 800;
  border: none;
  border-radius: 50px;
  padding: 0.85rem 1.8rem;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.verify-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.5);
  filter: brightness(1.1);
}

.quick-verify-hint {
  font-size: 0.88rem;
  color: #94a3b8;
  margin-top: 0.8rem;
}

.quick-verify-hint code {
  background: rgba(0, 242, 254, 0.12);
  color: #00f2fe;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-family: monospace;
  cursor: pointer;
  border: 1px solid rgba(0, 242, 254, 0.2);
  transition: all 0.2s ease;
}

.quick-verify-hint code:hover {
  background: rgba(0, 242, 254, 0.25);
}

/* Verification Result Card */
/* Verification Result Card */
.verification-result {
  max-width: 860px;
  margin: 0 auto 3.5rem;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-color);
  border-radius: 24px;
  padding: 2.2rem 2.5rem;
  box-shadow: var(--shadow-xl), 0 0 30px rgba(0, 188, 212, 0.08);
  backdrop-filter: blur(25px);
  display: none;
  animation: fadeInDown 0.5s ease;
  text-align: right;
  direction: rtl;
}

[data-theme="dark"] .verification-result {
  background: rgba(10, 25, 41, 0.92);
  border-color: rgba(0, 242, 254, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 242, 254, 0.15);
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.result-header-text h3 {
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

[data-theme="dark"] .result-header-text h3 {
  color: #ffffff;
}

.result-header-text h3 i {
  color: #00f2fe;
}

.result-header-text p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

.result-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  font-weight: 800;
  padding: 0.45rem 1.2rem;
  border-radius: 50px;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-size: 0.92rem;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.result-item {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.15rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: all 0.3s ease;
  min-width: 0;
  box-sizing: border-box;
}

[data-theme="dark"] .result-item {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(255, 255, 255, 0.08);
}

.result-item:hover {
  border-color: rgba(0, 242, 254, 0.3);
  transform: translateY(-2px);
}

.result-item.student-item {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.12) 0%, rgba(0, 114, 255, 0.06) 100%);
  border: 1.5px solid rgba(0, 242, 254, 0.35);
}

.result-item.course-item {
  grid-column: 1 / -1;
}

.result-item label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.result-item label i {
  color: #00f2fe;
}

.result-item span {
  font-size: 1.05rem;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.5;
  word-break: break-word;
}

[data-theme="dark"] .result-item span {
  color: #ffffff;
}

.result-item span.cert-code-highlight {
  color: #00bcd4;
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  direction: ltr;
  text-align: right;
  word-break: break-all;
  display: inline-block;
}

#resStudentName {
  font-size: 1.45rem;
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: 0.3px;
}

[data-theme="dark"] #resStudentName {
  color: #ffffff;
}

/* Certificate ID row with copy button */
.cert-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.2rem;
}

.btn-copy-code {
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: #00f2fe;
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-copy-code:hover {
  background: rgba(0, 242, 254, 0.25);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.3);
  transform: translateY(-1px);
}

.btn-copy-code.copied {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  color: #10b981;
}

/* Security Item Card */
.result-item.security-item {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.security-item-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.security-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.security-badge-text {
  color: #10b981 !important;
  font-size: 0.95rem !important;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.security-badge-text i {
  font-size: 1rem;
}

.scroll-to-cert-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2) 0%, rgba(0, 114, 255, 0.2) 100%);
  border: 1px solid rgba(0, 242, 254, 0.4);
  color: #00f2fe;
  padding: 0.55rem 1.2rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.scroll-to-cert-btn:hover {
  background: linear-gradient(135deg, #00f2fe 0%, #0072ff 100%);
  color: #050b14;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
  transform: translateY(-2px);
}

/* Interactive Certificate Actions Toolbar */
.cert-actions-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.cert-action-btn {
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.85rem 1.6rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  text-decoration: none;
}

[data-theme="dark"] .cert-action-btn {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(0, 242, 254, 0.3);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cert-action-btn:hover {
  border-color: #00bcd4;
  color: #00bcd4;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.cert-action-btn.primary-action {
  background: linear-gradient(135deg, #00f2fe 0%, #0072ff 100%);
  color: #050b14;
  border: none;
  font-weight: 800;
  box-shadow: 0 6px 25px rgba(0, 242, 254, 0.4);
}

.cert-action-btn.primary-action:hover {
  box-shadow: 0 10px 35px rgba(0, 242, 254, 0.6);
  transform: translateY(-3px);
  filter: brightness(1.1);
  color: #050b14;
}

/* Certificate Showcase Section */
.certificate-showcase-section {
  padding: 3rem 0 6rem;
  position: relative;
}

.section-header-center {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  color: #00f2fe;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--text-primary);
  font-weight: 800;
  margin-bottom: 1rem;
}

[data-theme="dark"] .section-title {
  color: #ffffff;
}

.section-subtitle {
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Certificate Card Wrapper */
.certificate-preview-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  perspective: 1200px;
  margin-bottom: 3rem;
  width: 100%;
}

/* Official Certificate Image Frame (High-Fidelity Official Document Display) */
.official-certificate-frame {
  width: 100%;
  max-width: 980px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 75px -15px rgba(0, 0, 0, 0.8),
              0 0 55px rgba(0, 188, 212, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #ffffff;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.official-certificate-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 35px 85px -15px rgba(0, 0, 0, 0.9),
              0 0 70px rgba(0, 188, 212, 0.5);
}

/* Ensure standard pointer cursor is always visible and reactive across the credentials page */
body, a, button, input, select, textarea {
  cursor: auto;
}
a, button, [role="button"], .clickable, .cert-action-btn, .verify-btn, .scroll-to-cert-btn, .btn-copy-code {
  cursor: pointer !important;
}

.cert-img-responsive {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 15px;
}

/* Responsive Certificate Iframe */
.cert-iframe-responsive {
  width: 100%;
  aspect-ratio: 1056 / 740;
  min-height: 520px;
  border: none;
  display: block;
  background: #ffffff;
  border-radius: 12px;
  transition: all 0.3s ease;
}

@media (max-width: 991px) {
  .cert-iframe-responsive {
    min-height: 380px;
  }
}

@media (max-width: 576px) {
  .cert-iframe-responsive {
    min-height: 240px;
  }
}

/* Certificate Placeholder before search */
.cert-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  text-align: center;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.85) 0%, rgba(10, 25, 41, 0.95) 100%);
  color: #94a3b8;
  min-height: 480px;
  border-radius: 12px;
}

.cert-placeholder i {
  font-size: 3.8rem;
  color: #00bcd4;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 15px rgba(0, 188, 212, 0.4));
}

.cert-placeholder h3 {
  font-size: 1.5rem;
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.cert-placeholder p {
  font-size: 1.02rem;
  color: #94a3b8;
  max-width: 500px;
  line-height: 1.6;
}

/* The Dynamic Certificate View (When rendering custom student certs) */
.official-certificate {
  width: 100%;
  max-width: 980px;
  aspect-ratio: 1.414 / 1; /* A4 landscape ratio */
  background: #ffffff;
  border-radius: 16px;
  position: relative;
  box-shadow: 0 25px 65px -15px rgba(0, 0, 0, 0.7),
              0 0 50px rgba(0, 188, 212, 0.25);
  display: flex;
  direction: ltr; /* English text layout as shown in screenshot */
  font-family: 'Inter', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1e293b;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Left Column: Solid Vibrant Cyan Brand Pillar (~28% width) */
.cert-left-pillar {
  width: 28%;
  min-width: 220px;
  background: #00bcd4;
  padding: 2.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  color: #ffffff;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.cert-pillar-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.cert-pillar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1px;
  margin-bottom: 1.2rem;
}

.cert-pillar-logo i {
  font-size: 1.5rem;
}

.cert-pillar-brand {
  font-size: 2.1rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.cert-pillar-certified {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
}

.cert-pillar-divider {
  width: 80%;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.35);
  margin: 1.4rem auto 1.2rem;
}

.cert-pillar-meta {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  width: 100%;
  text-align: center;
}

.cert-pillar-meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cert-pillar-meta-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.25rem;
}

.cert-pillar-meta-val {
  font-size: 0.76rem;
  font-weight: 700;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  color: #ffffff;
  word-break: break-all;
  letter-spacing: 0.5px;
  line-height: 1.35;
  background: rgba(0, 0, 0, 0.15);
  padding: 4px 6px;
  border-radius: 6px;
  display: inline-block;
  max-width: 100%;
}

.cert-pillar-qr {
  background: #ffffff;
  padding: 7px;
  border-radius: 10px;
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  margin-top: 1rem;
}

.cert-pillar-qr svg, .cert-pillar-qr img {
  width: 100%;
  height: 100%;
  display: block;
}

/* Right Column: Main Certificate Body (~72% width) */
.cert-main-area {
  flex: 1;
  background: #ffffff;
  padding: 2.2rem 2.8rem 2rem 2.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  box-sizing: border-box;
  position: relative;
}

/* Watermark */
.cert-main-area::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 188, 212, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

/* Partner Logo (Top Right) */
.partner-logo-container {
  position: absolute;
  top: 1.4rem;
  right: 2rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo-container img {
  max-height: 70px;
  max-width: 190px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
}

.cert-title-completion {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: #475569;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.cert-subtitle-certifies {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 0.6rem;
}

.cert-student-name-display {
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 800;
  color: #00bcd4;
  line-height: 1.15;
  margin: 0.3rem 0 0.6rem;
  text-transform: capitalize;
  letter-spacing: -0.5px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-completed-text {
  font-size: 0.92rem;
  color: #64748b;
  margin-bottom: 0.4rem;
}

.cert-course-name-display {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 800;
  color: #1e293b;
  line-height: 1.35;
  max-width: 600px;
  margin: 0 auto 0.8rem;
  letter-spacing: -0.3px;
  white-space: pre-line;
}

/* Stats Capsule Pill Box */
.cert-stats-capsule {
  background: rgba(0, 188, 212, 0.04);
  border: 1px solid rgba(0, 188, 212, 0.2);
  border-radius: 50px;
  padding: 0.55rem 2.2rem;
  display: inline-flex;
  gap: 2.2rem;
  align-items: center;
  justify-content: center;
  margin: 0.3rem 0 1rem;
}

.cert-capsule-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cert-capsule-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.cert-capsule-val.status-verified {
  color: #0f172a;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.cert-capsule-lbl {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 0.15rem;
}

/* Bottom Signatures Row */
.cert-signatures-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 580px;
  margin-top: 0.5rem;
}

.cert-sig-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 220px;
}

.cert-sig-line {
  width: 140px;
  height: 1.5px;
  background: #cbd5e1;
  margin-bottom: 0.45rem;
}

.cert-sig-role {
  font-size: 0.72rem;
  font-weight: 700;
  color: #334155;
  line-height: 1.3;
  margin-bottom: 0.2rem;
  text-align: center;
}

.cert-sig-name {
  font-size: 0.78rem;
  font-weight: 800;
  color: #00bcd4;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Interactive Certificate Actions Toolbar */
.cert-actions-toolbar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cert-action-btn {
  background: rgba(15, 23, 42, 0.8);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  padding: 0.75rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
}

.cert-action-btn:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: #00f2fe;
  color: #00f2fe;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 242, 254, 0.2);
}

.cert-action-btn.primary-action {
  background: linear-gradient(135deg, #00f2fe 0%, #7000ff 100%);
  color: #ffffff;
  border: none;
}

.cert-action-btn.primary-action:hover {
  box-shadow: 0 8px 25px rgba(112, 0, 255, 0.4);
  filter: brightness(1.1);
}

/* Strategic Partnerships & Accreditations */
.partnerships-section {
  padding: 5.5rem 0;
  background: radial-gradient(circle at 50% 15%, rgba(0, 242, 254, 0.05) 0%, rgba(6, 9, 17, 0.98) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

[data-theme="light"] .partnerships-section {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.section-header-center {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  background: rgba(0, 242, 254, 0.12);
  color: #00f2fe;
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 50px;
  padding: 0.4rem 1.3rem;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
}

[data-theme="light"] .section-tag {
  background: rgba(0, 188, 212, 0.1);
  color: #0891b2;
  border-color: rgba(0, 188, 212, 0.25);
  box-shadow: none;
}

.section-subtitle {
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
}

[data-theme="light"] .section-subtitle {
  color: #475569;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.2rem;
  margin-top: 3rem;
}

.partner-card {
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.92) 0%, rgba(10, 15, 28, 0.96) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 2.5rem 2rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

[data-theme="light"] .partner-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.06);
}

.partner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3.5px;
  background: linear-gradient(90deg, #00f2fe, #7000ff);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.partner-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 242, 254, 0.5);
  box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.8),
              0 0 30px rgba(0, 242, 254, 0.25);
}

.partner-card:hover::before {
  opacity: 1;
}

[data-theme="light"] .partner-card:hover {
  transform: translateY(-6px);
  border-color: #00bcd4;
  box-shadow: 0 20px 40px -10px rgba(0, 188, 212, 0.2);
}

.partner-card.google:hover {
  border-color: rgba(66, 133, 244, 0.65);
  box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.8), 0 0 35px rgba(66, 133, 244, 0.3);
}

.partner-card.google::before {
  background: linear-gradient(90deg, #4285f4, #ea4335, #fbbc05, #34a853);
}

.partner-card.fe-makers:hover {
  border-color: rgba(168, 85, 247, 0.65);
  box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.8), 0 0 35px rgba(168, 85, 247, 0.3);
}

.partner-card.fe-makers::before {
  background: linear-gradient(90deg, #a855f7, #ec4899);
}

.partner-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  margin-bottom: 1.6rem;
  background: rgba(0, 242, 254, 0.12);
  color: #00f2fe;
  border: 1.5px solid rgba(0, 242, 254, 0.3);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.2);
  transition: transform 0.35s ease;
}

.partner-card:hover .partner-icon-wrap {
  transform: scale(1.08) rotate(3deg);
}

.partner-card.google .partner-icon-wrap {
  background: rgba(66, 133, 244, 0.12);
  color: #4285F4;
  border-color: rgba(66, 133, 244, 0.4);
  box-shadow: 0 0 25px rgba(66, 133, 244, 0.25);
}

.partner-card.fe-makers .partner-icon-wrap {
  background: rgba(168, 85, 247, 0.12);
  color: #a855f7;
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.25);
}

.partner-card h3 {
  font-size: 1.35rem;
  color: #ffffff !important;
  font-weight: 800;
  margin-bottom: 0.9rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

[data-theme="light"] .partner-card h3 {
  color: #0f172a !important;
}

.partner-card p {
  font-size: 0.95rem;
  color: #cbd5e1 !important;
  line-height: 1.78;
  margin-bottom: 1.2rem;
  font-weight: 400;
}

[data-theme="light"] .partner-card p {
  color: #475569 !important;
}

.partner-badge-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.4rem 0.95rem;
  border-radius: 8px;
  background: rgba(0, 242, 254, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(0, 242, 254, 0.25);
  letter-spacing: 0.3px;
}

.partner-card.google .partner-badge-tag {
  background: rgba(66, 133, 244, 0.12);
  color: #60a5fa;
  border-color: rgba(66, 133, 244, 0.35);
}

.partner-card.fe-makers .partner-badge-tag {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.35);
}

[data-theme="light"] .partner-badge-tag {
  background: rgba(2, 132, 199, 0.08);
  color: #0284c7;
  border-color: rgba(2, 132, 199, 0.2);
}

/* Credential Core Features Grid */
.cred-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
  margin-top: 4rem;
}

.cred-feature-item {
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.8) 0%, rgba(10, 15, 28, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 2rem 1.8rem;
  text-align: right;
  transition: all 0.35s ease;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

[data-theme="light"] .cred-feature-item {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.cred-feature-item:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 242, 254, 0.45);
  box-shadow: 0 18px 40px -8px rgba(0, 0, 0, 0.75), 0 0 25px rgba(0, 242, 254, 0.2);
}

[data-theme="light"] .cred-feature-item:hover {
  transform: translateY(-5px);
  border-color: #00bcd4;
  box-shadow: 0 12px 30px rgba(0, 188, 212, 0.15);
}

.cred-feature-item i {
  font-size: 2rem;
  color: #00f2fe;
  margin-bottom: 1.2rem;
  display: inline-block;
  filter: drop-shadow(0 0 12px rgba(0, 242, 254, 0.5));
  transition: transform 0.3s ease;
}

.cred-feature-item:hover i {
  transform: scale(1.15);
}

.cred-feature-item h4 {
  font-size: 1.18rem;
  color: #ffffff !important;
  font-weight: 700;
  margin-bottom: 0.65rem;
  line-height: 1.4;
}

[data-theme="light"] .cred-feature-item h4 {
  color: #0f172a !important;
}

.cred-feature-item p {
  font-size: 0.92rem;
  color: #cbd5e1 !important;
  line-height: 1.72;
  margin: 0;
  font-weight: 400;
}

[data-theme="light"] .cred-feature-item p {
  color: #475569 !important;
}

/* Responsive adjustments for Mobile & Tablets */
@media (max-width: 820px) {
  .verification-result {
    padding: 1.6rem 1.4rem;
    border-radius: 18px;
    margin-bottom: 2.5rem;
  }
  .result-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
  .official-certificate {
    flex-direction: column;
    aspect-ratio: auto;
  }
  .cert-left-pillar {
    width: 100%;
    min-width: unset;
    padding: 2rem 1.4rem;
  }
  .cert-main-area {
    width: 100%;
    padding: 2.2rem 1.4rem;
  }
  .partner-logo-container {
    position: static;
    margin-bottom: 0.8rem;
  }
  .partner-logo-container img {
    max-height: 50px;
    max-width: 140px;
  }
  .cert-student-name-display {
    font-size: 1.8rem;
  }
  .cert-course-name-display {
    font-size: 1.25rem;
  }
  .cert-stats-capsule {
    gap: 1.2rem;
    padding: 0.5rem 1.2rem;
    flex-wrap: wrap;
  }
  .cert-signatures-row {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  .verify-search-box {
    flex-direction: column;
    padding: 1rem;
    border-radius: 20px;
  }
  .verify-btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.8rem;
  }
}

@media (max-width: 640px) {
  .credentials-hero {
    padding: 6.5rem 1rem 3rem;
  }
  .credentials-title {
    font-size: 2rem;
  }
  .verify-search-box {
    flex-direction: column;
    padding: 1.1rem 1rem;
    border-radius: 20px;
    gap: 0.6rem;
  }
  .verify-search-box input {
    width: 100%;
    text-align: center;
    padding: 0.5rem 0;
    font-size: 0.95rem;
  }
  .verify-btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.2rem;
    font-size: 0.95rem;
  }
  .verification-result {
    padding: 1.4rem 1.1rem;
    border-radius: 18px;
    margin-bottom: 2.5rem;
  }
  .result-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  .result-status-badge {
    width: 100%;
    justify-content: center;
  }
  #resStudentName {
    font-size: 1.25rem;
  }
  .cert-code-row {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .result-item span.cert-code-highlight {
    font-size: 0.88rem;
  }
  .security-item-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }
  .scroll-to-cert-btn {
    width: 100%;
    justify-content: center;
  }
  .cert-actions-toolbar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    width: 100%;
  }
  .cert-action-btn {
    padding: 0.85rem 0.6rem;
    font-size: 0.88rem;
    justify-content: center;
    border-radius: 14px;
    width: 100%;
    min-height: 48px;
  }
  .quick-verify-hint {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
  }
}

@media (max-width: 440px) {
  .credentials-hero {
    padding: 6rem 0.75rem 2.5rem;
  }
  .credentials-title {
    font-size: 1.75rem;
  }
  .cert-actions-toolbar {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
}

/* Certificate-Only Print Mode (@media print) */
@media print {
  @page {
    size: A4 landscape;
    margin: 0;
  }
  *, *::before, *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  html, body {
    background: #ffffff !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
  }
  /* Hide all non-certificate content */
  body * {
    visibility: hidden !important;
  }
  .certificate-preview-container,
  .certificate-preview-container * {
    visibility: visible !important;
  }
  .certificate-preview-container {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    z-index: 9999999 !important;
  }
  .official-certificate-frame {
    box-shadow: none !important;
    border: none !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .cert-img-responsive {
    max-width: 100vw !important;
    max-height: 100vh !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    margin: 0 !important;
    display: block !important;
  }
  .official-certificate {
    box-shadow: none !important;
    border: none !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1.414 / 1 !important;
    margin: auto !important;
  }
}
