/* ==============================================================================
   JEET COMPUTER EDUCATION - PUBLIC FOOTER SYSTEM
   Location: Pali, Rajasthan | Tagline: Learn Today Earn Tomorrow
   5-Column Balanced Grid + Compact Visitor Counter + Portal Directory
   ============================================================================== */

footer.jf-footer,
.jf-footer {
  position: relative;
  background: #0b1329 !important;
  color: #94a3b8;
  font-family: var(--font-body, 'Inter', sans-serif);
  padding: 0 0 40px 0 !important;
  overflow: hidden;
  margin-top: 60px;
}

footer.jf-footer .jf-wave,
.jf-wave {
  width: 100%;
  line-height: 0;
  overflow: hidden;
  position: relative !important;
}

footer.jf-footer .jf-wave svg,
.jf-wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

footer.jf-footer .jf-wave path,
.jf-wave path {
  fill: #ffffff;
}

footer.jf-footer .jf-container,
.jf-footer .jf-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px clamp(16px, 2.5vw, 36px) 30px clamp(16px, 2.5vw, 36px) !important;
  display: grid !important;
  grid-template-columns: 1.8fr 1.1fr 1.2fr 1.7fr !important;
  gap: clamp(24px, 2.5vw, 40px) !important;
  box-sizing: border-box;
  overflow: hidden;
}

/* Guard against CSS Grid column blowout on long course titles like PGDCA */
footer.jf-footer .jf-container > *,
.jf-footer .jf-container > *,
.jf-about,
.jf-links,
.jf-contact {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* --- 2. Col 1: Institute Brand & About --- */
.jf-about {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.jf-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.jf-logo .jc-brand-logo {
  width: 46px;
  height: 46px;
  background: #ffffff;
  border-radius: 10px;
  padding: 4px;
}

.jf-logo h2 {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  color: #ffffff;
  font-size: 19px;
  font-weight: 800;
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.3px;
}

.jf-logo span {
  font-size: 11px;
  color: #38bdf8;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.jf-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0;
}

.jf-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.jf-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.jf-social a:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

/* --- 2.5 Android Mobile App Download CTA Badge --- */
.jf-app-download-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 6px 0 2px 0;
  width: 100%;
  max-width: 220px;
}

.jf-app-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.jf-app-label i {
  font-size: 12px;
  color: #38bdf8;
}

.jf-app-badge {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  background: linear-gradient(135deg, #0b1120 0%, #0f172a 100%) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.35) !important;
  border-radius: 12px !important;
  padding: 8px 14px !important;
  text-decoration: none !important;
  color: #ffffff !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1) !important;
  box-sizing: border-box !important;
  width: 100% !important;
  position: relative !important;
  overflow: hidden !important;
}

.jf-app-badge:hover {
  border-color: #38bdf8 !important;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4), 0 0 14px rgba(56, 189, 248, 0.25) !important;
  color: #ffffff !important;
}

.jf-app-icon {
  font-size: 26px !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.jf-app-icon i {
  background: linear-gradient(135deg, #00d2ff 0%, #00e676 40%, #ffb300 75%, #ff3d00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.jf-app-text {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  line-height: 1.15 !important;
  flex: 1 !important;
  min-width: 0 !important;
}

.jf-app-sub {
  font-size: 9.5px !important;
  letter-spacing: 0.8px !important;
  color: #94a3b8 !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  font-family: var(--font-body, 'Inter', sans-serif) !important;
}

.jf-app-main {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: -0.2px !important;
  font-family: var(--font-heading, 'Outfit', sans-serif) !important;
}

.jf-app-action {
  font-size: 13px !important;
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.12) !important;
  border-radius: 50% !important;
  width: 26px !important;
  height: 26px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
}

.jf-app-badge:hover .jf-app-action {
  background: #38bdf8 !important;
  color: #0b1120 !important;
  transform: translateY(1px);
}

/* --- 3. Compact Visitor Counter Card (~180x85px) --- */
footer.jf-footer .counter-box,
footer.jf-footer .jf-stat-card,
.counter-box.jf-stat-card,
.counter-box,
.jf-stat-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 190px !important;
  min-height: 80px !important;
  background: rgba(15, 23, 42, 0.9) !important;
  border: 1px solid rgba(56, 189, 248, 0.28) !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  margin: 10px 0 0 0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  box-sizing: border-box !important;
  text-align: left !important;
  transition: border-color 0.2s ease !important;
}

footer.jf-footer .counter-box:hover,
footer.jf-footer .jf-stat-card:hover,
.counter-box:hover,
.jf-stat-card:hover {
  border-color: rgba(56, 189, 248, 0.5) !important;
}

.jf-stat-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.jf-stat-header i {
  color: #38bdf8;
  font-size: 12px;
}

.counter-box h3,
.jf-stat-header span {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

.counter-box h1,
.counter-box #liveCounter,
.jf-stat-number {
  color: #38bdf8;
  font-size: 1.55rem;
  font-weight: 800;
  font-family: monospace, var(--font-heading, 'Outfit', sans-serif);
  line-height: 1.1;
  margin: 0;
  letter-spacing: 1.5px;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

/* --- 4. Columns 2, 3, 4: Navigation Links --- */
.jf-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.jf-links h3,
.jf-contact h3 {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: -0.2px;
  position: relative;
  display: inline-block;
}

.jf-links h3::after,
.jf-contact h3::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: #2563eb;
  border-radius: 2px;
  margin-top: 6px;
}

.jf-links a {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  color: #94a3b8;
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.45;
  transition: all 0.2s ease;
  width: 100% !important;
  max-width: 100% !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
  box-sizing: border-box !important;
}

.jf-links a i {
  font-size: 10px;
  color: #64748b;
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0 !important;
  margin-top: 4px !important;
}

.jf-links a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.jf-links a:hover i {
  color: #38bdf8;
}

/* Badges inside links */
.jf-link-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.4);
  line-height: 1;
}

.jf-link-badge.green {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
}

/* --- 5. Col 5: Contact & Newsletter --- */
.jf-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.jf-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #94a3b8;
}

