/* ================================================
   ZONIX — Internship Dialog (Professional 2026)
   ================================================ */

/* Overlay */
.internship-dialog {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 8, 18, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 12000;
  padding: 1rem;
  animation: idlg-fade 0.25s ease;
}

@keyframes idlg-fade {
  from { opacity: 0; backdrop-filter: blur(0px); }
  to   { opacity: 1; backdrop-filter: blur(8px); }
}

/* Card */
.idlg-card {
  position: relative;
  width: 100%;
  max-width: 1000px;
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 0;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 50px 120px rgba(4, 8, 20, 0.65),
    0 20px 50px rgba(11, 94, 215, 0.22);
  animation: idlg-up 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  max-height: min(92vh, 760px);
  min-height: min(76vh, 660px);
  overflow: hidden;
}

@keyframes idlg-up {
  from { opacity: 0; transform: translateY(40px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Close button */
.idlg-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.idlg-close:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.25);
  transform: rotate(90deg) scale(1.08);
}

.idlg-close svg { width: 16px; height: 16px; }

/* ── LEFT PANEL ── */
.idlg-left {
  background: linear-gradient(160deg, #051620 0%, #0a2847 40%, #0c3560 75%, #0d3d72 100%);
  padding: 2.2rem 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: #fff;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  overscroll-behavior: contain;
}

/* subtle glow effects */
.idlg-left::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(11,94,215,0.25) 0%, transparent 65%);
  pointer-events: none;
}

.idlg-left::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(11,94,215,0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* Scrollbar styling */
.idlg-left::-webkit-scrollbar {
  width: 6px;
}

.idlg-left::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
}

.idlg-left::-webkit-scrollbar-thumb {
  background: rgba(11,94,215,0.5);
  border-radius: 3px;
}

.idlg-left::-webkit-scrollbar-thumb:hover {
  background: rgba(11,94,215,0.7);
}

/* Live badge */
.idlg-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: 999px;
  padding: 0.28rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #86efac;
  width: fit-content;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.idlg-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: idlg-pulse 2s ease infinite;
}

@keyframes idlg-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(74,222,128,0); }
}

.idlg-brand-line {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7ec8ff;
  margin: -0.2rem 0 0.3rem;
  opacity: 0.95;
}

.idlg-title {
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.01em;
}

.idlg-desc {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin: 0;
  font-weight: 500;
}

.idlg-desc strong { color: #fff; font-weight: 700; }

/* Stats row */
.idlg-stats {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}

.idlg-stat { text-align: center; flex: 1; }

.idlg-stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}

.idlg-stat-lbl {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 0.3rem;
}

.idlg-stat-div {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}

/* Countdown */
.idlg-countdown-box {
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}

.idlg-cd-label {
  font-size: 0.7rem;
  font-weight: 750;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.65rem;
}

.idlg-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.idlg-cd-unit {
  flex: 0 0 auto;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 0.5rem 0.4rem;
  text-align: center;
  min-width: 50px;
}

.idlg-cd-unit span {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.idlg-cd-unit small {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 0.25rem;
}

.idlg-cd-colon {
  font-size: 1.4rem;
  font-weight: 900;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.8rem;
  flex-shrink: 0;
  opacity: 0.8;
}

/* Perks */
.idlg-perks {
  list-style: none;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: stretch;
  justify-content: flex-start;
  flex-shrink: 0;
}

.idlg-perks li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  transition: all 0.22s ease;
  flex: 1 1 calc(50% - 0.6rem);
  min-width: 160px;
}

.idlg-perks li:hover {
  background: rgba(11,94,215,0.22);
  border-color: rgba(11,94,215,0.38);
  transform: translateY(-2px);
}

.idlg-perks li svg {
  width: 16px;
  height: 16px;
  stroke: #4ade80;
  flex-shrink: 0;
  stroke-width: 3;
}

