* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: Noto Sans TC, Microsoft JhengHei, Helvetica Neue, Arial, sans-serif;
    background: linear-gradient(160deg, #f0f2f5 0%, #e8ecf1 100%);
    color: #2d3436;
    line-height: 1.9;
    font-size: clamp(14px, 1.2vw + 8px, 24px);
}

.top-bar {
    background: linear-gradient(135deg, #001a33 0%, #002d5a 100%);
    color: #fff;
    padding: clamp(4px, 0.5vw + 2px, 7px) 0;
    font-size: 0.82em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.top-bar a { color: #aac8e4; text-decoration: none; margin: 0 clamp(4px, 1vw + 2px, 12px); transition: all 0.2s; }
.top-bar a:hover { color: #fff; }
.top-bar .container { max-width: 1400px; margin: 0 auto; padding: 0 25px; display: flex; justify-content: flex-end; }

.header {
    background: linear-gradient(135deg, #003366 0%, #004d99 40%, #005eb3 100%);
    color: #fff;
    padding: clamp(15px, 2vw + 8px, 28px) 0;
    box-shadow: 0 4px 20px rgba(0,51,102,0.2);
}
.header .container {
    max-width: 1400px; margin: 0 auto; padding: 0 25px;
    display: flex; align-items: center; gap: clamp(10px, 2vw + 5px, 22px);
}
.header .logo { height: 2em; width: auto; }
.header h1 { font-size: 2em; font-weight: 700; letter-spacing: 1.5px; }
.header p { font-size: 1em; opacity: 0.8; letter-spacing: 0.8px; margin-top: 2px; }

.nav-bar {
    background: linear-gradient(90deg, #357a7d 0%, #489a9d 100%);
    padding: 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    position: sticky; top: 0; z-index: 1000;
}
.nav-bar .container { max-width: 1400px; margin: 0 auto; padding: 0 clamp(10px, 2vw + 5px, 25px); display: flex; justify-content: space-between; align-items: center; }
.nav-bar a {
    display: block; color: #fff; text-align: center; text-decoration: none;
    padding: clamp(10px, 1.2vw + 5px, 16px) clamp(8px, 0.8vw + 4px, 10px); font-size: clamp(13px, 0.8vw + 8px, 19px); font-weight: 500;
    transition: all 0.25s ease; position: relative;
}
.nav-bar a::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 0; height: 3px; background: #fff; border-radius: 2px; transition: width 0.25s ease;
}
.nav-bar a:hover::after { width: 65%; }
.nav-bar a:hover { background: rgba(255,255,255,0.08); }
.nav-bar a.active { background: rgba(255,255,255,0.12); font-weight: 600; }

/* ===== Hamburger Nav Toggle ===== */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    flex-direction: column;
    gap: 5px;
    z-index: 10;
}
.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}
.nav-toggle:hover span { background: #e0f0f0; }

.nav-links {
    display: flex;
    flex: 1;
    justify-content: space-around;
}

img { max-width: 100%; height: auto; }
table { max-width: 100%; }


.main-wrap {
    max-width: 1400px; margin: clamp(10px, 3vw + 2px, 35px) auto; padding: clamp(15px, 3.5vw + 5px, 50px) clamp(12px, 3vw + 5px, 45px);
    background: #fff; min-height: 600px;
    border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}

h2 {
    color: #003366;
    font-size: clamp(20px, 1.5vw + 12px, 29px);
    font-weight: 700;
    letter-spacing: 0.8px;
    margin: 0 0 22px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid #e8ecf1;
    position: relative;
}
h2::after {
    content: ''; position: absolute; bottom: -3px; left: 0;
    width: 55px; height: 3px; background: linear-gradient(90deg, #27ae60, #2ecc71);
    border-radius: 2px;
}

#professor-cards { min-height: 100px; margin-top: 15px; }
h3.sub {
    color: #357a7d;
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 14px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #d4e6e7;
}

.section-card {
    background: #f8f9fa;
    padding: clamp(12px, 2vw + 5px, 28px);
    border-radius: 14px;
    margin-bottom: clamp(15px, 2.5vw + 5px, 32px);
    border: 1px solid #e0e4e8;
    transition: all 0.3s ease;
}
.section-card:hover { background: #fafbfc; }
.section-card .inner {
    background: #fff;
    padding: clamp(12px, 1.5vw + 6px, 22px);
    border-radius: 10px;
    border: 1px solid #eef1f4;
    transition: all 0.3s ease;
    font-size: clamp(14px, 1vw + 8px, 21px);
}
.section-card .inner:hover { border-color: #d0d7de; }

.prof-card {
    background: linear-gradient(135deg, #eaf7f2 0%, #f2fbf8 100%);
    padding: 18px;
    border-radius: 12px;
    border-left: 4px solid #357a7d;
    transition: all 0.3s ease;
}
.prof-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(53,122,125,0.12);
}
.prof-card h4 { margin: 0 0 8px 0; color: #2c3e50; font-size: clamp(14px, 1vw + 8px, 21px); }
.prof-card p { margin: 5px 0; font-size: clamp(13px, 0.8vw + 8px, 19px); color: #555; line-height: 1.6; }
.prof-card a { color: #357a7d; text-decoration: none; font-weight: 500; }
.prof-card a:hover { text-decoration: underline; }

.btn-green {
    display: inline-block;
    color: #fff; text-decoration: none;
    padding: clamp(8px, 1vw + 4px, 10px) clamp(18px, 2vw + 10px, 28px); border-radius: 8px;
    font-weight: 600; font-size: clamp(13px, 0.8vw + 8px, 19px); letter-spacing: 0.5px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #1e8449 0%, #27ae60 100%);
    box-shadow: 0 4px 12px rgba(39,174,96,0.25);
}
.btn-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39,174,96,0.35);
}

#admission-news a { color: #2d3436; transition: color 0.2s; }
#admission-news a:hover { color: #357a7d; }

#heatmap-container table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 2px;
    font-size: clamp(12px, 0.8vw + 8px, 19px);
}
#heatmap-container th {
    padding: clamp(8px, 0.8vw + 4px, 14px) clamp(6px, 0.6vw + 3px, 12px);
    background: linear-gradient(135deg, #003366, #004d99);
    color: #fff;
    font-weight: 600;
    position: sticky; top: 0;
    letter-spacing: 0.5px;
}
#heatmap-container th:first-child { border-radius: 8px 0 0 0; }
#heatmap-container th:last-child { border-radius: 0 8px 0 0; }
#heatmap-container td {
    padding: 10px 8px;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
    transition: all 0.2s;
}
/* heatmap hover disabled */

.footer {
    background: linear-gradient(135deg, #001a33 0%, #002d5a 50%, #004080 100%);
    color: #b0c8dd;
    padding: clamp(25px, 3vw + 10px, 45px) 0 clamp(20px, 2.5vw + 8px, 35px);
    font-size: 0.88em;
    line-height: 1.9;
}
.footer .container { max-width: 1400px; margin: 0 auto; padding: 0 25px; }
.footer a { color: #88b3d9; text-decoration: none; transition: color 0.2s; }
.footer a:hover { color: #fff; }
.footer .copy { text-align: center; margin-top: clamp(18px, 2.5vw + 8px, 32px); padding-top: clamp(14px, 2vw + 6px, 25px); border-top: 1px solid rgba(255,255,255,0.06); font-size: clamp(10px, 0.5vw + 7px, 13px); color: #6d8fae; }
.footer h4 { font-size: clamp(12px, 0.7vw + 8px, 16px); letter-spacing: 0.8px; margin-bottom: clamp(8px, 0.8vw + 4px, 12px); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f0f2f5; }
::-webkit-scrollbar-thumb { background: #b0c8dd; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #88b3d9; }

::selection { background: #357a7d; color: #fff; }

@media (max-width: 768px) {
    .header .container { flex-direction: column; text-align: center; }
    .nav-bar { position: relative; }
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(53,122,125,0.97);
        border-top: 1px solid rgba(255,255,255,0.15);
        padding: 8px 0;
    }
    .nav-links.open { display: flex; }
    .nav-bar .container { flex-wrap: wrap; }
}

.loading-text { text-align: center; color: #95a5a6; }

.section-card-inner { background: #fff; padding: clamp(12px, 1.2vw + 6px, 20px); border-radius: 8px; border: 1px solid #e8e8e8; font-size: clamp(14px, 1.2vw + 8px, 24px); }

.section-card-inner > div[style*=margin-bottom: 25px]:last-child {
    margin-bottom: 0;
}

.subsection-h3 {
    color: #2c3e50;
    border-left: 4px solid #27ae60;
    padding-left: 15px;
    margin-top: 0;
    font-size: clamp(14px, 1.2vw + 8px, 24px);
    font-weight: 600;
}
.subsection-h3-green {
    color: #27ae60;
    border-bottom: 1px solid #27ae60;
    padding-bottom: 8px;
    margin-top: 0;
    font-size: clamp(13px, 0.8vw + 8px, 19px);
    font-weight: 600;
}

.subsection-h3 + * { margin-top: 15px; }
.subsection-h3-green + * { margin-top: 12px; }

/* ===== Loading Overlay ===== */
#loading-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #fff; z-index: 9999;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    transition: opacity 0.6s ease;
}
#loading-overlay.hidden { opacity: 0; pointer-events: none; display: none; }

.spinner {
    width: clamp(40px, 4vw + 15px, 60px); height: clamp(40px, 4vw + 15px, 60px);
    border: clamp(3px, 0.4vw + 1px, 5px) solid #e8ecf1;
    border-top-color: #357a7d;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

#loading-overlay p {
    margin-top: clamp(12px, 1.5vw + 5px, 20px);
    color: #6d8fae;
    font-size: clamp(12px, 0.8vw + 8px, 19px);
    letter-spacing: 1px;
}

/* ===== Scroll Animations ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }

/* ===== Hover Lift Effect ===== */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

/* ===== Scale In Animation ===== */
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.scale-in {
    animation: scaleIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ===== Slide Up ===== */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.slide-up {
    animation: slideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ===== Shimmer Loading ===== */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

/* ===== Section Entry ===== */
.section-card {
    animation: slideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.section-card:nth-child(1) { animation-delay: 0.1s; }
.section-card:nth-child(2) { animation-delay: 0.2s; }
.section-card:nth-child(3) { animation-delay: 0.3s; }
.section-card:nth-child(4) { animation-delay: 0.4s; }
.section-card:nth-child(5) { animation-delay: 0.5s; }

/* ===== Animated Gradient Nav ===== */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.nav-bar {
    background: linear-gradient(270deg, #357a7d, #489a9d, #357a7d, #2d6c6f);
    background-size: 300% 100%;
    animation: gradientShift 8s ease infinite;
}

/* ===== Top Bar Subtle Pulse ===== */
.top-bar {
    animation: gradientShift 10s ease infinite;
    background: linear-gradient(270deg, #001a33, #002d5a, #001a33);
    background-size: 300% 100%;
}

/* ===== Section Card Enhanced ===== */
.section-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ===== Button Glow ===== */
@keyframes glow {
    0%, 100% { box-shadow: 0 4px 15px rgba(39,174,96,0.3); }
    50% { box-shadow: 0 4px 25px rgba(39,174,96,0.5); }
}
.btn-green {
    animation: glow 3s ease-in-out infinite;
}

/* ===== Smooth Number Transitions ===== */
#heatmap-container td {
    transition: all 0.3s ease;
}

/* ===== Footer Fade In ===== */
.footer {
    animation: slideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: 0.6s;
}

/* ===== Loading Overlay Enhanced ===== */
#loading-overlay {
    background: linear-gradient(160deg, #f0f2f5 0%, #e8ecf1 50%, #fff 100%);
}
#loading-overlay .spinner {
    width: clamp(45px, 5vw + 15px, 70px); height: clamp(45px, 5vw + 15px, 70px);
    border-width: 4px;
    border-color: #d4e6e7;
    border-top-color: #357a7d;
}
#loading-overlay .loading-title {
    margin-top: 30px;
    font-size: clamp(18px, 1.5vw + 10px, 27px);
    font-weight: 700;
    color: #003366;
    letter-spacing: 2px;
}
@keyframes fadeInOut {
    0%, 100% { opacity: 0; transform: translateY(10px); }
    25%, 75% { opacity: 1; transform: translateY(0); }
}
#loading-overlay .loading-tagline {
    margin-top: 12px;
    font-size: clamp(12px, 0.8vw + 8px, 17px);
    color: #6d8fae;
    letter-spacing: 1px;
    opacity: 0;
    animation: fadeInOut 3s ease-in-out infinite;
    animation-delay: 0.5s;
}
#loading-overlay .loading-tagline:nth-of-type(2) {
    animation-delay: 2s;
    color: #357a7d;
    font-weight: 500;
}
#loading-overlay .loading-progress {
    margin-top: 30px;
    width: 200px; height: 3px;
    background: #e8ecf1;
    border-radius: 2px;
    overflow: hidden;
}
#loading-overlay .loading-progress-bar {
    width: 0; height: 100%;
    background: linear-gradient(90deg, #357a7d, #489a9d);
    border-radius: 2px;
    animation: progressBar 1.5s ease forwards;
}
@keyframes progressBar {
    to { width: 100%; }
}

/* ===== Bouncing Loading Text ===== */
.loading-bounce {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 4px;
}
.loading-bounce span {
    display: inline-block;
    font-size: clamp(12px, 0.8vw + 8px, 19px);
    color: #6d8fae;
    letter-spacing: 1px;
    animation: bounce 0.6s ease infinite alternate;
}
.loading-bounce span:nth-child(1) { animation-delay: 0s; }
.loading-bounce span:nth-child(2) { animation-delay: 0.1s; }
.loading-bounce span:nth-child(3) { animation-delay: 0.2s; }
.loading-bounce span:nth-child(4) { animation-delay: 0.3s; }
.loading-bounce span:nth-child(5) { animation-delay: 0.4s; }
.loading-bounce span:nth-child(6) { animation-delay: 0.5s; }

@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

/* ===== 1. Gradient Text for Main Titles ===== */
.main-wrap h2 {
    background: linear-gradient(135deg, #003366 0%, #004d99 50%, #357a7d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== 2. Card Glass Effect ===== */
.section-card {
    background: rgba(248, 249, 250, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ===== 3. Button Modern Styling ===== */
.btn-master, .btn-phd {
    display: inline-block;
    padding: clamp(10px, 1.5vw + 5px, 14px) clamp(20px, 3vw + 10px, 36px);
    border-radius: 50px;
    font-weight: 600;
    font-size: clamp(13px, 0.8vw + 8px, 19px);
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}
.btn-master {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff;
    box-shadow: 0 6px 20px rgba(39,174,96,0.3);
}
.btn-phd {
    background: linear-gradient(135deg, #1e8449, #27ae60);
    color: #fff;
    box-shadow: 0 6px 20px rgba(30,132,73,0.3);
}
.btn-master:hover, .btn-phd:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

/* ===== 4. Heatmap Modern Table ===== */
#heatmap-container table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
#heatmap-container th {
    padding: clamp(8px, 0.8vw + 4px, 14px) clamp(6px, 0.6vw + 3px, 12px);
    font-size: clamp(10px, 0.7vw + 7px, 15px);
    letter-spacing: 1px;
}
#heatmap-container td {
    padding: clamp(8px, 0.6vw + 4px, 12px) clamp(6px, 0.5vw + 3px, 10px);
    font-size: clamp(10px, 0.7vw + 7px, 15px);
    transition: all 0.3s ease;
}

/* ===== 5. Top Bar Hover Effect ===== */
.top-bar a {
    position: relative;
    padding-bottom: 2px;
}
.top-bar a::after {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 0; height: 1px;
    background: #fff;
    transition: width 0.3s ease;
}
.top-bar a:hover::after {
    width: 100%;
}

/* ===== 6. Footer Link Arrow ===== */
.footer a::after {
    content: ' \2192';
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    display: inline-block;
    margin-left: 2px;
}
.footer a:hover::after {
    opacity: 1;
    transform: translateX(3px);
}

/* ===== 7. Scroll Progress Bar ===== */
#scroll-progress {
    position: fixed; top: 0; left: 0;
    width: 0; height: 3px;
    background: linear-gradient(90deg, #27ae60, #357a7d);
    z-index: 1001;
    transition: width 0.1s;
}

/* ===== Modern Back-to-Top Button ===== */
#back-to-top {
    position: fixed;
    bottom: 35px;
    right: 35px;
    z-index: 999;
    display: none;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #003366, #004d99);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,51,102,0.3);
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0;
    transform: translateY(20px) scale(0.9);
}
#back-to-top.show {
    display: flex !important;
    opacity: 1;
    transform: translateY(0) scale(1);
}
#back-to-top:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0,51,102,0.4);
    background: linear-gradient(135deg, #004d99, #005eb3);
}
#back-to-top:active {
    transform: translateY(0) scale(0.95);
}
#back-to-top svg {
    transition: transform 0.3s ease;
}
#back-to-top:hover svg {
    transform: translateY(-2px);
}
#back-to-top::before {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(0,51,102,0.2);
    animation: ringPulse 2s ease-out infinite;
}
@keyframes ringPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* ===== Floating Admission Buttons ===== */
#float-admission {
    position: fixed;
    bottom: clamp(15px, 2.5vw + 5px, 35px);
    left: clamp(15px, 2.5vw + 5px, 35px);
    z-index: 999;
    display: none;
    flex-direction: column;
    gap: clamp(6px, 0.8vw + 3px, 10px);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
#float-admission.show {
    display: flex !important;
    opacity: 1;
    transform: translateY(0);
}

.float-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 13pt;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.float-btn-master {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}
.float-btn-phd {
    background: linear-gradient(135deg, #1e8449, #27ae60);
}

.float-btn:hover {
    transform: translateX(4px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.float-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.float-btn:hover svg {
    transform: translateX(3px);
}


/* ===== 1. Contact Icons ===== */
.contact-icon { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0; }
.contact-icon svg { width: clamp(16px, 1vw + 8px, 20px); height: clamp(16px, 1vw + 8px, 20px); color: #357a7d; }
.contact-icon a { color: #2d3436; text-decoration: none; }
.contact-icon a:hover { color: #357a7d; }

/* ===== 2. Research Hover ===== */
.section-card-inner > div > div[style*="background: #eafaf1"] {
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.section-card-inner > div > div[style*="background: #eafaf1"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(53,122,125,0.12);
}

/* ===== 3. Lab Hover ===== */
.section-card-inner > div[style*="columns"] p {
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.25s ease;
}
.section-card-inner > div[style*="columns"] p:hover {
    background: #f0f8f5;
    transform: translateX(4px);
}

/* ===== 4. Breadcrumb ===== */
.breadcrumb { padding: clamp(6px, 0.8vw + 3px, 10px) 0 clamp(12px, 1.5vw + 5px, 20px); font-size: clamp(10px, 0.6vw + 7px, 13px); color: #888; }
.breadcrumb a { color: #357a7d; text-decoration: none; }
.breadcrumb a:hover { color: #003366; }
.breadcrumb span { color: #bbb; margin: 0 6px; }

/* ===== Floating Expand Buttons ===== */
.float-btn {
    position: relative;
    width: 52px;
    padding: 14px;
    border-radius: 26px;
    white-space: nowrap;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
}
.float-btn .float-label {
    display: inline-block;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-width 0.35s cubic-bezier(0.22, 1, 0.36, 1), margin-left 0.35s ease;
    font-size: 13pt;
    font-weight: 600;
    white-space: nowrap;
    vertical-align: middle;
}
.float-btn:hover {
    width: auto;
    padding: 14px 22px;
}
.float-btn:hover .float-label {
    opacity: 1;
    max-width: 200px;
    margin-left: 10px;
}
.float-btn svg {
    flex-shrink: 0;
    vertical-align: middle;
}

@media (max-width: 768px) {
    #float-admission { bottom: 100px; left: 15px; }
    .float-btn { width: 46px; padding: 12px; }
    .float-btn:hover { padding: 12px 16px; }
}

