/*==============================================================CHECK LIST PAGE==============================================================*/

.top-banner {
    background-repeat: no-repeat;
    background-position: center center;
    padding: 80px;
    margin-top: 7rem !important;
}

.checklist-top-banner {
    background-image: url("/images/checklist/amphibians-checklist-banner.png");
    background-repeat: no-repeat;
    background-size: cover;
}

.check-list-bar-1 {
    background-image: url("/images/checklist/amphibians-checklist_1_background.png");
    background-repeat: no-repeat;
    background-size: cover;
}

.check-list-bar-2 {
    background-image: url("/images/checklist/amphibians-checklist_2_background.png");
    background-repeat: no-repeat;
    background-size: cover;
}

.check-list-bar-3 {
    background-image: url("/images/checklist/amphibians-checklist_3_background.png");
    background-repeat: no-repeat;
    background-size: cover;
}

.check-list-bar-4 {
    background-image: url("/images/checklist/amphibians-checklist_4_background.png");
    background-repeat: no-repeat;
    background-size: cover;
}

.w-30 {
    width: 28% !important;
}

.w-16 {
    width: 16% !important;
}

.wi-30 {
    width: 30% !important;
}

.ps-10 {
    padding-left: 10rem !important;
}

.pe-10 {
    padding-right: 10rem !important;
}

.dicroglossidae-img {
    border: none !important;
    background-color: none !important;
}

.checklist-title {
    background-image: url("/images/checklist/top-banner-text-background.png");
    margin-left: -80px;
    padding-left: 11% !important;
    padding-right: 36% !important;
    background-repeat: no-repeat;
}

/* Smartphones (portrait and landscape) ----------- */
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
    .ps-10 {
        padding-left: 1rem !important;
    }

    .pe-10 {
        padding-right: 1rem !important;
    }

    .wi-30 {
        width: 80% !important;
    }
    .top-banner {
        margin-top: 0rem !important;
    }

    .check-list-bar {
        text-align: center;
    }

    .checklist-title {
        background-image: url(/images/checklist/top-banner-text-background-m.png);
        margin-left: -152%;
        padding-left: 140% !important;
        padding-right: 43% !important;
        background-repeat: no-repeat;
    }

    .page-sub-ttle {
        text-align: center;
    }

    .wi-75 {
        width: 80% !important;
    }

    .frog-group-sub-title {
        margin-top: 15px;
    }

    .frog-group-sub-description {
        text-align: center;
    }

    /* FOOTER MOBILE */
    .footer-div {
        text-align: center;
    }

    .questions-section {
        display: none;
    }

    .quick-links {
        display: none;
    }

    .youtube-channel {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .footer-div {
        padding: 70px 0px !important;
    }

    /* HEADER MOBILE */
    .navbar {
        justify-content: right;
    }

    .header-logo {
        width: 100%;
    }

    .desktop-menu-tabs {
        display: none;
    }

    .navbar-brand {
        font-size: 1rem !important;
        padding-left: 10px;
    }

    .sounds-frog-title {
        text-align: center;
    }

    /* .m-sm-2 {
        margin: 2px;
    } */

    /* single blog post */
    .single-blog-post-heading {
        font-size: large;
    }

    .blog-post-thumbnail-section {
        margin-top: 5%;
    }

    /* map */
    .map-section-heading {
        text-align: center;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .map-section-para-image {
        display: block;
    }

    .map-section-heading {
        display: none;
    }

    .map-section-heading-mobile-only {
        text-align: center;
        margin-top: 20px;
        margin-bottom: 15px;
        display: block !important;
    }
}

@media only screen and (min-width: 500px) and (max-width: 745px) {
    /* FOOTER MOBILE */
    .footer-div {
        text-align: center;
    }

    .questions-section {
        display: none;
    }

    .quick-links {
        display: none;
    }

    .youtube-channel {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .footer-div {
        padding: 70px 0px !important;
    }

    .desktop-menu-tabs {
        display: none;
    }

    .navbar {
        justify-content: right;
    }

    .header-logo {
        width: 100%;
    }
}
/* Smartphones (landscape) ----------- */
@media only screen and (min-width: 321px) {
    /* .frog-group-sub-description {
        text-align: center;
    }

    .frog-group-sub-title {
        margin-top: 15px;
    } */
}

/* Smartphones (portrait) ----------- */
@media only screen and (max-width: 320px) {
    /* Styles */
}

/* iPads (portrait and landscape) ----------- */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
    .w-30 {
        width: auto !important;
    }

    .checklist-title {
        background-image: url(/images/checklist/top-banner-text-background-m.png);
        margin-left: -110%;
        padding-left: 110% !important;
        padding-right: 25% !important;
        background-repeat: no-repeat;
    }

    .wi-75 {
        width: 90% !important;
    }

    .wi-30 {
        width: 100% !important;
    }

    /* HEADER MOBILE */
    .navbar {
        justify-content: right;
    }

    .header-logo {
        width: 70%;
    }

    .desktop-menu-tabs {
        display: none;
    }

    .species-map-div {
        width: 80% !important;
        max-width: 90% !important;
        margin: auto !important;
    }
}

/* iPads (landscape) ----------- */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) {
    /* Styles */
}