/* Actions */
.idlg-actions {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  flex-wrap: wrap;
  flex-shrink: 0;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 0.3rem;
}

.idlg-btn-main {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #fff 0%, #f0f7ff 100%);
  color: #0b2c53;
  font-weight: 800;
  font-size: 0.93rem;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.2);
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.3);
}

.idlg-btn-main svg { width: 15px; height: 15px; stroke: #0b2c53; stroke-width: 2.5; }

.idlg-btn-main:hover {
  background: linear-gradient(135deg, #f0f7ff 0%, #dbeafe 100%);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(11,94,215,0.3), 0 0 0 1px rgba(255,255,255,0.4);
}

.idlg-btn-main:active {
  transform: translateY(-1px);
}

.idlg-btn-skip {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  font-weight: 650;
  padding: 0.85rem 1.3rem;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.idlg-btn-skip:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
  transform: translateY(-2px);
}

.idlg-btn-skip:active {
  transform: translateY(0);
}

.idlg-footer-note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  margin: 0.3rem 0 0;
  letter-spacing: 0.02em;
  font-weight: 500;
  flex-shrink: 0;
  padding-top: 0.3rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.idlg-footer-note strong { color: rgba(255,255,255,0.7); font-weight: 700; }

/* ── RIGHT PANEL ── */
.idlg-right {
  position: relative;
  background: linear-gradient(135deg, #040e1c 0%, #0b1f3b 100%);
  overflow: hidden;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.idlg-poster-wrap {
  position: absolute;
  inset: 0;
}

.idlg-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0.95;
  position: absolute;
  inset: 0;
  z-index: 0;
  filter: brightness(1) contrast(1.08) saturate(1.1);
}

.idlg-right-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(7,24,40,0.42) 0%,
    rgba(11,44,84,0.18) 35%,
    rgba(5,14,28,0.42) 100%);
  z-index: 1;
  backdrop-filter: blur(0.5px);
}

/* Floating top badge */
.idlg-float-top {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(11,94,215,0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  letter-spacing: 0.06em;
  box-shadow: 0 8px 24px rgba(11,94,215,0.35);
  animation: idlg-slide-down 0.5s ease 0.15s both;
}

@keyframes idlg-slide-down {
  from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.idlg-float-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  animation: idlg-pulse 2s ease infinite;
  flex-shrink: 0;
}

/* Floating roles */
.idlg-float-roles {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
  animation: idlg-fade-in 0.6s ease 0.2s both;
}

@keyframes idlg-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.idlg-float-role-item {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 12px;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.idlg-float-role-item:hover {
  background: rgba(11,94,215,0.75);
  transform: translateX(8px) scale(1.05);
  border-color: rgba(255,255,255,0.35);
  box-shadow: 0 12px 28px rgba(11,94,215,0.4);
}

.idlg-role-icon {
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
}

/* Floating bottom card */
.idlg-float-bottom {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: calc(100% - 2.4rem);
  animation: idlg-slide-up 0.5s ease 0.3s both;
}

@keyframes idlg-slide-up {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.idlg-float-bottom-inner {
  background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(245,249,255,0.96) 100%);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.3);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255,255,255,0.4);
  transition: all 0.3s ease;
}

.idlg-float-bottom-inner:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.5);
}

.idlg-summary-icon {
  font-size: 2.4rem;
  font-weight: 900;
  color: #0b5ed7;
  line-height: 1;
  flex-shrink: 0;
  min-width: 50px;
  text-align: center;
}

.idlg-summary-text strong {
  display: block;
  font-size: 0.95rem;
  color: #0b2c53;
  font-weight: 800;
  line-height: 1.2;
}

.idlg-summary-text small {
  display: block;
  font-size: 0.75rem;
  color: #36506e;
  font-weight: 600;
  margin-top: 0.2rem;
  letter-spacing: 0.02em;
}

