@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@400;700;900&display=swap');

html { scroll-behavior: smooth; }

body { 
    font-family: 'Pretendard', sans-serif; 
    margin: 0; 
    color: #333; 
    line-height: 1.6; 
    background-color: #f8f9fa;
}

/* Header & Logo Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* 이미지 로고 스타일 */
.logo-wrapper { 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
}

.logo-img {
    height: 70px; /* 로고 높이를 조절하여 메뉴바에 맞춤 (필요시 숫자 변경 가능) */
    width: auto;
}

/* Navigation & Dropdown Styles */
.nav-links { display: flex; align-items: center; }
.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s;
}
.nav-links > a { margin-left: 30px; }
.nav-links a:hover, .dropdown:hover .dropbtn { color: #0033A0; }

/* 드롭다운 컨테이너 */
.dropdown {
    position: relative;
    display: inline-block;
    margin-left: 30px;
}
.dropdown .dropbtn { padding: 10px 0; cursor: pointer; }

/* 드롭다운 숨겨진 메뉴 상자 */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0px 8px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    top: 100%;
    left: -20px;
    overflow: hidden;
    z-index: 1;
}

/* 드롭다운 세부 항목 */
.dropdown-content a {
    color: #555;
    padding: 15px 20px;
    text-decoration: none;
    display: block;
    margin-left: 0;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s, padding-left 0.2s;
}
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover { 
    background-color: #f8f9fa; 
    color: #0033A0; 
    padding-left: 25px; 
}

/* 마우스를 올렸을 때 드롭다운 메뉴 보이기 */
.dropdown:hover .dropdown-content { display: block; }

/* Hero Section */
.hero { 
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/main.jpg');
    background-size: cover; 
    background-position: center; 
    color: white; 
    padding: 120px 20px; 
    text-align: center;
}
.hero h1 { font-size: 3rem; margin-bottom: 10px; }
.hero p { font-size: 1.2rem; }

/* Services Section */
.services-section { padding: 80px 20px; text-align: center; }
.services-section h2 { font-size: 2rem; color: #002244; margin-bottom: 40px; }
.container { max-width: 1200px; margin: auto; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card { 
    background: #fff; 
    border-radius: 10px; 
    overflow: hidden; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.08); 
    transition: transform 0.3s ease;
}
.card:hover { transform: translateY(-5px); }
.card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.card-content { padding: 25px 20px; }
.card h3 { margin: 0 0 10px 0; color: #002244; font-size: 1.2rem; }
.card p { margin: 0; color: #666; font-size: 0.95rem; }

/* About Us Section */
.about-section { padding: 80px 20px; background-color: #fff; text-align: center; }
.about-section h2 { font-size: 2rem; color: #002244; margin-bottom: 20px; }
.about-section p { max-width: 800px; margin: auto; font-size: 1.1rem; color: #555; line-height: 1.8; }

/* Footer */
footer { background: #002244; color: white; padding: 60px 20px; text-align: center; }
footer h2 { margin-top: 0; }
.btn { 
    background: #0056b3; 
    color: white; 
    padding: 15px 35px; 
    text-decoration: none; 
    border-radius: 5px; 
    display: inline-block; 
    margin-top: 20px; 
    font-weight: bold;
    transition: background 0.3s;
}
.btn:hover { background: #004494; }

/* Mobile Responsive */
@media (max-width: 900px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .grid { grid-template-columns: 1fr; }
    .header { flex-direction: column; text-align: center; gap: 15px; padding: 20px; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .nav-links > a, .dropdown { margin-left: 0; }
}
/* Footer Contact Links */
footer p {
    margin: 10px 0;
}
footer a:hover {
    color: #ffcc00 !important; /* 마우스를 올렸을 때 살짝 강조색으로 변경 */
    transition: 0.3s;
}
