/* =========================================================
   MUGR Current Students — Graduation Schedule V1
   Route: g=18
   Presentation only; existing content, links, dates and PDFs preserved.
   ========================================================= */

.mugr-graduation-schedule{
  min-width:0;
  --grad-blue:#315fc6;
  --grad-blue-soft:#eef4ff;
  --grad-teal:#159487;
  --grad-teal-soft:#eaf8f5;
  --grad-gold:#c67d13;
  --grad-gold-soft:#fff6e7;
  --grad-border:#dbe4ef;
  --grad-text:#20334a;
  --grad-muted:#73839a;
}

.mugr-graduation-schedule .content-project-title{
  margin-bottom:14px;
  padding-bottom:12px;
  border-bottom:1px solid #d9e1ea;
}

.mugr-graduation-schedule .text-project-title{
  margin:0!important;
  color:#202833!important;
}

/* Intro hero */
.mugr-grad-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:18px;
  align-items:center;
  margin-bottom:12px;
  padding:20px 22px;
  border:1px solid var(--grad-border);
  border-radius:17px;
  background:linear-gradient(135deg,#fff 0%,#f5f8ff 100%);
  box-shadow:0 6px 18px rgba(31,61,108,.035);
}

.mugr-grad-hero__eyebrow{
  margin-bottom:4px;
  color:var(--grad-blue);
  font-size:10px;
  font-weight:800;
  letter-spacing:.16em;
}

.mugr-grad-hero h2{
  margin:0!important;
  color:var(--grad-text)!important;
  font-size:21px!important;
  line-height:1.45!important;
  font-weight:700!important;
}

.mugr-grad-hero p{
  margin:5px 0 0;
  color:var(--grad-muted);
  font-size:13px;
  line-height:1.65;
}

.mugr-grad-hero__badge{
  min-width:118px;
  padding-left:20px;
  border-left:2px solid #dfe7f2;
  text-align:right;
}

.mugr-grad-hero__badge span,
.mugr-grad-hero__badge strong{
  display:block;
}

.mugr-grad-hero__badge span{
  color:#8997a9;
  font-size:10.5px;
}

.mugr-grad-hero__badge strong{
  margin-top:2px;
  color:var(--grad-blue);
  font-size:30px;
  line-height:1;
}

/* Degree identity chips */
.mugr-grad-degree-nav{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin:0 0 18px;
}

.mugr-grad-degree-nav__item{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:9px 12px;
  border:1px solid var(--grad-border);
  border-radius:12px;
  background:#fff;
  color:var(--grad-text);
  font-size:12.5px;
  font-weight:650;
}

.mugr-grad-degree-nav__item i{
  width:27px;
  height:27px;
  display:grid;
  place-items:center;
  border-radius:8px;
}

.mugr-grad-degree-nav__item--master i{
  background:var(--grad-blue-soft);
  color:var(--grad-blue);
}
.mugr-grad-degree-nav__item--doctoral i{
  background:var(--grad-teal-soft);
  color:var(--grad-teal);
}
.mugr-grad-degree-nav__item--diploma i{
  background:var(--grad-gold-soft);
  color:var(--grad-gold);
}

/* Old year heading is now represented in the hero. */
.mugr-grad-legacy-year{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}

/* Existing introductory text gets a readable info-card treatment. */
.mugr-grad-content > p.text-content-project{
  display:block;
  margin:0!important;
  padding:0!important;
}

.mugr-grad-content h6.h6{
  margin:0 0 14px!important;
  padding:15px 17px;
  border:1px solid #dfe7f1;
  border-left:4px solid var(--grad-blue);
  border-radius:12px;
  background:#fbfcfe;
  color:#415268!important;
  font-size:12.5px!important;
  line-height:1.7!important;
  font-weight:400!important;
}

/* Print CTA */
.mugr-grad-print{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:36px;
  padding:7px 13px!important;
  border:0!important;
  border-radius:10px!important;
  background:#fff3bf!important;
  box-shadow:none!important;
  color:#614b00!important;
  font-size:11.5px!important;
  font-weight:700!important;
}

.mugr-grad-print:hover{
  transform:translateY(-1px);
  background:#ffe787!important;
}

