:root {
    --blue-color: #2563EA;
    --lightblue-color: #4b7fee;
    --green-color: #04976A;
    --lightgreen-color: #10B982;
    --grey-color: #6B7380;
    --lightgrey-color: #c5c9d1;
    --orange-color: #99582A;
    --steel-gray-blue: #335C67;
}

/*  settings  */
* {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;
}


a {
    text-decoration: none;
}

/* animations */
@keyframes appear {
    from {
        opacity: 0;
        scale: 0.5;
    }

    to {
        opacity: 1;
        scale: 1;
    }
}

/* Navbar Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navbar */
.navbar {
    background-color: var(--steel-gray-blue);
    color: white;
    padding: 16px 24px;
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.paw {
    width: 28px;
    margin-right: 10px;
}

.paw img {
    width: 100%;
}

.title {
    font-weight: bold;
    line-height: 1.2;
    font-size: 18px;
}

/* Desktop menu — hidden for now */
.nav-links {
    display: none;
    cursor: pointer;
}

.menu-toggle {
    font-size: 26px;
    cursor: pointer;
    user-select: none;
    display: block;
    z-index: 11;
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}


/* Mobile slide-in menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 240px;
    background-color: var(--steel-gray-blue);
    color: white;
    padding: 60px 24px;
    transition: right 0.3s ease;
    z-index: 9;
    box-shadow: -2px 0 6px rgba(0, 0, 0, 0.2);
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    cursor: pointer;
}

.mobile-nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.mobile-nav-links li a:hover {
    color: #d0e3ff;
}

/* Optional: prevent scroll when menu is open */
body.no-scroll {
    overflow: hidden;
}

/* Show desktop links only on large screens */
.nav-links {
    display: none;
    list-style: none;
    gap: 24px;
}

.nav-links li {
    display: inline-block;
    margin-left: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.nav-links a:hover {
    color: #d0e3ff;
}

@media (min-width: 769px) {
    .nav-links {
        display: flex;
    }

    .mobile-menu {
        display: none;
    }
}

/* ------ router --------- */
.breadcrumb {
    font-family: 'Segoe UI', sans-serif;
    padding: 16px;
    max-width: 950px;
    margin: 0 auto;
}

@media (max-width: 769px) {
    .breadcrumb {
        padding: 16px;
    }

}

.breadcrumb ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0;
    margin: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    color: #999;
    margin: 0 10px;
    font-size: 18px;
}

.breadcrumb a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.breadcrumb a:hover {
    background-color: #f0f0f0;
    color: #000;
}

/* --- cards ---- */
.card-cont {
    display: flex;
    gap: 20px;
    align-items: center;
    /* justify-content: center; */
    flex-wrap: wrap;
    padding: 0 50px 50px 50px;
    max-width: 1080px;
    margin: 0 auto;
    margin-bottom: 60px;
    animation: appear 0.5s ease;
}

@media screen and (max-width: 700px) {
    .card-cont {
        justify-content: center;
    }
}

.card {
    width: 300px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 0 5px var(--lightgrey-color);

    animation: appear linear;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

.card__img {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.card__img img {
    width: 100%;
    height: 100%;
}

.card:hover .card__img img {
    transform: scale(1.1);
}

.card__img img {
    transition: transform 0.6s ease-in-out;
}

.card__img .badge-featured {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    border-radius: 15px;
    padding: 5px 15px;
    font-weight: 400;
    font-size: 12px;
    background-color: #ffb703;
}

.card_detail {
    padding: 15px;
}

.card_detail .name,
.card_detail .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card_detail .name {
    margin-bottom: 15px;
}

.card_detail .name h2 {
    font-size: 16px;
}

.card_detail .name p,
.card_detail .detail-row p {
    color: var(--grey-color);
    font-size: 14px;
    font-weight: 400;
}

.card_detail .detail-row .detail {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.card_detail .detail-row .detail img {
    width: 15px;
}

.card_detail .detail-row .badge-approved {
    display: flex;
    gap: 5px;
    align-items: center;
}

.card_detail .detail-row:last-child {
    margin-top: 10px;
}

.card_detail .detail-row .badge-approved p {
    color: #04724d;
    font-weight: 600;
}

.card_detail .detail-row .badge-approved img {
    width: 15px;
}

.card_detail .detail-row .button-detail {
    background-color: #2d848a;
    border-radius: 5px;
    padding: 10px;
}

.card_detail .detail-row .button-detail:hover {
    background-color: var(--lightblue-color);
    transition: background-color 0.3s ease;
}

.card_detail .detail-row a.button-detail {
    color: #fff;
    font-weight: 400;
    font-size: 14px;
}

/* blog post */

.post-card-cont {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 50px 50px 50px;
    max-width: 1080px;
    margin: 0 auto;
    margin-bottom: 60px;
    animation: appear 0.5s ease;

}

@media screen and (max-width: 700px) {
    .post-card-cont {
        justify-content: center;
    }
}


.post-card {
    width: 300px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 0 5px var(--lightgrey-color);
    font-family: "Roboto", sans-serif;

    animation: appear linear;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

.post-card__img {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.post-card__img img {
    width: 100%;
    transition: transform 0.6s ease-in-out;
}

.post-card:hover .post-card__img img {
    transform: scale(1.1);
}

.post-card__detail {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.post-card__detail .meta {
    color: var(--grey-color);
    font-size: 12px;
    font-weight: 500;
    display: flex;
    gap: 10px;
}

.post-card__detail .title h2 {
    font-size: 14px;
    color: #1985a1;
}

.post-card__detail .description p {
    color: var(--grey-color);
    font-size: 12px;
    line-height: 1.5;
}

.post-card__detail .author {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.post-card__detail .author .author__img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.post-card__detail .author .author__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card__detail .author .author__detail {
    color: var(--grey-color);
    font-size: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* gap: 5px; */
}

.post-card__detail .author .author__detail .name {
    font-weight: 600;
    color: #000;
}


/*  ----------- detail blog ------------- */

/* Container */

.post-detail__container {
    /* max-width: 900px;
  margin: 0 auto; */
    padding: 0 16px 25px 16px;
}

.post-detail {
    max-width: 950px;
    margin: 0px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: appear 0.5s ease;
}

/* Cover Image */
.cover-image {
    width: 100%;
    /* height: 300px; */
    object-fit: cover;
    display: block;
    aspect-ratio: 16/9;
}

/* Inner Content */
.post-detail__content {
    padding: 24px;
}


/* Author Meta Section */
.post-detail__meta {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-weight: 500;
}

.author-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.meta-text {
    margin-left: 12px;
}

.meta-text .name {
    color: #eb5e28;
}

.name {
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 5px;
}

.meta {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;

}

/* Blog Title */
.post-detail__title {
    font-size: 22px;
    margin: 20px 0;
    color: #111827;
    color: #1985a1;
}

/* Blog Text */

.post-detail__text img.post-img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;

}

.post-detail__text p {
    margin-bottom: 18px;
    line-height: 1.7;
    font-size: 16px;
    color: #374151;
}

.post-detail__text h2 {
    font-size: 18px;
    margin-bottom: 15px;
    margin-top: 40px;
    color: #6590d1;
}

.post-detail__text h3 {
    font-size: 14px;
    margin-bottom: 15px;
    margin-top: 40px;
    color: #80a1d4;
}

/* refrence */

.post-detail__reference {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.post-detail__reference h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #111827;
}

.reference-box {
    display: flex;
    align-items: flex-start;
}

.reference-img-large {
    width: 100px;
    /* height: 64px; */
    /* border-radius: 50%; */
    margin-right: 16px;
    object-fit: cover;
}

.role {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;

}

.bio {
    font-size: 14px;
    color: #4b5563;
    margin-top: 6px;
}

/* About Author Section */
.post-detail__about-author {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.post-detail__about-author h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #111827;
}

.author-box {
    display: flex;
    align-items: flex-start;
}

.author-img-large {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-right: 16px;
    object-fit: cover;
}

.role {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;

}

.bio {
    font-size: 14px;
    color: #4b5563;
    margin-top: 6px;
}

@media (max-width: 769px) {
    .post-detail {
        box-shadow: none;
    }

    .post-detail__content {
        padding: 12px;
    }

    .post-detail__title {
        font-size: 20px;
        margin: 20px 0;
    }
}


/*  ----------- detail Dog ------------- */

.dog-detail__container {
    padding: 0 16px 25px 16px;
}

.dog-detail {
    max-width: 950px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    animation: appear 0.5s ease;
}

.dog-banner img {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.dog-content {
    padding: 24px;
}

.dog-title {
    font-size: 26px;
    color: #111827;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.dog-id {
    font-size: 14px;
    color: var(--grey-color);
    font-weight: 500;
}

.dog-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
    font-size: 15px;
    color: #374151;
}

.dog-section {
    margin-bottom: 24px;
}

.dog-section h2 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #111827;
}

.dog-section p {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
}

/* Pedigree Tree */
.pedigree-chart {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    padding: 20px;
    background: #f9fafb;
    border: 1px solid var(--lightgrey-color);
    border-radius: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
}

.gen {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    min-width: 160px;
    flex-shrink: 0;
}

.gen.gen-3 {
    gap: 90px;
}

.gen.gen-2 {
    gap: 100px;
}

.box {
    background: #fff;
    padding: 12px;
    border: 1px solid var(--lightgrey-color);
    border-radius: 8px;
    min-width: 140px;
    max-width: 180px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    position: relative;
    text-align: left;
}

.role {
    font-size: 12px;
    font-weight: 600;
    color: var(--grey-color);
    margin-bottom: 4px;
    display: block;
}

.main-dog {
    background-color: var(--lightgreen-color);
    color: white;
    font-weight: 600;
}

.spacer {
    height: 40px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .dog-detail {
        box-shadow: none;
    }


    .box {
        min-width: 120px;
        font-size: 13px;
    }

    .role {
        font-size: 12px;
    }

    .pedigree-chart {
        gap: 24px;
        padding: 12px;
    }

    .gen {
        gap: 16px;
    }
}

/* Kennel Info */
.kennel-info p {
    margin-bottom: 8px;
    font-size: 14px;
    color: #4b5563;
}


@media (max-width: 768px) {
    .dog-content {
        padding: 16px;
    }

    .dog-title {
        font-size: 22px;
    }

    .dog-info-grid {
        grid-template-columns: 1fr;
    }
}

/* -------- footer -------------- */

.footer {
    background-color: var(--steel-gray-blue);
    color: white;
    font-size: 14px;
    padding: 40px 16px 20px 16px;
    /* margin-top: 60px; */
}

.footer__container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1080px;
    margin: 0 auto;
    gap: 40px;
}

.footer__section {
    flex: 1 1 200px;
}

.footer__section h3,
.footer__section h4 {
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: bold;
}

.footer__section p,
.footer__section a {
    color: #d1d5db;
    font-size: 14px;
    line-height: 1.6;
}

.footer__section a:hover {
    color: #ffffff;
}

.footer__section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__section ul li {
    margin-bottom: 8px;
}

.footer__bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    font-size: 13px;
}

.footer__intro .logo-group {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    height: 20px;
}

.footer__intro .footer-logo {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    /* for white logo on dark bg */
}

.footer__intro .footer-title {
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    line-height: 1;
}


@media (max-width: 768px) {
    .footer__container {
        flex-direction: column;
        gap: 30px;
    }

    .footer {
        padding: 30px 16px 15px 16px;
    }

    .footer__bottom {
        font-size: 12px;
    }
}

/* -------- about us ----------- */

.about {
    /* background: #f9fafb; */
    padding: 40px 16px 60px 16px;
    margin-bottom: 60px;

}

.about__container {
    max-width: 950px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    /* box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05); */
    animation: appear 0.5s ease;
}

.about__title {
    font-size: 26px;
    margin-bottom: 20px;
    color: #1f2937;
}

.about__intro {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
    color: #374151;
}

.about__grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.about__box {
    background-color: #f3f4f6;
    padding: 20px;
    border-radius: 10px;
    color: #374151;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    /* center everything */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    /* space between icon, title, text */
}

.about-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.about__box h2 {
    font-size: 18px;
    color: #111827;
    margin: 0;
}


.about-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/*  ---------- contact us -------------- */

.contact-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    animation: appear 0.5s ease;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); */
}

.contact-container h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #1f2937;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 14px;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #5a7184;
    box-shadow: 0 0 0 3px rgba(90, 113, 132, 0.2);
}


.contact-form button {
    background-color: #272d38;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;

}

.contact-form button:hover {
    background-color: #374151;
}

.contact-info {
    font-size: 14px;
    color: #4b5563;
}

.contact-info h3 {
    margin-bottom: 10px;
    color: #111827;
}

.contact-info p {
    margin-bottom: 8px;
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 41, 55, 0.6);
    /* dark overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.popup.hidden {
    display: none;
}

.popup-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

#close-popup {
    margin-top: 15px;
    padding: 8px 16px;
    background-color: #5a7184;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}


@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ++++++++ homepage +++++++++++ */

.hero-section {
    background-color: #f9fafb;
    padding: 60px 16px;
}

.hero-container {
    max-width: 950px;
    margin: 0 auto;
    text-align: center;
    animation: appear 0.5s ease;
}

.hero-logo {
    width: 80px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 32px;
    color: #1f2937;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 16px;
    color: #374151;
    max-width: 700px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.hero-button {
    background-color: #119da4;
    color: white;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.hero-button:hover {
    background-color: var(--lightblue-color);
}

.home-posts-section {
    padding: 60px 16px;
    /* background-color: #f9fafb; */
}

.home-posts-container {
    max-width: 1080px;
    margin: 0 auto;
}

.home-posts-container .post-card-cont {
    justify-content: center;
}

.home-posts-title {
    font-size: 26px;
    color: #1f2937;
    margin-bottom: 40px;
    text-align: center;
    font-weight: bold;
    animation: appear linear;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

.home-posts-button-wrap {
    text-align: center;
    margin-top: 40px;
}

.home-posts-button {
    background-color: #119da4;
    color: white;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
    animation: appear linear;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

.home-posts-button:hover {
    background-color: var(--lightblue-color);
}

.home-dogs-section {
    padding: 60px 16px;
    background-color: #f9fafb;
}

.home-dogs-container {
    max-width: 1080px;
    margin: 0 auto;
}

.home-dogs-container .card-cont {
    justify-content: center;
}

.home-dogs-title {
    font-size: 26px;
    color: #1f2937;
    margin-bottom: 40px;
    text-align: center;
    font-weight: bold;
    animation: appear linear;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

.home-dogs-button-wrap {
    text-align: center;
    margin-top: 40px;
}

.home-dogs-button {
    background-color: #119da4;
    color: white;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
    animation: appear linear;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

.home-dogs-button:hover {
    background-color: var(--lightblue-color);
}

.home-contact-section {
    background-color: #fff;
    padding: 60px 16px;

    animation: appear linear;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

.home-contact-container {
    max-width: 650px;
    margin: 0 auto;
    /* background-color: #f9fafb; */
    padding: 30px;
    border-radius: 12px;
    /* box-shadow: 0 0 6px rgba(0, 0, 0, 0.05); */
    animation: appear 0.5s ease;
    text-align: center;
}

.home-contact-title {
    font-size: 26px;
    color: #1f2937;
    margin-bottom: 10px;
    font-weight: bold;
}

.home-contact-subtitle {
    font-size: 16px;
    color: #374151;
    margin-bottom: 30px;
    line-height: 1.6;
}

/*  Accordian */

:root {
    --accordion-light: #DBEAFE;   /* light blue header background */
    --accordion-hover: #BFDBFE;   /* slightly darker hover */
    --accordion-dark: #2563EA;    /* icon color and accent */
    --accordion-content: #EFF6FF; /* opened content background */
    --accordion-border: #93C5FD;  /* border */
}


/* ===== Accordion Base ===== */
.accordion {
  max-width: 700px;
  margin: 30px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  animation: appear 0.5s ease;
}

.accordion-item {
  background: #fff;
  border: 1px solid var(--accordion-border);
  border-radius: 12px;
  overflow: hidden;
    border-bottom: none;

}

.accordion-header {
  width: 100%;
  padding: 16px 20px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  background: var(--accordion-light);
  color: #1f2937;
  border: none;
  outline: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.3s ease;
  border-radius: 12px;
  
}

/* Remove bottom border-radius when active */
.accordion-item.active .accordion-header {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.accordion-header:hover {
  background: var(--accordion-hover);
}

.accordion-icon {
  font-size: 20px;
  color: var(--accordion-dark);
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-item.active {
    border-bottom: 1px solid var(--accordion-border);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  background: var(--accordion-content);
  color: #374151;
  font-size: 15px;
  line-height: 1.6;
  transition: max-height 0.4s ease, padding 0.3s ease;
  border-top: 1px solid var(--accordion-border);
  display: flex;
  justify-content: center;
  text-align: center;
}

.accordion-item.active .accordion-content {
  max-height: 600px;
  padding: 20px;
}

.accordion-content .dog-info-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 15px;
  color: #374151;
}

/* Horizontal Related Posts */
.related-posts-section {
    max-width: 1080px;
    margin: 40px auto;
    padding: 0 16px;
}

h3.related-posts-title {
    font-size: 12px;
    font-weight: bold;
    color: var(--orange-color);
    margin-bottom: 20px;
    text-align: left;
}

.related-posts {
    display: flex;
    flex-wrap: nowrap;          /* horizontal layout */
    overflow-x: auto;           /* allow scroll if overflow */
    gap: 20px;
    padding-bottom: 10px;
    scroll-behavior: smooth;
}

.related-posts::-webkit-scrollbar {
    height: 6px;
}

.related-posts::-webkit-scrollbar-thumb {
    background-color: var(--lightgrey-color);
    border-radius: 3px;
}

.related-post {
    flex: 0 0 250px;
    background-color: #fff;
    border: 1px solid var(--lightgrey-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-post:hover {
    /* transform: translateY(5px); */
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.related-post__image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.related-post__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease-in-out;
}

.related-post:hover .related-post__image img {
    transform: scale(1.1);
}

.related-post__content {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.related-post__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--orange-color);
    transition: color 0.3s ease;
}

.related-post__title:hover {
    color: var(--lightblue-color);
}

p.related-post__excerpt {
    font-size: 12px;
    color: var(--grey-color);
    /* line-height: 1.4; */
}

.related-post__meta {
    font-size: 11px;
    color: var(--grey-color);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}
