.hero {
    padding: 200px 30px 150px 30px;
    background: var(--bg-color);
}

/* Grid container for themes */
.themes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns */
    gap: 40px; /* Space between items */
}

/* Style for each theme item */
.theme-item {
    background-color: #0000;
    border-radius: 4px;
    box-shadow: rgb(230, 230, 230) 0px 0px 4px;
    transform: translate(0);
    transition: transform .2s;
    position: relative;
    overflow: hidden;
}

.theme-thumbnail a {
    display: grid;
}

.theme-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-image: linear-gradient(0deg, #0006 0, #0000 80px);
    opacity: 0;
    transition: all .3s ease-in-out, height 0.3s ease-in-out;
    z-index: 1;
}

.theme-item:hover .theme-overlay {
    opacity: 1; /* Make the overlay visible on hover */
    height: 100%; /* Expand the overlay */
}

.theme-thumbnail {
    position: relative; /* Ensure the overlay is positioned correctly */
    z-index: 0; /* Place the thumbnail below the overlay */
}

.theme-item:hover {
    transform: matrix(1, 0, 0, 1, 0, -2);
}

/* Thumbnail styling */
.theme-thumbnail img {
    max-width: 100%;
    height: auto;
}

/* Title styling */
.theme-title {
    font-size: 16px;
    margin-top: 0;
    font-weight: bold;
}

.theme-title a {
    text-decoration: none;
    color: #333;
}

.theme-title a:hover {
    color: #0073e6; /* Change color on hover */
}

.theme-categories {
    padding: 80px 0 60px 0;
}

.theme-cat-wrapper {
    overflow: hidden;
    width: 100%;
}

.theme-cat-slider {
    display: flex;
    gap: 20px;
    cursor: grab;
    overflow-x: auto; /* Allow horizontal scrolling */
    scroll-behavior: smooth; /* Smooth scrolling for button navigation */
    -ms-overflow-style: none; /* Hide scrollbar for Internet Explorer and Edge */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.theme-cat-slider::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari, and other WebKit browsers */
}

.theme-cat-item {
    min-width: 150px;
    text-align: center;
    padding: 10px;
    background: #f4f4f4;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--st-patricks-blue);
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    border-radius: 100%;
}

.slider-nav:disabled {
    cursor: default;
    opacity: 0.5;
}

.slider-nav:not(:disabled):hover {
    cursor: pointer;
    opacity: 1;
    background: var(--razzmatazz);
}

.slider-nav.left-arrow {
    left: 0;
}

.slider-nav.right-arrow {
    right: 0;
}

.theme-cat-slider.dragging {
    scroll-behavior: auto;
    cursor: grabbing;
    user-select: none;
}

.theme-content {
    padding: 16px;
}

.free-themes-offer, .pixel-cta {
    padding: 60px 30px;
}

.theme-excerpt {
    color: #666;
    margin-top: unset;
}

.search-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-wrapper input[type="text"] {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.search-wrapper select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.search-wrapper button {
    padding: 10px 20px;
    background-color: #0073e6;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-wrapper button:hover {
    background-color: #005bb5;
}

.heading-wrapper h1 {
    font-size: 44px;
    /* text-align: center; */
    margin-top: unset;
}

.searchform {
    max-width: 780px;
    /* margin: 0 auto; */
}

.search-wrapper input[type="text"]:focus {
    outline: none;
}

.theme-category-container {
    position: relative;
}

.theme-cat-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all .3s ease-in-out;
}

.theme-cat-item a:hover {
    color: #0073e6;
}

.theme-category-title h2 {
    margin-top: unset;
    text-align: center;
    margin-bottom: 40px;
}

.load-more-btn-wrapper {
    text-align: center;
    padding-top: 60px;
}

.cta-contents-wrapper {
    border-radius: 16px;
    padding: 60px;
    background: var(--st-patricks-blue);
    background-image: url(/wp-content/uploads/2025/01/footer-bg.webp), var(--gradient-1);
    background-repeat: no-repeat;
    background-size: cover;
    align-items: center;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.toast span {
    visibility: hidden;
    max-width: 300px;
    background-color: #fff8f8;
    border-left: 5px solid #d02121;
    color: var(--primary);
    text-align: center;
    border-radius: 4px;
    padding: 16px;
    position: fixed;
    top: 162px;
    right: 20px;
    z-index: 9999;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: opacity 0.5s ease-in-out, visibility 0s linear 0.5s;
    opacity: 0;
    font-size: 13px;
}

.toast span.show {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.5s ease-in-out; /* Smooth fade-in */
}

.toast span.hide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0s linear 0.5s; /* Smooth fade-out with delay */
}

.hero-content-wrapper {
    display: flex;
    align-items: center;
}

.hero-left-col {
    padding-right: 32px;
}

.hero-right-col {
    padding-left: 32px;
}

.free-themes-content p {
    padding-top: 28px;
    max-width: 750px;
}

.free-themes-content {
    padding-bottom: 40px;
}

.theme-excerpt {
    min-height: 72px;
}