/* Desktop table */
.mugr-grad-table-scroll{
  width:100%;
  margin:3px 0 16px;
  overflow:hidden;
  border:1px solid #d7e0eb;
  border-radius:15px;
  background:#fff;
  box-shadow:0 5px 16px rgba(31,61,108,.035);
}

.mugr-grad-table{
  width:100%!important;
  margin:0!important;
  border-collapse:separate!important;
  border-spacing:0!important;
  border:0!important;
  background:#fff;
}

.mugr-grad-table thead th{
  padding:12px 10px!important;
  border:0!important;
  border-right:1px solid rgba(255,255,255,.08)!important;
  background:#273955!important;
  color:#fff!important;
  font-size:13px!important;
  line-height:1.55!important;
  font-weight:700!important;
  vertical-align:middle!important;
}

.mugr-grad-table tbody tr{
  transition:background .15s ease;
}

.mugr-grad-table tbody tr:nth-child(even){
  background:#fafbfd;
}

.mugr-grad-table tbody tr:hover{
  background:#f2f6fc!important;
}

.mugr-grad-table td{
  padding:11px 10px!important;
  border:0!important;
  border-right:1px solid #e7ecf2!important;
  border-bottom:1px solid #e7ecf2!important;
  color:#34465b!important;
  font-size:13px!important;
  line-height:1.6!important;
  vertical-align:middle!important;
}

.mugr-grad-table td:first-child{
  width:42px;
  color:#60728a!important;
  text-align:center;
  font-weight:700;
}

.mugr-grad-table td .fa-check{
  width:24px;
  height:24px;
  display:inline-grid;
  place-items:center;
  border-radius:999px;
  background:#e9f7ed;
  color:#15803d!important;
  font-size:11px;
}

.mugr-grad-table a{
  color:#315fc6!important;
  font-weight:650;
}

/* Remove old empty Bootstrap spacer columns around print buttons. */
.mugr-grad-content .row > .col-lg-10.g-mb-10{
  display:none!important;
}

.mugr-grad-content .row > .col-lg-2.g-mb-10{
  flex:0 0 100%!important;
  max-width:100%!important;
  text-align:right;
}

/* Mobile = readable requirement cards instead of a crushed table. */
@media(max-width:767.98px){
  .mugr-graduation-schedule{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }

  .mugr-grad-hero{
    grid-template-columns:1fr;
    gap:10px;
    padding:15px 14px;
    border-radius:14px;
  }

  .mugr-grad-hero h2{
    font-size:18px!important;
  }

  .mugr-grad-hero p{
    font-size:12px;
  }

  .mugr-grad-hero__badge{
    display:flex;
    align-items:baseline;
    gap:7px;
    min-width:0;
    padding:0;
    border:0;
    text-align:left;
  }

  .mugr-grad-hero__badge strong{
    font-size:22px;
  }

  .mugr-grad-degree-nav{
    display:flex;
    gap:7px;
    overflow-x:auto;
    padding-bottom:3px;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }

  .mugr-grad-degree-nav::-webkit-scrollbar{display:none}

  .mugr-grad-degree-nav__item{
    flex:0 0 auto;
    min-height:40px;
    white-space:nowrap;
    font-size:11.5px;
  }

  .mugr-grad-content h6.h6{
    padding:13px 12px;
    font-size:12px!important;
  }

  .mugr-grad-table-scroll{
    overflow:visible;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }

  .mugr-grad-table,
  .mugr-grad-table tbody,
  .mugr-grad-table tr,
  .mugr-grad-table td{
    display:block!important;
    width:100%!important;
  }

  .mugr-grad-table thead{
    display:none!important;
  }

  .mugr-grad-table tbody tr{
    position:relative;
    margin:0 0 10px;
    padding:13px 12px 11px 48px;
    overflow:hidden;
    border:1px solid #dce5ef;
    border-radius:14px;
    background:#fff!important;
    box-shadow:0 4px 12px rgba(31,61,108,.03);
  }

  .mugr-grad-table td{
    padding:0!important;
    border:0!important;
    background:transparent!important;
    font-size:13px!important;
    line-height:1.6!important;
    text-align:left!important;
  }

  .mugr-grad-table td:first-child{
    position:absolute;
    left:10px;
    top:12px;
    width:28px!important;
    height:28px;
    display:grid!important;
    place-items:center;
    border-radius:8px!important;
    background:var(--grad-blue-soft)!important;
    color:var(--grad-blue)!important;
    font-size:11px!important;
  }

  .mugr-grad-table td:nth-child(2){
    margin-bottom:9px;
    color:#26384d!important;
    font-weight:600;
  }

  /* Degree/status cells become compact labelled rows via data-title. */
  .mugr-grad-table td:nth-child(n+3){
    display:flex!important;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    min-height:30px;
    margin-top:3px;
    padding:5px 8px!important;
    border-radius:8px!important;
    background:#f7f9fc!important;
    color:#617188!important;
  }

  .mugr-grad-table td:nth-child(n+3)::before{
    content:attr(data-title);
    color:#718198;
    font-size:10.5px;
    font-weight:600;
  }

  .mugr-grad-content .row > .col-lg-2.g-mb-10{
    text-align:left;
  }

  .mugr-grad-print{
    width:100%;
  }
}


