:root {
  --ink: #1f2933;
  --muted: #64748b;
  --line: #d9e2ec;
  --page: #f7f9fc;
  --panel: #ffffff;
  --teal: #087f8c;
  --teal-dark: #065f68;
  --coral: #e85d4f;
  --amber: #f4b942;
  --green: #2f855a;
  --shadow: 0 18px 50px rgba(31, 41, 51, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.navbar {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  border: 2px solid #ffffff;
  background: var(--teal) url("assets/hostel-photo.jpg") center/cover;
  box-shadow: 0 6px 16px rgba(31, 41, 51, 0.18);
  color: transparent;
  font-weight: 800;
  overflow: hidden;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border-radius: 8px;
  padding: 8px 12px;
  color: #334e68;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(8, 127, 140, 0.1);
  color: var(--teal-dark);
}

.nav-links .login-link {
  background: var(--ink);
  color: #ffffff;
}

.nav-links .login-link:hover {
  background: var(--coral);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(9, 26, 36, 0.86), rgba(9, 26, 36, 0.54), rgba(9, 26, 36, 0.22)),
    url("assets/hostel-photo.jpg") center/cover;
}

.hero-content {
  width: min(760px, calc(100% - 32px));
  margin-left: max(16px, calc((100vw - 1180px) / 2));
  padding: 72px 0 104px;
}

.hero h1,
.page-hero h1,
.auth-copy h1 {
  margin: 0;
  font-size: 3.35rem;
  line-height: 1.06;
  letter-spacing: 0;
}

.hero p,
.page-hero p,
.auth-copy p {
  max-width: 660px;
  font-size: 1.05rem;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow,
.auth-copy .eyebrow {
  color: var(--amber);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 800;
}

.btn.primary {
  background: var(--coral);
  color: #ffffff;
}

.btn.primary:hover {
  background: #c94c40;
}

.btn.secondary {
  border: 1px solid rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
}

.section-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 28px;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.section-heading h2,
.split-copy h2,
.info-card h2,
.facility-card h2,
.fee-calculator h2,
.form-panel h2,
.notice-box h2,
.location-card h2,
.auth-panel h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.section-heading p:last-child,
.split-copy p,
.info-card p,
.facility-card p,
.module-card p,
.notice-box p,
.location-card p {
  color: var(--muted);
}

.quick-panel {
  margin-top: -58px;
  position: relative;
  z-index: 5;
}

.quick-panel .section-heading {
  border-radius: 8px 8px 0 0;
  margin: 0;
  padding: 24px 26px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: 0 0 8px 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.stat-card {
  min-height: 178px;
  padding: 24px;
  background: #ffffff;
}

.stat-card span,
.module-card span,
.service-strip span {
  color: var(--teal);
  font-weight: 800;
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 2.5rem;
  line-height: 1;
}

.stat-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 44px;
}

.split-image {
  width: 100%;
  min-height: 420px;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.feature-list span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
  color: #334e68;
  font-weight: 700;
}

.module-grid,
.facility-grid,
.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.module-card,
.facility-card,
.info-card,
.fee-calculator,
.form-panel,
.notice-box,
.location-card,
.table-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(31, 41, 51, 0.08);
}

.module-card {
  display: block;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.module-card img,
.facility-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.module-card div,
.facility-card {
  padding: 22px;
}

.module-card h3,
.facility-card h2 {
  margin: 8px 0 8px;
}

.page-hero {
  min-height: 440px;
  display: flex;
  align-items: center;
  color: #ffffff;
  background-position: center;
  background-size: cover;
}

.page-hero > div {
  width: min(760px, calc(100% - 32px));
  margin-left: max(16px, calc((100vw - 1180px) / 2));
  padding: 76px 0;
}

.overview-hero {
  background-image:
    linear-gradient(90deg, rgba(11, 36, 39, 0.84), rgba(11, 36, 39, 0.42)),
    url("assets/hostel-photo.jpg");
}

.facilities-hero {
  background-image:
    linear-gradient(90deg, rgba(31, 41, 51, 0.84), rgba(31, 41, 51, 0.36)),
    url("https://images.unsplash.com/photo-1523580494863-6f3031224c94?auto=format&fit=crop&w=1800&q=80");
}

.fees-hero {
  background-image:
    linear-gradient(90deg, rgba(20, 45, 41, 0.86), rgba(20, 45, 41, 0.42)),
    url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1800&q=80");
}

.leave-hero {
  background-image:
    linear-gradient(90deg, rgba(27, 38, 49, 0.86), rgba(27, 38, 49, 0.4)),
    url("https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&w=1800&q=80");
}

.location-hero {
  background-image:
    linear-gradient(90deg, rgba(34, 52, 59, 0.86), rgba(34, 52, 59, 0.4)),
    url("https://images.unsplash.com/photo-1570129477492-45c003edd2be?auto=format&fit=crop&w=1800&q=80");
}

.dashboard-hero {
  background-image:
    linear-gradient(90deg, rgba(20, 45, 41, 0.86), rgba(20, 45, 41, 0.36)),
    url("assets/hostel-photo.jpg");
}

.info-card {
  min-height: 245px;
  padding: 26px;
}

.highlight-card {
  background: var(--teal);
  color: #ffffff;
}

.highlight-card p {
  color: rgba(255, 255, 255, 0.82);
}

.card-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-bottom: 18px;
  background: rgba(8, 127, 140, 0.12);
  color: var(--teal);
  font-weight: 900;
}

.highlight-card .card-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.timeline {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.timeline div {
  border-left: 4px solid var(--coral);
  padding: 8px 0 8px 16px;
}

.timeline strong,
.timeline span {
  display: block;
}

.timeline span {
  color: var(--muted);
}

.facility-grid {
  grid-template-columns: repeat(4, 1fr);
}

.facility-card {
  padding: 0;
  overflow: hidden;
}

.facility-card h2,
.facility-card p {
  padding-right: 22px;
  padding-left: 22px;
}

.facility-card p {
  padding-bottom: 22px;
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: 0;
}

.service-strip div {
  border-radius: 8px;
  padding: 24px;
  background: var(--ink);
  color: #ffffff;
}

.service-strip span,
.service-strip strong {
  display: block;
}

.service-strip span {
  color: var(--amber);
  margin-bottom: 8px;
}

.fee-layout,
.form-layout,
.location-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.table-panel {
  padding: 26px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 16px;
  text-align: left;
}

th {
  background: #edf7f8;
  color: var(--teal-dark);
}

tr:last-child td {
  border-bottom: 0;
}

.fee-calculator {
  overflow: hidden;
}

.fee-calculator img,
.location-card img,
.form-copy img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.calculator-body,
.form-panel,
.location-card div {
  padding: 26px;
}

form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

label {
  display: block;
  margin-bottom: 6px;
  color: #334e68;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8, 127, 140, 0.16);
}

.form-message {
  min-height: 26px;
  margin: 16px 0 0;
  color: var(--green);
  font-weight: 800;
}

.form-message.error {
  color: var(--coral);
}

.form-copy {
  display: grid;
  gap: 18px;
}

.form-copy img {
  min-height: 360px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.notice-box {
  padding: 24px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.map-panel {
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

iframe {
  width: 100%;
  height: 520px;
  border: 0;
}

.location-card {
  overflow: hidden;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 0.35fr 0.65fr;
  gap: 28px;
  align-items: start;
}

.profile-panel,
.dashboard-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(31, 41, 51, 0.08);
}

.profile-panel {
  display: grid;
  gap: 14px;
  padding: 26px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 900;
}

.profile-panel h2 {
  margin: 0;
}

.profile-panel p {
  margin: 0;
  color: var(--muted);
}

.dashboard-content {
  display: grid;
  gap: 24px;
}

.dashboard-grid,
.dashboard-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.dashboard-actions {
  grid-template-columns: repeat(2, 1fr);
}

.dashboard-card {
  min-height: 172px;
  padding: 24px;
}

.dashboard-card span {
  color: var(--teal);
  font-weight: 800;
}

.dashboard-card strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 2rem;
  line-height: 1;
}

.dashboard-card p {
  margin: 0;
  color: var(--muted);
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.contact-list strong,
.contact-list span {
  display: block;
}

.contact-list span {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  padding: 24px 16px;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.login-page {
  min-height: 100vh;
  background: #ffffff;
}

.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.auth-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: 34px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(10, 32, 36, 0.76), rgba(10, 32, 36, 0.9)),
    url("assets/hostel-photo.jpg") center/cover;
}

.auth-brand {
  color: #ffffff;
}

.auth-brand small {
  color: rgba(255, 255, 255, 0.78);
}

.auth-copy {
  max-width: 640px;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
}

.auth-panel form {
  max-width: 480px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 480px;
  gap: 8px;
  margin-top: 22px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf7f8;
}

.auth-tab {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--teal-dark);
  cursor: pointer;
  font-weight: 800;
}

.auth-tab.active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(31, 41, 51, 0.1);
}

.back-link {
  width: fit-content;
  margin-bottom: 28px;
  color: var(--teal);
  font-weight: 800;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 10px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
  }

  .stats-grid,
  .module-grid,
  .overview-grid,
  .facility-grid,
  .service-strip,
  .fee-layout,
  .form-layout,
  .location-layout,
  .dashboard-layout,
  .dashboard-grid,
  .dashboard-actions,
  .auth-layout,
  .split-section {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 520px;
  }
}

@media (max-width: 700px) {
  .navbar,
  .section-wrap {
    width: min(1180px, calc(100% - 24px));
  }

  .hero,
  .page-hero {
    min-height: auto;
  }

  .hero-content,
  .page-hero > div {
    width: min(760px, calc(100% - 24px));
    margin: 0 auto;
    padding: 62px 0 76px;
  }

  .hero h1,
  .page-hero h1,
  .auth-copy h1 {
    font-size: 2.25rem;
  }

  .section-heading h2,
  .split-copy h2,
  .info-card h2,
  .facility-card h2,
  .fee-calculator h2,
  .form-panel h2,
  .notice-box h2,
  .location-card h2,
  .auth-panel h2 {
    font-size: 1.55rem;
  }

  .quick-panel {
    margin-top: 0;
  }

  .quick-panel .section-heading,
  .stats-grid {
    border-radius: 8px;
  }

  .stats-grid {
    gap: 12px;
    background: transparent;
    box-shadow: none;
  }

  .stat-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(31, 41, 51, 0.08);
  }

  .split-image,
  .form-copy img {
    min-height: 300px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .auth-panel,
  .auth-visual {
    padding: 28px 18px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }
}
