/* ==========================================================================
   JEE MENIA — Unified Premium Trust Footer (Gold/Ivory & Ice-Blue Themes)
   Version: 20261130-trust-v1
   ========================================================================== */

footer.site-footer.jm-trust-footer,
.jm-trust-footer {
  position: relative;
  margin-top: 48px;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 196, 0, 0.16), transparent 38%),
    radial-gradient(circle at 6% 85%, rgba(229, 173, 0, 0.11), transparent 40%),
    linear-gradient(180deg, #fffdf7 0%, #f9f4e6 100%) !important;
  border-top: 2px solid rgba(229, 173, 0, 0.45) !important;
  box-shadow: 0 -10px 36px rgba(17, 19, 21, 0.045) !important;
  color: #17191c !important;
  padding: 0 !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Ice-Blue Theme Support (html[data-theme="blue"]) */
html[data-theme="blue"] footer.site-footer.jm-trust-footer,
html[data-theme="blue"] .jm-trust-footer {
  background:
    radial-gradient(circle at 92% 8%, rgba(59, 130, 246, 0.15), transparent 38%),
    radial-gradient(circle at 6% 85%, rgba(37, 99, 235, 0.09), transparent 40%),
    linear-gradient(180deg, #f5f9ff 0%, #eaf2ff 100%) !important;
  border-top-color: rgba(37, 99, 235, 0.32) !important;
}

.jm-tf-wrap {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}

/* 1. Top 4-Pillar Trust & Credibility Strip */
.jm-tf-trust-strip {
  border-bottom: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px 0;
}

html[data-theme="blue"] .jm-tf-trust-strip {
  border-bottom-color: rgba(37, 99, 235, 0.18);
  background: rgba(255, 255, 255, 0.78);
}

.jm-tf-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.jm-tf-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 253, 246, 0.9);
  border: 1px solid rgba(229, 173, 0, 0.25);
}

html[data-theme="blue"] .jm-tf-trust-item {
  background: rgba(248, 251, 255, 0.92);
  border-color: rgba(37, 99, 235, 0.18);
}

.jm-tf-trust-ico {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: #fff4cc;
  border: 1px solid rgba(229, 173, 0, 0.4);
}

html[data-theme="blue"] .jm-tf-trust-ico {
  background: #dbeafe;
  border-color: rgba(37, 99, 235, 0.28);
}

.jm-tf-trust-item strong {
  display: block;
  font-size: 12.5px;
  font-weight: 850;
  color: #111315 !important;
  line-height: 1.25;
}

.jm-tf-trust-item span {
  display: block;
  font-size: 11.5px;
  color: #525b66 !important;
  line-height: 1.4;
  margin-top: 2px;
}

/* 2. Main 4-Column Navigation & Brand Body */
.jm-tf-main {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr 1.05fr 1.15fr;
  gap: 32px;
  padding: 40px 0 34px;
  align-items: start;
}

.jm-tf-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.jm-tf-brand-link img {
  width: 176px !important;
  max-width: 186px !important;
  height: auto !important;
  max-height: 52px !important;
  object-fit: contain;
  display: block;
}

.jm-tf-brand-fallback {
  font-size: 23px;
  font-weight: 950;
  letter-spacing: -0.03em;
  color: #111315 !important;
}

.jm-tf-brand-fallback em {
  font-style: normal;
  color: #d99b00 !important;
}

.jm-tf-tagline {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #111315;
  color: #ffd84d !important;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jm-tf-mission {
  margin: 12px 0 14px;
  font-size: 13px;
  line-height: 1.6;
  color: #374151 !important;
}

.jm-tf-contact-stack {
  display: grid;
  gap: 8px;
}

.jm-tf-contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 11px;
  background: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.35);
  font-size: 12.5px;
  font-weight: 750;
  color: #111315 !important;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.jm-tf-contact-pill:hover {
  transform: translateY(-1px);
  border-color: #d99b00;
  box-shadow: 0 6px 16px rgba(17, 19, 21, 0.06);
  color: #9a6700 !important;
}

/* Footer Columns */
.jm-tf-col h3 {
  margin: 0 0 13px;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111315 !important;
  display: flex;
  align-items: center;
  gap: 7px;
}

.jm-tf-col h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: #e5ad00;
  display: inline-block;
}

html[data-theme="blue"] .jm-tf-col h3::before {
  background: #2563eb;
}

.jm-tf-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.jm-tf-list a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.8px;
  font-weight: 600;
  color: #374151 !important;
  text-decoration: none;
  transition: color 0.16s ease, transform 0.16s ease;
}

.jm-tf-list a:hover {
  color: #9a6700 !important;
  transform: translateX(2px);
}

html[data-theme="blue"] .jm-tf-list a:hover {
  color: #1d4ed8 !important;
}

.jm-tf-new-tag {
  font-size: 9.5px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 999px;
  background: #fff3c4;
  color: #855800 !important;
  border: 1px solid #f0d06b;
  letter-spacing: 0.03em;
}

/* Column 4: High-Trust Action & Portal Access Card */
.jm-tf-cta-card {
  background: #ffffff;
  border: 1.5px solid rgba(229, 173, 0, 0.45);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(17, 19, 21, 0.055);
}

html[data-theme="blue"] .jm-tf-cta-card {
  border-color: rgba(37, 99, 235, 0.28);
}

.jm-tf-cta-eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a6700 !important;
  margin-bottom: 6px;
}

html[data-theme="blue"] .jm-tf-cta-eyebrow {
  color: #1d4ed8 !important;
}

