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

body {
    font-family: 'Malgun Gothic', '맑은 고딕', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    word-break: keep-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 모든 텍스트 요소에 자동 줄바꿈 적용 */
p, h1, h2, h3, h4, h5, h6, div, span, li, td, th, label, a, button {
    word-break: keep-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

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

/* Header Styles */
.header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    height: 50px;
    width: auto;
}

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

.nav ul li {
    position: relative;
}

.nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 1.1em;
    padding: 10px 15px;
    display: block;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav ul li a:hover {
    color: #0066cc;
}

.dropdown > a::after {
    content: ' ▼';
    font-size: 0.7em;
    margin-left: 5px;
    vertical-align: middle;
}

.dropdown {
    padding-bottom: 5px;
}

.dropdown-menu {
    display: none !important;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 200px;
    padding: 8px 0;
    list-style: none;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 1001;
}

/* 드롭다운과 메뉴 사이의 간격을 채우는 가상 요소 */
.dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 5px;
    background: transparent;
    z-index: 1002;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
    margin: 0;
}

.dropdown-menu li a {
    padding: 12px 20px;
    display: block;
    color: #333;
    font-weight: 600;
    font-size: 1em;
    transition: background-color 0.2s, color 0.2s;
    border-radius: 0;
}

.dropdown-menu li a:hover {
    background-color: #f0f7ff;
    color: #0066cc;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Banner Section - Swiper */
.banner-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.banner-swiper {
    width: 100%;
    height: 500px;
    position: relative;
}

.banner-swiper .swiper-slide {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.banner-swiper .swiper-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    animation: kenBurns 20s ease-in-out infinite;
}

@keyframes kenBurns {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.banner-swiper .swiper-slide-inner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    color: #fff;
}

.banner-swiper .swiper-slide-contents {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-swiper .elementor-slide-heading,
.banner-swiper .swiper-slide-heading {
    font-size: 35px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    word-break: keep-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.banner-swiper .elementor-slide-description,
.banner-swiper .swiper-slide-description {
    font-size: 17px;
    line-height: 1.4;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    word-break: keep-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.banner-swiper .elementor-slide-description:not(:last-child),
.banner-swiper .swiper-slide-description:not(:last-child),
.banner-swiper .elementor-slide-heading:not(:last-child),
.banner-swiper .swiper-slide-heading:not(:last-child) {
    margin-bottom: 30px;
}

.banner-swiper .elementor-slide-description img,
.banner-swiper .swiper-slide-description img {
    height: 30px;
    vertical-align: middle;
    margin: 0 5px;
}

.banner-swiper .elementor-slide-button,
.banner-swiper .swiper-slide-button {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s;
    text-shadow: none;
}

.banner-swiper .elementor-slide-button:hover,
.banner-swiper .swiper-slide-button:hover {
    background: #fff;
    color: #0066cc;
    border-color: #fff;
}

.banner-swiper .animated.fadeInUp {
    animation: fadeInUp 1s ease-out;
}

/* Swiper Pagination Customization */
.banner-swiper .swiper-pagination {
    bottom: 20px;
}

.banner-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #fff;
    opacity: 0.5;
}

.banner-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: #0066cc;
}

/* Swiper Navigation Buttons Customization */
.banner-swiper .swiper-button-next,
.banner-swiper .swiper-button-prev {
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: background 0.3s;
}

.banner-swiper .swiper-button-next:hover,
.banner-swiper .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.5);
}

.banner-swiper .swiper-button-next::after,
.banner-swiper .swiper-button-prev::after {
    font-size: 20px;
    font-weight: bold;
}

/* Page Header */
.page-header {
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
    color: #fff;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.page-header h1 {
    position: relative;
    z-index: 1;
    font-size: 2.5em;
    margin-bottom: 20px;
    word-break: keep-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.page-header p {
    position: relative;
    z-index: 1;
    font-size: 1.2em;
}

/* Content Section */
.content-section {
    padding: 60px 0;
}

.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-wrapper h2 {
    font-size: 2em;
    margin-bottom: 30px;
    color: #0066cc;
    text-align: center;
}

.content-wrapper p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: center;
}