/* iPads (portrait) ----------- */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) {
    /* FOOTER MOBILE */
    .footer-div {
        text-align: center;
    }

    .questions-section {
        display: none;
    }

    .quick-links {
        display: none;
    }

    .youtube-channel {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .footer-div {
        padding: 85px 0px !important;
    }
}

/* Desktops and laptops ----------- */
@media only screen and (min-width: 1224px) {
    /* check list sub page (species) */
    .sld-wrp {
        margin: 8% 3% auto !important;
    }
}

/* Large screens ----------- */
@media only screen and (min-width: 1824px) {
    /* check list sub page (species) */
    .sld-wrp {
        margin: 8% 3% auto !important;
    }
}

/* iPhone 4 ----------- */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
    only screen and (min-device-pixel-ratio: 1.5) {
    /* Styles */
}

/*==============================================================CHECK LIST PAGE END==============================================================*/

/*==============================================================CHECK LIST SUB PAGE==============================================================*/

/* IUCN Conservation Status Scale Bar */
.iucn-scale-wrapper {
    overflow-x: auto;
    padding-top: 0;
    position: relative;
}

.iucn-scale {
    display: flex;
    border: 1px solid #bbb;
    background: #e0e0e0;
    position: relative;
    overflow: visible;  /* allows bubble to pop above */
}

.iucn-cell {
    flex: 1;
    min-width: 54px;
    text-align: center;
    padding: 10px 4px;
    font-size: 0.58rem;
    font-weight: bold;
    background: #e0e0e0;
    border-right: 1px solid #bbb;
    position: relative;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.25;
    text-transform: uppercase;
}

.iucn-cell:last-child { border-right: none; }

/* NE, DD — dark gray filled */
.iucn-cell[data-code="NE"],
.iucn-cell[data-code="DD"] {
    background: #555;
    color: #fff;
}

/* EX — near black */
.iucn-cell[data-code="EX"] {
    background: #111;
    color: #fff;
}

/* Active cell: solid red fill */
.iucn-cell.iucn-active {
    background: #c0392b !important;
    color: #fff !important;
    border-right-color: #9b2d23;
    z-index: 5;
    box-shadow: inset 0 -3px 0 rgba(0,0,0,0.2);
}

/* Labels row below the bar */
.iucn-labels { display: flex; }

.iucn-label-cell {
    flex: 1;
    min-width: 54px;
    text-align: center;
    font-size: 0.65rem;
    color: #555;
    padding: 4px 1px;
    font-weight: bold;
}

.iucn-label-cell.iucn-label-active {
    color: #c0392b;
    font-size: 0.8rem;
    font-weight: bold;
    position: relative;
}

.iucn-label-cell.iucn-label-active::before {
    content: '▲';
    display: block;
    font-size: 0.45rem;
    margin-bottom: 1px;
    color: #c0392b;
}

@media (max-width: 767px) {
    .iucn-scale-wrapper { padding-top: 0; }
}
/* IUCN Scale Bar End */

.single-checklist-top-banner {
    background-image: url("/images/checklist/single-amphibians-checklist-banner.png");
    background-repeat: no-repeat;
    background-size: cover;
    padding-top: 9%;
    padding-bottom: 9%;
}

.frog-sounds-card {
    background-image: url("/images/checklist/frog-sounds-bg.png");
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 0.5rem;

    border: 2px solid rgb(0 0 0 / 50%);
}

.sounds-frog-image {
    width: 37%;
    float: right;
}

.species-map {
    width: 100%;
}

.species-download-button {
    border-radius: 1rem !important;
    border: 2px solid #353d29;
}

.references-box {
    border-radius: 25px;
    border: 2px solid #7e7e7e47;
    padding: 20px;
}

.frog-icon {
    width: 3%;
}

.more-info {
    font-size: initial;
    font-weight: 700;
    vertical-align: bottom;
}

/* sound css */
*,
*::before,
*::after {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    border: 0;
    list-style: none;
}

*:focus {
    outline: 0;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

.cover {
    position: relative;
    margin: 24px -6px 0px 0px;
}

.cover svg {
    position: absolute;
    top: 50%;
    left: 50%;
    stroke: #fff;
    width: 70px;
    height: 70px;
    background-color: #353d29;
    border-radius: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    width: 70px;
    background: transparent !important;
    height: 70px;
    cursor: pointer;
    transform: translate(-50%, -50%);
}

.play::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 100%;
    opacity: 0;
}

.play::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAZdJREFUeNrs29FNQjEYBlAgDuAIuAFugBvgBrABTiBOgE4AGzgCbCAbwAayAbZJb0KMT77wt/ecpO/39qP9CqGDAQAAAAAAAAAAAAAA8A+Xy2WWxr2ZiBPILo1jGlOzESeQzmcaY7MSJ5DsO42lmYkTSOcrjYkZihNIZ630YwVyKaU/M1txAunsWir9UQPvkI/GuVtWPsoxVsjv0p9aIXHkE9iu5tIfNbrI8neWXPpzgcSRV8imttJvOZDr0j/WUvp9CKTzWsMPln0KJBuX0t9ELf2+BdKZl21sKZBYpb8upT8RSMBv+hG2MYFclX4JZioQBPKHtzQeh8Ph/pYPcSeHQQ7gJQVxsEJu61yCeIoSRp9XyLaEcY72YH0L5JTG4tY9YcsqpZ2CeIgcRl9WyL6sipNj7+1Le1FK+1TLQ7cayHsaeXva1vbgrW1Zh3J62tf6Aq0EkrenjxTEqvYXaSGQqkq75Q7JATzXVtpV8mfregJxHSFIIC7sBArElbYggbj0GSgQ16IBAAAAAAAAAAAAACCsHwEGACfr+SLf7BaJAAAAAElFTkSuQmCC");
    background-size: 80%;
    background-position: 50% 50%;
    background-repeat: no-repeat;
}

