/* Hobbies Page Styling */
.hobbies-page {
    max-width: 1200px;
    margin: 20px auto 60px;
    padding: 20px;
}

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

.hobby-card {
    background: rgba(14, 34, 61, 0.65);
    border: 1px solid rgba(0, 238, 255, 0.2);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.hobby-card:hover {
    transform: translateY(-6px);
    border-color: #0ef;
    box-shadow: 0 12px 30px rgba(0, 238, 255, 0.2);
}

/* Image Framing - Fully Zoomed Out, No Cropping */
.hobby-img-wrap {
    width: 100%;
    height: 290px;
    overflow: hidden;
    background: radial-gradient(circle at center, #0e223d 0%, #051129 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.hobby-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.4s ease;
}

.hobby-card:hover .hobby-img-wrap img {
    transform: scale(1.03);
}

/* Interactive Slideshow Carousel */
.hobby-carousel {
    width: 100%;
    height: 290px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, #0e223d 0%, #051129 100%);
    padding: 8px;
}

.carousel-slides-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

.slide-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(5, 17, 41, 0.85);
    border: 1px solid rgba(0, 238, 255, 0.4);
    color: #0ef;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
    backdrop-filter: blur(6px);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    background: rgba(5, 17, 41, 0.75);
    border: 1px solid rgba(0, 238, 255, 0.35);
    color: #0ef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    z-index: 3;
}

.carousel-btn:hover {
    background: #0ef;
    color: #051129;
    box-shadow: 0 0 14px rgba(0, 238, 255, 0.6);
}

.prev-btn {
    left: 12px;
}

.next-btn {
    right: 12px;
}

.carousel-indicators {
    position: absolute;
    bottom: 12px;
    right: 14px;
    display: flex;
    gap: 6px;
    z-index: 3;
}

.carousel-indicators .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators .dot.active {
    background: #0ef;
    width: 22px;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0, 238, 255, 0.8);
}

.carousel-hint {
    display: block;
    margin-top: 8px;
    font-size: 0.8rem;
    color: #0ef;
    font-style: normal;
}

.hobby-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.hobby-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #0ef;
    margin-bottom: 8px;
}

.hobby-content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.hobby-content p {
    font-size: 0.94rem;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 0;
}

@media screen and (max-width: 768px) {
    .hobbies-grid {
        grid-template-columns: 1fr;
    }
}
