@import url("../pages.css");

:root {
  --hero-image: url("../../assets/img/Banner Seskoal.jpg");
}

/* =========================================================
   SECTION SPACING
========================================================= */

.section-pad {
  padding: 5.5rem 1.5rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* =========================================================
   SECTION TITLE
========================================================= */

.section-title {
  color: var(--navy);
  font-size: 2rem;
  line-height: 1.3;
  margin: 0 0 1.5rem;
  position: relative;
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--navy-light);
  border-radius: 2px;
}

.section-title.text-center {
  display: block;
}

.section-title.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

.text-center {
  text-align: center;
}

.bg-surface {
  background-color: var(--surface);
}

/* =========================================================
   HISTORY INTRO
========================================================= */

.history-intro {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-bottom: 9rem;
  background-color: var(--white);
}

/* Background watermark */
.history-intro::before {
  content: "SESKOAL";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  font-size: 14rem;
  font-weight: 800;
  letter-spacing: 0.05em;

  color: rgba(10, 31, 68, 0.035);

  z-index: -1;
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
}

/* Content paragraph */
.intro-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Main history paragraph */
.drop-cap {
  margin: 0;

  font-size: 1.1rem;
  line-height: 1.9;

  color: var(--dark-gray);

  text-align: justify;
  letter-spacing: 0.1px;

  font-weight: 400;
}

/* First letter */
.drop-cap::first-letter {
  float: left;

  font-size: 4.5rem;
  line-height: 0.8;

  font-weight: 800;

  color: var(--navy);

  margin-right: 0.7rem;
  margin-top: 0.35rem;
}

/* =========================================================
   FORMATION / PEMBENTUKAN SESKOAL
========================================================= */
  
.history-formation {
  position: relative;
  padding-top: 5rem;
}

.formation-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;

  gap: 4rem;

  align-items: center;
}

/* Formation text */
.formation-text {
  max-width: 680px;
}

.formation-text p {
  margin: 0 0 1.5rem;

  font-size: 1.05rem;
  line-height: 1.8;

  color: var(--dark-gray);

  text-align: justify;
}

.formation-text p:last-child {
  margin-bottom: 0;
}

.formation-text strong {
  color: var(--navy);
  font-weight: 700;
}

/* =========================================================
   FORMATION HIGHLIGHT
========================================================= */

.formation-highlight {
  display: flex;

  justify-content: center;
  align-items: center;

  position: relative;

  min-height: 300px;
}

