/* ---------- BODY ---------- */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: rgb(245, 245, 245);
}

/* ---------- HEADER & FOOTER ---------- */
header, footer {
    background: rgba(135,206,235,0.7);
    color: white;
    padding: 1rem;
    text-align: center;
}

/* ---------- NAVIGATION ---------- */
nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 14px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    font-size: 18px;
    font-weight: 600;
}

/* ---------- SECTION CONTENT ---------- */
section.content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 7px;
    box-shadow: 0 0 7px rgba(135,206,235,0.7);
}

.content h2 {
    border: 3px solid rgba(135,206,235,0.7);
    text-align: center;
}

/* ---------- JOB DIVS ---------- */
.job {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(135,206,235,0.4);
    padding-bottom: 10px;
}

/* ---------- HOBBY GRID ---------- */
.hobby-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
    gap: 25px;
    padding: 20px;
}

/* Mobile → 1 card */
@media (max-width: 768px) {
    .hobby-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- HOBBY CARDS ---------- */
.hobby-card {
    height: 350px;                   /* Fixed card height */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: center;
    /* position: relative; */
}

/* Images inside the card */
.hobby-card img, 
.slide {
    width: 100%;
    height: 89%;
    object-fit: cover;               /* Fill card properly */
    object-position: center;         /* Center image */
    transition: transform 0.5s ease; /* Smooth zoom */
}

.hobby-card p {
    /* border: 3px solid rgba(135,206,235,0.7); */
    text-align: center;
}

/* ---------- SLIDER CONTAINER ---------- */
.slider {
    position: relative;
    width: 100%;
    height: 89%;                     /* Fill hobby-card */
    overflow: hidden;
}

/* SLIDE IMAGES */
.slide {
    position: absolute;
    width: 100%;
    height: 89%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.6s ease;
}

/* Active slide */
.slide.active {
    opacity: 1;
}

/* ---------- ZOOM ON HOVER ---------- */
.hobby-card:hover .slide.active {
    transform: scale(1.2);
}
