/* ===========================
   YONSEI – Hero snap + free scroll below
=========================== */

/* Smoothness + no browser bounce */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
  overscroll-behavior-y: none;
}

/* Body doesn't scroll on this page (container will) */
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
body.yonsei {
  overflow: hidden;
  overscroll-behavior-y: none;
  scroll-snap-type: none !important;
}

/* Scroll root: container */
body.yonsei .snap-container {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: none;
}

/* ===========================
   HERO - WITH SNAP
=========================== */
.yonsei-hero {
  position: relative;
  height: 100vh;

  background-image: url("assets/yonsei.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: scroll !important;
  background-color: #f9f9f9;

  display: flex;
  justify-content: center;
  align-items: flex-start;
  text-align: center;

  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.yonsei-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.03);
  z-index: 0;
}
.yonsei-hero > * { position: relative; z-index: 1; }

.yonsei-logo {
  position: absolute;
  top: 200px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 260px;
  width: 60%;
  height: auto;
  pointer-events: none;
}

/* ===========================
   CONTENT + FOOTER as ONE snap target
=========================== */
.content-wrap {
  min-height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.yonsei-main {
  background: #fff;
  color: #222;
  padding: 0 0 5rem;
  min-height: 100vh;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
}

.footer {
  scroll-snap-align: none !important;
  scroll-snap-stop: normal !important;
}

/* ===========================
   TABS BAR
=========================== */
.yonsei-tabs {
  position: sticky;
  top: 0;
  z-index: 10;

  display: flex;
  justify-content: space-around;
  align-items: center;

  width: 100%;
  padding: 0.9rem 0;

  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.yonsei-tabs .tab {
  appearance: none;
  border: none;
  background: transparent;
  font: 600 17px/1 Arial, sans-serif;
  color: #333;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease;
  
  flex: 1;
  text-align: center;
}
.yonsei-tabs .tab:hover { transform: translateY(-1px); }
.yonsei-tabs .tab.is-active { color: #000; }
.yonsei-tabs .tab.is-active::after {
  content: "";
  position: absolute;
  bottom: 0; 
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px; 
  border-radius: 3px;
  background: rgba(11,219,230,0.7);
  box-shadow: 0 0 10px rgba(11,219,230,0.45);
}

/* ===========================
   PANELS
=========================== */
.panel {
  display: none;
  margin: 0 auto;
  padding: 3rem 2rem;
  animation: fadeIn .35s ease;
  scroll-margin-top: 80px;
}
.panel.is-visible { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.panel h2 {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  text-align: center;
  color: #000;
}
.panel p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* ===========================
   CAMPUS LIFE SUB-TABS 
=========================== */
.sub-tabs {
    display: flex;
    justify-content: space-around;      /* spread evenly across width */
    align-items: center;
    width: 100%;                        /* take full width of content */
    max-width: 950px;                   /* same as main panel width */
    margin: 1rem auto 2.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding-bottom: 0.6rem;
}

.subtab {
    appearance: none;
    background: transparent;
    border: none;
    font: 600 15px/1 Arial, sans-serif;
    color: #444;
    cursor: pointer;
    padding: 0.8rem 1.2rem;
    position: relative;
    flex: 1;                            /* ensure equal width per tab */
    text-align: center;                 /* center each label */
    transition: color 0.2s ease, transform 0.2s ease;
}

.subtab:hover { transform: translateY(-1px); color: #000; }
.subtab.is-active { color: #000; }

.subtab.is-active::after {
    content: "";
    position: absolute;
    bottom: -0.5rem; left: 50%;
    transform: translateX(-50%);
    width: 30%;                         /* underline spans wider */
    height: 3px;
    border-radius: 3px;
    background: rgba(11,219,230,0.7);
    box-shadow: 0 0 6px rgba(11,219,230,0.4);
}


/* Sub-panels */
.sub-panels {
  max-width: 950px;
  margin: 0 auto;
}
.subpanel {
  display: none;
  animation: fadeIn .35s ease;
}
.subpanel.is-visible {
  display: block;
}


/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 720px) {
  .yonsei-tabs { padding: 0.7rem 0; }
  .yonsei-tabs .tab { padding: 0.7rem 1rem; font-size: 16px; }
  .panel { padding: 2rem 1.25rem; }
  .panel h2 { font-size: 1.6rem; }
}


/* ===========================
   COURSES (fix "Freshman" alignment + widths)
   Paste at the very bottom of yonsei.css
=========================== */

/* Container for the year title + underline */
#courses .year-block{
  max-width: 1100px;
  margin: 0 auto 1.2rem;
  padding: 0 2rem;                 /* match the columns’ left/right inset */
  text-align: left;                /* align block context left */
}

/* "Freshman" — left, smaller, not bold, tiny gap to underline */
#courses .year-title{
  font-weight: 400;                /* not bold */
  font-size: 1.1rem;               /* smaller */
  line-height: 1.2;
  margin: 0 0 .15rem 0;            /* very close to the underline */
  text-align: left !important;     /* override .panel h2 center */
  display: inline-block;           /* ensure the left alignment sticks */
  margin-top: 2rem;
}

/* Thin black underline spanning the content width */
#courses .year-underline{
  height: 1px;
  background: #000;
  width: 100%;
  margin: 0;                       /* sits right under the title */
  border: 0;
  margin-bottom: 2rem;
}

/* Two-column table */
#courses .course-grid {
  max-width: 1250px;                /* keep wide layout */
  margin: 1.2rem auto 2rem;
  padding: 0 2.5rem;                /* balance inside border */
  display: grid;                    /* ← switch from flex to grid for perfect symmetry */
  grid-template-columns: 1fr 1fr;   /* exactly 2 equal columns */
  column-gap: 5rem;                 /* spacing between them */
  align-items: start;
}

#courses .course-col {
  text-align: left;
  min-width: 0;                     /* prevent overflow clipping */
}


/* Semester headings — plain black */
#courses .course-col h3{
  color: #000;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 .8rem;
}

/* Course items — a touch more spacing */
#courses .course-col ul{ list-style: none; margin: 0; padding: 0; }
#courses .course-col li{
  font-size: 1rem;
  line-height: 2.0;                /* more distance between courses */
  border-left: 3px solid rgba(11,219,230,.6);
  padding-left: .8rem;
  margin-bottom: .4rem;
}

/* Stack only on narrow screens */
@media (max-width: 800px){
  #courses .course-grid{ flex-direction: column; gap: 2.5rem; }
  #courses .year-block{ padding: 0 1rem; }
  #courses .course-grid{ padding: 0 1rem; }
}

/* Light border box around each year section */
#courses .year-container {
  max-width: 1100px;
  margin: 0 auto 3rem;                   /* space below box */
  border: 1px solid rgba(0,0,0,0.15);    /* light gray border */
  border-radius: 10px;                   /* subtle round corners */
  padding: 1rem 0 0rem;                /* inner spacing */
  background: #fff;                      /* keeps it clean on any bg */
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);/* faint soft shadow */
}

/* ===========================
   AWARDS PANEL – equal width + clean spacing
=========================== */

.awards-wrapper {
  max-width: 950px;              /* consistent block width */
  margin: 0 auto;
  padding: 0 1.5rem;
}

.award-item {
  border-bottom: 1px solid #e0e0e0;
  padding: 2rem 0;
  margin: 0 auto;
  width: 100%;
  text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.award-item:last-child {
  border-bottom: none;           /* no border on the last one */
}

.award-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.award-desc {
  font-size: 1rem;
  color: #555;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.award-footer {
  font-size: 0.95rem;
  color: #888;
  margin-bottom: 0;
  font-style: italic;
}
