:root {
  --primary: #1f7a4d;
  --primary-dark: #155638;
  --accent: #36b76a;
  --light: #f5faf6;
  --panel: #ffffff;
  --text: #1e2c22;
  --muted: #597163;
  --danger: #d64545;
  --border: #dbece0;
  --shadow: 0 18px 36px rgba(31, 122, 77, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #f3fff7 0%, #f9fdf9 100%);
  color: var(--text);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
}

.container {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  background: rgba(21, 86, 56, 0.96);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-logo {
  width: 52px;
  height: auto;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px;
}

.brand {
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.08em;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

nav a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px 22px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.button:hover {
  background: var(--primary-dark);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.button.small {
  padding: 10px 14px;
  font-size: 0.9rem;
}

.button.danger {
  background: var(--danger);
}

.button.full {
  width: 100%;
  margin-top: 12px;
}

.hero {
  padding: 90px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 16px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 18px;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 620px;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-card,
.info-box,
.feature-card,
.panel,
.stat-card,
.welcome-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 30px 22px;
}

.hero-card ul {
  padding-left: 22px;
  color: var(--muted);
  line-height: 2;
}

.section {
  padding: 80px 0;
}

.section.alt {
  background: #f1fbf4;
}

.section-heading {
  text-align: center;
  margin-bottom: 32px;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 2.7rem);
  margin-bottom: 0;
}

.info-grid,
.feature-grid,
.stats-grid {
  display: grid;
  gap: 24px;
}

.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-box,
.feature-card {
  padding: 28px 22px;
}

.info-box p,
.feature-card p {
  color: var(--muted);
  line-height: 1.7;
}

.icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(54, 183, 106, 0.12);
  font-size: 1.7rem;
  margin-bottom: 14px;
}

.footer {
  background: var(--primary-dark);
  color: #f1fff4;
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.landing-page {
  background: #f4f0e8;
}

.landing-topbar {
  background: #123c2b;
}

.landing-topbar .brand-wrapper {
  color: #fff;
}

.landing-topbar .topbar-logo {
  width: 46px;
}

.landing-topbar .brand {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
}

.landing-hero {
  position: relative;
  min-height: min(720px, calc(100vh - 72px));
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #173f2d;
}

.landing-hero-image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(11, 47, 31, 0.94) 0%,
      rgba(15, 74, 48, 0.75) 48%,
      rgba(11, 47, 31, 0.28) 100%
    ),
    url("../../images/background-isu.webp") center / cover;
}

.landing-hero .container {
  position: relative;
  z-index: 1;
}

.landing-hero .hero-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr);
  padding: 80px 0;
}

.landing-hero-copy {
  animation: landing-rise 0.7s ease both;
}

.landing-hero .eyebrow {
  color: #f1b94b;
}

.landing-hero h1 {
  max-width: 720px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.98;
}

.landing-hero .lead {
  color: rgba(255, 255, 255, 0.84);
  max-width: 560px;
}

.landing-hero .button {
  background: #f1b94b;
  color: #173f2d;
}

.landing-hero .button:hover {
  background: #ffd47b;
}

.landing-hero .button.secondary {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.58);
}

.landing-hero-note {
  align-self: end;
  justify-self: end;
  max-width: 250px;
  padding: 22px 0 0 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  animation: landing-rise 0.7s 0.18s ease both;
}

.landing-note-label {
  display: block;
  color: #f1b94b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.landing-hero-note p {
  margin: 12px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.3;
}

.landing-ribbon {
  background: #f1b94b;
  color: #173f2d;
}

.landing-ribbon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.landing-ribbon-grid div {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 92px;
  padding: 18px 24px;
  border-right: 1px solid rgba(23, 63, 45, 0.24);
}

.landing-ribbon-grid div:last-child {
  border-right: 0;
}

.landing-ribbon strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 400;
}

.landing-ribbon span {
  font-size: 0.9rem;
  font-weight: 700;
}

.landing-story {
  background: #f4f0e8;
}

.landing-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
}

.landing-story h2,
.landing-access h2 {
  max-width: 520px;
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 4.2vw, 4.5rem);
  font-weight: 400;
  line-height: 1.05;
}

.landing-story-text {
  max-width: 490px;
  color: #597163;
  font-size: 1.05rem;
  line-height: 1.8;
}

.text-link {
  display: inline-flex;
  gap: 10px;
  color: #176440;
  font-weight: 700;
}

.text-link span {
  transition: transform 0.2s ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.landing-services {
  background: #e5eee7;
}

.landing-services .section-heading {
  text-align: left;
}

.landing-services .feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.landing-services .feature-card {
  background: transparent;
  border: 0;
  border-top: 2px solid #176440;
  border-radius: 0;
  box-shadow: none;
  padding: 24px 0;
}

.landing-icon {
  width: auto;
  height: auto;
  margin-bottom: 28px;
  border-radius: 0;
  background: transparent;
  color: #176440;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
}

.landing-access {
  background: #173f2d;
  color: #fff;
  text-align: center;
}

.landing-access-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.landing-access .eyebrow {
  color: #f1b94b;
}

.landing-access h2 {
  margin-bottom: 18px;
}

.landing-access p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.74);
  margin-bottom: 28px;
}

@keyframes landing-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background:
    linear-gradient(rgba(10, 20, 15, 0.38), rgba(10, 20, 15, 0.38)),
    url("../../images/background-isu.webp") center center / cover no-repeat
      fixed;
}

.auth-shell {
  width: min(480px, 100%);
}

.auth-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

.auth-header {
  text-align: center;
  margin-bottom: 22px;
}

.login-logo {
  display: block;
  width: 150px;
  height: auto;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: #f5faf6;
  padding: 10px;
  box-shadow: 0 8px 20px rgba(31, 122, 77, 0.08);
}

