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

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo a:hover {
    opacity: 0.8;
}

.logo-img {
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #2E86AB;
}

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

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #2E86AB;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.home-link {
    display: flex;
    align-items: center;
    gap: 5px;
}

.home-icon {
    width: 25px;
    height: 25px;
    object-fit: contain;
    margin-right: 5px;
}

.divider {
    color: #ccc;
    font-size: 14px;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.search-btn:hover {
    color: #2E86AB;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    height: 800px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/header-home.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(46, 134, 171, 0.1);
}

.hero-content {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    backdrop-filter: blur(10px);
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    transform: scale(0.8);
}

.hero-logo {
    margin-bottom: 30px;
}

.hero-logo-img {
    height: 120px;
    width: auto;
    object-fit: contain;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.3;
    color: white;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.btn-secondary:hover {
    background: white;
    color: #333;
    transform: translateY(-2px);
}

/* Search Section */
.search-section {
    padding: 80px 0;
    background: #e2e2e2;
}

.search-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.search-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.search-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.search-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
}

.search-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #2E86AB;
}

.search-submit {
    padding: 15px 30px;
    background: #2E86AB;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-submit:hover {
    background: #1e5f7a;
}

/* News & Contact Section */
.news-contact-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.news-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.section-title-container {
    position: relative;
    margin-bottom: 40px;
    overflow: visible;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
    color: #333;
    position: relative;
    z-index: 2;
    display: inline-block;
}

.title-overlay {
    position: absolute;
    top: 0;
    left: calc(100% + 20px);
    z-index: 1;
    width: 150px;
    height: 100%;
}

.overlay-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.8;
}

/* 이미지가 로드되지 않을 경우를 위한 대체 스타일 */
.title-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(46, 134, 171, 0.1),
        rgba(46, 134, 171, 0.1) 10px,
        transparent 10px,
        transparent 20px
    );
    z-index: -1;
}

.news-category,
.contact-category {
    background: #e9ecef;
    padding: 8px 16px;
    margin-bottom: 20px;
    border-left: 4px solid #2E86AB;
}

.category-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-item {
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.news-title {
    font-size: 16px;
    color: #333;
    font-weight: 400;
}

.contact-info {
    margin-bottom: 30px;
}

.contact-item {
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.contact-title {
    font-size: 16px;
    color: #333;
    font-weight: 400;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-link:hover {
    background: rgba(46, 134, 171, 0.05);
}

.contact-icon {
    font-size: 16px;
    color: #28a745;
    font-weight: bold;
}

.contact-icon-blue {
    font-size: 16px;
    color: #2E86AB;
}

.contact-text {
    font-size: 16px;
    color: #333;
    font-weight: 400;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: #f8f9fa;
}

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

.service-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-image {
    height: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.service-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 2;
}

.service-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
}

/* Consult Section */
.consult-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.consult-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/bg-consult.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.consult-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.consult-subtitle {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.consult-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.consult-description {
    font-size: 18px;
    color: #333;
    opacity: 0.9;
}

.btn-consult {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-consult:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: #1e3a5f;
    padding: 40px 0;
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 60px;
    align-items: center;
}

.footer-logo-img {
    height: 60px;
    width: auto;
}

.footer-details {
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.9;
}

.footer-details p {
    margin-bottom: 5px;
}

.footer-details a {
    color: inherit;
    text-decoration: none;
}

.footer-details a:hover {
    color: inherit;
    text-decoration: none;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content {
        padding: 10px;
        text-align: center;
    }

    .hero-logo-img {
        height: 80px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .search-form {
        flex-direction: column;
    }

    .search-input,
    .search-submit {
        width: 100%;
    }

    .news-contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .consult-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .consult-title {
        font-size: 28px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-links {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: auto;
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 24px;
    }

    .search-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    .hero-logo-box {
        width: 120px;
        height: 120px;
    }

    .hero-logo-text {
        font-size: 28px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}