#circle {
    visibility: hidden;
    stroke-width: 5;
}

.playing #circle {
    visibility: visible;
}

.playing .play::after {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAK9JREFUeNrs0sEJhDAQQFEjW4ilWYp2slYS7MROYgrQZQc8DPgeiBcZQ/4MAwAAAAAAAAAAAAAAZFcyHaa1NvfX9PfhS1lu5iyB3x59ztcqXF9kbQE/5kTUTHcwWoNcBBEEQQRBEEEQRBAEEQRBEEQQBBEEQQRBEEEQBEEEQRBBEEQQBBEEQRBEEAQRBEEEQZB3+iQ7z9af/YE5a+DbwxoAAAAAAAAAAAAAAEDEKcAA4xprM8PkP94AAAAASUVORK5CYII=");
}

.playing .play::before {
    opacity: 1;
}

.sound-bar {
    padding: 25px;
}

.sound-name-container {
    background-color: #353d29;
    border-radius: 5px;
    color: white;
}

/* sounds css end */

/* map */
.species-map-div {
    width: 65%;
    max-width: 68%;
    margin: auto;
}

.map-wide-section {
    background-image: url("/images/checklist/map-area-background-image.png");
    background-repeat: no-repeat;
    background-size: cover;
}
/* map end */

/*==============================================================CHECK LIST SUB PAGE END==============================================================*/

