/* ============================================
   Base Design System — Shared across all pages
   FJCU USR Office Website
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700&family=Noto+Serif+TC:wght@400;700&display=swap');

/* ── CSS Variables ── */
:root {
    --primary-orange: #FF8C00;
    --primary-orange-hover: #E67E00;
    --dark-blue: #003366;
    --charcoal: #333333;
    --cream-bg: #FAF9F6;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --text-main: #2D2D2D;
    --text-muted: #666666;
    --transition-base: all 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

/* ── Base Typography ── */
body {
    font-family: 'Noto Sans TC', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.serif-font {
    font-family: 'Noto Serif TC', serif;
    font-weight: 700;
    color: var(--dark-blue);
}

/* ── Header ── */
.top-illustration {
    width: 100%;
    height: 120px;
    background: var(--white);
    position: relative;
    border-bottom: 1px solid #eee;
}

.logo-container {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    z-index: 10;
    transition: var(--transition-base);
}

.main-header-logo {
    width: 320px;
    max-width: 90vw;
    height: auto;
    object-fit: contain;
    transition: var(--transition-base);
}


/* ── Floating Sidebar ── */
.floating-sidebar {
    position: fixed;
    right: 20px;
    bottom: 10%;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.float-btn {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-md);
    color: var(--primary-orange);
    text-decoration: none;
    transition: var(--transition-base);
}

.float-btn:hover {
    background: var(--primary-orange);
    color: var(--white);
}

@media (max-width: 991px) {
    .main-header-logo {
        width: 240px;
    }
}

/* Header Extra Links */
.header-extra-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
}

.header-extra-links a {
    text-decoration: none;
    color: var(--dark-blue);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition-base);
}

.header-extra-links a:hover {
    color: var(--primary-orange);
}

.header-extra-links .divider {
    color: #999;
    font-size: 1.1rem;
}

/* ── Sticky Navbar ── */
.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--dark-blue);
    box-shadow: var(--shadow-md);
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    text-align: center;
    padding: 12px 25px !important;
    font-family: 'Noto Serif TC', serif;
    font-size: 1.25rem;
    font-weight: 500;
    transition: var(--transition-base);
}

.navbar-nav .nav-link i {
    display: none;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-orange) !important;
}

.navbar-nav .dropdown-toggle::after {
    color: var(--primary-orange);
    vertical-align: middle;
    margin-left: 0.7rem;
    border-top: 0.5em solid;
    border-right: 0.5em solid transparent;
    border-left: 0.5em solid transparent;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-md);
    border-top: 3px solid var(--primary-orange);
    border-radius: 0 0 8px 8px;
}

.dropdown-item:hover {
    background-color: var(--light-gray);
    color: var(--primary-orange) !important;
}

@media (max-width: 991px) {
    .navbar-nav .nav-link {
        flex-direction: row;
        text-align: left;
    }

    .navbar-nav .nav-link i {
        margin-bottom: 0;
        margin-right: 15px;
        width: 25px;
    }

    .top-illustration {
        height: 120px;
    }

    .logo-container {
        padding: 5px 15px;
        gap: 10px !important;
    }
}

/* ── Section Base ── */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-orange);
}

/* ── Cards ── */
.card-modern {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    background: white;
}

.card-modern:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* ── Tags ── */
.card-modern .tag,
.tag {
    font-size: 0.75rem;
    padding: 3px 12px;
    border-radius: 20px;
    background: #FFF5E6;
    color: var(--primary-orange);
    font-weight: 500;
}

/* ── Buttons ── */
.btn-orange {
    background-color: var(--primary-orange);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition-base);
}

.btn-orange:hover {
    background-color: var(--primary-orange-hover);
    color: white;
    transform: scale(1.05);
}

/* ── Image Viewer Modal ── */
#viewer-img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

/* ── Footer ── */
footer {
    background: var(--charcoal);
    color: #dedede;
    padding: 60px 0 30px;
}

.footer-logo {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-info p {
    margin-bottom: 8px;
    font-size: 1.05rem;
    opacity: 0.9;
}
/* ── News List Shared Styles ── */
.news-list-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.news-list-item {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 12px 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    border-left: 0px solid var(--primary-orange);
    position: relative;
    overflow: hidden;
}

.news-list-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
    border-left: 6px solid var(--primary-orange);
    background: #fffdfa;
}

.news-date-side {
    flex: 0 0 100px;
    text-align: center;
    border-right: 1px solid #eee;
    margin-right: 30px;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-date-side .year {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
}

.news-date-side .day {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-blue);
    display: block;
}

.news-content-side {
    flex: 1;
}

.news-title {
    font-size: 1.4rem;
    color: var(--dark-blue);
    margin-bottom: 8px;
    transition: var(--transition-base);
    line-height: 1.4;
}

.news-list-item:hover .news-title {
    color: var(--primary-orange);
}

.news-excerpt {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.news-arrow-side {
    font-size: 1.2rem;
    color: #ccc;
    margin-left: 20px;
    transition: var(--transition-base);
}

.news-list-item:hover .news-arrow-side {
    color: var(--primary-orange);
    transform: translate(3px, -3px);
}

.news-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hashtag {
    font-size: 0.95rem;
    color: #f97316; /* Bright Orange */
    font-weight: 500;
}

/* ── Standard Page Header ── */
.page-header-title {
    color: var(--dark-blue);
    font-weight: 700;
    font-size: 2rem;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 40px;
}

.page-header-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-orange);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .news-list-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .news-date-side {
        flex: none;
        border-right: none;
        border-bottom: 1px solid #eee;
        margin-right: 0;
        margin-bottom: 15px;
        padding-right: 0;
        padding-bottom: 10px;
        flex-direction: row;
        gap: 10px;
        align-items: baseline;
    }

    .news-arrow-side {
        display: none;
    }
}