/* Decorative circle */
.formation-highlight::before {
  content: "";

  position: absolute;

  top: -20px;
  right: 10%;

  width: 150px;
  height: 150px;

  border: 2px dashed var(--navy-light);

  border-radius: 50%;

  opacity: 0.2;

  z-index: 0;

  animation: spin 30s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Highlight card */
.highlight-card {
  width: 100%;
  max-width: 350px;

  padding: 3rem 2.5rem;

  background: var(--white);

  border-radius: 16px;

  box-shadow:
    0 20px 40px rgba(10, 31, 68, 0.08);

  text-align: center;

  position: relative;
  z-index: 1;

  border-top: 5px solid var(--navy-light);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.highlight-card:hover {
  transform: translateY(-6px);

  box-shadow:
    0 25px 50px rgba(10, 31, 68, 0.12);
}

/* Year */
.highlight-year {
  display: block;

  font-size: 4rem;
  line-height: 1;

  font-weight: 800;

  color: var(--navy);

  letter-spacing: -1px;
}

/* Date */
.highlight-date {
  display: block;

  margin-top: 0.75rem;

  font-size: 0.95rem;

  font-weight: 600;

  color: var(--muted);

  letter-spacing: 0.4px;

  text-transform: uppercase;
}

/* Description */
.highlight-desc {
  margin: 1rem 0 0;

  font-size: 1rem;
  line-height: 1.6;

  color: var(--muted);
}

/* =========================================================
   CAMPUS & KEDUDUKAN
========================================================= */

.history-campus {
  background-color: var(--white);
}

.campus-desc {
  max-width: 850px;

  margin: 0 auto 3.5rem;

  font-size: 1.05rem;
  line-height: 1.8;

  color: var(--dark-gray);

  text-align: center;
}

/* =========================================================
   TUGAS POKOK
========================================================= */

.tugas-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 2rem;

  max-width: 950px;

  margin: 0 auto;
}

.tugas-card {
  background: var(--surface);

  padding: 2.5rem;

  border-radius: 14px;

  position: relative;

  overflow: hidden;

  border: 1px solid rgba(10, 31, 68, 0.04);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}

.tugas-card:hover {
  transform: translateY(-5px);

  box-shadow:
    0 15px 30px rgba(10, 31, 68, 0.08);

  background: var(--white);
}

/* Number */
.tugas-number {
  position: absolute;

  top: -10px;
  right: -10px;

  font-size: 5rem;

  line-height: 1;

  font-weight: 900;

  color: rgba(17, 51, 107, 0.06);

  transition:
    color 0.3s ease,
    transform 0.3s ease;

  pointer-events: none;
}

.tugas-card:hover .tugas-number {
  color: rgba(17, 51, 107, 0.12);

  transform: scale(1.05);
}

/* Task text */
.tugas-card p {
  position: relative;

  z-index: 1;

  margin: 0;

  font-size: 1.05rem;

  line-height: 1.75;

  color: var(--dark-gray);
}

/* =========================================================
   FOOTER SPACING
========================================================= */

.site-footer {
  margin-top: 0;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

  .section-pad {
    padding: 4.5rem 1.25rem;
  }

  .container {
    padding: 0 0.75rem;
  }

  /* Formation */
  .formation-grid {
    grid-template-columns: 1fr;

    gap: 3rem;
  }

  .formation-text {
    max-width: 100%;
  }

  .formation-highlight {
    min-height: 260px;
  }

  .formation-highlight::before {
    width: 110px;
    height: 110px;

    top: -10px;
    right: 5%;
  }

  .highlight-card {
    max-width: 420px;

    padding: 2.5rem 2rem;
  }

  /* Tugas */
  .tugas-grid {
    grid-template-columns: 1fr;

    max-width: 700px;
  }

  .tugas-card {
    padding: 2rem;
  }

  .tugas-number {
    font-size: 3.5rem;

    top: 0;
    right: 0;
  }

  /* Background watermark */
  .history-intro::before {
    font-size: 9rem;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

  .section-pad {
    padding: 3.75rem 1rem;
  }

  .container {
    padding: 0 0.5rem;
  }

  /* Section title */
  .section-title {
    font-size: 1.65rem;

    margin-bottom: 1.25rem;
  }

  .section-title::after {
    width: 45px;
    height: 3px;

    bottom: -7px;
  }

  /* History intro */
  .history-intro {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .history-intro::before {
    font-size: 5.5rem;
  }

  .intro-content {
    padding: 0;
  }

  .drop-cap {
    font-size: 1rem;

    line-height: 1.85;

    text-align: left;

    letter-spacing: 0;
  }

  .drop-cap::first-letter {
    font-size: 3.5rem;

    line-height: 0.8;

    margin-right: 0.5rem;
    margin-top: 0.25rem;
  }

  /* Formation */
  .formation-grid {
    gap: 2.5rem;
  }

  .formation-text p {
    font-size: 1rem;

    line-height: 1.8;

    text-align: left;

    margin-bottom: 1.25rem;
  }

  .formation-highlight {
    min-height: 230px;
  }

  .highlight-card {
    max-width: 100%;

    padding: 2rem 1.5rem;

    border-radius: 14px;
  }

  .highlight-year {
    font-size: 3.25rem;
  }

  .highlight-date {
    font-size: 0.85rem;
  }

  .highlight-desc {
    font-size: 0.95rem;

    line-height: 1.55;
  }

  /* Campus */
  .campus-desc {
    margin-bottom: 2.5rem;

    font-size: 1rem;

    line-height: 1.8;

    text-align: left;
  }

  /* Tugas */
  .tugas-grid {
    gap: 1.25rem;
  }

  .tugas-card {
    padding: 1.75rem;

    border-radius: 12px;
  }

  .tugas-card p {
    font-size: 0.98rem;

    line-height: 1.7;
  }

  .tugas-number {
    font-size: 3rem;
  }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

  .section-pad {
    padding: 3.25rem 0.85rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .drop-cap {
    font-size: 0.95rem;

    line-height: 1.8;
  }

  .drop-cap::first-letter {
    font-size: 3rem;
  }

  .highlight-year {
    font-size: 2.9rem;
  }

  .highlight-card {
    padding: 1.75rem 1.25rem;
  }

  .tugas-card {
    padding: 1.5rem;
  }
}