/* --- GLOBAL RESET & BASE STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'D-DIN';
  color: #ffffff;
  background-color: #0a0a0a;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* --- NAVBAR (SpaceX Style) --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.85);
}

/* --- LEFT SIDE: LOGO & NAVIGATION LINKS --- */
.nav-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
  transition: opacity 0.3s ease;
}

.navbar-logo:hover {
  opacity: 0.8;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.logo-text {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Navigation Links */
.navbar-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.navbar-links li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  padding-bottom: 5px;
  transition: color 0.3s ease;
}

.navbar-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #ffffff;
  transition:
    width 0.3s ease,
    left 0.3s ease;
  transform: translateX(-50%);
}

.navbar-links li a:hover {
  color: #ffffff;
}

.navbar-links li a:hover::after {
  width: 100%;
}

/* --- RIGHT SIDE: COOL UPCOMING EVENTS BUTTON --- */
.events-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  text-decoration: none;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #ff0000;
  border-radius: 50%;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ff0000;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

.events-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.events-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.events-btn:hover::before {
  left: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background-color: #ffffff;
  transition: all 0.3s ease;
}

/* --- SCROLL SNAP CONTAINER --- */
.scroll-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.scroll-container::-webkit-scrollbar {
  display: none;
}

/* --- INDIVIDUAL SECTIONS --- */
.section {
  height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 80px;
  background-color: #0a0a0a;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 1;
}

.content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  animation: fadeIn 1.2s ease-out;
}

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

/* --- TYPOGRAPHY ELEMENTS --- */
.date-header,
.meta-tag {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 600;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.main-title {
  font-size: 2.8rem;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 20px 0;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.content-text,
.subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 40px 0;
  max-width: 750px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.section-1 .content-text {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  max-width: 900px;
}

/* --- BUTTON STYLES --- */
.btn-action,
.btn-portal {
  display: inline-block;
  background: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
  padding: 14px 36px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition:
    background 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-action:hover,
.btn-portal:hover {
  background: #ffffff;
  color: #000000;
}

/* --- SPECIFIC SECTION BACKGROUNDS & OVERRIDES --- */
.section-1 {
  background-image: url('/assets/images/back1.jpeg');
}
.section-1::before {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
}
.section-2 {
  background-image: url('/assets/images/net.jpeg');
}
.section-3 {
  background-image: url('/assets/images/cloud.jpeg');
}
.section-4 {
  background-image: url('/assets/images/co.jpeg');
}
.section-4::before {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.45) 100%);
}

/* --- CHATBOX ASSISTANCE UI (RIGHT SIDE) --- */
.chat-container {
  position: fixed;
  bottom: 30px;
  right: 30px; /* Moved to the right */
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* Align items to the right */
}

.chat-toggle-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  color: #ffffff;
}

.chat-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.chat-toggle-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.chat-window {
  display: none;
  width: 320px;
  height: 420px;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  flex-direction: column;
  margin-bottom: 15px;
  overflow: hidden;
  animation: slideUp 0.3s ease-out forwards;
}

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

.chat-header {
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #000000;
  font-weight: bold;
  font-size: 0.9rem;
}

.chat-name-status {
  display: flex;
  flex-direction: column;
}

