:root {
    --primary-color: #ff9a9e;
    --secondary-color: #fecfef;
    --text-color: #333;
    --bg-color: #fafafa;
    --card-bg: #fff;
}

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

body {
    font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

header {
    text-align: center;
    background-color: var(--primary-color);
    color: white;
    padding-top: 1.5rem;
}

.header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.logo-icon {
    font-size: 2.8rem;
    color: #fff;
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.1));
}

header h1 {
    font-family: 'Jua', sans-serif;
    font-size: 3.2rem;
    font-weight: normal;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    letter-spacing: 2px;
    margin: 0;
}

/* Banner Slider */
.banner-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 80vh; /* 너무 세로로 길어지는 것을 방지 */
    overflow: hidden;
    background-color: #ddd;
}

.banner-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.banner-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 15%; /* 상단을 중심으로 하되 약간 여유를 두어 얼굴이 잘리지 않게 조정 */
    position: relative;
}

.banner-slide::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.banner-slide h2 {
    position: absolute;
    bottom: 30px;
    left: 40px;
    color: white;
    z-index: 10;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-color);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 1);
}

#prevBtn { left: 20px; }
#nextBtn { right: 20px; }

/* Navigation */
nav {
    background-color: white;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 50;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 3rem;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    font-size: 1.2rem;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-color);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

section {
    margin-bottom: 5rem;
}

section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2.2rem;
    color: var(--primary-color);
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
}

/* General Info */
.general-content {
    display: flex;
    gap: 2rem;
}

.card {
    background-color: var(--card-bg);
    flex: 1;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.card h3 {
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.8rem;
    font-size: 1.5rem;
}

.card ul {
    padding-left: 1.5rem;
}

.card li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Breeds Gallery */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.breed-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.breed-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.breed-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.breed-info {
    padding: 2rem;
}

.breed-info h3 {
    margin-bottom: 1.2rem;
    color: var(--primary-color);
    font-size: 1.6rem;
}

.info-section {
    margin-bottom: 1.2rem;
}

.info-section h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: #555;
    background-color: var(--secondary-color);
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 5px;
}

.info-section p {
    font-size: 1rem;
    color: #444;
}

footer {
    text-align: center;
    padding: 2.5rem;
    background-color: #2c3e50;
    color: #ecf0f1;
    margin-top: 5rem;
}

@media (max-width: 768px) {
    .general-content {
        flex-direction: column;
    }
    
    .banner-slide h2 {
        font-size: 1.8rem;
    }
}