.jf-contact-item i {
  color: #38bdf8;
  font-size: 13px;
  margin-top: 4px;
  flex-shrink: 0;
}

.jf-contact-item a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.jf-contact-item a:hover {
  color: #ffffff;
}

/* --- 5. Modern Newsletter & Updates Card --- */
.jf-newsletter-box {
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.3s ease;
}

.jf-newsletter-box:hover {
  border-color: rgba(56, 189, 248, 0.25);
  background: rgba(255, 255, 255, 0.045);
}

.jf-newsletter-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.1px;
}

.jf-newsletter-header i {
  color: #38bdf8;
  font-size: 12px;
}

.jf-newsletter-desc {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0;
}

.jf-newsletter,
#subscribeForm.jf-newsletter {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
}

.jf-newsletter-input-group {
  display: flex !important;
  align-items: center !important;
  background: rgba(15, 23, 42, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 50px !important;
  padding: 4px 4px 4px 14px !important;
  gap: 6px !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
  position: relative !important;
}

.jf-newsletter-input-group:focus-within {
  border-color: #38bdf8 !important;
  background: rgba(15, 23, 42, 0.95) !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.jf-input-icon {
  color: #64748b;
  font-size: 13px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}

.jf-newsletter-input-group:focus-within .jf-input-icon {
  color: #38bdf8;
}

.jf-newsletter input[type="email"],
#subscribeForm input[type="email"],
#subscribeForm #subEmail {
  flex: 1 !important;
  min-width: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 8px 6px !important;
  color: #ffffff !important;
  font-size: 12.5px !important;
  font-family: inherit !important;
  outline: none !important;
  box-shadow: none !important;
  margin: 0 !important;
}

.jf-newsletter input[type="email"]::placeholder,
#subscribeForm input[type="email"]::placeholder {
  color: #64748b !important;
  opacity: 1;
}

.jf-newsletter button,
.jf-newsletter-btn,
#subscribeForm button,
#subscribeForm .btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  letter-spacing: 0.2px !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 8px 16px !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35) !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

