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

:root {
    /* Colors - Inspired by the reference portal */
    --primary: #004ea1;
    --primary-light: #00a0e9;
    --secondary: #2c3e50;
    --text: #333333;
    --text-muted: #666666;
    --bg: #ffffff;
    --bg-alt: #f4f7fa;
    --border: #e1e8f0;
    --white: #ffffff;

    /* Portal Specifics */
    --header-top-bg: #002d5d;
    --accent: #ff6b6b;

    /* Design Tokens */
    --radius: 8px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --container-max: 1200px;
    --transition: all 0.3s ease;

    font-family: 'Noto Sans KR', 'Inter', sans-serif;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1,
h2,
h3,
h4 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: #003a7a;
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

/* Header (3 Levels) */
.notice-bar {
    background: var(--header-top-bg);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.notice-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

.header-nav {
    background: var(--white);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
}

.header-nav ul {
    display: flex;
}

.header-nav a {
    padding: 1rem 2rem;
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
}

.header-nav a:hover {
    color: var(--primary);
    background: #f8fbff;
}

/* Hero Section with Quick Form */
.hero-portal {
    position: relative;
    height: 500px;
    background: #eee;
    overflow: hidden;
}

.hero-slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quick-inquiry {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.quick-inquiry h3 {
    font-size: 1.25rem;
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

/* Quick Icons Grid */
.quick-icons {
    padding: 3rem 0;
    background: #f8fbff;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: var(--transition);
}

.icon-item:hover .icon-circle {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-5px);
}

/* Academic News Section */
.portal-news {
    padding: 4rem 0;
}

.news-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.news-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.notice-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
}

/* Success Story Section (Trophy Background) */
.success-section {
    position: relative;
    padding: 6rem 0;
    background: url('https://images.unsplash.com/photo-1579546929518-9e396f3cc809?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    color: var(--white);
}

.success-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.success-section .container {
    position: relative;
    z-index: 2;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.testi-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.testi-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 2px solid var(--primary-light);
}

/* Logo Row */
.logo-row {
    padding: 2rem 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.logo-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.7;
}

.logo-container img {
    height: 40px;
    grayscale: 100%;
    transition: 0.3s;
}

.logo-container img:hover {
    grayscale: 0;
    opacity: 1;
}

/* Footer - Dark Portal Style */
.site-footer {
    background: #222222;
    color: #999;
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    padding-bottom: 2rem;
    border-bottom: 1px solid #333;
    margin-bottom: 2rem;
}

.footer-links-group {
    display: flex;
    gap: 3rem;
}

.footer-links-group a {
    color: #ccc;
}

.footer-links-group a:hover {
    color: var(--white);
}

.copy-info {
    line-height: 1.8;
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .icon-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .news-layout {
        grid-template-columns: 1fr;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .header-nav {
        display: none;
    }

    .quick-inquiry {
        display: none;
    }
}