/* v2 layout: every section in a soft panel, content in white cards.
   To revert: remove the <link href="./css/v2.css"> line in index.html. */

:root {
  --v2-navy: #394c87;
  --v2-panel: rgba(255, 255, 255, .92);
  --v2-card: #fff;
  --v2-line: #eef0f6;
  --v2-muted: #8a90a3;
  --v2-shadow: 0 2px 14px rgba(57, 76, 135, .09);
}

/* Section rhythm: panels replace the grey hr separators */
#main-content > hr { display: none; }
.sec-panel { background: var(--v2-panel); border: 1px solid rgba(57, 76, 135, .07); border-radius: 16px; padding: 2rem 2.5rem 2.5rem; }
.sec-panel > h2.title { margin-bottom: 1.5rem !important; }
@media (max-width: 575px) { .sec-panel { padding: 1.25rem .75rem 1.5rem; } }

/* Shared card system */
.v2-lead { margin: 0 auto 1.75rem; }
.v2-grid { display: grid; gap: 1.25rem; }
.v2-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.v2-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 767px) { .v2-grid-2, .v2-grid-3 { grid-template-columns: 1fr; } }
.v2-card { background: var(--v2-card); border-radius: 12px; box-shadow: var(--v2-shadow); padding: 1.5rem 1.6rem; min-width: 0; }
@media (max-width: 575px) { .v2-card { padding: 1.15rem 1.1rem; } }
.v2-num { font-family: "Inter", sans-serif; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--v2-muted); margin-bottom: .25rem; }
.v2-title { font-size: 1.25rem; font-weight: 700; color: var(--v2-navy); margin-bottom: .2rem; line-height: 1.3; text-wrap: balance; }
.v2-sub { font-size: .8rem; color: var(--v2-muted); padding-bottom: .8rem; margin-bottom: 1rem; border-bottom: 2px solid var(--v2-navy); }
.v2-card ul { padding-left: 1.1rem; margin: 0; }
.v2-card li { margin-bottom: .35rem; font-size: .9rem; }
.v2-item { padding: .85rem 0; border-top: 1px solid var(--v2-line); }
.v2-item:first-of-type { border-top: none; padding-top: 0; }
.v2-item h6 { font-weight: 700; color: #333; margin-bottom: .3rem; font-size: .95rem; }
.v2-item p { font-size: .86rem; margin-bottom: .4rem; }
.v2-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.v2-chip { font-family: "Inter", sans-serif; font-size: .66rem; font-weight: 600; padding: .2em .65em; border-radius: 999px; background: #f0f3fa; color: var(--v2-navy); }
.v2-foot { margin-top: 1.25rem; font-size: .86rem; color: #666; }
.v2-btns { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.v2-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1.15rem; border-radius: 999px; font-size: .85rem; font-weight: 600; text-decoration: none; border: 1.5px solid var(--v2-navy); color: var(--v2-navy); background: #fff; transition: background .15s, transform .15s; }
.v2-btn:hover { background: #f3f5fb; color: var(--v2-navy); }
.v2-btn-solid { background: var(--v2-navy); color: #fff; }
.v2-btn-solid:hover { background: #2f3f72; color: #fff; transform: translateY(-1px); }

/* Venue */
.v2-venue { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.75rem; align-items: start; }
@media (max-width: 767px) { .v2-venue { grid-template-columns: 1fr; } }
.v2-venue img { width: 100%; border-radius: 10px; display: block; }
.v2-venue .photo_credit { font-size: .7rem; color: var(--v2-muted); margin-top: .35rem; text-align: right; }
.v2-venue dl { margin: 1rem 0 0; }
.v2-venue dt { font-family: "Inter", sans-serif; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--v2-muted); }
.v2-venue dd { font-size: .9rem; margin: .15rem 0 .9rem; }

/* FAQ accordion as cards */
.sec-panel .accordion { display: flex; flex-direction: column; gap: .6rem; --bs-accordion-border-width: 0; --bs-accordion-bg: #fff; }
.sec-panel .accordion-item { border-radius: 12px !important; overflow: hidden; box-shadow: var(--v2-shadow); border: 0; }
.sec-panel .accordion-button { font-family: "Playfair", serif; font-weight: 600; color: #333; font-size: .95rem; box-shadow: none !important; }
.sec-panel .accordion-button:not(.collapsed) { background: #fff; color: var(--v2-navy); }
.sec-panel .accordion-body { font-family: "Playfair", serif; font-size: .9rem; color: #555; padding-top: 0; }

/* Closing contact band */
.v2-close { background: var(--v2-navy); color: #fff; border-radius: 20px; padding: 3rem 2rem; text-align: center; position: relative; overflow: hidden; }
.v2-close::before, .v2-close::after { content: ""; position: absolute; width: 14px; height: 14px; background: rgba(255,255,255,.12); box-shadow: 18px 0 rgba(255,255,255,.12), 0 18px rgba(255,255,255,.12), 36px 18px rgba(255,255,255,.08), 18px 36px rgba(255,255,255,.08); }
.v2-close::before { top: 24px; left: 24px; }
.v2-close::after { bottom: 60px; right: 60px; }
.v2-close .eyebrow { font-family: "Inter", sans-serif; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.v2-close h2 { font-family: "Inter", sans-serif; font-weight: 500; font-size: clamp(1.5rem, 4vw, 2.2rem); margin: .5rem 0 .4rem; text-wrap: balance; color: #fff; }
.v2-close .meta { opacity: .8; font-size: .95rem; margin-bottom: 1.75rem; }
.v2-close .q { opacity: .85; font-size: .9rem; margin-bottom: .9rem; text-align: center !important; }
.v2-close .v2-btns { justify-content: center; margin-top: 0; }
.v2-close .v2-btn { border-color: rgba(255,255,255,.6); color: #fff; background: transparent; }
.v2-close .v2-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.v2-close .v2-btn-solid { background: #fff; color: var(--v2-navy); border-color: #fff; }
.v2-close .v2-btn-solid:hover { background: #eef1f9; color: var(--v2-navy); }
@media (max-width: 575px) { .v2-close { padding: 2.25rem 1.1rem; border-radius: 16px; } }

/* Justify stays for paragraphs; titles, labels and lists align left so narrow cards don't stretch */
.v2-card, .v2-close { text-align: left; }
.v2-close { text-align: center; }
.v2-card p, .v2-lead, .v2-foot { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.v2-grid-3 .v2-card p { text-align: left; hyphens: manual; }
.v2-card li { text-align: left; }

/* Top menu: icon stacked above a short label, every item the same shape */
@media (min-width: 992px) {
  #navigationList .nav-link { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .35rem .6rem !important; font-size: .82rem; line-height: 1.1; white-space: nowrap; }
  #navigationList .nav-link i { font-size: 1rem; }
}

/* Side-by-side cards: reserve two lines for titles so content starts at the same height */
@media (min-width: 768px) {
  .v2-grid-2 .v2-title, .v2-grid-3 .v2-title { min-height: 2.6em; display: flex; align-items: flex-end; }
}
@media (min-width: 1400px) {
  .v2-grid-2 .v2-title { font-size: 1.1rem; min-height: 0; white-space: nowrap; }
}

/* One type scale for all cards: title 1.25rem · item heading .95rem · body .9rem · labels .7rem */
.v2-card p, .v2-card li, .v2-item p, .v2-foot, .v2-venue dd { font-size: .9rem; line-height: 1.65; color: #444; }
.v2-card p { margin-bottom: .75rem; }
.v2-item h6 { font-size: .95rem; margin-bottom: .35rem; color: #2b2f3a; }
.v2-sub { font-size: .78rem; line-height: 1.5; }
.v2-num, .v2-venue dt { font-size: .68rem; }
.v2-chip { font-size: .68rem; }
.v2-foot { margin-top: 1.25rem; color: #666; }
.v2-item { padding: 1rem 0; }
.v2-item .v2-chips { margin-top: .1rem; }
.v2-grid-3 .v2-card { display: flex; flex-direction: column; }
.v2-grid-3 .v2-card p { flex: 1; }
@media (min-width: 768px) {
  .v2-grid-3 .v2-title { align-items: flex-start; }
}
.v2-num { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Important Dates + Registration follow the same card type scale */
.dt-track, .rg-title { font-size: 1.25rem !important; }
.dt-label, .rg-type { font-size: .9rem !important; }
.dt-date { font-size: .9rem !important; }
.dt-sub, .rg-sub { font-size: .78rem !important; }
.dt-next-eyebrow, .dt-conf small, .rg-group, .rg-group span, .rg-pill, .dt-pill, .v2-num, .sp-label, .rg-mini .rg-eyebrow { font-family: "Inter", sans-serif !important; }
@media (max-width: 575px) {
  .dt-track, .rg-title { font-size: 1.15rem !important; }
  .dt-label, .rg-type, .dt-date { font-size: .84rem !important; }
}

/* Sub-sections inside one panel */
.v2-sublabel { margin: 2.25rem 0 1.1rem; }
.sec-panel .v2-lead + .v2-sublabel { margin-top: .5rem; }

/* Venue: wide photo banner, then text with two info columns */
.v2-venue2 { padding: 0; overflow: hidden; }
.v2-venue-photo { position: relative; }
.v2-venue-photo img { width: 100%; height: 280px; object-fit: cover; display: block; }
.v2-venue-photo .photo_credit { position: absolute; right: .75rem; bottom: .6rem; font-family: "Inter", sans-serif; font-size: .65rem; color: #fff; background: rgba(0,0,0,.35); padding: .15rem .5rem; border-radius: 999px; }
.v2-venue-body { padding: 1.6rem 1.75rem 1.75rem; }
.v2-venue-info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1.75rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--v2-line); }
.v2-venue-info .v2-num { margin-bottom: .35rem; }
.v2-venue-info p { margin-bottom: .9rem; }
@media (max-width: 767px) {
  .v2-venue-photo img { height: 190px; }
  .v2-venue-body { padding: 1.2rem 1.1rem 1.35rem; }
  .v2-venue-info { grid-template-columns: 1fr; gap: 1rem; }
}

/* Closing band: ITB campus photo under a navy gradient */
.v2-close {
  background:
    linear-gradient(180deg, rgba(57, 76, 135, .25) 0%, rgba(57, 76, 135, .7) 50%, rgba(38, 52, 98, .92) 100%),
    url("../images/itb_campus.jpg") center 8% / cover no-repeat;
  padding-block: 4rem 3.25rem;
}
.v2-close h2, .v2-close .meta, .v2-close .q, .v2-close .eyebrow { text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
.v2-close::before, .v2-close::after { content: none; }

/* Registration: every action button the same size and weight */
.rg-btn { width: 200px; justify-content: center; padding: .6rem 1rem; font-size: .85rem; }
.rg-row { grid-template-columns: 1fr auto 200px !important; }
.rg-row.rg-row-solo { grid-template-columns: 1fr auto !important; }
@media (max-width: 575px) {
  .rg-btn { width: 100%; }
  .rg-row { grid-template-columns: 1fr auto !important; }
}
.rg-foot { flex-wrap: nowrap; }
.rg-foot .rg-note { flex: 1; min-width: 0; }
.rg-foot .rg-btn { margin-left: auto; flex-shrink: 0; }
@media (max-width: 575px) { .rg-foot { flex-wrap: wrap; } }

/* ===== Travel & Stay ===== */
.tv { --tv-navy: var(--v2-navy); --tv-line: var(--v2-line); --tv-muted: var(--v2-muted); }
.tv-tabs { display: flex; gap: .35rem; background: #f6f7fb; padding: .3rem; border-radius: 999px; width: max-content; max-width: 100%; margin: 0 auto 1.75rem; overflow-x: auto; }
.tv-tab { font-family: "Playfair", serif; font-weight: 600; font-size: .9rem; color: #4a4f5c; background: transparent; border: 0; padding: .6rem 1.15rem; border-radius: 999px; cursor: pointer; white-space: nowrap; display: flex; gap: .45rem; align-items: center; }
.tv-n { font-family: "Inter", sans-serif; font-size: .68rem; color: var(--tv-muted); background: #fff; border-radius: 999px; padding: .05rem .45rem; }
.tv-tab[aria-selected="true"] { background: var(--tv-navy); color: #fff; box-shadow: 0 4px 12px rgba(57, 76, 135, .25); }
.tv-tab[aria-selected="true"] .tv-n { background: rgba(255,255,255,.18); color: #fff; }
.tv-tab:focus-visible, .tv-chip:focus-visible, .tv a:focus-visible { outline: 2px solid var(--tv-navy); outline-offset: 2px; }
.tv-label { font-family: "Inter", sans-serif; font-weight: 700; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tv-navy); display: flex; align-items: center; gap: 1rem; margin: 0 0 .9rem; }
.tv-label::after { content: ""; flex: 1; height: 1px; background: rgba(57, 76, 135, .15); }
.tv-card { background: #fff; border-radius: 12px; box-shadow: var(--v2-shadow); }
.tv-dest { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.3rem; margin-bottom: 1.25rem; }
.tv-pin { width: 42px; height: 42px; border-radius: 50%; background: var(--tv-navy); color: #fff; display: grid; place-items: center; flex: none; }
.tv-dest b { display: block; font-size: 1.25rem; font-weight: 700; color: var(--tv-navy); line-height: 1.3; }
.tv-dest span { font-size: .9rem; color: #444; }
.tv-dest .tv-btn { margin-left: auto; }
.tv-route { display: grid; grid-template-columns: minmax(0, 1.1fr) 110px minmax(0, 2fr); gap: 1.25rem; padding: 1rem 1.3rem; border-top: 1px solid var(--tv-line); align-items: start; }
.tv-route:first-child { border-top: 0; }
.tv-route h4 { font-family: "Playfair", serif; font-size: .95rem; font-weight: 700; color: #2b2f3a; margin: 0 0 .2rem; }
.tv-mode, .tv-cat, .tv-area { font-family: "Inter", sans-serif; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tv-muted); }
.tv-time { font-family: "Playfair", serif; font-weight: 700; font-size: .9rem; color: var(--tv-navy); white-space: nowrap; }
.tv-route p { margin: 0; font-size: .9rem; line-height: 1.65; color: #444; text-align: justify; hyphens: auto; }
.tv-foot { margin-top: 1rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.tv-small { font-size: .78rem; color: var(--tv-muted); }
.tv-btns { display: flex; flex-wrap: wrap; gap: .5rem; }
.tv-btn { display: inline-flex; align-items: center; gap: .4rem; font-family: "Playfair", serif; font-weight: 600; font-size: .85rem; color: var(--tv-navy); background: #fff; border: 1.5px solid var(--tv-navy); border-radius: 999px; padding: .55rem 1.15rem; text-decoration: none; white-space: nowrap; transition: background .15s; }
.tv-btn:hover { background: #f3f5fb; color: var(--tv-navy); }
.tv-solid { background: var(--tv-navy); color: #fff; }
.tv-solid:hover { background: #2f3f72; color: #fff; }
.tv-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-bottom: 1.75rem; }
.tv-hotel { padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: .2rem; }
.tv-stars { color: #d9a400; font-size: .8rem; letter-spacing: .1em; }
.tv-hotel h4, .tv-place h4 { font-family: "Playfair", serif; font-size: 1.25rem; font-weight: 700; color: var(--tv-navy); line-height: 1.3; text-wrap: balance; margin: .1rem 0; }
.tv-addr { font-size: .9rem; color: #444; }
.tv-hotel .tv-area { margin-top: .35rem; }
.tv-hotel .tv-btn { align-self: flex-start; margin-top: .75rem; }
.tv-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; margin-bottom: 1.5rem; }
.tv-chip { font-family: "Playfair", serif; font-weight: 600; font-size: .82rem; background: #f0f3fa; color: var(--tv-navy); border: 0; border-radius: 999px; padding: .45rem 1rem; cursor: pointer; }
.tv-chip[aria-pressed="true"] { background: var(--tv-navy); color: #fff; }
.tv-place { padding: 1.15rem 1.25rem; display: flex; flex-direction: column; }
.tv-place h4 { margin: .25rem 0 .45rem; }
.tv-place p { font-size: .9rem; line-height: 1.65; color: #444; margin: 0 0 .9rem; flex: 1; text-align: left; }
.tv-meta { display: flex; justify-content: space-between; align-items: center; gap: .5rem; border-top: 1px solid var(--tv-line); padding-top: .75rem; }
.tv-links { display: flex; gap: .9rem; }
.tv-links a { font-family: "Playfair", serif; font-weight: 600; font-size: .82rem; color: var(--tv-navy); text-decoration: none; }
.tv-links a:hover { text-decoration: underline; }
.tv-full { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .75rem 1rem; margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--tv-line); text-align: center; }
@media (max-width: 640px) {
  .tv-route { grid-template-columns: 1fr auto; gap: .3rem 1rem; }
  .tv-route p { grid-column: 1 / -1; }
  .tv-dest { flex-wrap: wrap; }
  .tv-dest .tv-btn { margin-left: 0; }
  .tv-tabs { width: 100%; }
  .tv-tab { flex: 1; justify-content: center; padding: .6rem .6rem; font-size: .84rem; }
  .tv-n { display: none; }
}
/* Travel cards: wrap and centre a partly filled last row */
.tv-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.tv-grid > .tv-card { flex: 0 1 calc((100% - 2rem) / 3); min-width: 0; }
@media (max-width: 900px) { .tv-grid > .tv-card { flex-basis: calc((100% - 1rem) / 2); } }
@media (max-width: 575px) { .tv-grid > .tv-card { flex-basis: 100%; } }