.greeting-content {
    text-align: center;
    max-width: 100%;
    word-break: keep-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.greeting-content p {
    text-align: center;
    font-size: 1.1em;
    line-height: 2;
    margin-bottom: 20px;
    word-break: keep-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
}

.content-image {
    width: 100%;
    max-width: 800px;
    margin: 30px auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Main Page Styles */
.main-banner {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    margin-bottom: 50px;
}

.main-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: #0066cc;
    word-break: keep-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

.service-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card-content {
    padding: 20px;
}

.service-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #333;
    word-break: keep-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* About Us Section */
.about-us-intro {
    text-align: center;
    font-size: 1.1em;
    color: #333;
    line-height: 1.8;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.about-us-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.about-us-image {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 40px;
    transition: transform 0.3s;
}

.about-us-item:hover .about-us-image {
    transform: scale(1.05);
}

.about-us-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.about-us-overlay {
    position: relative;
    z-index: 2;
    color: #fff;
}

.about-us-overlay h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #fff;
    font-weight: bold;
    line-height: 1.4;
}

.about-us-overlay p {
    color: #fff;
    line-height: 1.6;
    font-size: 0.95em;
    margin: 0;
    word-break: keep-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* Best Service Section */
.best-service-section {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

.best-service-bg {
    width: 100%;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.best-service-overlay {
    width: 100%;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.best-service-title {
    font-size: 2.5em;
    font-weight: bold;
    color: #fff;
    margin-bottom: 30px;
    line-height: 1.3;
    word-break: keep-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.best-service-description {
    font-size: 1.2em;
    color: #fff;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    word-break: keep-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.best-service-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: #8B4513;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}

.best-service-button:hover {
    background-color: #6B3410;
    transform: translateY(-2px);
}

/* Partners Section */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.partner-logo {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    transition: transform 0.3s;
}

.partner-logo:hover {
    transform: scale(1.05);
}

.partner-logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

/* History Timeline */
.history-timeline {
    position: relative;
    padding: 40px 0;
}

.history-item {
    display: flex;
    margin-bottom: 40px;
    align-items: center;
}

.history-year {
    font-size: 1.5em;
    font-weight: bold;
    color: #0066cc;
    min-width: 100px;
    margin-right: 30px;
}

.history-content {
    flex: 1;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
}

/* Location Section */
.location-info {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.location-info h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #0066cc;
}

.location-info p {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.location-map-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-top: 40px;
    align-items: start;
}

/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-info h3 {
    margin-bottom: 15px;
    font-size: 1.5em;
}

.footer-info p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 8px;
}

.footer-info p strong {
    color: #fff;
    font-weight: 600;
}

.footer-contact p {
    margin-bottom: 10px;
    color: #ccc;
    line-height: 1.8;
}

.footer-contact p strong {
    color: #fff;
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #ccc;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    padding: 10px;
    z-index: 1003;
    position: relative;
}

.mobile-menu-toggle:hover {
    color: #0066cc;
}

/* Offcanvas Backdrop */
.offcanvas-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.15s linear;
}

.offcanvas-backdrop.show {
    display: block;
    opacity: 1;
}

/* 모바일에서 오버레이 제거 */
@media (max-width: 768px) {
    .offcanvas-backdrop {
        display: none !important;
        background-color: transparent;
    }
    
    .offcanvas-backdrop.show {
        display: none !important;
    }
}

/* Body scroll lock when menu is open */
body.menu-open {
    overflow: hidden;
}

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

    .header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
    }

    .logo img {
        height: 40px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        background-color: #ffffff !important;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        padding: 20px 0;
        z-index: 1045;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        overflow-y: auto;
    }

    .nav.active {
        transform: translateX(0);
        background-color: #ffffff !important;
    }

    .nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 0;
    }

    .nav ul li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav ul li a {
        padding: 15px 20px;
        display: block;
        width: 100%;
        font-weight: 700;
        font-size: 1.1em;
    }

    .dropdown > a::after {
        float: right;
        margin-right: 20px;
    }

    .dropdown-menu {
        position: static !important;
        display: none !important;
        box-shadow: none;
        padding: 0;
        margin: 0;
        background-color: #f9f9f9;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        border-radius: 0;
        width: 100%;
    }

    .dropdown.active .dropdown-menu {
        display: block !important;
    }

    .dropdown-menu li {
        width: 100%;
    }

    .dropdown-menu li a {
        padding: 12px 40px;
        color: #666;
        font-weight: 600;
        font-size: 1em;
    }

    .banner-swiper {
        height: 300px;
    }
    
    .banner-swiper .swiper-slide-inner {
        padding: 30px 20px;
    }
    
    .banner-swiper .elementor-slide-heading,
    .banner-swiper .swiper-slide-heading {
        font-size: 23px;
        line-height: 1;
        margin-bottom: 15px;
    }
    
    .banner-swiper .elementor-slide-description,
    .banner-swiper .swiper-slide-description {
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 15px;
    }
    
    .banner-swiper .swiper-slide-description img {
        height: 20px;
    }
    
    .banner-swiper .swiper-slide-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* 모바일에서 네비게이션 버튼 숨기기 */
    .banner-swiper .swiper-button-next,
    .banner-swiper .swiper-button-prev {
        display: none;
    }
    
    /* 모바일에서 페이지네이션 크기 조정 */
    .banner-swiper .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }

    .page-header {
        padding: 60px 0;
    }

    .page-header h1 {
        font-size: 1.8em;
    }

    .main-section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .services-grid,
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-us-intro {
        font-size: 1em;
        margin-bottom: 30px;
        padding: 0 15px;
    }
    
    .about-us-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-us-item {
        margin-bottom: 0;
    }
    
    .about-us-image {
        height: 300px;
        padding: 30px 20px;
    }
    
    .about-us-overlay {
        width: 100%;
        max-width: 100%;
    }
    
    .about-us-overlay h3 {
        font-size: 1.5em;
        margin-bottom: 15px;
        word-break: keep-all;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .about-us-overlay p {
        font-size: 1em;
        word-break: keep-all;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        width: 100%;
        max-width: 100%;
    }
    
    .about-us-overlay p br {
        display: none;
    }
    
    .best-service-bg {
        min-height: 400px;
    }
    
    .best-service-overlay {
        padding: 60px 20px;
    }
    
    .best-service-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    
    .best-service-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    
    .best-service-button {
        padding: 12px 30px;
        font-size: 1em;
    }

    .service-card {
        margin-bottom: 0;
    }

    .service-card img {
        height: 180px;
    }

    .service-card-content {
        padding: 15px;
    }

    .service-card h3 {
        font-size: 1.3em;
    }

    .partner-logo {
        height: 100px;
        padding: 15px;
    }

    .partner-logo img {
        max-height: 60px;
    }

    .history-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .history-year {
        margin-bottom: 10px;
    }

    .location-map-wrapper {
        grid-template-columns: 1fr !important;
        gap: 20px;
        margin-top: 30px;
    }

    .location-info {
        padding: 20px;
    }

    .location-info h3 {
        font-size: 1.3em;
    }

    .map-container {
        height: 300px;
    }

    .content-section {
        padding: 40px 0;
    }

    .content-wrapper {
        padding: 0 15px;
    }

    .content-wrapper h2 {
        font-size: 1.6em;
    }
    
    .greeting-content {
        padding: 0 10px;
    }
    
    .greeting-content p {
        font-size: 1em;
        line-height: 1.8;
        word-break: keep-all;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }

    .footer {
        padding: 30px 0 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-info h3 {
        font-size: 1.3em;
    }
}