/*====================================================================GROUPS PAGE====================================================================*/
.wi-75 {
    width: 75%;
}

.groups-top-banner {
    background-image: url("/images/groups/amphibians-groups-banner.png");
    background-repeat: no-repeat;
    background-size: cover;
    padding-top: 9%;
    padding-bottom: 9%;
}

.groups-large-image {
    width: 100%;
    max-width: 100%;
}

/* Group image with name overlay */
.group-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.group-card-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.group-name-overlay {
    position: absolute;
    bottom: 0;
    left: 20px;
    background-color: #c8a96e;
    color: #fff;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 2px;
    padding: 6px 20px;
    z-index: 2;
    text-transform: uppercase;
}

.group-name-overlay.right-label {
    left: auto;
    right: 20px;
}

/* Tablet: image is full 12-col width — reduce height */
@media (min-width: 768px) and (max-width: 991px) {
    .group-card-image {
        height: 240px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .group-card-image {
        height: 200px;
    }
    .group-name-overlay {
        font-size: 1.1rem;
        padding: 4px 14px;
        letter-spacing: 1px;
    }
    .group-name-overlay.right-label {
        left: 15px;
        right: auto;
    }
    .wi-75 {
        width: 100% !important;
    }
    .group-image-wrapper {
        margin-bottom: 1.5rem;
    }
}

.groups-top-section-bg {
    background: none;
}
/*====================================================================GROUPS PAGE END====================================================================*/

/*====================================================================GROUPS LISTING — ALTERNATING CARD LAYOUT====================================================================*/

/* Outer wrapper — spacing between cards */
.gl-item {
    margin-bottom: 3.5rem;
}

/* ── Header row: animal image + yellow title tab ── */
.gl-header {
    display: flex;
    align-items: flex-end;
    position: relative;
    z-index: 2;
}

.gl-header--left  { justify-content: flex-start; }
.gl-header--right { justify-content: flex-end; }

/* Animal image sits above and overlaps the card */
.gl-animal {
    width: 210px;
    height: 185px;
    object-fit: contain;
    object-position: bottom center;
    display: block;
    position: relative;
    z-index: 3;
    flex-shrink: 0;
}

/* Yellow title tab — slides behind the animal image */
.gl-title {
    background-color: #ead153;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 3px;
    color: #353d29;
    padding: 10px 28px 10px 55px; /* extra left padding absorbs the animal overlap */
    border-radius: 0 6px 6px 0;
    align-self: flex-end;
    margin-bottom: 8px;
    margin-left: -40px;           /* pull tab back under the animal */
    z-index: 2;                   /* animal is z-index 3, so it sits on top */
    white-space: nowrap;
}

/* Odd variant: tab sits to the LEFT of the animal, slides behind it to the right */
.gl-header--right .gl-title {
    border-radius: 6px 0 0 6px;
    padding: 10px 55px 10px 28px; /* extra right padding absorbs the animal overlap */
    margin-left: 0;
    margin-right: -40px;          /* pull tab back under the animal on the right */
}

/* ── Card body ── */
.gl-card {
    position: relative;
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.09);
    overflow: hidden;
    margin-top: -22px;   /* deeper pull so animal hangs further above */
    z-index: 1;
}

.gl-body {
    padding: 2.5rem 2.5rem 1.75rem;  /* extra top breathing room */
    position: relative;
    z-index: 2;
}

/* ── Faded watermark — same image, low opacity ── */
.gl-watermark {
    position: absolute;
    width: 270px;
    opacity: 0.07;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
    object-fit: contain;
}

.gl-watermark--right { right: -25px; }
.gl-watermark--left  { left:  -25px; }

/* ── Description text ── */
.gl-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 0.8rem;
}
.gl-desc:last-of-type {
    margin-bottom: 0;
}