.cta-contents-wrapper h2, .cta-contents-wrapper p {
    color: var(--white);
}

.cta-right-col img {
    border-radius: 16px;
    width: 100%;
}

.cta-left-col p {
    padding-top: 28px;
    margin-bottom: 32px;
    line-height: 28px;
}

.theme-categories .container {
    max-width: 1300px;
}

.slider-nav.left-arrow {
    left: -60px;
}

.slider-nav.right-arrow {
    right: -60px;
}


.site-footer-marquee {
    --item-speed: 5s;
    --grid-gap: 32px;
    position: relative;
    z-index: 2;
    margin: 0 auto;
    padding: 24px 0;
    padding-inline: 24px;
    overflow: hidden;
    padding-inline: 0;
    overflow-x: hidden;
}

.site-footer-marquee-item:hover .site-footer-marquee-item__title {
    color: var(--razzmatazz);
}
.site-footer-marquee-item {
    --item-media-width: 200px;
    --item-media-height: 150px;
    position: relative;
    -webkit-transform: perspective(300px) translate3d(0, 0, 0);
    transform: perspective(300px) translate3d(0, 0, 0);
    color: #fff;
}
.site-footer-marquee-item__stack {
    position: absolute;
    top: 0;
    right: 0;
    width: var(--item-media-width);
    height: var(--item-media-height);
}
.site-footer-marquee-item__stack:before {
    --stack-translate-delay: 0s;
    --stack-bg: var(--stack-color-2);
    --stack-offset-y: -10px !important;
    --stack-offset-x: -10px !important;
    width: 96%;
    height: 96%;
    border-radius: 12px;
    opacity: 0.4;
}
.site-footer-marquee-item__stack:before, .site-footer-marquee-item__stack:after {
    --stack-offset-y: -5px;
    --stack-offset-x: -5px;
    --stack-bg: var(--stack-color-1);
    content: '';
    position: absolute;
    z-index: 0;
    top: var(--stack-offset-y);
    right: var(--stack-offset-x);
    width: 98%;
    height: 98%;
    overflow: hidden;
    -webkit-transform: translate(var(--stack-translate-x), var(--stack-translate-y));
    -ms-transform: translate(var(--stack-translate-x), var(--stack-translate-y));
    transform: translate(var(--stack-translate-x), var(--stack-translate-y));
    -webkit-transition: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-transition-delay: var(--stack-translate-delay, 0.1s);
    transition-delay: var(--stack-translate-delay, 0.1s);
    border: 2px solid #fff;
    border-radius: 10px;
    background: var(--stack-bg, #dbdbde);
}
.site-footer-marquee-item:hover .site-footer-marquee-item__stack:before, .site-footer-marquee-item:hover .site-footer-marquee-item__stack:after {
    --stack-translate-scale: 0.5;
    --stack-translate-x: calc(-1* var(--stack-offset-x)* var(--stack-translate-scale));
    --stack-translate-y: calc(var(--stack-offset-y)* var(--stack-translate-scale));
    border-radius: 8px;
}
.site-footer-marquee-item__media {
    display: -ms-flexbox;
    display: flex;
    position: relative;
    z-index: 1;
    width: var(--item-media-width);
    height: var(--item-media-height);
    overflow: hidden;
    border: 2px solid #fff;
    border-radius: 8px;
    background-color: #9e9ea7;
}
.site-footer-marquee-item__title {
    margin-top: 12px;
    color: #0d0c22;
    font-size: 14px;
    font-weight: 600;
    -webkit-transition: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-transition-delay: var(--stack-translate-delay, 0.1s);
    transition-delay: var(--stack-translate-delay, 0.1s);
}
.site-footer-marquee__track {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    animation: footer-marquee-mobile-wiggle 1.8s alternate-reverse infinite ease-in-out;
    -webkit-animation: footer-marquee-desktop linear infinite;
    animation: footer-marquee-desktop linear infinite;
    -webkit-animation-duration: calc(var(--item-speed)* var(--item-count, 8));
    animation-duration: calc(var(--item-speed)* var(--item-count, 8));
}  
.site-footer-marquee__track:hover {
    --grid-x-offset: -16px;
    -webkit-animation-play-state: paused;
    animation-play-state: paused;
}
.site-footer-marquee__grid {
    display: grid;
    grid-auto-columns: -webkit-min-content;
    grid-auto-columns: min-content;
    grid-auto-flow: column;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    -webkit-transform: translateX(var(--grid-x-offset, 0));
    -ms-transform: translateX(var(--grid-x-offset, 0));
    transform: translateX(var(--grid-x-offset, 0));
    -webkit-transition: -webkit-transform 0.6s ease-out;
    transition: -webkit-transform 0.6s ease-out;
    transition: transform 0.6s ease-out;
    transition: transform 0.6s ease-out, -webkit-transform 0.6s ease-out;
    gap: var(--grid-gap);
}
@keyframes footer-marquee-desktop {
    0% {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    100% {
        -webkit-transform: translate3d(calc(-50% - 16px), 0, 0);
        transform: translate3d(calc(-50% - 16px), 0, 0);
    }
}