.chat-name {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.chat-status {
  font-size: 0.65rem;
  color: #b3b3b3; /* Green online status */
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-status::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: #b3b3b3;
  border-radius: 50%;
  display: inline-block;
}

.close-chat {
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  font-size: 1.2rem;
  line-height: 1;
}

.close-chat:hover {
  opacity: 1;
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}
.chat-messages::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.message {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.message.bot {
  background: rgba(255, 255, 255, 0.1);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.message.user {
  background: rgba(255, 255, 255, 0.9);
  color: #000000;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-input-area {
  padding: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 10px;
}

.chat-input-area input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 10px;
  color: #ffffff;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.3s;
}

.chat-input-area input:focus {
  border-color: rgba(255, 255, 255, 0.5);
}

.chat-input-area button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
  border-radius: 4px;
  padding: 0 15px;
  cursor: pointer;
  transition: all 0.3s;
}

.chat-input-area button:hover {
  background: #ffffff;
  color: #000000;
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 1200px) {
  .nav-left {
    gap: 20px;
  }
  .navbar-links {
    gap: 15px;
  }
  .navbar-links li a {
    font-size: 0.75rem;
    letter-spacing: 1px;
  }
  .logo-text {
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 20px;
    height: 70px;
  }

  .nav-left {
    gap: 15px;
  }
  .logo-text {
    font-size: 0.7rem;
  }
  .logo-img {
    width: 32px;
    height: 32px;
  }

  .navbar-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    gap: 20px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar-links.active {
    display: flex;
  }
  .menu-toggle {
    display: flex;
  }

  .events-btn {
    padding: 6px 12px;
    font-size: 0.65rem;
  }

  .section {
    padding: 40px 30px;
    background-attachment: scroll;
  }
  .main-title {
    font-size: 1.85rem;
  }
  .content-text,
  .subtitle {
    font-size: 1rem;
  }
  .section-1 .content-text {
    font-size: 1.15rem;
  }

  /* Adjust Chat for mobile */
  .chat-container {
    bottom: 20px;
    right: 20px;
  }
  .chat-window {
    width: calc(100vw - 40px);
    max-width: 350px;
    height: 400px;
  }
}

/* Expanded learning pathways, retaining the original r8 visual direction. */
.scroll-container {
  height: 100dvh;
  scroll-snap-type: y proximity;
}
.section {
  height: auto;
  min-height: 100svh;
  padding: 140px 7% 100px;
  scroll-margin-top: 0;
}
.section .content {
  max-width: 1040px;
  width: 100%;
}
.section-1 {
  justify-content: center;
}
.section-1::before {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.32)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.35), transparent);
}
.intro-content {
  padding: 30px 0;
}
.hero-title {
  font-size: clamp(3.3rem, 6.3vw, 6.4rem);
  line-height: 1.02;
  letter-spacing: -2.5px;
  text-transform: uppercase;
  max-width: 900px;
  margin: 24px 0 26px;
  font-weight: 700;
  text-shadow: 0 3px 18px #00000066;
}
.section-1 .content-text {
  font-size: 1.12rem;
  line-height: 1.85;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  max-width: 650px;
  margin-bottom: 0;
  color: #e6e6e6;
}
.section .main-title {
  max-width: 950px;
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.8px;
  margin-bottom: 22px;
}
.section .subtitle {
  max-width: 740px;
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 26px;
}
.section .meta-tag {
  font-size: 0.72rem;
  letter-spacing: 3px;
  line-height: 1.6;
}
.section-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.section-ask {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #ffffff45;
  color: #ffffff;
  font: inherit;
  font-size: 0.8rem;
  padding: 12px 0;
  cursor: pointer;
  text-align: left;
  line-height: 1.6;
}
.section-ask:hover {
  border-color: #ffffff;
}
.journey-strip {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid #ffffff35;
  max-width: 710px;
}
.journey-strip span {
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  color: #dcdcdc;
}
.journey-strip b {
  color: #ffffff;
  font-size: 0.62rem;
  margin-right: 9px;
  letter-spacing: 1px;
}
.section-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 970px;
  margin: 28px 0 10px;
}
.section-highlights article {
  padding: 18px 0 10px;
  border-top: 1px solid #ffffff4d;
}
.section-highlights article > span {
  font-size: 0.58rem;
  letter-spacing: 1.8px;
  color: #c9c9c9;
  font-weight: 600;
}
.section-highlights h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 12px 0 8px;
  color: #ffffff;
  line-height: 1.5;
}
.section-highlights p {
  font-size: 0.8rem;
  line-height: 1.8;
  color: #d8d8d8;
  max-width: 280px;
}
.section-next {
  position: absolute;
  bottom: 27px;
  left: 7%;
  right: 7%;
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 1.7px;
  color: #dedede;
  text-decoration: none;
  z-index: 2;
}
.section-next span {
  font-size: 1.2rem;
}
.homepage-footer {
  position: relative;
  z-index: 2;
  padding: 44px 24px 48px;
  background: #101010;
  border-top: 1px solid #ffffff20;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 13px;
  scroll-snap-align: end;
}
.homepage-footer .footer-brand {
  font-size: 0.74rem;
  letter-spacing: 2.5px;
  color: #ebebeb;
  font-weight: 600;
}
.homepage-footer p {
  font-size: 0.77rem;
  color: #a8a8a8;
  line-height: 1.8;
}
.homepage-footer nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 8px;
}
.homepage-footer a {
  color: #e1e1e1;
  text-decoration: none;
  font-size: 0.76rem;
}
.homepage-footer a:hover {
  text-decoration: underline;
}
.section a:focus-visible,
.section button:focus-visible,
.homepage-footer a:focus-visible {
  outline: 2px solid white;
  outline-offset: 6px;
}
@media (max-width: 768px) {
  .section {
    padding: 125px 7% 85px;
    min-height: 100svh;
    background-attachment: scroll;
  }
  .intro-content {
    padding: 15px 0;
  }
  .hero-title {
    font-size: clamp(2.7rem, 10vw, 4.6rem);
    letter-spacing: -1.5px;
    margin: 20px 0 22px;
  }
  .section-1 .content-text,
  .section .subtitle {
    font-size: 0.95rem;
    line-height: 1.8;
  }
  .section .main-title {
    font-size: clamp(2rem, 6.5vw, 3rem);
    letter-spacing: -0.5px;
  }
  .section-highlights {
    gap: 14px;
    margin-top: 24px;
  }
  .section-highlights h3 {
    font-size: 0.8rem;
  }
  .section-highlights p {
    font-size: 0.72rem;
    line-height: 1.75;
  }
  .section-highlights article > span {
    font-size: 0.5rem;
    letter-spacing: 1.2px;
  }
  .section-actions {
    gap: 12px 22px;
    margin-top: 25px;
  }
  .section-actions .btn-action,
  .section-actions .btn-portal {
    font-size: 0.68rem;
    padding: 14px 23px;
    letter-spacing: 1.3px;
  }
  .section-ask {
    font-size: 0.73rem;
  }
  .journey-strip {
    gap: 14px 22px;
    margin-top: 30px;
  }
  .journey-strip span {
    font-size: 0.66rem;
  }
  .section-next {
    font-size: 0.5rem;
    letter-spacing: 1px;
    bottom: 22px;
  }
  .homepage-footer {
    padding: 35px 20px 42px;
  }
}
@media (max-width: 520px) {
  .section {
    justify-content: center;
  }
  .section-highlights {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .section-highlights article {
    padding: 12px 0;
  }
  .section-highlights h3 {
    margin: 6px 0 4px;
    font-size: 0.87rem;
  }
  .section-highlights p {
    max-width: none;
    font-size: 0.76rem;
  }
  .section-highlights article > span {
    font-size: 0.55rem;
  }
  .section-next {
    bottom: 24px;
  }
  .homepage-footer nav {
    gap: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-container {
    scroll-behavior: auto;
  }
  .content {
    animation: none;
  }
}
@media (max-width: 520px) {
  .navbar .nav-left {
    min-width: 0;
    flex: 1;
  }
  .navbar-logo {
    gap: 8px;
  }
  .logo-text {
    max-width: 124px;
    white-space: normal;
    font-size: 0.6rem;
    line-height: 1.45;
    letter-spacing: 1px;
  }
  .navbar > div:last-child {
    gap: 12px !important;
    flex-shrink: 0;
  }
  .events-btn {
    font-size: 0.52rem;
    padding: 6px 8px;
    max-width: 90px;
    gap: 6px;
  }
  .pulse-dot {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
  }
  .menu-toggle {
    flex-shrink: 0;
  }
}
/* The original opening copy is the hero; retain the accepted sizing and alignment. */
.section-1 .content-text {
  max-width: 940px;
  font-size: clamp(1.5rem, 2.65vw, 2.7rem);
  line-height: 1.45;
  letter-spacing: 0.3px;
  font-weight: 500;
  text-transform: uppercase;
  margin-top: 24px;
}
.intro-content .date-header {
  font-size: 0.72rem;
  letter-spacing: 3px;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .section-1 .content-text {
    font-size: clamp(1.35rem, 5.1vw, 2.1rem);
    line-height: 1.55;
  }
}
.homepage-footer {
  width: 100%;
  margin-inline: auto;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.homepage-footer > p {
  width: 100%;
  margin: 0;
  text-align: center;
}
.homepage-footer nav {
  margin-inline: auto;
  justify-content: center;
  text-align: center;
}
.homepage-footer .footer-copyright {
  font-size: 0.7rem;
  line-height: 1.8;
  color: #a0a0a0;
  margin-top: 12px;
}

/* Wider section typography and arrangement; original copy is unchanged. */
.section {
  padding: 140px 6% 100px;
  justify-content: center;
}
.section .content {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
}
.section .main-title {
  max-width: 1360px;
  font-size: clamp(2.8rem, 5.1vw, 5.5rem);
  line-height: 1.08;
  letter-spacing: -1.4px;
  margin: 0 0 30px;
  text-wrap: balance;
}
.section .subtitle {
  width: 100%;
  max-width: 1140px;
  font-size: clamp(1.08rem, 1.4vw, 1.4rem);
  line-height: 1.85;
  letter-spacing: 0.1px;
  margin-bottom: 0;
  text-wrap: pretty;
}
.section .meta-tag,
.intro-content .date-header {
  font-size: 0.78rem;
  line-height: 1.7;
  letter-spacing: 3.5px;
  margin-bottom: 22px;
}
.section-1 .content-text {
  width: 100%;
  max-width: 1280px;
  font-size: clamp(1.8rem, 3.1vw, 3.6rem);
  line-height: 1.38;
  letter-spacing: 0.15px;
  margin: 0;
  font-weight: 500;
  text-wrap: balance;
}
.intro-content {
  padding: 20px 0;
}
.section-actions {
  margin-top: 38px;
}
.section-actions .btn-action,
.section-actions .btn-portal {
  padding: 16px 40px;
  line-height: 1.5;
}
@media (max-width: 1024px) {
  .section {
    padding: 125px 6% 90px;
  }
  .section .main-title {
    font-size: clamp(2.5rem, 5.2vw, 4.2rem);
    letter-spacing: -0.8px;
  }
  .section .subtitle {
    font-size: 1.1rem;
    max-width: 100%;
  }
  .section-1 .content-text {
    font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  }
}
@media (max-width: 600px) {
  .section {
    padding: 115px 6% 85px;
  }
  .section .main-title {
    font-size: clamp(2rem, 7.5vw, 2.8rem);
    line-height: 1.15;
    letter-spacing: -0.6px;
    margin-bottom: 25px;
  }
  .section .subtitle {
    font-size: 1.03rem;
    line-height: 1.85;
  }
  .section-1 .content-text {
    font-size: clamp(1.45rem, 5.8vw, 2rem);
    line-height: 1.5;
    text-wrap: pretty;
  }
  .section .meta-tag,
  .intro-content .date-header {
    font-size: 0.67rem;
    letter-spacing: 2.5px;
    margin-bottom: 22px;
  }
  .section-actions {
    margin-top: 30px;
  }
  .section-actions .btn-action,
  .section-actions .btn-portal {
    padding: 14px 30px;
    font-size: 0.74rem;
  }
  .intro-content {
    padding: 10px 0;
  }
}

/* Screenshot reference: left-aligned cinematic sections with a clear text hierarchy. */
.section {
  min-height: 100svh;
  padding: 135px 7.5% 105px;
  justify-content: center;
  align-items: flex-start;
  background-attachment: scroll;
  background-position: center;
}
.section .content {
  width: 100%;
  max-width: 1040px;
  margin: 0;
}
.section::before,
.section-1::before,
.section-4::before {
  background:
    linear-gradient(90deg, rgba(9, 9, 9, 0.9), rgba(9, 9, 9, 0.58) 52%, rgba(9, 9, 9, 0.16)),
    linear-gradient(0deg, rgba(9, 9, 9, 0.6), transparent 48%);
}
.section .meta-tag,
.intro-content .date-header {
  font-size: 0.69rem;
  line-height: 1.7;
  letter-spacing: 3px;
  font-weight: 600;
  margin: 0 0 32px;
  color: #ebebeb;
}
.section .main-title {
  max-width: 100%;
  font-size: clamp(3.2rem, 5.2vw, 5.6rem);
  line-height: 1.05;
  letter-spacing: -1.9px;
  font-weight: 750;
  margin: 0 0 30px;
  text-wrap: initial;
}
.section .main-title .title-line {
  display: block;
}
.section-3 .content {
  max-width: 1140px;
}
.section-3 .main-title {
  font-size: clamp(2.8rem, 4.45vw, 4.85rem);
  line-height: 1.12;
  letter-spacing: -1.5px;
}
.section .subtitle {
  max-width: 660px;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.85;
  font-weight: 400;
  letter-spacing: 0;
  margin: 0;
  color: #e5e5e5;
  text-wrap: pretty;
}
.section-1 .content {
  max-width: 1030px;
}
.section-1 .content-text {
  max-width: 960px;
  font-size: clamp(2rem, 3.1vw, 3.55rem);
  line-height: 1.3;
  letter-spacing: -0.6px;
  font-weight: 650;
  margin: 0;
  text-wrap: balance;
}
.intro-content {
  padding: 0;
}
.section-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.section-actions .btn-action,
.section-actions .btn-portal {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  min-width: 220px;
  padding: 17px 24px;
  font-size: 0.72rem;
  line-height: 1.6;
  letter-spacing: 1.4px;
  box-shadow: none;
  border-color: #e5e5e5a6;
}
.section-actions .btn-action {
  min-width: 250px;
}
.chat-toggle-btn {
  width: 54px;
  height: 54px;
  background: #ff0000;
  border: 1px solid #ff0000;
  box-shadow: 0 6px 28px #00000055;
}
.chat-toggle-btn:hover {
  background: #ff0000;
}
@media (min-width: 1800px) {
  .section .main-title {
    font-size: 5.7rem;
  }
  .section-3 .main-title {
    font-size: 4.9rem;
  }
}
@media (max-width: 1100px) {
  .section {
    padding: 125px 7.5% 95px;
  }
  .section .main-title {
    font-size: clamp(2.9rem, 5.5vw, 4.5rem);
    letter-spacing: -1.3px;
  }
  .section-3 .main-title {
    font-size: clamp(2.5rem, 4.65vw, 3.9rem);
    letter-spacing: -1px;
  }
  .section .subtitle {
    max-width: 620px;
    font-size: 1.05rem;
  }
  .section-1 .content-text {
    font-size: clamp(1.85rem, 3.65vw, 2.9rem);
    max-width: 850px;
  }
}
@media (max-width: 600px) {
  .section {
    padding: 115px 7% 85px;
  }
  .section .meta-tag,
  .intro-content .date-header {
    font-size: 0.63rem;
    letter-spacing: 2.5px;
    margin-bottom: 25px;
  }
  .section .main-title {
    font-size: clamp(2.15rem, 8.1vw, 3.1rem);
    line-height: 1.12;
    letter-spacing: -0.8px;
    margin-bottom: 25px;
  }
  .section-3 .main-title {
    font-size: clamp(1.95rem, 7.1vw, 2.7rem);
    line-height: 1.16;
    letter-spacing: -0.7px;
  }
  .section .subtitle {
    font-size: 1rem;
    line-height: 1.85;
    max-width: 100%;
  }
  .section-1 .content-text {
    font-size: clamp(1.45rem, 5.85vw, 2rem);
    line-height: 1.5;
    letter-spacing: 0;
    font-weight: 550;
    text-wrap: pretty;
  }
  .section-actions {
    margin-top: 30px;
  }
  .section-actions .btn-action,
  .section-actions .btn-portal {
    min-width: 205px;
    padding: 15px 20px;
    font-size: 0.69rem;
  }
  .chat-toggle-btn {
    width: 49px;
    height: 49px;
  }
}

.section-1 .content-text {
  max-width: 1030px;
  font-size: inherit;
  line-height: normal;
  letter-spacing: 0;
  font-weight: 400;
  text-transform: none;
  text-wrap: initial;
}
.intro-lead {
  display: block;
  max-width: 1000px;
  font-size: clamp(2.7rem, 4.6vw, 4.9rem);
  line-height: 1.08;
  letter-spacing: -1.5px;
  font-weight: 750;
  text-transform: uppercase;
  text-wrap: balance;
}
.intro-detail {
  display: block;
  max-width: 660px;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.85;
  letter-spacing: 0;
  margin-top: 30px;
  color: #e5e5e5;
}
@media (max-width: 1100px) {
  .intro-lead {
    font-size: clamp(2.4rem, 4.8vw, 3.9rem);
    letter-spacing: -1px;
  }
  .intro-detail {
    font-size: 1.05rem;
  }
}
@media (max-width: 600px) {
  .intro-lead {
    font-size: clamp(1.95rem, 7.2vw, 2.75rem);
    line-height: 1.16;
    letter-spacing: -0.7px;
  }
  .intro-detail {
    font-size: 1rem;
    line-height: 1.85;
    margin-top: 25px;
  }
}

/* Keep the text at the lower left, with open space above. */
.section {
  justify-content: flex-end;
  align-items: flex-start;
  padding-bottom: 48px;
}
.section .content {
  margin-inline: 0;
}
.intro-content {
  padding-bottom: 0;
}
@media (max-width: 1100px) {
  .section {
    padding-bottom: 42px;
  }
}
@media (max-width: 600px) {
  .section {
    padding-bottom: 32px;
    justify-content: flex-end;
  }
}

@media (max-width: 600px) {
  .navbar {
    padding-left: 14px;
    padding-right: 14px;
  }
  .navbar > div:last-child {
    gap: 10px !important;
  }
  .navbar .events-btn {
    font-size: 9px;
    padding: 8px;
    letter-spacing: 0.5px;
  }
  .navbar .logo-img {
    width: 32px;
    height: 32px;
  }
}

.navbar .upcoming-events-btn {
  padding: 11px 17px;
  gap: 10px;
  background: rgba(255, 0, 0, 0.18);
  border: 1px solid rgba(255, 0, 0, 0.65);
  border-radius: 4px;
  box-shadow: inset 0 0 18px rgba(255, 0, 0, 0.08);
  max-width: none;
  white-space: nowrap;
}
.navbar .upcoming-events-btn:hover {
  background: rgba(255, 0, 0, 0.35);
  border-color: #ff0000;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.22);
}
.events-calendar {
  flex-shrink: 0;
  color: #ff0000;
}
@media (max-width: 600px) {
  .navbar .upcoming-events-btn {
    padding: 9px 10px;
    gap: 6px;
    font-size: 8px;
    letter-spacing: 0.4px;
  }
  .events-calendar {
    width: 15px;
    height: 15px;
  }
  .navbar > div:last-child {
    gap: 7px !important;
  }
}

:root body .homepage-lilian-ai {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  min-height: 40px;
  margin: 0 16px 16px;
  padding: 10px 16px;
  border: 1px solid #555;
  border-radius: 9999px;
  background: #242424;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}
:root body .homepage-lilian-ai:hover {
  background: #333;
  border-color: #aaa;
}