/* ── Read More button ── */
.gl-btn {
    display: inline-block;
    background-color: #353d29;
    color: #fff !important;
    border-radius: 24px;
    padding: 9px 36px;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
    font-size: 1.1rem;
    text-decoration: none !important;
    border: none;
    transition: background-color 0.2s ease;
}

.gl-btn:hover {
    background-color: #4a5539;
    color: #fff !important;
}

/* ── Tablet ── */
@media (min-width: 768px) and (max-width: 991px) {
    .gl-animal {
        width: 170px;
        height: 150px;
    }
    .gl-title {
        font-size: 1.65rem;
    }
    .gl-watermark {
        width: 210px;
    }
    .gl-body {
        padding: 2rem 2rem 1.5rem;
    }
}

/* ── Mobile ── */
@media (max-width: 767px) {
    /* Force both variants to image-left layout on mobile */
    .gl-header--right {
        justify-content: flex-start;
    }
    .gl-header--right .gl-animal {
        order: 1;
    }
    .gl-header--right .gl-title {
        order: 2;
        border-radius: 0 6px 6px 0;
        padding: 8px 18px 8px 14px;
    }

    .gl-animal {
        width: 110px;
        height: 100px;
    }
    .gl-title {
        font-size: 1.25rem;
        letter-spacing: 2px;
        padding: 8px 18px 8px 38px;
        margin-left: -25px;
        white-space: normal;
    }
    .gl-header--right .gl-title {
        padding: 8px 38px 8px 18px;
        margin-left: 0;
        margin-right: -25px;
    }
    .gl-watermark {
        display: none;   /* too cramped on small screens */
    }
    .gl-body {
        padding: 1.25rem 1.25rem 1rem;
    }
    .gl-desc {
        font-size: 0.9rem;
        line-height: 1.65;
    }
    .gl-item {
        margin-bottom: 2.5rem;
    }
    /* Read More full-width on mobile */
    .gl-btn {
        display: block;
        text-align: center;
        width: 100%;
        margin-top: 0.5rem;
    }
}
/* Database HTML inside descriptions inherits Asap font */
.font-family-main p,
.font-family-main li,
.font-family-main span {
    font-family: 'Asap', sans-serif;
}

/* Species single page: external link pills */
.species-ext-link {
    display: inline-flex;
    align-items: center;
    padding: 7px 20px;
    border: 1.5px solid #353d29;
    border-radius: 20px;
    color: #353d29;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s, color 0.2s;
}
.species-ext-link:hover {
    background-color: #353d29;
    color: #fff;
}
/*====================================================================GROUPS LISTING END====================================================================*/

/*====================================================================SINGLE POST PAGE====================================================================*/
.single-post-top-banner {
    background-image: url("/images/post-single/amphibians-post-single-banner.png");
    background-repeat: no-repeat;
    background-size: cover;
    padding-top: 9%;
    padding-bottom: 9%;
}

.single-post-main-image {
    width: 100%;
}

.bottom-left {
    position: absolute;
    bottom: 8px;
    left: 16px;
}

.single-blog-post-heading {
    color: #353d29;
}

.single-blog-post-thumbnail-heading {
    color: #387f48;
}

.blog-post-thumbnail-breaker {
    margin-top: -5px;
}

/*====================================================================SINGLE POST PAGE END====================================================================*/

/*species new single page css (table)*/
.species-table {
    margin: 55px 120px 55px 120px;
}

.species-table-body tr {
    border-color: #94c045 !important;
    border-style: solid;
    border-width: 0;
}

.species-table-head {
    border-collapse: separate !important;
    border-radius: 15px;
    border: 2px solid #000000;
}

.species-row .blue {
    display: inline-block;
    background-color: #312d6e;
    padding: 5px 10px 5px 10px;
    text-align: center;
    color: white;
    width: 100%;
    font-weight: 600;
}

.species-row .purple {
    display: inline-block;
    background-color: #312d6e;
    padding: 5px 10px 5px 10px;
    text-align: center;
    color: white;
    width: 100%;
    font-weight: 600;
}

