@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Lora:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --text-dark: #1a1a1a;
    --text-muted: #5a5a5a;
    --primary-blue: #2c3e50;
    --accent-blue: #3498db;
    --border-color: #e9ecef;
}

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

body {
    background-color: var(--bg-white);
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Lora', serif;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.2;
}

/* --- NAVIGATION --- */
nav {
    padding: 4px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    z-index: 1000;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--primary-blue);
    text-transform: uppercase;
}

.logo span { color: var(--accent-blue); }

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.92rem;
    font-weight: 550;
    margin-left: 22px;
    text-transform: none;
    letter-spacing: -0.1px;
    transition: 0.3s;
}

.nav-links a:hover { color: var(--accent-blue); }

/* --- NAVIGATION DROPDOWN --- */
.dropdown {
    position: relative;
    display: inline-block;
    margin-left: 22px;
}

.dropdown > a {
    margin-left: 0 !important;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    visibility: hidden;
    position: absolute;
    background-color: rgba(255, 255, 255, 0.98);
    min-width: 240px;
    box-shadow: 0px 10px 35px rgba(0,0,0,0.08);
    z-index: 1001;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 10px 0;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
    top: 100%;
    left: 0;
    margin-top: 8px;
}

/* Floating bridge to avoid losing hover when moving mouse down */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
}

.dropdown-content a {
    color: var(--text-dark);
    padding: 12px 24px;
    text-decoration: none;
    display: block;
    margin-left: 0;
    text-transform: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: normal;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 3px solid transparent;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: rgba(52, 152, 219, 0.04);
    color: var(--accent-blue);
    padding-left: 28px;
    border-left: 3px solid var(--accent-blue);
}

.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* --- SECTIONS --- */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 100px 5%;
}

.hero {
    padding: 120px 5%;
    text-align: center;
    background-color: var(--bg-light);
}

.hero h1 { font-size: 3.5rem; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; color: var(--text-muted); max-width: 700px; margin: auto; }

/* --- CARDS --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.academic-card {
    padding: 40px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: 0.3s;
}

.academic-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    border-color: var(--accent-blue);
}

.person-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--bg-light);
    background-color: var(--bg-light);
}

/* --- BUTTONS --- */
.btn {
    padding: 14px 30px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 2px;
    display: inline-block;
    transition: 0.3s;
    font-size: 0.9rem;
}

.btn-dark { background: var(--primary-blue); color: #fff; }
.btn-dark:hover { background: var(--accent-blue); }

/* --- FOOTER --- */
footer {
    padding: 80px 8%;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

/* Secret Member Security Masks */
.secret-container {
    position: relative;
}
.secret-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
    border: 1px solid #333;
}
.secret-mask:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.4);
}
.secret-mask span {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 10px;
}
.secret-mask .lock-icon {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

#mask-tuan {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.4)), url('images/bg_area1.png') no-repeat center/cover;
}
#mask-duy {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.4)), url('images/bg_area2.png') no-repeat center/cover;
}
#mask-luong {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.4)), url('images/bg_tree.png') no-repeat center/cover;
}
#mask-hieu {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.4)), url('images/bg_brix.png') no-repeat center/cover;
}
#mask-thuan {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6)), url('images/thuan_cover.png') no-repeat center/cover;
}
#mask-huy {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6)), url('images/huy_cover.png') no-repeat center/cover;
}
#mask-nhi {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6)), url('images/nhi_cover.png') no-repeat center/cover;
}
#mask-long {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6)), url('images/long_cover.png') no-repeat center/cover;
}
#mask-uyen {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6)), url('images/uyen_cover.png') no-repeat center/cover;
}
#mask-khang {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6)), url('images/khang_cover.png') no-repeat center/cover;
}

.secret-content {
    opacity: 0;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}




/* --- MOBILE RESPONSIVENESS OVERRIDES --- */
@media (max-width: 768px) {
    /* Navigation */
    nav {
        flex-direction: column !important;
        align-items: center !important;
        padding: 15px 4% !important;
        gap: 12px !important;
    }
    
    .logo {
        font-size: 1.2rem !important;
    }
    
    .nav-links {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px 16px !important;
        width: 100% !important;
    }
    
    .nav-links a, .dropdown {
        margin-left: 0 !important;
        font-size: 0.82rem !important;
    }
    
    .dropdown-content {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) translateY(10px) !important;
        width: 200px !important;
        min-width: 0 !important;
        box-shadow: 0px 10px 30px rgba(0,0,0,0.12) !important;
    }
    
    .dropdown:hover .dropdown-content {
        transform: translateX(-50%) translateY(0) !important;
    }
    
    /* Hero Section */
    header.hero {
        flex-direction: column !important;
        min-height: auto !important;
    }
    
    header.hero > div:first-child {
        max-width: 100% !important;
        min-width: 100% !important;
        padding: 50px 6% !important;
    }
    
    header.hero > div:last-child {
        height: 250px !important;
        width: 100% !important;
    }
    
    .hero h1 {
        font-size: 2.2rem !important;
    }
    
    /* Containers & Grids */
    .container {
        padding: 60px 6% !important;
    }
    
    /* Stack all side-by-side grids and flex elements */
    div[style*="display: grid; grid-template-columns: 1fr 1fr"],
    div[style*="display: grid; grid-template-columns: 1fr 1.2fr"],
    div[style*="display: grid; grid-template-columns: 1.1fr 0.9fr"],
    div[style*="display: grid; grid-template-columns: 1fr 2fr"],
    div[style*="display: grid; grid-template-columns: 250px 1fr"],
    div[style*="display: grid; grid-template-columns: 80px 1fr"],
    div[style*="display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr))"],
    div[style*="margin-top: 60px; display: grid; grid-template-columns: 1fr 1fr"],
    #video-feed-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    /* Adjust padding of cards */
    div[style*="padding: 60px"] {
        padding: 30px !important;
    }
    
    /* Academic recruiting detail cards columns stacking */
    div[style*="display: grid; grid-template-columns: 1fr 1fr; gap: 20px"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    /* Footer */
    footer > div:first-child {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    footer {
        padding: 50px 6% 30px !important;
    }
}