/* V1.1 — neutralize legacy app.css responsive-table mobile wrapper.
   Scoped to g=18 only, so other responsive tables remain untouched. */
@media(max-width:767.98px){
  .mugr-graduation-schedule .responsive-table,
  .mugr-graduation-schedule .responsive-table tbody,
  .mugr-graduation-schedule .responsive-table tr{
    border:0!important;
  }

  .mugr-graduation-schedule .responsive-table tbody{
    padding:0!important;
    background:transparent!important;
  }

  .mugr-graduation-schedule .responsive-table{
    padding:0!important;
    background:transparent!important;
  }
}


/* =========================================================
   V1.2 — MERGED OVERVIEW CARD
   Hero + explanatory deadline text render as one compact card.
   ========================================================= */
.mugr-graduation-schedule .mugr-grad-hero{
  margin-bottom:0!important;
  padding-bottom:15px!important;
  border-bottom:0!important;
  border-radius:17px 17px 0 0!important;
  box-shadow:none!important;
  background:linear-gradient(135deg,#fff 0%,#f5f8ff 100%)!important;
}

.mugr-graduation-schedule .mugr-grad-overview-text{
  margin:0 0 14px!important;
  padding:2px 22px 18px!important;
  border:1px solid var(--grad-border)!important;
  border-top:0!important;
  border-left:1px solid var(--grad-border)!important;
  border-radius:0 0 17px 17px!important;
  background:linear-gradient(135deg,#fff 0%,#f5f8ff 100%)!important;
  color:#415268!important;
  box-shadow:0 6px 18px rgba(31,61,108,.035)!important;
  font-size:13px!important;
  line-height:1.75!important;
}

/* Blue accent becomes an internal marker instead of a second-card border. */
.mugr-graduation-schedule .mugr-grad-overview-text::before{
  content:"";
  display:block;
  width:42px;
  height:3px;
  margin:0 0 12px;
  border-radius:999px;
  background:var(--grad-blue);
}

/* Table moves up immediately after the merged overview. */
.mugr-graduation-schedule .mugr-grad-overview-text + .mugr-grad-table-scroll{
  margin-top:0!important;
}

@media(max-width:767.98px){
  .mugr-graduation-schedule .mugr-grad-hero{
    padding-bottom:10px!important;
    border-radius:14px 14px 0 0!important;
  }

  .mugr-graduation-schedule .mugr-grad-overview-text{
    padding:0 14px 14px!important;
    border-radius:0 0 14px 14px!important;
    font-size:12px!important;
    line-height:1.7!important;
  }

  .mugr-graduation-schedule .mugr-grad-overview-text::before{
    margin-bottom:10px;
  }
}


/* V1.3 — hide legacy responsive-table data-title captions on mobile.
   Removes duplicated labels such as "ลำดับ" shown before each card value. */
@media(max-width:767.98px){
  .mugr-graduation-schedule .mugr-grad-table td::before,
  .mugr-graduation-schedule .mugr-grad-table td:before{
    content:none!important;
    display:none!important;
  }
}
