/* ===============================
   Species Detail
================================ */


.bg-soft {

    background: #F7FBFC;

}


/* Badge */

.species-badge {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    background: #EAF7FA;

    color: #176B87;

    padding: 8px 18px;

    border-radius: 30px;

    font-size: 13px;

    font-weight: 600;

}



/* Hero */

.species-content {

    padding: 20px 5px;

}


.species-name {

    font-size: 42px;

    font-weight: 750;

    color: #0F2A3D;

    line-height: 1.2;

    margin-top: 15px;

}



.species-scientific {

    margin-top: 8px;

    font-size: 17px;

    color: #7B8790;

    font-style: italic;

}



.species-description {

    margin-top: 20px;

    color: #555;

    font-size: 16px;

    line-height: 1.8;

}



/* Main Image */

.species-main-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 24px;
}



/* Gallery */

.species-thumbs {

    display: flex;

    gap: 12px;

    margin-top: 15px;

    overflow-x: auto;

}



.species-thumb {

    width: 75px;

    height: 75px;

    object-fit: cover;

    border-radius: 14px;

    cursor: pointer;

    border: 2px solid transparent;

    transition: .3s;

    flex-shrink: 0;

}



.species-thumb:hover,
.species-thumb.active {

    border-color: #176B87;

    transform: translateY(-3px);

}



/* Info */

.species-info-grid {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 15px;

    margin-top: 30px;

}



.species-info-item {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 15px;

    background: #fff;

    border-radius: 16px;

    border: 1px solid #E5EFF2;

    transition: .3s;

}



.species-info-item:hover {

    transform: translateY(-3px);

    box-shadow:
        0 8px 20px rgba(15, 42, 61, .08);

}



.info-icon {

    width: 42px;

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #EAF7FA;

    border-radius: 50%;

    font-size: 20px;

}



.species-info-item small {

    display: block;

    color: #8898A5;

    font-size: 12px;

}



.species-info-item strong {

    display: block;

    color: #0F2A3D;

    font-size: 15px;

}





/* ===============================
   Care Information
================================ */


.care-wrapper {

    padding: 20px 0;

}



.care-badge {

    display: inline-block;

    background: #EAF7FA;

    color: #176B87;

    padding: 7px 16px;

    border-radius: 30px;

    font-size: 13px;

    font-weight: 600;

}



.care-overview h4 {

    font-size: 28px;

    font-weight: 700;

    color: #0F2A3D;

}



.care-overview p {

    color: #666;

    line-height: 1.8;

    font-size: 16px;

}



.care-tip {

    margin-top: 20px;

    padding: 15px 20px;

    background: #FFF8E8;

    border-left: 4px solid #F4C542;

    border-radius: 12px;

    color: #6B5A20;

}



/* Care Grid */

.care-grid {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 15px;

}



.care-item {

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 15px;

    background: #fff;

    border-bottom: 1px solid #E7EEF1;

}



.care-icon {

    width: 45px;

    height: 45px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #EAF7FA;

    border-radius: 50%;

    font-size: 20px;

}



.care-item small {

    display: block;

    color: #8898A5;

    font-size: 12px;

}



.care-item strong {

    display: block;

    color: #0F2A3D;

    font-size: 15px;

}





/* Breadcrumb */

.breadcrumb {

    font-size: 14px;

}


.breadcrumb a {

    color: #176B87;

    text-decoration: none;

}


.breadcrumb a:hover {

    text-decoration: underline;

}





/* Mobile */

@media(max-width:768px) {


    .species-name {

        font-size: 32px;

    }



    .species-main-image {

        height: 300px;

    }



    .species-info-grid {

        grid-template-columns: 1fr;

    }



    .care-grid {

        grid-template-columns: 1fr;

    }


}

.species-credit {

    margin-top: 12px;

    font-size: 12px;

    color: #8898A5;

    text-align: center;

}


.species-credit span {

    color: #176B87;

    font-weight: 600;

}


.image-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, .55);

    align-items: center;
    justify-content: center;

    backdrop-filter: blur(5px);
}


.image-lightbox img {
    max-width: 75%;
    max-height: 75%;

    object-fit: contain;

    border-radius: 15px;

    background: #fff;
    padding: 10px;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, .4);

    transform: scale(.7);
    opacity: 0;

    transition: .35s ease;
}


.image-lightbox.show img {

    transform: scale(1);
    opacity: 1;

}



.lightbox-close {

    position: absolute;

    top: 30px;
    right: 40px;

    width: 45px;
    height: 45px;

    line-height: 40px;

    text-align: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, .2);

    color: #fff;

    font-size: 35px;

    cursor: pointer;

    transition: .3s;

}


.lightbox-close:hover {

    background: #fff;

    color: #333;

}



.image-lightbox.show {

    display: flex;

    animation: fadeIn .3s ease;

}



@keyframes fadeIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}

.species-main-image {
    cursor: zoom-in;
    transition: .3s;
}

.species-main-image:hover {
    transform: scale(1.03);
}


.lightbox-prev,
.lightbox-next {

    position: absolute;

    top: 50%;

    transform: translateY(-50%);


    width: 50px;
    height: 50px;

    border-radius: 50%;

    border: none;

    background: rgba(255, 255, 255, .25);

    color: white;

    font-size: 35px;

    cursor: pointer;

    transition: .3s;

}


.lightbox-prev:hover,
.lightbox-next:hover {

    background: white;

    color: #333;

}


.lightbox-prev {

    left: 40px;

}


.lightbox-next {

    right: 40px;

}



.image-count {

    position: absolute;

    bottom: 40px;

    color: white;

    font-size: 18px;

}

.info-card,
.care-wrapper {

    background: #fff;
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .08);

}


.info-card h5 {

    font-weight: 700;
    margin-bottom: 20px;
    color: #145da0;

}


.info-grid {

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;

}


.info-grid div {

    background: #f8fafc;
    padding: 15px;
    border-radius: 12px;

}


.info-grid span {

    display: block;
    font-size: 13px;
    color: #777;

}


.info-grid strong {

    display: block;
    margin-top: 5px;
    font-size: 16px;

}



.care-tip {

    background: #fff8dc;
    padding: 15px;
    border-radius: 12px;
    margin-top: 20px;

}



.species-overview h2 {

    font-weight: 800;

}



@media(max-width:768px) {

    .info-grid {

        grid-template-columns: 1fr;

    }

}

.youtube-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

.youtube-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.youtube-source {
    margin-top: 10px;
    font-size: 12px;
    color: #8a969c;
}

.youtube-source i {
    color: #ff0000;
    margin-right: 4px;
}

.youtube-source a {
    color: #66757d;
    text-decoration: none;
}

.youtube-source a:hover {
    color: #00a6c7;
    text-decoration: underline;
}