/* Variables */
:root {
  --navy: #141d38;
  --mustard: #c0ae2f;
  --green-tint: rgba(82, 180, 156, 0.15);
  --green-accent: rgba(82, 180, 156, 0.35);
  --light-bg: #f5f6fa;
  --border: #dde1ec;
  --text: #1a1a2e;
  --muted: #5a607a;
}

/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: var(--light-bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
}

a:hover {
  text-decoration: none !important;
}

/* Header */
.internship-header {
  background: var(--navy);
  background:
    linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4)),
    url("/images/internship/img1.jpeg") no-repeat center center;
  background-size: cover;
  padding: 50px 20px 40px;
  text-align: center;
  border-bottom: 4px solid var(--mustard);
  max-width: 1920px;
  height: 500px;
  display: flex !important;
  justify-content: center;
  flex-direction: column;
}

.internship-header .logo-label {
  font-size: 2rem;
  text-transform: uppercase;
  color: var(--mustard);
  margin-bottom: 12px;
  font-weight: 700;
}

.internship-header h1 {
  font-size: 2.4em;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.internship-header p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
  text-transform: capitalize;
  font-weight: 600;
}
.internship-main-content {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("/images/internship/img2.jpeg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
/* Container */
.intern-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 24px;
}

/* Section */
.section {
  margin-bottom: 60px;
  background: #ffffff;
  border-radius: 4px;
  padding: 32px 28px;
  border: 1px solid var(--border);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}

.section-badge {
  background-color: var(--mustard);
  color: #ffffff;
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  white-space: nowrap;
}

.section h2 {
  font-size: 2em;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.section > p {
  color: #222;
  font-size: 0.93em;
  margin-bottom: 24px;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 0.94em;
}

thead tr {
  background-color: var(--navy);
}

th {
  color: #ffffff;
  padding: 13px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.88em;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: none;
}

td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text);
}

tbody tr:nth-child(even) {
  background-color: var(--green-tint);
}

tbody tr:hover {
  background-color: var(--green-accent);
}

td strong {
  color: var(--navy);
  font-weight: 600;
}

/* CTA Button */
.cta-button {
  padding: 7px 18px;
  background-color: var(--mustard);
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-size: 0.88em;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 2px;
  text-transform: uppercase;
}

.cta-button:hover {
  background-color: var(--navy);
  color: #ffffff;
}

/* Batch Info */
.batch-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  padding: 14px 18px;
  background-color: var(--light-bg);
  border-left: 4px solid var(--mustard);
  border-radius: 0 3px 3px 0;
  font-size: 0.9em;
}

.batch-info p {
  color: var(--muted);
}

.batch-info p span {
  color: var(--navy);
  font-weight: 600;
}

.batch-info ul {
  list-style: disc;
  padding-left: 20px;
  font-size: 14px;
}
.batch-info ul li {
  margin-bottom: 6px;
  color: var(--muted);
  font-weight: 500;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 29, 56, 0.55);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: #ffffff;
  width: 100%;
  max-width: 500px;
  border-radius: 4px;
  border-top: 4px solid var(--mustard);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}

.modal-close:hover {
  color: #fff;
}

.modal-header {
  display: block !important;
  background-color: var(--navy);
  padding: 28px 28px 22px;
}

.modal-eyebrow {
  font-size: 0.72em;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mustard);
  margin-bottom: 6px;
}

.modal-header h3 {
  color: #ffffff;
  font-size: 1.3em;
  font-weight: 700;
  margin-bottom: 6px;
}

.modal-program {
  color: #a8afc8;
  font-size: 0.88em;
}

.modal-body {
  padding: 28px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.88em;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.req {
  color: #c0392b;
}

.form-group input,
.form-group select{
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 0.95em;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: var(--navy);
}

.form-group select{
    margin-bottom: 10px;
}
.payment-toggle {
  display: flex;
  gap: 10px;
}

.pay-opt {
  flex: 1;
  padding: 10px;
  border: 1.5px solid var(--border);
  background: #ffffff;
  cursor: pointer;
  font-size: 0.9em;
  font-weight: 600;
  color: var(--muted);
  border-radius: 3px;
  text-align: center;
}

.pay-opt.active {
  border-color: var(--navy);
  background-color: var(--navy);
  color: #ffffff;
}

.payment-details {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--mustard);
  border-radius: 0 3px 3px 0;
  padding: 14px 16px;
  margin-top: 14px;
  margin-bottom: 14px;
}

