/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    color: #333;
    background-color: #f3f3f3;
}

a {
    text-decoration: none;
    color: inherit;
}

.wrapper {
    width: 100%;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
p {
    margin-bottom: 20px;
}

.rowtitle {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.rowsubtitle {
    font-size: 1.5rem;
    font-weight: 300;
}

.rowtext p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #555;
}

/* Sections Common */
.section-row {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    text-align: center;
}

/* 1. Hero Section */
.header-container {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    background-color: #000;
    overflow: hidden;
    color: #fff;
    margin-top: 112px;
    /* 상단 고정 네비게이션 높이만큼 띄움 */
}

/* 동영상/이미지와 텍스트 사이를 분리하는 어두운 오버레이 막 추가 */
.header.clearfix::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    /* 너무 어둡지 않도록 투명도 낮춤 */
    z-index: 2;
    pointer-events: none;
}

.header.clearfix {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.headervideo {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 1;
    /* 비디오 자체는 100% 선명하게 렌더링 */
}

.header-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    /* 오버레이보다 위로 올려서 텍스트 완전 선명하게 */
    text-align: center;
    width: 100%;
}

.header-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    opacity: 1;
    /* 글씨는 무조건 완벽한 불투명 */
}

.header-content h2 {
    font-size: 2rem;
    font-weight: 300;
    color: #ffffff;
    opacity: 1;
    /* 글씨는 무조건 완벽한 불투명 */
}

/* 2. Intro / Locations Section */
.simple-row.white {
    background-color: #fff;
}

/* 3. Tabs (Locations) */
.tabbedcontent {
    background-color: #f9f9f9;
    padding: 40px 0;
}

.coxytabs-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.coxytabs-control {
    padding: 10px 20px;
    font-weight: bold;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.coxytabs-control:hover,
.coxytabs-control.active {
    color: #333;
    border-bottom-color: #333;
}

.multibutton-fixed {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #333;
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.3s;
    border: 2px solid #333;
}

.button:hover {
    background-color: transparent;
    color: #333;
}

/* 4 & 5. Music & Conferences (Grid Layout) */
.column-row.grey {
    background-color: #f3f3f3;
}

.column-row.darkgrey {
    background-color: #e0e0e0;
}

.grid.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.imagecomponent {
    padding: 0 15px;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: center;
}

.imagecomponent-image {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.imagecomponent-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

.imagecomponent-image:hover img {
    transform: scale(1.05);
}

.imagecomponent-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.imagecomponent-text p {
    font-size: 0.95rem;
    color: #666;
}

/* 6 & 8. College & Blog (Image Background Rows) */
.imgbg {
    background-size: cover;
    background-position: center;
    color: #fff;
    position: relative;
}

/* Semi-transparent overlay for readability */
.imgbg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.imgbg .section-row {
    position: relative;
    z-index: 2;
}

.imgbg .rowtext p {
    color: #eee;
}

/* Override College specific overlay color from JS if applied */
#college::before {
    background: var(--bg-color, rgba(0, 0, 0, 0.5));
    opacity: 0.8;
}

.imgbg .button {
    border-color: #fff;
}

.imgbg .button:hover {
    background-color: #fff;
    color: #333;
}

/* 7. Unity Section */
#unity-section {
    background-color: #fff;
}

/* Errors */
[class^="video-error-"] {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation Bar */
.main-nav {
    position: fixed;
    /* 스크롤 시 화면 상단 고정 */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* 구분을 위한 미세한 그림자 */
}

/* Utility Bar (Top Tier) */
.nav-utility {
    background-color: #fafafa;
    border-bottom: 1px solid #f0f0f0;
    padding: 8px 40px;
    display: flex;
    justify-content: flex-end;
    font-size: 0.75rem;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-utility a {
    margin-left: 20px;
    transition: color 0.2s;
}

.nav-utility a:hover {
    color: #000;
}

/* Main Navbar (Bottom Tier) */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 40px;
}

.nav-logo {
    color: #000;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.nav-logo-text .logo-denom {
    font-size: 0.75em;
    font-weight: 600;
}

.nav-logo-text .logo-mark {
    height: 24px;
    margin-right: 6px;
    vertical-align: middle;
}

.nav-logo-icon {
    display: none;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-link {
    color: #000;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.24px;
    transition: opacity 0.2s;
}

/* 마우스를 메뉴 아이템(드롭다운 포함) 위에 올린 동안 메인 글씨가 계속 0.5 투명도를 유지하도록 변경 */
.nav-item:hover .nav-link {
    opacity: 0.5;
}

/* Nav Dropdown */
.nav-item {
    position: relative;
    padding: 10px 0;
    /* 마우스 호버 범위를 확보 */
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 10px 0;
    z-index: 10000;
    border-top: 3px solid #000;
}

/* 마우스가 메뉴에서 드롭다운으로 수직으로 내려갈 때 틈새 공간(Gap) 때문에 창이 닫히는 현상을 방지하는 투명 다리 추가 */
.nav-dropdown::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    /* 투명 다리가 너무 넓어 옆 메뉴를 건드리지 않게 폭 지정 */
    height: 20px;
}

/* 화살표 꼭지(꼬리) 모양 추가 */
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 8px 8px 8px;
    border-style: solid;
    border-color: transparent transparent #000 transparent;
}

.nav-item.has-dropdown:hover .nav-dropdown {
    display: block;
    animation: dropdownFadeIn 0.2s ease-out forwards;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.nav-dropdown li a {
    display: block;
    padding: 12px 20px;
    color: #444;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: none;
    /* 드롭다운은 대문자 고정 안 함 */
    transition: background-color 0.2s, color 0.2s;
    text-align: center;
}

.nav-dropdown li a:hover {
    background-color: #f5f5f5;
    color: #000;
}