html {
    scroll-behavior: smooth;
}

.nav-link.a1:after {
    background-color: white !important;
    display: none !important;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    position: relative !important;
    width: 100% !important;
}

.learn-more {
    color: black;
    text-decoration: underline;
    display: inline-block;
    margin-top: 10px;
    margin-left: 2rem;
}

.learn-more:hover {
    color: black;
    text-decoration: underline;
}

.dog-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
}

.dog-content h3 {
    font-size: 1.5rem;
    margin: 0 0 0 0;
    height: auto;
    line-height: 1.2;
}

.description-dog {
    display: flex;
    margin: 0;
    overflow: hidden;
}

@media (min-width: 992px) {

    .navbar-nav .nav-item.dropdown:hover .dropdown-menu,
    .navbar-nav .nav-item.dropdown.show .dropdown-menu {
        display: block;
    }

    .dropdown-menu {
        margin-top: 0;
        border-radius: 8px;
        border: none;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        animation: fadeIn 0.2s ease-in;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(5px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Enhanced dropdown styles for desktop */
@media (min-width: 992px) {

    .navbar-nav .nav-item.dropdown:hover .dropdown-menu,
    .navbar-nav .nav-item.dropdown.show .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.2s ease-in-out;
        margin-top: 0;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow:
            0 4px 6px -1px rgba(0, 0, 0, 0.1),
            0 2px 4px -1px rgba(0, 0, 0, 0.06),
            0 0 0 1px rgba(255, 255, 255, 0.3) inset;
        padding: 8px;
        min-width: 200px;
    }

    .dropdown-item {
        padding: 10px 16px;
        font-size: 14px;
        color: #333;
        border-radius: 8px;
        transition: all 0.2s ease;
        margin: 2px 0;
    }

    .dropdown-item:hover {
        background: rgba(0, 0, 0, 0.04);
        transform: translateX(5px);
        color: #000;
    }

    .nav-item.dropdown:hover .nav-link {
        color: #000;
    }

    .nav-item.dropdown .nav-link::after {
        content: '▾';
        display: inline-block;
        margin-left: 5px;
        bottom: 12px !important;
        transition: transform 0.2s ease;
    }

    .nav-item.dropdown:hover .nav-link::after {
        transform: rotate(180deg);
    }
}





.nav-item.dropdown .dropdown-menu {
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease-in-out;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

* {
    touch-action: manipulation;
}

@media (max-width: 800px) {

    .history-content h2,
    .history-content h3 {
        font-size: 20px !important;
    }

    .title {
        font-size: 26px !important;
    }

    .hero-content p {
        font-size: 16px !important;
    }

    .hero-content h1 {
        font-size: 26px !important;
    }

    .read-more-btn {
        padding: 0 !important;
    }
}

h3.signature {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    text-align: right;
    margin-top: 1rem;
}

.desktop22 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.dog-showcase {
    flex: 1;
}

.dog-gallery {
    flex: 1;
}

.nav-link:after {
    display: none !important;
}

.gallery-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.desktop22 {
    padding: 0 !important;
    margin: 0 !important;
}

.container1 {
    margin: 20px 211px;
}

@media (max-width: 1600px) {
    .container1 {
        margin: 20px 180px;
    }
}

@media (max-width: 1400px) {
    .container1 {
        margin: 20px 150px;
    }
}

@media (max-width: 1200px) {
    .container1 {
        margin: 20px 100px;
    }
}

@media (max-width: 992px) {
    .container1 {
        margin: 20px 70px;
    }
}

@media (max-width: 768px) {
    .container1 {
        margin: 20px 0;
    }
}

@media (max-width: 576px) {
    .container1 {
        margin: 20px 0;
    }
}

.left-box {
    font-size: 20px;
    color: black;
    border-radius: 8px;
}

.right-boxes {
    display: flex;
    justify-content: center;
    gap: 20px;
}

@media (max-width: 992px) {
    .phone22 {
        display: block;
    }

    .desktop22 {
        display: none;
    }
}

.desktop22 .szczeniaki-container {
    width: 100%;
    padding: 0 2rem;
}

.puppy-boxes-desktop {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 2rem;
}

.desktop22 .puppy-box {
    flex: 1;
    min-width: 0;
    padding: 1.5rem;
}

.desktop22 .puppy-box h3 {
    color: white;
    font-size: clamp(14px, 1.5vw, 20px);
    margin-top: 1rem;
    white-space: nowrap;
}

.desktop22 .puppy-icon {
    width: clamp(40px, 4vw, 64px);
    height: clamp(40px, 4vw, 64px);
}

@media (min-width: 992px) {
    .desktop22 {
        display: block !important;
    }
}

@media (min-width: 1601px) {
    .szczeniaki-container1 {
        margin: 0 211px;
    }
}

@media (max-width: 1600px) {
    .szczeniaki-container1 {
        margin: 0 180px;
    }
}

@media (max-width: 1400px) {
    .szczeniaki-container1 {
        margin: 0 150px;
    }
}

@media (max-width: 1200px) {
    .szczeniaki-container1 {
        margin: 0 100px;
    }
}

@media (max-width: 768px) {
    .szczeniaki-container1 {
        margin: 0 50px;
    }
}

@media (max-width: 576px) {
    .szczeniaki-container1 {
        margin: 0 10px;
    }
}

@media (min-width: 1000px) {

    #blog,
    #szczeniaki {
        margin-top: 60px;
    }
}

/* New styles for fade-in animation */
.section-animate {
    opacity: 0;
    transform: translateY(0px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    overflow-y: hidden !important;
}

.section-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar active state */
.nav-link.active {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
}

/* New override to remove extra underline (e.g. from Bootstrap) */
.navbar .nav-link.active {
    border-bottom: none !important;
}

/* Ensure no other underline styles interfere */
.nav-link {
    text-decoration: none;
}

/* Specific rule to remove extra underlines on non-active nav-links */
.navbar-nav .nav-link:not(.active) {
    text-decoration: none !important;
    border-bottom: none !important;
}

.blog-events-section {
    padding: 0rem;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    /* Center the boxes */
    gap: 2rem;
    flex-wrap: wrap;
}

.content-box {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    height: 400px !important;
    display: flex;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.content-box:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.50);
    z-index: 1;
    display: block;
}

.content-box:hover {
    transform: translateY(-5px);
}

.image-side {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.image-side img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.text-side {
    position: relative;
    z-index: 2;
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.text-side h2 {
    font-size: 32px;
    font-weight: bold;
    color: white;
    padding: 0 2rem;
    margin-bottom: 10px;
}

.text-side .post-date {
    font-size: 14px;
    color: #fff !important;
    padding: 0 2rem;
    margin-bottom: 10px;
}

.text-side p {
    font-family: 'Poppins', sans-serif;
    font-style: italic;
    font-weight: normal;
    font-size: 16px;
    color: #fff;
    padding: 0 2rem;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-side .action-button {
    padding: 8px 16px;
    font-size: 14px;
}

.action-button {
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin-right: 10px;
}

@media (min-width: 1001px) {
    .action-button.primary {
        background: white;
        color: black;
    }

    .action-button.secondary {
        border: 1px solid white;
        color: white;
        background: transparent;
    }

    .text-side .button-container {
        display: flex;
        align-items: center;
        margin: 0 2rem 30px 2rem;
    }
}

@media (max-width: 1000px) {
    .content-box {
        flex-direction: column;
        height: 400px !important;
        position: relative;
    }

    .content-box:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.438);
        z-index: 1;
        display: block;
    }

    .image-side {
        position: absolute;
        width: 100%;
        height: 100% !important;
    }

    .image-side img {
        width: 100%;
        height: 100% !important;
        object-fit: cover;
    }

    .text-side {
        background: transparent;
        padding: 2rem;
        height: 100%;
        position: relative;
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .text-side h2 {
        color: white;
        font-size: 32px;
        padding: 0;
        font-weight: bold;
    }

    .text-side .post-date {
        color: #fff !important;
        padding: 0;
    }

    .text-side p {
        color: #fff;
        padding: 0;
    }

    .text-side .action-button {
        margin: 15px 0 0 0;
        padding: 8px 16px;
        display: inline-block;
        text-decoration: none;
        border-radius: 5px;
    }

    .text-side .action-button.primary {
        background: white;
        color: black;
    }

    .text-side .action-button.secondary {
        border: 1px solid white;
        color: white;
        background: transparent;
    }

    .blog-events-section {
        padding: 0 20px;
    }
}

@media (min-width: 1001px) {
    .content-box {
        height: 400px !important;
    }

    .content-box:before {
        display: block;
    }
}

@media (max-width: 1008px) {
    .content-box {
        height: 400px;
    }
}

@media (min-width: 1009px) {
    .content-box {
        height: 300px;
    }
}



.puppy-box {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background: rgb(0, 0, 0);
    background: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 2, 6, 1) 51%, rgba(25, 29, 46, 1) 100%);
}

.puppy-box:hover {
    transform: translateY(-5px);
}

.puppy-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
}

.puppy-box h3 {
    font-size: 18px;
    margin: 0;
}

@media (max-width: 768px) {
    .szczeniaki-container {
        flex-direction: column;
    }

    .szczeniaki-left {
        width: 100%;
        padding: 1.4rem;
        padding-top: 0;
    }

    .puppy-boxes {
        grid-template-columns: 1fr;
    }
}

/* Ensure no vertical scrollbar in section-animate */
.section-animate {
    overflow-y: hidden !important;
    max-height: 3100vh;
    /* Restrict height to viewport */
}

@media (max-width: 992px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .expanded-text {
        margin-top: 1rem;
    }
}

@media (min-width: 993px) {
    .desktop-only {
        display: block;
    }

    .mobile-only {
        display: none;
    }
}

@media (max-width: 1000px) {
    .sczeniaki-content2 {
        margin-top: 5px !important;
    }
}

.expanded-text {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
}

.expanded-text.show {
    opacity: 1;
    max-height: 3000px;
    z-index: 30000;
    /* dostosuj według potrzeb */
}

.read-more-btn {
    margin-top: 1rem;
    text-align: center;
    width: 100%;
}

.show-more-dogs {
    display: block;
    width: 100%;
    margin-left: 2rem;
    background: none;
    border: none;
    color: #000;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.show-more-dogs i {
    transition: transform 0.3s ease;
}

.show-more-dogs.active i {
    transform: rotate(180deg);
}

.extra-dogs {
    margin-top: 2rem;
    transition: all 0.3s ease;
}



.show-extra-dogs-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem auto 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: #eee;
    color: #222;
    font-size: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: background 0.2s, color 0.2s;
}