.species-row .red {
    display: inline-block;
    background-color: #bb2429;
    padding: 5px 10px 5px 10px;
    text-align: center;
    color: white;
    width: 100%;
    font-weight: 600;
}
.species-row .orange {
    display: inline-block;
    background-color: #db622b;
    padding: 5px 10px 5px 10px;
    text-align: center;
    color: white;
    width: 100%;
    font-weight: 600;
}
.species-row .dark-yellow {
    display: inline-block;
    background-color: #dda12a;
    padding: 5px 10px 5px 10px;
    text-align: center;
    color: white;
    width: 100%;
    font-weight: 600;
}
.species-row .yellow {
    display: inline-block;
    background-color: #e0dc25;
    padding: 5px 10px 5px 10px;
    text-align: center;
    color: white;
    width: 100%;
    font-weight: 600;
}
.species-row .green {
    display: inline-block;
    background-color: #6eac45;
    padding: 5px 10px 5px 10px;
    text-align: center;
    color: white;
    width: 100%;
    font-weight: 600;
}
.species-row .grey {
    display: inline-block;
    background-color: #737373;
    padding: 5px 10px 5px 10px;
    text-align: center;
    color: white;
    width: 100%;
    font-weight: 600;
}
.species-row .dark-grey {
    display: inline-block;
    background-color: #525554;
    padding: 5px 10px 5px 10px;
    text-align: center;
    color: white;
    width: 100%;
    font-weight: 600;
}

.header-title-center {
    border-right: solid 1px #000000;
}

.header-title-left {
    border-right: solid 1px #000000;
}

@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
    .species-table {
        margin: 40px 0px 0px 20px;
    }

    .species-table-head {
        width: max-content;
    }
}

/* ===================================================
   Species Gallery Category Tabs
=================================================== */

.species-gallery-tab-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0 40px;
    padding-bottom: 0;
    border-bottom: 1.5px solid #d0d0d0;
    margin-bottom: 28px;
}

.species-gallery-tab-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #aaaaaa;
    position: relative;
    padding-bottom: 12px;
    transition: color 0.2s ease;
    user-select: none;
}

/* Yellow underline — hidden by default */
.species-gallery-tab-item::after {
    content: '';
    position: absolute;
    bottom: -1px;           /* sits on top of the nav border-bottom */
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #dda12a;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
}

/* Show underline on hover and active */
.species-gallery-tab-item:hover::after,
.species-gallery-tab-item.active::after {
    transform: scaleX(1);
}

/* Darken text and icon on hover and active */
.species-gallery-tab-item:hover,
.species-gallery-tab-item.active {
    color: #2d2d2d;
}

.species-gallery-tab-item span {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: inherit;
}

/* Frog icon */
.tab-frog-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    opacity: 0.35;
    transition: opacity 0.2s ease;
}

.species-gallery-tab-item:hover .tab-frog-icon,
.species-gallery-tab-item.active .tab-frog-icon {
    opacity: 1;
}

/* Image grid */
.gallery-images-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

.gallery-item img:hover {
    transform: scale(1.03);
}

/* ===================================================
   Responsive fixes — PROMPT 12 audit
=================================================== */

/* Stats badges on home page: text overflows at fs-5 inside col-6 pills */
@media (max-width: 576px) {
    .bg-green.rounded-pill p {
        font-size: 0.7rem !important;
        padding-top: 0 !important;
    }
    .bg-green.rounded-pill {
        padding-top: 0.35rem !important;
        padding-bottom: 0.35rem !important;
    }
}

@media (max-width: 767px) {
    /* Species single: reduce main image height to avoid excessive scroll on mobile */
    #mainSpeciesImg {
        height: 240px !important;
    }

    /* Group page: shrink card images on mobile to avoid excessive vertical space */
    .group-card-image {
        height: 220px;
    }
}

/* Stat pill cards: shrink text to fit 2-column layout on very narrow screens */
@media (max-width: 327px) {
    .stat-pills-row .rounded-pill p {
        font-size: 0.65rem !important;
        padding-top: 0 !important;
    }
    .stat-pills-row .icon-width {
        width: 14px !important;
    }
}
