/* KBCCC2026 Style Sheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Noto+Sans+JP:wght@300;400;500;700&family=Cinzel:wght@600&display=swap');

:root {
    --primary-color: #005f73;
    --secondary-color: #0a9396;
    --accent-color: #94d2bd;
    --text-color: #333;
    --light-bg: #f0f4f8;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --header-height: 100px;
    /* Increased for safety */
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

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

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: auto;
    /* Allow height to adjust */
    min-height: 80px;
    display: flex;
    align-items: center;
    padding: 15px 0;
    /* Added vertical padding */
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 40px;
    /* Added spacing between logo and menu */
}

.logo {
    font-family: 'Cinzel', serif;
    /* More premium font */
    font-weight: 600;
    font-size: 1.8rem;
    color: var(--primary-color);
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

/* Navigation */
nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    /* Reduced row gap to 10px, column gap 20px */
    justify-content: flex-start;
    /* Left align */
}

nav a {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.9rem;
    position: relative;
    line-height: 1.4;
    /* Tighter line height for text */
}

nav a:hover {
    color: var(--secondary-color);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav span {
    color: #aaa;
    cursor: default;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    position: relative;
    text-align: center;
    background: var(--white);
    overflow: hidden;
}

.hero img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Sections */
section {
    padding: 60px 0;
    /* scroll-margin-top removed to prevent excessive spacing with scroll-padding-top */
}

h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: 10px auto 0;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 30px;
}

/* Overview */
.overview-list {
    display: grid;
    gap: 15px;
}

.overview-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.overview-item:last-child {
    border-bottom: none;
}

.label {
    font-weight: 700;
    color: var(--secondary-color);
}

.value a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Faculty */
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.faculty-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center content */
    padding-top: 30px;
}

.faculty-card:hover {
    transform: translateY(-5px);
}

.faculty-img {
    width: 220px;
    /* Increased size */
    height: 220px;
    /* Square aspect ratio for profile feel */
    object-fit: cover;
    /* Ensures it fills the square */
    object-position: center top;
    /* Focus on face */
    border-radius: 50%;
    /* Circular image for premium feel */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.faculty-info {
    padding: 20px;
    text-align: center;
    /* Center text */
}

.faculty-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.faculty-title {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.faculty-bio {
    font-size: 0.9rem;
    text-align: left;
    /* Keep bio left-aligned or justified for readability */
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        /* flex-direction: column;  <-- Removed this to keep logo and hamburger in one row */
        justify-content: space-between;
        align-items: center;
        height: auto;
        gap: 0;
        /* Reset gap */
    }

    header {
        height: 70px;
        /* Fixed height for mobile header */
        padding: 0;
    }

    /* Hamburger Menu */
    .hamburger {
        display: block;
        cursor: pointer;
        width: 30px;
        height: 20px;
        position: relative;
        z-index: 1001;
        /* Ensure it's above the nav */
    }

    .hamburger span {
        display: block;
        position: absolute;
        height: 2px;
        width: 100%;
        background: var(--primary-color);
        border-radius: 2px;
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: .25s ease-in-out;
    }

    .hamburger span:nth-child(1) {
        top: 0px;
    }

    .hamburger span:nth-child(2) {
        top: 9px;
    }

    .hamburger span:nth-child(3) {
        top: 18px;
    }

    /* Hamburger Active State (X shape) */
    .hamburger.active span:nth-child(1) {
        top: 9px;
        transform: rotate(135deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
        left: -60px;
    }

    .hamburger.active span:nth-child(3) {
        top: 9px;
        transform: rotate(-135deg);
    }

    /* Mobile Navigation */
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hide off-screen */
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        z-index: 1000;
        transition: right 0.3s ease;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    nav.active {
        right: 0;
        /* Slide in */
    }

    nav ul {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        justify-content: center;
    }

    nav a,
    nav span {
        font-size: 1.2rem;
        display: block;
    }

    .overview-item {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    body.no-scroll {
        overflow: hidden;
    }
}

/* Hide hamburger on desktop */
.hamburger {
    display: none;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
}