body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1 {
    font-family: Impact, sans-serif;
}

h6 {
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f1f1f1;
    color: #000000;
    padding: 15px 30px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.datetime-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    flex-grow: 1;
}

.weather-display {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.weather-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.content {
    padding: 50px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.theme-switch-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.theme-label {
    font-size: 12px;
    font-weight: bold;
}

.welcome-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    background-color: #ffffff;
}

.welcome-message {
    padding: 12px 24px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    background-color: #ffffff;
    color: #000000;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: background-color 0.4s, box-shadow 0.4s;
}

input:checked + .slider {
    background-color: #0066cc;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: #ffffff;
    transition: transform 0.4s;
}

input:checked + .slider:before {
    transform: translateX(30px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.nav-btn,
button {
    color: #000000;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    padding: 10px 20px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.nav-btn {
    text-decoration: none;
}

.nav-btn:hover,
button:hover {
    background-color: #eeeeee;
    transform: translateY(-2px);
}

body.dark-mode {
    background-color: #0b0818;
    color: #ffffff;
}

body.dark-mode .navbar {
    background-color: #151126;
    color: #ffffff;
    box-shadow: 0 2px 18px rgba(0, 255, 255, 0.16);
}

body.dark-mode .welcome-overlay {
    background-color: #0b0818;
}

body.dark-mode .welcome-message {
    background-color: #151126;
    color: #ffffff;
    border-color: #62f5ff;
}

body.dark-mode h1,
body.dark-mode .datetime-box {
    background: linear-gradient(90deg, #00f5ff, #d500f9, #ff2bd6);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 16px rgba(0, 245, 255, 0.35);
}

body.dark-mode .weather-display {
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: #ffffff;
    text-shadow: none;
}

body.dark-mode .nav-btn,
body.dark-mode button {
    color: #ffffff;
    background: linear-gradient(115deg, #5422a8, #a21caf, #087e9d);
    border-color: #62f5ff;
    box-shadow: 0 0 12px rgba(98, 245, 255, 0.35);
}

body.dark-mode .nav-btn:hover,
body.dark-mode button:hover {
    background: linear-gradient(115deg, #7136d4, #d31ab9, #079fbb);
    box-shadow: 0 0 20px rgba(213, 0, 249, 0.55);
}

body.dark-mode input:checked + .slider {
    background-color: #a21caf;
    box-shadow: 0 0 12px rgba(0, 245, 255, 0.6);
}

.hr-page {
    overflow: hidden;
}

.hr-hero {
    min-height: 430px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    align-items: center;
    gap: 48px;
    padding: 70px max(30px, 8vw);
    color: #ffffff;
    background:
        radial-gradient(circle at 85% 20%, rgba(74, 196, 214, 0.28), transparent 24%),
        linear-gradient(135deg, #102a43 0%, #145da0 58%, #4ac4d6 100%);
}

.hr-hero-content {
    max-width: 720px;
}

.hr-eyebrow {
    margin: 0 0 12px;
    color: #4ac4d6;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hr-hero h1 {
    margin: 0;
    font-size: clamp(44px, 7vw, 78px);
    line-height: 0.95;
    color: #ffffff;
}

.hr-hero-text {
    max-width: 620px;
    margin: 24px 0 32px;
    font-size: 20px;
    line-height: 1.6;
}

.hr-primary-btn {
    display: inline-block;
    padding: 14px 22px;
    border-radius: 6px;
    color: #102a43;
    background: #ffffff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}

.hr-primary-btn:hover {
    transform: translateY(-2px);
}

.hr-hero-panel {
    display: grid;
    gap: 12px;
}

.hr-stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.hr-stat strong {
    font-size: 34px;
}

.hr-stat span {
    color: #d9f8fc;
    font-weight: bold;
}

.hr-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 72px 30px 90px;
}

.hr-section-heading {
    margin-bottom: 32px;
    text-align: center;
}

.hr-section-heading h2 {
    margin: 0;
    color: #102a43;
    font-size: clamp(32px, 5vw, 48px);
}

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

.feature-card {
    min-height: 210px;
    padding: 26px;
    border: 1px solid #dfe7ef;
    border-top: 4px solid #145da0;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(16, 42, 67, 0.08);
}

.feature-icon {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: #145da0;
    font-size: 13px;
    font-weight: 800;
}

.feature-card h3 {
    margin: 18px 0 10px;
    color: #102a43;
    font-size: 21px;
}

.feature-card p {
    margin: 0;
    color: #526777;
    line-height: 1.65;
}

.active-nav {
    border-color: #145da0;
}

.feature-link {
    display: inline-block;
    margin-top: 18px;
    color: #145da0;
    font-weight: 800;
    text-decoration: none;
}

.feature-link:hover {
    text-decoration: underline;
}

.feature-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 54px 30px 90px;
}

.feature-page-header {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    align-items: end;
    gap: 30px;
    margin-bottom: 32px;
    padding: 38px;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #102a43, #145da0);
}

.feature-page-header h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(36px, 6vw, 62px);
}

.feature-page-header p {
    margin: 12px 0 0;
    line-height: 1.7;
}

.feature-page-number {
    text-align: right;
    font-size: clamp(64px, 10vw, 120px);
    font-weight: 900;
    opacity: 0.16;
}

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

.feature-detail {
    min-height: 150px;
    padding: 24px;
    border: 1px solid #dfe7ef;
    border-radius: 10px;
    background: #ffffff;
}

.feature-detail h2 {
    margin: 0 0 10px;
    color: #102a43;
    font-size: 20px;
}

.feature-detail p,
.feature-detail li {
    color: #526777;
    line-height: 1.6;
}

.feature-detail ul {
    margin: 0;
    padding-left: 20px;
}

.feature-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.aspi-section {
    max-width: 1180px;
    margin: 0 auto 90px;
    padding: 58px 30px 0;
}

.aspi-heading {
    max-width: 760px;
    margin-bottom: 30px;
}

.aspi-heading h2 {
    margin: 0 0 12px;
    color: #102a43;
    font-size: clamp(32px, 5vw, 48px);
}

.aspi-heading > p:last-child {
    margin: 0;
    color: #526777;
    font-size: 18px;
    line-height: 1.7;
}

.aspi-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.aspi-panel {
    padding: 28px;
    border: 1px solid #dfe7ef;
    border-radius: 12px;
    background: #f7fafc;
}

.aspi-panel h3 {
    margin: 0 0 14px;
    color: #102a43;
    font-size: 23px;
}

.aspi-panel p,
.aspi-panel li {
    color: #526777;
    line-height: 1.65;
}

.aspi-panel ul {
    padding-left: 20px;
}

.aspi-panel li + li {
    margin-top: 10px;
}

.aspi-courses {
    columns: 2;
    column-gap: 32px;
}

.aspi-note {
    margin: 18px 0;
    padding: 12px 14px;
    border-left: 4px solid #4ac4d6;
    background: #edf8fa;
}

.aspi-link {
    display: inline-block;
    color: #145da0;
    font-weight: 800;
    text-decoration: none;
}

.aspi-link:hover {
    text-decoration: underline;
}

.gallery-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 30px 80px;
}

.gallery-hero {
    margin-bottom: 30px;
    padding: 46px;
    border-radius: 16px;
    color: #ffffff;
    background:
        radial-gradient(circle at 85% 20%, rgba(74, 196, 214, 0.3), transparent 25%),
        linear-gradient(135deg, #102a43, #145da0);
}

.gallery-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(38px, 6vw, 64px);
}

.gallery-hero > p:last-child {
    max-width: 680px;
    margin: 14px 0 0;
    color: #e4f7ff;
    font-size: 18px;
    line-height: 1.6;
}

.notice-strip {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 58px;
    margin-bottom: 54px;
    padding: 10px 16px;
    border-radius: 8px;
    color: #102a43;
    background: #eaf7fa;
}

.notice-label {
    flex-shrink: 0;
}

.notice-window {
    flex: 1;
    overflow: hidden;
    direction: rtl;
    white-space: nowrap;
}

.notice-track {
    display: inline-flex;
    align-items: center;
    gap: 42px;
    min-width: max-content;
    animation: notice-scroll 30s linear infinite;
}

.notice-track span {
    display: inline-block;
    direction: rtl;
}

.notice-track a {
    color: inherit;
    text-decoration: none;
}

.notice-track a:hover {
    text-decoration: underline;
}

.notice-window:hover .notice-track {
    animation-play-state: paused;
}

@keyframes notice-scroll {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(-100%);
    }
}

.notice-link {
    flex-shrink: 0;
    color: #145da0;
    font-weight: 800;
    text-decoration: none;
}

.site-notice-pane {
    position: relative;
    z-index: 10;
    margin: 0;
    border-radius: 0;
}

.gallery-viewer[hidden] {
    display: none;
}

.gallery-viewer {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 24px;
    color: #ffffff;
    background: rgba(5, 9, 18, 0.97);
}

.gallery-viewer-toolbar {
    position: absolute;
    top: 18px;
    right: 24px;
    left: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gallery-viewer-counter,
.gallery-viewer-caption {
    color: #ffffff;
    font-weight: 700;
}

.gallery-viewer-image {
    display: block;
    max-width: min(100%, 1200px);
    max-height: calc(100vh - 170px);
    object-fit: contain;
}

.gallery-viewer-caption {
    margin: 0;
}

.gallery-viewer-controls {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.gallery-viewer button {
    color: #ffffff;
    background: #193d5e;
    border-color: #6bc8dc;
}

.gallery-viewer button:hover {
    background: #24577f;
}

body.gallery-viewer-open {
    overflow: hidden;
}

.gallery-section {
    margin-bottom: 54px;
}

.gallery-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.gallery-heading .hr-eyebrow {
    margin-bottom: 6px;
}

.gallery-heading h2,
.video-section h2 {
    margin: 0;
    color: #102a43;
    font-size: clamp(30px, 4vw, 42px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.gallery-card {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 250px;
    border-radius: 12px;
    color: #ffffff;
    background: #102a43;
    text-decoration: none;
}

.gallery-card img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    opacity: 0.88;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-card:hover img {
    transform: scale(1.04);
    opacity: 1;
}

.gallery-card span {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 34px 20px 18px;
    background: linear-gradient(transparent, rgba(7, 23, 40, 0.88));
    font-size: 20px;
    font-weight: 800;
}

.video-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 30px;
    border: 1px solid #dfe7ef;
    border-radius: 12px;
    background: #f7fafc;
}

.video-section p:not(.hr-eyebrow) {
    max-width: 680px;
    margin-bottom: 0;
    color: #526777;
    line-height: 1.65;
}

.gallery-sync-note {
    margin: 22px 0 0;
    color: #526777;
    font-size: 14px;
    line-height: 1.6;
}

.student-corner-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 30px 80px;
}

.student-corner-hero {
    margin-bottom: 30px;
    padding: 46px;
    border-radius: 16px;
    color: #ffffff;
    background:
        radial-gradient(circle at 85% 20%, rgba(74, 196, 214, 0.3), transparent 25%),
        linear-gradient(135deg, #102a43, #145da0);
}

.student-corner-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(38px, 6vw, 64px);
}

.student-corner-hero > p:last-child {
    max-width: 700px;
    margin: 14px 0 0;
    color: #e4f7ff;
    font-size: 18px;
    line-height: 1.6;
}

.student-project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.student-project-link {
    display: flex;
    min-height: 150px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 24px;
    border: 1px solid #dfe7ef;
    border-left: 5px solid #145da0;
    border-radius: 10px;
    color: #102a43;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(16, 42, 67, 0.08);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.student-project-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(16, 42, 67, 0.14);
}

.student-project-number {
    margin-bottom: 8px;
    color: #145da0;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
}

.student-project-name {
    font-size: 22px;
    font-weight: 800;
}

.student-project-action {
    margin-top: 12px;
    color: #145da0;
    font-size: 14px;
    font-weight: 700;
}

body.dark-mode .notice-strip,
body.dark-mode .video-section {
    border-color: #35315e;
    color: #e3e7f2;
    background: #151126;
}

body.dark-mode .notice-link,
body.dark-mode .gallery-heading h2,
body.dark-mode .video-section h2 {
    color: #bdefff;
}

body.dark-mode .video-section p:not(.hr-eyebrow),
body.dark-mode .gallery-sync-note {
    color: #d5d9ea;
}

body.dark-mode .student-project-link {
    border-color: #35315e;
    border-left-color: #62f5ff;
    color: #e3e7f2;
    background: #151126;
}

body.dark-mode .student-project-number,
body.dark-mode .student-project-action {
    color: #62f5ff;
}

body.dark-mode .hr-section-heading h2,
body.dark-mode .feature-card h3 {
    color: #bdefff;
}

body.dark-mode .feature-card {
    border-color: #35315e;
    background: #151126;
    box-shadow: 0 12px 35px rgba(0, 245, 255, 0.08);
}

body.dark-mode .feature-card p {
    color: #d5d9ea;
}

body.dark-mode .feature-detail {
    border-color: #35315e;
    background: #151126;
}

body.dark-mode .feature-detail h2 {
    color: #bdefff;
}

body.dark-mode .feature-detail p,
body.dark-mode .feature-detail li {
    color: #d5d9ea;
}

body.dark-mode .aspi-heading h2,
body.dark-mode .aspi-panel h3 {
    color: #bdefff;
}

body.dark-mode .aspi-heading > p:last-child,
body.dark-mode .aspi-panel p,
body.dark-mode .aspi-panel li {
    color: #d5d9ea;
}

body.dark-mode .aspi-panel {
    border-color: #35315e;
    background: #151126;
}

body.dark-mode .aspi-note {
    background: #211e3d;
}

body.dark-mode .aspi-link {
    color: #62f5ff;
}

body.dark-mode .hr-primary-btn {
    color: #102a43;
    background: #ffffff;
}

@media (max-width: 800px) {
    .hr-hero {
        grid-template-columns: 1fr;
        padding-top: 55px;
        padding-bottom: 55px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-page-header,
    .feature-detail-grid {
        grid-template-columns: 1fr;
    }

    .aspi-content-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .student-project-grid {
        grid-template-columns: 1fr;
    }

    .gallery-card img {
        height: 250px;
    }

    .video-section,
    .gallery-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .notice-strip {
        flex-wrap: wrap;
    }

    .notice-window {
        order: 3;
        flex-basis: 100%;
    }

    .gallery-hero {
        padding: 32px 24px;
    }

    .student-corner-hero {
        padding: 32px 24px;
    }

    .gallery-viewer {
        padding: 16px;
    }

    .gallery-viewer-toolbar {
        top: 10px;
        right: 12px;
        left: 12px;
    }

    .gallery-viewer-image {
        max-height: calc(100vh - 150px);
    }

    .feature-page-number {
        display: none;
    }

    @media (prefers-reduced-motion: reduce) {
        .notice-track {
            animation: none;
        }

        .gallery-card img {
            transition: none;
        }
    }

    .navbar {
        flex-wrap: wrap;
        gap: 10px;
    }

    .datetime-box {
        order: 2;
        width: 100%;
    }
}