.jm-tf-cta-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.28;
  font-weight: 900;
  text-transform: none;
  letter-spacing: -0.015em;
  color: #111315 !important;
}

.jm-tf-cta-card h3::before {
  display: none;
}

.jm-tf-cta-card p {
  margin: 0 0 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #4b5563 !important;
}

.jm-tf-cta-btns {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.jm-tf-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 11px;
  background: linear-gradient(135deg, #ffd43b, #e5ad00);
  border: 1px solid #c99600;
  color: #111315 !important;
  font-size: 12.8px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(229, 173, 0, 0.24);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.jm-tf-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 20px rgba(229, 173, 0, 0.32);
}

.jm-tf-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 11px;
  background: #111315;
  color: #ffd84d !important;
  font-size: 12.3px;
  font-weight: 800;
  text-decoration: none;
  transition: opacity 0.16s ease;
}

.jm-tf-btn-secondary:hover {
  opacity: 0.92;
}

.jm-tf-mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding-top: 10px;
  border-top: 1px solid #efe9d8;
  font-size: 11.8px;
}

.jm-tf-mini-links a {
  color: #4b5563 !important;
  font-weight: 700;
  text-decoration: none;
}

.jm-tf-mini-links a:hover {
  color: #9a6700 !important;
  text-decoration: underline;
}

/* 3. Bottom Legal, Disclaimer & Quick Strip */
.jm-tf-bottom {
  border-top: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(255, 255, 255, 0.55);
  padding: 16px 0 22px;
}

html[data-theme="blue"] .jm-tf-bottom {
  border-top-color: rgba(37, 99, 235, 0.18);
  background: rgba(255, 255, 255, 0.65);
}

.jm-tf-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #4b5563 !important;
}

.jm-tf-bottom-row strong {
  color: #111315 !important;
}

.jm-tf-bottom-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.jm-tf-bottom-links a {
  color: #374151 !important;
  font-weight: 700;
  text-decoration: none;
}

.jm-tf-bottom-links a:hover {
  color: #9a6700 !important;
}

.jm-tf-disclaimer {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: #6b7280 !important;
}

/* Responsive Breakpoints */
@media (max-width: 1040px) {
  .jm-tf-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .jm-tf-main {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }
}

@media (max-width: 640px) {
  .jm-tf-wrap {
    width: calc(100% - 28px);
  }
  .jm-tf-trust-grid,
  .jm-tf-main {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .jm-tf-main {
    padding: 28px 0 24px;
  }
  .jm-tf-bottom-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Student Care, Escalation & Verification Desk Box */
.jm-tf-desk-box {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 13px;
  background: #ffffff;
  border: 1.5px solid rgba(229, 173, 0, 0.42);
  box-shadow: 0 6px 18px rgba(17, 19, 21, 0.04);
  display: grid;
  gap: 5px;
}

html[data-theme="blue"] .jm-tf-desk-box {
  border-color: rgba(37, 99, 235, 0.28);
}

.jm-tf-desk-title {
  font-size: 11.5px;
  font-weight: 900;
  color: #111315 !important;
  margin-bottom: 2px;
}

.jm-tf-desk-line {
  font-size: 11.8px;
  line-height: 1.45;
  color: #374151 !important;
  word-break: break-word;
}

.jm-tf-desk-line a {
  color: #9a6700 !important;
  font-weight: 800;
  text-decoration: none;
}

html[data-theme="blue"] .jm-tf-desk-line a {
  color: #1d4ed8 !important;
}

.jm-tf-desk-line a:hover {
  text-decoration: underline;
}

/* High-specificity override so main homepage & legacy footer wrappers also get
   clean contrast, crisp spacing, and zero grey/washed-out text */
footer.site-footer.jm-trust-footer,
footer.site-footer.jm-trust-footer * {
  box-sizing: border-box;
}

footer.site-footer.jm-trust-footer .jm-tf-trust-item strong,
footer.site-footer.jm-trust-footer .jm-tf-col h3,
footer.site-footer.jm-trust-footer .jm-tf-cta-card h3,
footer.site-footer.jm-trust-footer .jm-tf-desk-title,
footer.site-footer.jm-trust-footer .jm-tf-bottom-row strong {
  color: #111315 !important;
  opacity: 1 !important;
}

footer.site-footer.jm-trust-footer .jm-tf-trust-item span,
footer.site-footer.jm-trust-footer .jm-tf-mission,
footer.site-footer.jm-trust-footer .jm-tf-cta-card p,
footer.site-footer.jm-trust-footer .jm-tf-desk-line,
footer.site-footer.jm-trust-footer .jm-tf-list a,
footer.site-footer.jm-trust-footer .jm-tf-mini-links a,
footer.site-footer.jm-trust-footer .jm-tf-bottom-row,
footer.site-footer.jm-trust-footer .jm-tf-bottom-links a {
  color: #2d3748 !important;
  opacity: 1 !important;
}

footer.site-footer.jm-trust-footer .jm-tf-btn-primary,
footer.site-footer.jm-trust-footer .jm-tf-btn-primary * {
  color: #111315 !important;
  opacity: 1 !important;
}

footer.site-footer.jm-trust-footer .jm-tf-btn-secondary,
footer.site-footer.jm-trust-footer .jm-tf-btn-secondary * {
  color: #ffd84d !important;
  opacity: 1 !important;
}

/* Fix: Center emojis inside 4-pillar trust strip boxes */
footer.site-footer.jm-trust-footer .jm-tf-trust-ico {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 40px !important;
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 18px !important;
  line-height: 1 !important;
  text-align: center !important;
}
