Files
2026-06-05 08:34:24 +07:00

1904 lines
30 KiB
CSS

:root {
--brand-navy: #003150;
--brand-yellow: #feb401;
--text-main: #1e293b;
--text-soft: #64748b;
--bg-soft: #f8fafc;
--line: #e2e8f0;
}
* {
box-sizing: border-box;
}
html,
body {
margin: 0;
padding: 0;
}
body {
font-family: "Roboto", Arial, sans-serif;
color: var(--text-main);
background: #fff;
line-height: 1.6;
}
.container {
width: min(1100px, 92%);
margin-inline: auto;
}
.nav {
background: var(--brand-navy);
color: #fff;
border-bottom: 4px solid var(--brand-yellow);
padding: 14px 0;
}
.brand {
font-size: 1.1rem;
font-weight: 700;
letter-spacing: 0.02em;
}
.hero {
position: relative;
color: #fff;
min-height: 220px;
display: flex;
align-items: flex-end;
overflow: hidden;
}
.hero-bg {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
filter: brightness(0.45);
}
.hero-inner {
position: relative;
z-index: 1;
padding: 36px 0;
}
.badge {
display: inline-block;
background: var(--brand-yellow);
color: #111827;
font-size: 0.68rem;
font-weight: 700;
letter-spacing: 0.14em;
text-transform: uppercase;
padding: 0.2rem 0.45rem;
margin-bottom: 12px;
}
.hero h1 {
margin: 0;
font-size: clamp(1.6rem, 3.2vw, 2.8rem);
line-height: 1.2;
}
.layout {
display: grid;
grid-template-columns: 1fr;
gap: 2rem;
padding: 2rem 0 4rem;
}
@media (min-width: 1024px) {
.layout {
grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
}
}
.meta {
font-size: 0.78rem;
text-transform: uppercase;
color: #475569;
display: flex;
flex-wrap: wrap;
gap: 0.75rem 1rem;
margin-bottom: 1rem;
}
.cover {
background: var(--bg-soft);
border: 1px solid var(--line);
margin-bottom: 1.5rem;
}
.cover img {
width: 100%;
height: auto;
display: block;
}
.article-body > * + * {
margin-top: 1.1em;
}
.article-body h2 {
font-size: 1.35rem;
margin: 1.6em 0 0.5em;
}
.article-body h3 {
font-size: 1.1rem;
margin: 1.4em 0 0.4em;
}
.article-body p {
margin: 0 0 1em;
}
.article-body ul,
.article-body ol {
padding-left: 1.4rem;
}
.article-body blockquote {
border-left: 4px solid #005eb8;
background: #eef6ff;
padding: 0.8rem 1rem;
color: #334155;
}
.article-body a {
color: #005eb8;
}
.article-body img {
max-width: 100%;
border-radius: 8px;
}
.article-body code {
background: #f1f5f9;
padding: 0.1em 0.35em;
border-radius: 4px;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.note {
border: 1px solid var(--line);
background: var(--bg-soft);
padding: 1rem;
}
.note h3 {
margin: 0 0 0.5rem;
font-size: 0.76rem;
text-transform: uppercase;
letter-spacing: 0.12em;
color: #475569;
}
.footer {
margin-top: 2rem;
background: var(--brand-navy);
color: #fff;
border-top: 4px solid var(--brand-yellow);
}
.footer-inner {
display: flex;
align-items: center;
justify-content: center;
gap: 0.75rem;
padding: 1rem 0;
}
.footer-logo {
height: 28px;
width: auto;
}
.footer-ornament {
width: 100%;
display: block;
opacity: 0.9;
}
.study-at-untan {
font-family: "Inter", sans-serif;
}
/* CSS Kelompok HarusSelesaiKP */
/* Component Styling */
.eyebrow-component {
position: relative;
height: fit-content;
padding-left: 16px;
font-size: 7px;
font-weight: 700;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--brand-yellow);
/* color: #ca8a04; */
&::before {
content: "";
position: absolute;
top: 50%;
left: 0;
width: 12px;
height: 2px;
transform: translateY(-50%);
background-color: var(--brand-yellow);
}
@media (min-width: 640px) {
font-size: 0.75rem;
}
@media (min-width: 1024px) {
padding-left: 32px;
font-size: 1rem;
&::before {
width: 20px;
}
}
}
.map-button-component {
display: inline-flex;
align-items: center;
gap: 8px;
padding-block: 4px;
padding-inline: 8px;
background-color: #ffffff;
color: #1f2937;
border-radius: 8px;
font-weight: 700;
text-decoration: none;
font-size: 0.75rem;
width: fit-content;
transition: background-color 0.2s ease;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
&:hover {
background-color: #f3f4f6;
}
.map-icon {
width: 12px;
height: 12px;
flex-shrink: 0;
}
@media (min-width: 640px) {
font-size: 0.875rem;
}
}
/* Section Styling */
.hero-section {
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
gap: 8px;
height: 40dvh;
background-image: url("images/hero.webp");
background-size: cover;
background-position: center;
padding-left: 16px;
padding-right: 16px;
color: #ffffff;
/* Overlay Gradasi */
.hero-overlay {
position: absolute;
inset: 0;
z-index: 1;
background: linear-gradient(
270deg,
rgba(0, 0, 0, 0) 21.76%,
rgba(0, 0, 0, 0.4) 63.31%,
rgba(0, 49, 80, 0.72) 78.24%
);
}
/* Judul Hero */
.hero-title {
position: relative;
z-index: 2;
max-width: 8ch;
font-size: 1.25rem;
font-weight: 900;
.highlight-text {
color: var(--brand-yellow);
}
}
/* Deskripsi Hero */
.hero-description {
position: relative;
z-index: 2;
max-width: 40ch;
font-size: 0.75rem;
font-weight: 500;
}
/* Small Devices (sm: min-width 640px) */
@media (min-width: 640px) {
height: 50dvh;
gap: 16px;
padding-left: 48px;
padding-right: 48px;
.hero-title {
font-size: 1.5rem;
}
.hero-description {
font-size: 0.875rem;
}
}
/* Medium Devices (md: min-width 768px) */
@media (min-width: 768px) {
height: 80dvh;
gap: 24px;
padding-left: 64px;
padding-right: 64px;
.hero-title {
font-size: 2.25rem;
line-height: 2.5rem;
}
.hero-description {
font-size: 1rem;
}
}
/* Large Devices (lg: min-width 1024px) */
@media (min-width: 1024px) {
height: 80dvh;
padding-left: 96px;
padding-right: 96px;
.hero-title {
font-size: 3rem;
line-height: 3.5rem;
}
}
}
.about-section {
display: flex;
align-items: center;
gap: 24px;
padding: 20px 12px;
--box-size: 150px;
.about-image-wrapper {
position: relative;
width: var(--box-size);
height: var(--box-size);
.image-bg-decorator {
position: absolute;
right: -12px;
bottom: -12px;
width: var(--box-size);
height: var(--box-size);
background-color: #fff0cc;
border-radius: 6px;
}
.main-image {
position: relative;
z-index: 10;
width: var(--box-size);
height: var(--box-size);
background-image: url("images/untan.jpeg");
background-size: cover;
background-position: center;
}
}
.about-content {
display: flex;
flex-direction: column;
gap: 8px;
.about-title {
color: var(--brand-navy);
font-size: 12px;
font-weight: 900;
letter-spacing: -0.05em;
}
.about-description {
color: var(--text-soft);
font-size: 8px;
font-weight: 500;
p + p {
margin-top: 8px;
}
}
.about-link {
display: flex;
width: fit-content;
align-items: center;
gap: 2px;
border-bottom: 2px solid var(--brand-yellow);
color: var(--brand-navy);
font-weight: 700;
text-decoration: none;
font-size: 7px;
.link-icon {
margin-bottom: 2px;
transform: rotate(90deg);
width: 12px;
height: 12px;
}
}
}
@media (min-width: 640px) {
flex-direction: row;
gap: 32px;
padding: 32px;
--box-size: 240px;
.about-content {
.about-title {
font-size: 1.5rem;
}
.about-description {
font-size: 0.75rem;
line-height: 16px;
}
.about-link {
font-size: 0.75rem;
}
}
}
@media (min-width: 768px) {
padding: 48px 32px;
--box-size: 280px;
.about-content {
.about-description {
line-height: 24px;
}
}
}
@media (min-width: 1024px) {
gap: 64px;
padding: 96px 64px;
--box-size: 400px;
.about-image-wrapper .image-bg-decorator {
right: -24px;
bottom: -24px;
border-radius: 12px;
}
.about-content {
gap: 24px;
.about-title {
font-size: 2.25rem;
}
.about-description {
font-size: 0.875rem;
line-height: 24px;
}
.about-link {
gap: 4px;
font-size: 0.875rem;
.link-icon {
width: 20px;
height: 20px;
}
}
}
}
@media (min-width: 1280px) {
--box-size: 600px;
.about-content {
gap: 32px;
.about-title {
font-size: 3rem;
}
.about-description {
font-size: 1.125rem;
line-height: 32px;
}
}
}
}
.facilities-section {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
padding: 20px 12px;
.facilities-title {
color: var(--brand-navy, #0a192f);
text-align: center;
font-weight: 900;
letter-spacing: -0.05em;
font-size: 1.125rem;
margin-bottom: 16px;
}
/* Layouting Grid Kartu */
.facilities-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 16px;
width: 100%;
}
/* Komponen Kartu (Card) */
.facility-card {
background-color: #ffffff;
border-radius: 12px;
box-shadow:
0 10px 15px -3px rgba(0, 0, 0, 0.1),
0 4px 6px -2px rgba(0, 0, 0, 0.05);
transition: all 0.3s ease;
overflow: hidden;
/* Mengunci gambar agar ujung atasnya ikut melengkung */
&:hover {
transform: scale(1.02);
}
.card-image {
width: 100%;
aspect-ratio: 16 / 9;
object-fit: cover;
}
.card-body {
position: relative;
padding: 12px 8px;
display: flex;
flex-direction: column;
gap: 8px;
}
/* Lingkaran Badge Ikon floating */
.card-icon-badge {
position: absolute;
top: -20px;
right: 12px;
background-color: var(--brand-yellow);
border-radius: 9999px;
padding: 8px;
display: flex;
align-items: center;
justify-content: center;
.card-icon {
width: 12px;
height: 12px;
}
}
.card-title {
font-size: 10px;
font-weight: 900;
color: var(--brand-navy);
margin-top: 8px;
}
.card-desc {
font-size: 7px;
color: var(--text-soft);
}
}
@media (min-width: 640px) {
padding: 32px;
.facilities-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 24px;
}
.facility-card .card-body {
padding: 20px 16px;
.card-icon-badge {
padding: 8px;
.card-icon {
width: 20px;
height: 20px;
}
}
.card-title {
font-size: 1rem;
}
.card-desc {
font-size: 0.75rem;
}
}
}
@media (min-width: 768px) {
padding: 48px 32px;
.facilities-title {
font-size: 1.25rem;
}
.facilities-grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 32px;
}
}
@media (min-width: 1024px) {
gap: 32px;
padding: 96px 64px;
.facilities-title {
font-size: 2.25rem;
}
}
@media (min-width: 1280px) {
.facilities-title {
font-size: 3rem;
}
.facility-card {
.card-body {
padding: 24px 20px;
.card-icon-badge {
padding: 12px;
.card-icon {
width: 24px;
height: 24px;
}
}
}
.card-title {
font-size: 1.25rem;
}
.card-desc {
font-size: 1rem;
}
}
}
}
.campus-section {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
padding: 20px 12px;
.campus-title {
color: var(--brand-navy);
text-align: center;
font-weight: 900;
letter-spacing: -0.05em;
font-size: 1.5rem;
}
.campus-subtitle {
text-align: center;
font-size: 0.75rem;
color: var(--text-soft);
margin-bottom: 16px;
}
/* Layout Wrapper */
.campus-layout {
display: flex;
gap: 16px;
width: 100%;
}
/* Styling Tombol Kategori (Kiri) */
.category-list-container {
display: flex;
flex-direction: column;
gap: 12px;
.category-btn {
display: flex;
align-items: center;
gap: 12px;
padding: 8px;
border: none;
border-radius: 4px;
background-color: oklch(0.965356 0.016359 274.8224);
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
cursor: pointer;
transition: all 0.3s ease;
font-weight: 600;
font-size: 0.75rem;
color: #000000;
/* Indikator Status Tombol saat Aktif */
&.active {
background-color: var(--brand-yellow);
color: #ffffff;
.btn-icon {
color: #ffffff;
}
}
&:hover:not(.active) {
background-color: var(--brand-yellow);
color: var(--brand-navy);
}
.btn-icon {
width: 12px;
height: 12px;
transition: color 0.3s;
}
}
}
/* Styling Kartu Direktori (Kanan) */
.directory-list-container {
display: flex;
flex-direction: column;
gap: 16px;
flex: 1;
.directory-card {
display: flex;
gap: 8px;
background-color: oklch(0.9838 0.0079 286.25);
padding: 8px;
border-radius: 8px;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
&:hover {
transform: scale(1.02);
}
.img-wrapper {
width: 75px;
height: 75px;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
padding: 16px;
background-color: oklch(0.965356 0.016359 274.8224);
border-radius: 8px;
img {
width: 100%;
height: 100%;
object-fit: contain;
}
}
.card-info {
display: flex;
flex-direction: column;
justify-content: center;
h4 {
font-weight: 900;
letter-spacing: -0.05em;
font-size: 10px;
color: var(--brand-navy);
margin-bottom: 4px;
}
p {
font-size: 7px;
color: var(--text-soft);
}
}
}
}
@media (min-width: 640px) {
padding: 32px;
.campus-subtitle {
font-size: 0.75rem;
line-height: 16px;
}
.campus-layout {
flex-direction: row;
align-items: flex-start;
gap: 16px;
}
.category-list-container {
flex-direction: column;
justify-content: flex-start;
min-width: 25%;
}
.category-list-container .category-btn {
font-size: 0.875rem;
}
.directory-list-container {
.directory-card {
.card-info {
h4 {
font-size: 1rem;
}
p {
font-size: 0.75rem;
}
}
}
}
}
@media (min-width: 768px) {
padding: 48px 32px;
.campus-title {
font-size: 1.875rem;
}
.campus-subtitle {
line-height: 24px;
}
.campus-layout {
gap: 48px;
}
.category-list-container {
width: 30%;
}
.category-list-container .category-btn {
padding: 16px;
font-size: 1rem;
.btn-icon {
width: 20px;
height: 20px;
}
}
.directory-list-container .directory-card {
gap: 16px;
.card-info h4 {
font-size: 1.125rem;
}
.directory-card .card-info p {
font-size: 0.875rem;
}
}
}
@media (min-width: 1024px) {
gap: 32px;
padding: 96px 64px;
.campus-title {
font-size: 2.25rem;
}
.campus-subtitle {
font-size: 0.875rem;
line-height: 24px;
}
.category-list-container .category-btn .btn-icon {
width: 28px;
height: 28px;
}
.directory-list-container {
.directory-card {
padding: 16px;
.card-info {
gap: 8px;
h4 {
font-size: 1.25rem;
}
p {
font-size: 1rem;
}
}
}
}
}
@media (min-width: 1280px) {
.campus-title {
font-size: 3rem;
}
.campus-subtitle {
font-size: 1.125rem;
line-height: 32px;
}
}
}
.pontianak-city-section {
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
gap: 8px;
height: 40dvh;
background-image: url("images/taman-digulis.webp");
background-size: cover;
background-position: center;
padding-left: 16px;
padding-right: 16px;
color: #ffffff;
/* Overlay Hitam Gradasi */
.pontianak-overlay {
position: absolute;
inset: 0;
background: linear-gradient(
0deg,
rgba(0, 0, 0, 0.9) -14.48%,
rgba(0, 0, 0, 0.4) 42.76%,
rgba(0, 0, 0, 0) 100%
);
z-index: 1;
}
/* Wrapper Konten Teks */
.pontianak-content {
position: absolute;
bottom: 48px;
left: 16px;
right: 16px;
display: flex;
flex-direction: column;
gap: 8px;
z-index: 2;
.pontianak-title {
font-weight: 900;
font-size: 2rem;
letter-spacing: -0.05em;
line-height: 2rem;
}
.pontianak-desc {
max-width: 65ch;
font-size: 0.75rem;
font-weight: 500;
line-height: 1.25rem;
}
}
@media (min-width: 640px) {
height: 50dvh;
gap: 16px;
padding-left: 48px;
padding-right: 48px;
.pontianak-content {
left: 48px;
right: 48px;
.pontianak-desc {
font-size: 0.875rem;
}
}
}
@media (min-width: 768px) {
height: 70dvh;
gap: 24px;
padding-left: 64px;
padding-right: 64px;
.pontianak-content {
left: 64px;
right: 64px;
.pontianak-title {
font-size: 2.25rem;
line-height: 2.5rem;
}
.pontianak-desc {
font-size: 1rem;
line-height: 1.5rem;
}
}
}
@media (min-width: 1024px) {
height: 100dvh;
padding-left: 96px;
padding-right: 96px;
.pontianak-content {
bottom: 160px;
left: 96px;
right: 96px;
gap: 32px;
.pontianak-title {
font-size: 3.75rem;
line-height: 3.5rem;
}
}
}
@media (min-width: 1280px) {
.pontianak-content {
.pontianak-title {
font-size: 6rem;
}
}
}
}
.destination-section {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
padding: 20px 12px;
.destination-title {
color: var(--brand-navy);
text-align: center;
font-weight: 900;
letter-spacing: -0.05em;
font-size: 1.25rem;
}
.destination-divider {
border: none;
border-top: 4px solid var(--brand-yellow);
width: 40%;
margin-bottom: 16px;
}
/* Layout Grid Destinasi */
.destination-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
width: 100%;
}
/* Komponen Kartu Destinasi */
.destination-card {
position: relative;
background-size: cover;
background-position: center;
border-radius: 8px;
height: 300px;
overflow: hidden;
transition: all 0.3s ease;
&:hover {
transform: scale(1.02);
}
/* Gradasi Hitam di Atas Background */
.card-overlay {
position: absolute;
inset: 0;
background: linear-gradient(
0deg,
rgba(0, 0, 0, 0.8) 0%,
rgba(0, 0, 0, 0.2) 50%,
rgba(0, 0, 0, 0) 100%
);
z-index: 1;
}
.card-content {
position: relative;
z-index: 10;
display: flex;
flex-direction: column;
justify-content: flex-end;
height: 100%;
gap: 8px;
padding: 16px;
padding-bottom: 24px;
max-width: 288px;
.card-name {
color: #ffffff;
font-weight: 900;
letter-spacing: -0.025em;
font-size: 12px;
}
.card-desc {
color: #d1d5db;
font-size: 8px;
}
}
}
@media (min-width: 640px) {
padding: 32px;
.destination-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 24px;
}
.destination-card .card-content .card-name {
font-size: 1rem;
}
.destination-card .card-content .card-desc {
font-size: 0.875rem;
}
.destination-card {
height: 400px;
}
}
@media (min-width: 768px) {
padding: 48px 32px;
.destination-title {
font-size: 1.875rem;
}
.destination-grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.destination-card .card-content .card-name {
font-size: 1.25rem;
}
}
@media (min-width: 1024px) {
gap: 32px;
padding: 96px 64px;
.destination-title {
font-size: 2.25rem;
}
.destination-card {
height: 450px;
}
}
@media (min-width: 1280px) {
.destination-title {
font-size: 3rem;
}
.destination-grid {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
}
}
.culinary-section {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
padding: 20px 12px;
.culinary-title {
color: var(--brand-navy);
text-align: center;
font-weight: 900;
letter-spacing: -0.05em;
font-size: 1.25rem;
}
.culinary-divider {
border: none;
border-top: 4px solid var(--brand-yellow);
width: 40%;
margin-bottom: 16px;
}
/* Container Filter Tabs */
.culinary-tabs-container {
display: flex;
gap: 16px;
justify-content: center;
width: 100%;
.culinary-tab-btn {
border: none;
border-radius: 8px;
padding: 12px 24px;
font-size: 0.875rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
margin-bottom: 16px;
/* Default State (Tidak Aktif) */
background-color: #f3f4f6;
color: #111827;
&:hover:not(.active) {
background-color: #e5e7eb;
}
/* Active State */
&.active {
background-color: var(--brand-navy);
color: #ffffff;
}
}
}
/* Grid Layout Kartu */
.culinary-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 24px;
width: 100%;
}
/* Komponen Culinary Card */
.culinary-card {
display: flex;
flex-direction: column;
gap: 8px;
/* gap-2 */
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
border-radius: 12px;
background-color: #ffffff;
overflow: hidden;
transition: all 0.3s ease;
&:hover {
transform: scale(1.02);
}
.card-thumb {
width: 100%;
aspect-ratio: 16 / 9;
object-fit: cover;
}
.card-body {
display: flex;
flex-direction: column;
gap: 8px;
padding: 8px 16px 16px 16px;
h3 {
font-weight: 900;
letter-spacing: -0.025em;
color: var(--brand-navy);
font-size: 1.125rem;
}
p {
font-size: 9px;
font-weight: 500;
color: var(--text-soft);
min-height: 26px;
}
/* Modifikasi Khusus MapButton di dalam Kartu Kuliner */
.map-button-component {
align-self: flex-end;
border: 1px solid black;
box-shadow: none;
}
}
}
@media (min-width: 640px) {
padding: 32px;
.culinary-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.culinary-card .card-body p {
font-size: 0.875rem;
}
}
@media (min-width: 768px) {
padding: 48px 32px;
.culinary-title {
font-size: 1.875rem;
}
.culinary-card .card-body h3 {
font-size: 1.25rem;
}
}
@media (min-width: 1024px) {
gap: 32px;
padding: 96px 64px;
.culinary-title {
font-size: 2.25rem;
}
.culinary-grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
}
@media (min-width: 1280px) {
.culinary-title {
font-size: 3rem;
}
}
}
.living-cost-section {
display: flex;
width: 100%;
/* Wrapper Gambar Kiri */
.cost-banner-wrapper {
position: relative;
width: 100%;
.cost-banner-img {
width: 100%;
height: 320px;
object-fit: cover;
object-posiiton: center top;
}
/* Efek Gradasi Menyesuaikan Layer Latar Belakang Navy */
.cost-banner-overlay {
position: absolute;
inset: 0;
background: linear-gradient(
0deg,
#012338 0%,
rgba(1, 35, 56, 0.4) 55%,
rgba(1, 35, 56, 0) 100%
);
}
}
/* Panel Informasi Kanan */
.cost-info-panel {
background-color: #012338;
display: flex;
flex-direction: column;
gap: 8px;
padding: 20px 12px;
width: 100%;
.cost-title {
color: #ffffff;
font-weight: 900;
letter-spacing: -0.05em;
font-size: 12px;
}
.cost-desc {
color: #ffffff;
font-size: 8px;
font-weight: 500;
}
.cost-note {
font-size: 0.75rem;
color: var(--brand-yellow);
font-style: italic;
margin-bottom: 8px;
}
/* Wrapper Flex Tiga Kartu */
.cost-cards-grid {
display: flex;
gap: 8px;
width: 100%;
}
/* Sub-Komponen: Living Cost Card */
.cost-item-card {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
padding: 16px 8px;
border-radius: 8px;
background-color: rgba(255, 255, 255, 0.05);
color: #ffffff;
flex: 1;
text-align: center;
width: 75px;
transition: all 0.3s ease;
&:hover {
transform: scale(1.02);
}
/* Target styling tag svg di dalam kartu */
svg {
font-size: 1rem;
width: auto;
height: 1em;
}
.cost-type {
text-transform: uppercase;
color: #9ca3af;
font-size: 8px;
margin: 4px 0 0 0;
}
.cost-price {
font-weight: 900;
font-size: 8px;
margin: 0;
}
.cost-period {
color: #9ca3af;
font-size: 8px;
margin: 0;
}
}
}
@media (min-width: 640px) {
.cost-info-panel {
padding: 32px;
.cost-desc {
font-size: 10px;
}
.cost-item-card {
.cost-type {
font-size: 8px;
}
.cost-price {
font-size: 12px;
}
.cost-period {
font-size: 10px;
}
}
}
}
@media (min-width: 768px) {
flex-direction: row;
.cost-banner-wrapper {
width: 800px;
.cost-banner-img {
height: 100%;
}
/* Perubahan Arah Gradasi: Mengabur ke arah kiri panel Navy */
.cost-banner-overlay {
background: linear-gradient(
270deg,
#012338 0%,
rgba(0, 0, 0, 0.4) 65%,
rgba(0, 0, 0, 0) 78%
);
}
}
.cost-info-panel {
padding: 48px 32px;
width: 100%;
.cost-title {
font-size: 1.875rem;
}
.cost-cards-grid {
width: fit-content;
}
.cost-item-card {
flex: none;
width: 130px;
padding: 16px;
.cost-type {
font-size: 12px;
}
.cost-price {
font-size: 1rem;
}
.cost-period {
font-size: 12px;
}
}
}
}
@media (min-width: 1024px) {
.cost-info-panel {
gap: 32px;
padding: 96px 48px 96px 96px;
.cost-title {
font-size: 2.25rem;
}
.cost-desc {
font-size: 0.875rem;
line-height: 24px;
}
}
}
@media (min-width: 1280px) {
.cost-info-panel {
.cost-title {
font-size: 3rem;
}
.cost-desc {
font-size: 1.125rem;
line-height: 32px;
}
}
}
}
/* ============================================================
ANTI-FLICKER — localization.js sets window.__currentLang
synchronously; body stays hidden until DOMContentLoaded
fires applyTranslations() and removes this class.
============================================================ */
body.lang-pending {
visibility: hidden;
}
/* ============================================================
MOVED FROM index.html <style> TAG
(Originally inline; moved here so the browser can cache it)
============================================================ */
/* ===== MOBILE NAV STABILITY FIX =====
Prevents logo bar from collapsing/shifting on Android when
address bar hides/shows and triggers viewport reflow.
===================================== */
#nav-wrapper {
position: fixed !important;
top: 0;
left: 0;
right: 0;
z-index: 50;
backface-visibility: hidden;
-webkit-backface-visibility: hidden;
will-change: box-shadow;
}
#nav-wrapper > div:first-child {
transform: translateZ(0);
-webkit-transform: translateZ(0);
}
@media (max-width: 1023px) {
#nav-wrapper > div:first-child {
min-height: 0 !important;
max-height: none;
}
}
#pengumuman-bar {
z-index: 40;
}
#pengumuman-bar.is-stuck {
position: fixed;
left: 0;
right: 0;
z-index: 40;
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
/* Skip Link Styling */
.skip-link {
position: absolute;
top: -40px;
left: 0;
background: #003150;
color: white;
padding: 8px 16px;
z-index: 100;
transition: top 0.3s;
}
.skip-link:focus {
top: 0;
}
/* Focus visible for better keyboard navigation */
:focus-visible {
outline: 3px solid #feb401;
outline-offset: 2px;
}
/* Mega Menu Styles */
.hero-pagination .swiper-pagination-bullet {
width: 8px;
height: 8px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.4);
display: inline-block;
margin: 0 4px;
cursor: pointer;
transition: all 0.3s ease;
}
.hero-pagination .swiper-pagination-bullet-active {
background: rgba(255, 255, 255, 1);
width: 24px;
border-radius: 4px;
}
.mega-panel {
opacity: 0;
visibility: hidden;
transition:
opacity 0.2s ease,
visibility 0.2s ease;
position: absolute;
top: 100%;
left: 0;
right: 0;
}
.mega-panel.active {
opacity: 1;
visibility: visible;
}
/* Overlay transition */
#mega-overlay {
opacity: 0;
visibility: hidden;
transition:
opacity 0.2s ease,
visibility 0.2s ease;
}
#mega-overlay.active {
opacity: 1;
visibility: visible;
}
.mega-link-card {
display: flex;
align-items: flex-start;
gap: 1rem;
padding: 1rem;
border-radius: 0.75rem;
border: 1px solid #e2e8f0;
background: white;
transition: all 0.2s ease;
}
.mega-link-card:hover {
border-color: #3b82f6;
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
transform: translateY(-2px);
}
.mega-link-icon {
width: 2.5rem;
height: 2.5rem;
border-radius: 0.5rem;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
transition: all 0.2s ease;
}
.nav-menu-btn.active {
background: rgba(255, 255, 255, 0.9);
color: #1e40af;
}
.nav-menu-btn:hover {
background: rgba(255, 255, 255, 0.8);
}
/* Mega menu positioning - no gap */
#main-nav {
position: relative;
}
#mega-menu-container {
position: absolute;
top: 100%;
left: 0;
right: 0;
pointer-events: none;
}
#mega-menu-container .mega-panel {
pointer-events: auto;
}
/* Keep pointer bridge under nav to prevent hover loss */
.nav-menu-item {
position: relative;
}
.nav-menu-item::after {
content: "";
position: absolute;
bottom: -12px;
left: 0;
right: 0;
height: 12px;
}
/* ===== Luco Chatbot Animations ===== */
@keyframes slideInRight {
from {
transform: translateX(100px);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
@keyframes fadeInUp {
from {
transform: translateY(10px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
@keyframes lucoPulse {
0%,
100% {
transform: scale(1);
}
50% {
transform: scale(1.05);
}
}
#luco-container {
animation: slideInRight 0.5s ease-out forwards;
}
#luco-bubble {
animation: fadeInUp 0.3s ease-out forwards;
width: min(18rem, calc(100vw - 2rem));
}
#luco-btn {
animation: lucoPulse 2s ease-in-out infinite;
}
#luco-btn:hover {
animation: none;
}
/* Typing indicator */
.typing-indicator span {
display: inline-block;
animation: bounce 1.4s infinite ease-in-out;
}
.typing-indicator span:nth-child(1) {
animation-delay: 0s;
}
.typing-indicator span:nth-child(2) {
animation-delay: 0.2s;
}
.typing-indicator span:nth-child(3) {
animation-delay: 0.4s;
}
@keyframes bounce {
0%,
80%,
100% {
transform: translateY(0);
}
40% {
transform: translateY(-6px);
}
}
/* Luco speech bubble arrow */
#luco-bubble .bubble-arrow {
position: absolute;
right: 24px;
bottom: -6px;
width: 12px;
height: 12px;
background: white;
transform: rotate(45deg);
border-right: 1px solid #e2e8f0;
border-bottom: 1px solid #e2e8f0;
}