.show-extra-dogs-btn:active,
.show-extra-dogs-btn.active {
    background: #222;
    color: #fff;
}

.show-extra-dogs-btn i {
    pointer-events: none;
}

@media (min-width: 993px) {

    .show-extra-dogs-btn,
    .dog-categories1-extra {
        display: none !important;
    }
}

.family-carousel-container {
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.family-carousel {
    position: relative;
    width: 100%;
    height: 400px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-track img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    transition: background 0.3s ease;
    z-index: 10;
}

.carousel-control.prev {
    left: 10px;
}

.carousel-control.next {
    right: 10px;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-control:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .family-carousel-container {
        max-width: 100%;
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .family-carousel {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .family-carousel {
        height: 250px;
    }

    .carousel-control {
        font-size: 18px;
        padding: 8px;
    }
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero-corner-images {
    position: absolute;
    left: 20px;
    bottom: 20px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.corner-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-left: 20px;
    transition: transform 0.3s ease;
}


@media (max-width: 768px) {
    .corner-image {
        width: 30px;
        height: 30px;
        margin-left: 0px;
    }

    .hero-corner-images {
        left: 20px;
        bottom: 10px;
    }
}

.available-dogs-bar {
    background-color: #000000;
    color: #fff;
    text-align: center;
    padding-top: 5px;
    width: 100%;
    top: 100px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    min-height: 50px;
}

.available-dogs-bar span:hover {
    cursor: pointer;
}

@media (max-width: 768px) {
    .available-dogs-bar {
        padding: 10px;
        font-size: 12px;
        top: 90px;
    }

}

.dog-content a {
    text-decoration: none;
}

.dog-content p {
    text-decoration: none;
}

.puppy-box a {
    text-decoration: none;
}

.puppy-box {
    text-decoration: none;
}

.puppy-box h3 {
    text-decoration: none;
}

.puppy-box a h3 {
    text-decoration: none;
    color: white;
}

.dog-box {
    text-decoration: none;
}

@media (max-width: 1000px) {
    .text-side {
        padding: 20px;
    }

    .text-side h2 {
        font-size: 16px;
        padding: 0;
    }

    .text-side p {
        font-size: 14px;
        padding: 0;
    }

    .text-side .post-date {
        font-size: 14px;
        padding: 0;
    }

    .text-side .button-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px;
        padding-left: 0;
    }

    .text-side .action-button {
        margin: 0;
        padding: 8px 16px;
        font-size: 12px;
    }

    .text-side .mobile-link {
        color: white !important;
        font-size: 12px;
    }

    .content-box:hover {
        transform: none !important;
    }
}