.auth-card label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.auth-card input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 1rem;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 46px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-60%);
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--primary-dark);
}

.alert {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-weight: 600;
}

.alert.error {
  background: rgba(214, 69, 69, 0.09);
  color: var(--danger);
  border: 1px solid rgba(214, 69, 69, 0.15);
}

.alert.success {
  background: rgba(31, 122, 77, 0.08);
  color: var(--primary-dark);
  border: 1px solid rgba(31, 122, 77, 0.12);
}

.login-help {
  margin-top: 20px;
  background: #f2fbf5;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  line-height: 1.8;
  color: var(--muted);
}

.secondary-link {
  margin-top: 18px;
  text-align: center;
}

.secondary-link a {
  color: #1664d8;
  font-weight: 700;
  text-decoration: none;
}

.secondary-link a:hover {
  color: #0f4ea8;
  text-decoration: underline;
}

.dashboard-main {
  padding: 42px 0 80px;
}

.campus-main {
  padding: 0 0 60px;
}

.campus-container {
  width: min(1200px, calc(100% - 20px));
  margin: 0 auto;
  background: #f2f2f2;
  border: 1px solid #d9d9d9;
  box-sizing: border-box;
}

.campus-header-block {
  padding: 18px 18px 6px;
  background: #f2f2f2;
}

.campus-title {
  margin: 0;
  background: #f2f2f2;
  color: #111;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
}

.campus-section {
  background: #f2f2f2;
  padding: 20px 18px 0;
}

.campus-section h2 {
  margin: 0 0 18px;
  font-size: clamp(1.4rem, 2vw, 2.2rem);
  font-weight: 900;
  color: #111;
  line-height: 1.2;
}

.campus-section p {
  margin: 0 0 18px;
  font-size: 1rem;
  line-height: 1.8;
  color: #111;
}

.section-header-green {
  background: #0f7d3d;
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1rem;
  padding: 12px 18px;
  margin: 10px 0 0;
  letter-spacing: 0.02em;
}

.orange-text {
  background: #f38a1c;
}

.small-header {
  font-size: 1.05rem;
}

.plus {
  font-size: 1.5rem;
  margin-right: 8px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  background: #efefef;
}

.table-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #0f7d3d;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
}

.green-head {
  grid-template-columns: 1fr;
}

.table-col {
  padding: 14px 18px;
  border-right: 1px solid #d2d2d2;
  border-bottom: 1px solid #d2d2d2;
  font-size: 0.98rem;
  line-height: 1.5;
}

.table-header .table-col {
  border-right: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: none;
}

.table-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f2f2f2;
}

.table-row.alt-row {
  background: #e7e7e7;
}

.program-block {
  margin-top: 24px;
}

.program-block h3 {
  margin: 0 0 12px;
  font-size: clamp(1.1rem, 1.7vw, 1.7rem);
  color: #1a1a1a;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-box {
  background: #f2f2f2;
  padding: 18px 18px 28px;
  font-size: 1rem;
}

.contact-box p {
  margin: 0 0 10px;
}

.welcome-card {
  padding: 26px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.badge {
  background: rgba(31, 122, 77, 0.08);
  color: var(--primary);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 30px;
}

.stat-card {
  padding: 28px 18px;
  text-align: center;
}

.value {
  display: block;
  font-size: clamp(1.7rem, 2vw, 2.4rem);
  font-weight: 700;
  color: var(--primary);
}

.label {
  color: var(--muted);
  font-weight: 700;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.panel {
  padding: 26px 24px;
}

.about-text {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 14px;
}

.activity-list {
  padding-left: 18px;
  color: var(--muted);
  line-height: 2;
}

.action-list {
  display: grid;
  gap: 12px;
}

.action-list button {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 700;
  background: #eefcf3;
  color: var(--primary-dark);
  cursor: pointer;
}

@media (max-width: 980px) {
  .hero-grid,
  .panel-grid,
  .landing-story-grid {
    grid-template-columns: 1fr;
  }

  .info-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .campus-container {
    width: min(960px, calc(100% - 16px));
  }

  .landing-services .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 20px, 1100px);
  }

  .nav {
    flex-direction: column;
    justify-content: center;
    padding: 18px 0;
    text-align: center;
  }

  nav {
    justify-content: center;
    gap: 10px 14px;
  }

  .cta-row {
    flex-direction: column;
  }

  .button,
  .button.small,
  .button.full {
    width: 100%;
  }

  .hero {
    padding-top: 64px;
  }

  .welcome-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .table-header,
  .table-row {
    grid-template-columns: 1fr;
  }

  .table-header .table-col,
  .table-col {
    border-right: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-hero .hero-grid {
    padding: 64px 0;
  }

  .landing-hero-note {
    justify-self: start;
    margin-top: 18px;
  }

  .landing-ribbon-grid {
    grid-template-columns: 1fr;
  }

  .landing-ribbon-grid div {
    min-height: 68px;
    border-right: 0;
    border-bottom: 1px solid rgba(23, 63, 45, 0.24);
  }

  .landing-ribbon-grid div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 60px 0;
  }

  .auth-page {
    padding: 20px 12px;
  }

  .auth-card {
    padding: 24px 18px;
  }

  .auth-header h1 {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .section-heading h2 {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }

  .info-grid,
  .feature-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .landing-services .feature-grid {
    grid-template-columns: 1fr;
  }

  .campus-container {
    width: min(100% - 8px, 1200px);
  }

  .campus-section {
    padding-left: 12px;
    padding-right: 12px;
  }

  .section-header-green,
  .orange-text {
    font-size: 0.9rem;
  }
}