/* Right panel explore button */
.idlg-right-explore-btn {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 4;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.96) 0%, rgba(241,246,255,0.95) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: all 0.25s ease;
  border-radius: 12px;
  padding: 0.72rem 0.9rem;
  box-shadow: 0 14px 30px rgba(2, 10, 22, 0.35);
}

.idlg-right-explore-btn:hover {
  background: linear-gradient(135deg, #ffffff 0%, #eaf2ff 100%);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(11, 94, 215, 0.35);
  backdrop-filter: blur(12px);
}

.idlg-explore-text {
  font-size: 0.9rem;
  font-weight: 800;
  color: #0b2c53;
  letter-spacing: 0.01em;
  text-shadow: none;
}

.idlg-right-explore-btn svg {
  width: 18px;
  height: 18px;
  stroke: #0b2c53;
  stroke-width: 2.5;
}

/* Perk button (in perks section) */
.idlg-perk-button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #0b5ed7 0%, #0847a5 100%);
  border: 1px solid rgba(11, 94, 215, 0.6);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  transition: all 0.22s ease;
  flex: 1 1 calc(50% - 0.6rem);
  min-width: 160px;
  text-decoration: none;
  justify-content: center;
}

.idlg-perk-button:hover {
  background: linear-gradient(135deg, #0847a5 0%, #063383 100%);
  border-color: rgba(11, 94, 215, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 94, 215, 0.3);
}

.idlg-perk-button-icon {
  font-size: 1.1rem;
  font-weight: 900;
  color: #4ade80;
  flex-shrink: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 760px) {
  .idlg-card {
    grid-template-columns: 1fr;
    max-width: 480px;
    border-radius: 20px;
    max-height: 90vh;
  }
  .idlg-right { display: none; }
  .idlg-perks { grid-template-columns: 1fr; }
  .idlg-left  { padding: 1.8rem 1.6rem 1.6rem; max-height: 90vh; }
  .idlg-title { font-size: 1.4rem; }
}

@media (max-width: 420px) {
  .idlg-title { font-size: 1.2rem; }
  .idlg-cd-unit span { font-size: 1.3rem; }
  .idlg-actions { flex-direction: column; gap: 0.5rem; }
  .idlg-btn-main, .idlg-btn-skip { width: 100%; justify-content: center; font-size: 0.85rem; padding: 0.75rem 1rem; }
  .idlg-left { padding: 1.5rem 1.3rem; gap: 0.85rem; }
  .idlg-stats { padding: 0.85rem 0.9rem; }
  .idlg-perks li { font-size: 0.78rem; padding: 0.45rem 0.6rem; }
  .idlg-card { max-height: 95vh; }
}

/* ================================================
   Internship Page Styles
   ================================================ */

.internship-page {
  padding-top: 3rem;
  background: linear-gradient(180deg, #f7faff 0%, #ffffff 60%);
}

.internship-container {
  display: grid;
  gap: 2rem;
}

.internship-hero {
  max-width: 1120px;
  margin: 0 auto;
}

.internship-services {
  display: grid;
  gap: 1rem;
}

.internship-head {
  max-width: 760px;
  margin-bottom: 0.5rem;
}

.internship-group-title {
  margin: 1rem 0 0.3rem;
  font-size: 1.35rem;
  color: #11335a;
}

.internship-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.internship-role {
  border: 1px solid #d7e5fb;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(11, 43, 89, 0.07);
  background: #ffffff;
  display: grid;
  gap: 0.55rem;
}

.role-small {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.internship-role h3 {
  margin: 0;
  font-size: 1.13rem;
  color: var(--ink);
}

.role-description,
.role-deadline,
.role-skills {
  margin: 0;
  color: #314d6d;
  font-size: 0.95rem;
}

.role-deadline strong,
.role-skills strong {
  color: #17385f;
}

@media (max-width: 980px) {
  .internship-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .internship-grid {
    grid-template-columns: 1fr;
  }
  .internship-group-title {
    font-size: 1.15rem;
  }
}