.jf-newsletter button:hover,
.jf-newsletter-btn:hover,
#subscribeForm button:hover {
  background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%) !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.5) !important;
  transform: translateY(-1px) !important;
}

.jf-newsletter button:active,
.jf-newsletter-btn:active,
#subscribeForm button:active {
  transform: translateY(0) !important;
}

.jf-newsletter button:disabled,
.jf-newsletter-btn:disabled {
  opacity: 0.7 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.jf-newsletter-btn i {
  font-size: 11px;
  transition: transform 0.2s ease;
}

.jf-newsletter-btn:hover i {
  transform: translateX(2px);
}

/* Feedback message */
.jf-sub-message,
#subMessage {
  font-size: 12px !important;
  margin: 4px 0 0 0 !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  line-height: 1.4 !important;
  display: none;
  animation: jfMsgFade 0.3s ease forwards;
}

@keyframes jfMsgFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.jf-sub-message.success,
#subMessage.success {
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  color: #34d399 !important;
}

.jf-sub-message.error,
#subMessage.error {
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  color: #f87171 !important;
}

.jf-sub-message.info,
#subMessage.info {
  background: rgba(56, 189, 248, 0.12) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  color: #38bdf8 !important;
}

@media (max-width: 480px) {
  .jf-newsletter-box {
    padding: 12px 14px;
  }
  .jf-newsletter-input-group {
    padding: 3px 3px 3px 12px !important;
  }
  .jf-newsletter button,
  .jf-newsletter-btn {
    padding: 8px 12px !important;
    font-size: 11.5px !important;
  }
}

/* --- 6. Bottom Copyright & Safeguard Routes --- */
.jf-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 40px;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  font-size: 12.5px;
  color: #64748b;
  /* WhatsApp Floating Button clearance */
  padding-bottom: 20px;
}

.jf-bottom-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.jf-bottom-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 12px;
}

.jf-bottom-links a:hover {
  color: #ffffff;
}

.jf-bottom-divider {
  color: rgba(255, 255, 255, 0.2);
}

/* --- 7. Responsive Breakpoint Rules --- */
@media (max-width: 1200px) {
  footer.jf-footer .jf-container,
  .jf-footer .jf-container {
    grid-template-columns: 1.6fr 1.1fr 1.1fr 1.6fr !important;
    gap: 24px !important;
  }
}

@media (max-width: 1023px) and (min-width: 641px) {
  footer.jf-footer .jf-container,
  .jf-footer .jf-container {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px 24px !important;
    padding: 35px 20px 25px 20px !important;
  }
  footer.jf-footer .jf-about,
  .jf-about,
  footer.jf-footer .jf-contact,
  .jf-contact,
  footer.jf-footer .jf-links,
  .jf-links {
    grid-column: span 1 !important;
  }
  .counter-box,
  .jf-stat-card {
    max-width: 220px !important;
  }
}

@media (max-width: 640px) {
  footer.jf-footer .jf-container,
  .jf-footer .jf-container {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding: 24px 16px 20px 16px !important;
  }
  footer.jf-footer .jf-about,
  .jf-about,
  footer.jf-footer .jf-contact,
  .jf-contact,
  footer.jf-footer .jf-links,
  .jf-links {
    grid-column: span 1 !important;
  }
  .counter-box,
  .jf-stat-card {
    max-width: 100% !important;
    width: 100% !important;
  }
  .jf-logo {
    gap: 10px;
  }
  .jf-logo h2 {
    font-size: 17px !important;
  }
  .jf-desc {
    font-size: 13px !important;
    line-height: 1.55 !important;
  }
  .jf-links h3,
  .jf-contact h3 {
    font-size: 15px !important;
    margin-bottom: 12px !important;
    padding-bottom: 6px !important;
  }
  .jf-links a {
    font-size: 13px !important;
    padding: 6px 0 !important;
  }
  .jf-contact-item {
    font-size: 13px !important;
  }
  .jf-newsletter-box {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .jf-newsletter-input-group {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .jf-bottom {
    padding-bottom: 80px !important; /* clearance for floating WhatsApp chat widget */
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .jf-bottom-links {
    gap: 10px !important;
    font-size: 11px !important;
  }
}