.pd-label {
  font-size: 0.78em;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 10px;
}

.pd-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9em;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}

.pd-row:last-child {
  border-bottom: none;
}

.pd-row span {
  color: var(--muted);
}

.pd-row strong {
  color: var(--navy);
}

.fees-row strong {
  color: #ffffff;
  font-size: 1.05em;
  background: var(--navy);
  padding: 2px 10px;
  border-radius: 2px;
}

.payment-note {
  background: rgba(192, 174, 47, 0.1);
  border: 1px solid rgba(192, 174, 47, 0.4);
  padding: 12px 14px;
  font-size: 0.88em;
  color: var(--navy);
  border-radius: 3px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.direct-note {
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(82, 180, 156, 0.12);
  border: 1px solid rgba(82, 180, 156, 0.4);
  border-left: 4px solid rgba(82, 180, 156, 0.7);
  border-radius: 0 3px 3px 0;
  font-size: 0.87em;
  color: var(--navy);
  line-height: 1.5;
}

.modal-submit {
  width: 100%;
  padding: 13px;
  background-color: var(--mustard);
  color: #ffffff;
  border: none;
  font-size: 1em;
  font-weight: 700;
  cursor: pointer;
  border-radius: 3px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.modal-submit:hover {
  background-color: var(--navy);
}

/* ── Responsive ── */

/* Tablet landscape */
@media (max-width: 1024px) {
  .intern-container {
    padding: 36px 20px;
  }
  table {
    font-size: 0.88em;
  }
}

/* Tablet portrait */
@media (max-width: 900px) {
  .internship-header {
    height: auto;
    padding: 50px 20px;
  }
  .internship-header h1 {
    font-size: 1.8em;
  }
  .internship-header .logo-label {
    font-size: 1.5rem;
  }
  .section {
    padding: 22px 16px;
  }
  .section h2 {
    font-size: 1.6em;
  }
}

/* Mobile landscape */
@media (max-width: 640px) {
  .internship-header {
    padding: 36px 16px;
  }
  .internship-header h1 {
    font-size: 1.5em;
  }
  .internship-header .logo-label {
    font-size: 1.2rem;
  }
  .internship-header p {
    font-size: 0.9rem;
  }

  .intern-container {
    padding: 24px 12px;
  }

  .section {
    padding: 18px 14px;
    margin-bottom: 32px;
  }

  .section-header {
    flex-wrap: wrap;
    gap: 8px;
  }

  .section h2 {
    font-size: 1.3em;
  }

  .batch-info {
    flex-direction: column;
    gap: 6px;
  }

  /* Responsive table – card layout
     Use .section-scoped selectors to beat Bootstrap's table styles */
  .section table,
  .section thead,
  .section tbody,
  .section th,
  .section td,
  .section tr {
    display: block !important;
  }

  .section thead tr {
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    visibility: hidden !important;
  }

  .section tbody tr {
    border: 1px solid var(--border) !important;
    border-radius: 4px;
    margin-bottom: 14px;
    background: #ffffff !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  }

  .section td {
    border: none !important;
    border-bottom: 1px solid var(--border) !important;
    position: relative !important;
    padding: 10px 12px 10px 44% !important;
    text-align: left !important;
    min-height: 44px;
    font-size: 0.9em;
  }

  .section td:last-child {
    border-bottom: none !important;
  }

  .section td::before {
    content: attr(data-label);
    position: absolute;
    top: 10px;
    left: 12px;
    width: 38%;
    padding-right: 8px;
    font-weight: 700;
    color: var(--navy);
    font-size: 0.78em;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.4;
  }

  .section tbody tr:nth-child(even) {
    background-color: #ffffff !important;
  }

  .section tbody tr:hover {
    background-color: #f0f4ff !important;
  }

  .cta-button {
    width: 100%;
    padding: 10px;
  }
}

/* Mobile portrait */
@media (max-width: 480px) {
  .internship-header h1 {
    font-size: 1.3em;
  }
  .internship-header .logo-label {
    font-size: 1rem;
  }

  .section td {
    padding: 10px 10px 10px 42% !important;
    font-size: 0.85em;
  }

  .section td::before {
    font-size: 0.72em;
    width: 38%;
  }

  .payment-toggle {
    flex-direction: column;
  }

  .modal-body {
    padding: 18px 16px;
  }

  .modal-header {
    padding: 20px 20px 16px;
  }

  .section-badge {
    font-size: 0.85em;
  }
}
