* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f5f5f5;
    color: #222;
}

a {
    text-decoration: none;
}

.topbar {
    width: 100%;
    background: #ffffff;
    padding: 14px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 999;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand img,
.logo-text {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    background: #2f7d8c;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.brand span {
    font-size: 18px;
    font-weight: 500;
}

.nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.nav a {
    color: #222;
    font-weight: 500;
}

.nav a:hover {
    color: #2f7d8c;
}

.hero {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.55);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 900px;
}

.hero-content h1 {
    font-size: 84px;
    font-weight: 300;
    margin-bottom: 20px;
    color: #111;
}

.menu-box {
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: center;
}

.menu-btn {
    width: 100%;
    max-width: 700px;
    background: rgba(255, 255, 255, 0.92);
    color: #2d6f85;
    padding: 18px 20px;
    border-radius: 8px;
    border: 1px solid #5c8da0;
    font-size: 20px;
    transition: 0.3s ease;
}

.menu-btn:hover {
    transform: translateY(-2px);
    background: #2f7d8c;
    color: #fff;
}

.content-section {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    padding: 90px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.content-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.65);
}

.section-card {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    padding: 40px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.section-card h2 {
    font-size: 36px;
    margin-bottom: 24px;
    color: #1c4a58;
}

.section-card h3 {
    margin-bottom: 10px;
    color: #245f71;
}

.section-card p,
.section-card li {
    line-height: 1.8;
    margin-bottom: 12px;
}

blockquote {
    margin-top: 18px;
    padding: 18px 20px;
    border-left: 5px solid #2f7d8c;
    background: #eef7f9;
    font-style: italic;
}

.profile-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

.profile-photo {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.artifact-list {
    display: grid;
    gap: 20px;
}

.artifact-item {
    background: #f8fcfd;
    border: 1px solid #d6e5ea;
    border-radius: 14px;
    padding: 20px;
}

.cycle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cycle-card {
    background: #f8fcfd;
    border: 1px solid #d6e5ea;
    border-radius: 14px;
    padding: 20px;
}

.footer {
    background: #17343d;
    color: white;
    text-align: center;
    padding: 20px;
}

.login-body,
.admin-body {
    background: linear-gradient(135deg, #dcecf1, #f7fbfc);
    min-height: 100vh;
}

/* Glassmorphism container */
.glass-card {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  animation: fadeIn 0.6s ease;
}

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

/* Center login body vertically */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-box {
    max-width: 420px;
    margin: 70px auto;
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

@media (max-width: 480px) {
  .login-box {
    max-width: 90%;
    margin: 20px auto;
    padding: 20px;
  }
}

.login-box h1 {
    margin-bottom: 20px;
    color: #245f71;
}

.login-box label,
.admin-card label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 14px;
}

.login-box input,
.admin-card input,
.admin-card textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cfdde2;
    border-radius: 10px;
    margin-bottom: 10px;
}

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

.btn-primary {
    display: inline-block;
    background: #2f7d8c;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 10px;
}

.btn-primary:hover {
    background: #245f71;
}

.alert {
    background: #ffe3e3;
    color: #b10000;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.login-note,
.back-link {
    display: block;
    margin-top: 12px;
    color: #555;
}

.admin-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: #17343d;
    color: white;
    padding: 24px;
}

.sidebar h2 {
    margin-bottom: 20px;
}

.sidebar a {
    display: block;
    color: white;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.admin-content {
    padding: 30px;
}

.admin-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.cycle-admin-box {
    border: 1px solid #d8e4e8;
    padding: 18px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: #f9fcfd;
}

@media (max-width: 900px) {
    .hero-content h1 {
        font-size: 54px;
    }

    .profile-grid,
    .cycle-grid,
    .admin-wrapper {
        grid-template-columns: 1fr;
    }

    .topbar {
        flex-direction: column;
        gap: 14px;
    }

    .nav {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 42px;
    }

    .menu-btn {
        font-size: 18px;
        padding: 16px;
    }

    .section-card {
        padding: 24px;
    }

    .section-card h2 {
        font-size: 28px;
    }
}

.page-hero {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.overlay-soft {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.28);
}

.page-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 40px;
}

.page-hero-inner.with-hero-image {
    grid-template-columns: 380px 1fr;
}

.hero-figure {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-figure img {
    max-height: 700px;
    width: auto;
    object-fit: contain;
}

.hero-copy {
    text-align: center;
}

.hero-copy h1 {
    font-size: 76px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: #111;
}

.hero-copy p {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #222;
}

.page-detail {
    background: #fff;
    padding: 60px 20px 90px;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 34px;
    color: #2d6f85;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.profile-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 26px;
    align-items: start;
}

.profile-images {
    display: grid;
    gap: 24px;
}

.content-image-card img,
.gallery-item img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.content-image-card figcaption,
.gallery-item figcaption {
    margin-top: 8px;
    font-size: 14px;
    color: #555;
}

.profile-text p,
.content-panel p {
    line-height: 1.9;
    margin-bottom: 16px;
}

.content-panel {
    background: #fff;
    padding: 10px 0;
}

.page-gallery {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {

    .page-hero-inner.with-hero-image,
    .profile-layout,
    .page-gallery {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        font-size: 52px;
    }

    .hero-figure img {
        max-height: 420px;
    }
}

@media (max-width: 600px) {
    .hero-copy h1 {
        font-size: 40px;
    }

    .hero-copy p {
        font-size: 12px;
        letter-spacing: 1px;
    }
}

.admin-card select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cfdde2;
    border-radius: 10px;
    margin-bottom: 10px;
}