/* V2 Theme Variables - Override common component styles */
:root {
    /* V2 Theme Variables - Using global lasso variables */
    --v2-primary-color: var(--lasso-button);
    --v2-secondary-color: var(--lasso-secondary-button);
    --v2-accent-color: var(--lasso-accent);
    --v2-text-color: var(--lasso-title);
    --v2-text-light: var(--lasso-text-light);
    /* Inverse text color for dark/accent backgrounds */
    --v2-text-inverse: #ffffff;
    --v2-bg-color: var(--lasso-background);
    --v2-bg-alt: #fff; /* #f8fafc; */
    --v2-border-color: var(--lasso-border);
    --v2-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);

    /* Highlight/Badge derived variables (parity with preview gradient) */
    --v2-highlight-color: var(--v2-accent-color);
    --v2-highlight-start: color-mix(
        in srgb,
        var(--v2-highlight-color) 15%,
        white
    );
    --v2-highlight-end: color-mix(in srgb, var(--v2-highlight-color) 8%, white);

    /* Override common component variables for v2 modern style */
    --card-bg: var(--v2-bg-color);
    --card-border: none;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Typography variables (sourced from DB via --lasso-font-*) */
    --v2-font-text: var(--lasso-font-text, "Helvetica Neue");
    --v2-font-heading: var(--lasso-font-heading, "Helvetica Neue");
    --v2-font-button: var(--lasso-font-button, "Helvetica Neue");

    /* Product card customizations */
    --hover-transform: translateY(-4px);
    --hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --image-bg: var(--v2-bg-alt);
    --image-hover-scale: scale(1.05);
    --product-padding: 1.25rem;
    --content-gap: 0.75rem;

    --product-title-size: 1rem;
    --product-title-weight: 600;
    --product-title-color: var(--v2-text-color);
    --product-title-line-height: 1.4;
    --product-card-border: solid 1px rgb(11 37 37 / 10%);

    --price-size: 1.125rem;
    --price-weight: 700;
    --price-color: var(--v2-primary-color);

    --badge-size: 0.875rem;
    --badge-weight: 500;
    --badge-color: var(--v2-text-light);
    --badge-bg: #f3f4f6;
    --badge-padding: 0.25rem 0.5rem;
    --badge-radius: 4px;

    /* Post card customizations */
    --post-aspect-ratio: 4/3;
    --post-overlay-bg: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        transparent 100%
    );
    --post-overlay-padding: 1.5rem;
    --post-title-size: 1.25rem;
    --post-title-weight: 700;
    --post-title-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);

    --post-title-storefront-size: 1.125rem;
    --post-title-storefront-weight: 700;

    /* Modal customizations - modern styling */
    --modal-overlay-bg: rgba(0, 0, 0, 0.5);
    --modal-bg: var(--v2-bg-color);
    --modal-radius: 16px;
    --modal-max-width: 480px;

    --modal-title-size: 1.875rem;
    --modal-title-color: var(--v2-text-color);
    --modal-subtitle-color: var(--v2-text-light);

    --benefits-bg: #f0fdf4;
    --benefits-border: 1px solid #bbf7d0;
    --benefit-dot-color: var(--v2-primary-color);

    --input-border: 1px solid var(--v2-border-color);
    --input-focus-border: var(--v2-primary-color);
    --input-focus-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);

    --submit-bg: var(--v2-primary-color);
    --submit-hover-bg: var(--v2-primary-color);
    --submit-hover-transform: translateY(-2px);

    /* Grid customizations */
    --products-grid-columns: repeat(auto-fit, minmax(220px, 1fr));
    --posts-grid-columns: repeat(auto-fit, minmax(160px, 1fr));
    --grid-gap: 1.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--v2-font-text, "Helvetica Neue"), -apple-system,
        BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--lasso-background);
    line-height: 1.6;
    width: 100%;
    min-width: 320px;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    color: var(--lasso-title);
    font-family: var(--v2-font-heading, "Helvetica Neue"), -apple-system,
        BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

a {
    color: var(--lasso-title);
    text-decoration: underline;
}

a:hover,
a:focus {
    opacity: 0.9;
    text-decoration: underline;
}

p, span, li, label {
    color: var(--lasso-title);
}

button,
.btn,
input[type="button"],
input[type="submit"] {
    background: var(--lasso-button);
    color: var(--lasso-button-text);
    font-family: var(--v2-font-button, "Helvetica Neue"), -apple-system,
        BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border: none;
    cursor: pointer;
}

button:hover,
.btn:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
    background: var(--lasso-secondary-button);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    overflow-x: hidden;
}

.post-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--lasso-background);
}

.post-container img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    max-width: 100%;
}
.post-container a{
    width: 100%;
}

.post-image-container a {
    display: block;
    width: 100%;
    height: 100%;
}

.post-image-container {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1;
    background: var(--post-card-bg, var(--product-card-bg, #fff));
    border: var(--product-card-border, 1px solid rgba(41, 133, 133, 0.08));
    border-radius: var(--product-card-border-radius, 10px);
    overflow: hidden;
    max-width: 50rem;
    max-height: 50rem;
}

.post-image-container.post-image-container--landscape {
    aspect-ratio: 16 / 9;
}

.embed-section {
    width: 100%;
}
.main-column img{
    border-radius: var(--product-card-border-radius, 10px);
    overflow: hidden;
    max-width: 50rem;
    max-height: 50rem;
}

.embed-youtube-video-container,
.embed-youtube-short-container{
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.embed-youtube-video-container iframe,
.embed-youtube-short-container iframe{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--border-radius);
}

.embed-description {
    width: 100%;
}

.embed-description .post-description {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--lasso-title);
    margin-bottom: 0.5rem;
}

.embed-description .post-date {
    font-size: 0.875rem;
    color: var(--v2-text-light);
}

.post-container-content {
    width: 100%;
}

.post-title-under-image {
    margin: 0.75rem 0 0.5rem 0;
}

.post-container .description-text {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.platform-icon {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: transparent;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-icon i {
    color: white;
    font-size: 40px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.hero {
    background: var(--lasso-background);
    padding: 1.5rem 0;
}

.card.sidebar-card {
    background: var(--product-card-bg, var(--lasso-background));
}

.hero-content {
    display: grid;
    gap: 0rem;
    align-items: center;
}

.profile-section {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 100px;
    min-height: 100px;
}

.profile-text h1 {
    font-size: 1.4rem;
    font-weight: bold;
    font-family: var(--v2-font-heading, "Helvetica Neue"), -apple-system,
        BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--lasso-title);
    margin-bottom: 0.75rem;
}

.profile-text p {
    font-size: 1.125rem;
    color: var(--lasso-text-light);
    max-width: 32rem;
}

.cta-section {
    border-radius: 1rem;
}

.get-updates-btn {
    width: 100%;
    background: var(--lasso-button);
    font-family: var(--v2-font-button, "Helvetica Neue"), -apple-system,
        BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--lasso-button-text) !important;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: background-color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.get-updates-btn:hover {
    background: var(--lasso-secondary-button);
}

.search-container {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    background: white;
    font-size: 1rem;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    width: 1.25rem;
    height: 1.25rem;
}

.search-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.search-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--lasso-social-icons);
    border-radius: 0.375rem;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    font-size: 0.975rem;
    color: var(--lasso-social-icons);
    font-weight: 500;
    text-decoration: unset
}
.search-filter:hover {
    color: var(--lasso-button);
    border-color: var(--lasso-button);
    text-decoration: none;
}
.search-filter.active {
    background: var(--lasso-social-icons);
    color: var(--v2-text-inverse);
    border-color: var(--lasso-social-icons);
    text-decoration: none;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
    width: 100%;
    overflow-x: hidden; /* Prevent main content from overflowing horizontally */
    min-height: 70vh;
}

.content-grid {
    display: grid;
    width: 100%;
    overflow-x: hidden; /* Contain content grid overflow */
}

.main-column {
    /* Will be adjusted in media queries */
    width: 100%;
    overflow-x: hidden; /* Prevent main column from overflowing */
}

.sidebar {
    display: none; /* Hidden on mobile, shown on desktop */
}

/* Cards */
.card {
    background: var(--lasso-background);
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.card-content {
    padding: 1.5rem;
}

/* Featured Course */
.featured-course {
    border: 2px solid var(--v2-highlight-color);
    background: var(--featured-block-bg, var(--v2-highlight-end));
    margin-bottom: 2rem;
}

.featured-course.violet-dark {
    border: 2px solid var(--product-title-color) !important;
}
.featured-course.violet-dark .course-text h3 {
    color: var(--lasso-social-icons) !important;
}
.featured-course.violet-dark .badge {
    color: var(--product-title-color) !important;
    border: 1px solid var(--product-title-color) !important;
}
.featured-course.violet-dark .learn-more-btn {
    background: var(--lasso-social-icons) !important;
    color: var(--v2-text-inverse) !important;
    border: 1px solid var(--lasso-social-icons) !important;
}
.featured-course.violet-dark p {
    color: var(--lasso-social-icons) !important;
}

.course-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: flex-start;
}

.course-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    color: var(--featured-title-color, var(--product-title-color));
}
.course-title.two-line {
    -webkit-line-clamp: 2;
    line-clamp: 2;
}
.course-title.three-line {
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.course-image {
    width: 100px;
}

.course-description {
    grid-column: 1 / -1;
    margin-top: 0.25rem;
    color: var(--featured-description-color, var(--lasso-text-light));
    opacity: 0.9
}
.course-content > a {
    min-width: 100px;
}

.course-icon {
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.course-text h3 {
    font-size: 1.25rem;
    font-weight: bold;
    font-family: var(--v2-font-heading, "Helvetica Neue"), -apple-system,
        BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--featured-title-color, var(--product-title-color));
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.course-text .course-price *{
    color: var(--featured-description-color, var(--product-title-color));
}

.course-text p {
    color: var(--lasso-text-light);
    margin-bottom: 1rem;
}

.course-price {
    color: var(--product-price-color);
    font-weight: 600;
}

.badge {
    display: inline-block;
    background: var(--v2-highlight-start);
    color: var(--v2-highlight-color);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.learn-more-btn {
    background: var(--featured-button-color, var(--v2-primary-color));
    border: 1px solid var(--featured-button-color, var(--v2-primary-color));
    font-family: var(--v2-font-button, "Helvetica Neue"), -apple-system,
        BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--featured-button-text, var(--v2-text-inverse));
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
}

.course-content .learn-more-btn {
    grid-column: 1 / -1;
    justify-self: start;
}

.learn-more-btn span {
    color: var(--featured-button-text, var(--v2-text-inverse));
}

.learn-more-btn:hover {
    opacity: 0.9;
    text-decoration: none;
}

.section {
    margin-bottom: 2rem;
    width: 100%;
    overflow-x: hidden;
}


.more-posts .section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.more-posts .section-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding-bottom: 0;
    overflow: visible;
}

/* Grid-2 section-items: Default styling for 2 columns */
.grid-2.section-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    overflow-x: visible;
}

.grid-2.section-items > div {
    flex: 0 0 calc(50% - 0.5rem);
    max-width: calc(50% - 0.5rem);
    box-sizing: border-box;
}

/* Override for carousel layout - must come after grid-2 to have higher specificity */
.grid-2.section-items.carousel-layout > div {
    flex: 0 0 auto !important;
    max-width: none !important;
}

.layout-grid .product-card.section-item,
.layout-carousel .product-card.section-item {
    background: var(--product-card-bg);
    border-radius: var(--product-card-border-radius, 0.75rem);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
    cursor: pointer;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.layout-grid .product-card.section-item {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.layout-carousel .product-card.section-item {
    width: 170px;
    flex: 0 0 auto;
}

.layout-grid .product-card.section-item .product-link,
.layout-carousel .product-card.section-item .product-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    width: 100%;
    min-width: 0;
}

.layout-grid .product-card.section-item .product-item-image-container,
.layout-carousel .product-card.section-item .product-item-image-container {
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
    margin-bottom: 0;
    padding: 10px;
}

.layout-grid .product-card.section-item .item-image,
.layout-carousel .product-card.section-item .item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
    display: block;
    border-radius: 0;
}

.layout-grid .product-card.section-item .d-block-center,
.layout-carousel .product-card.section-item .d-block-center {
    display: block;
    margin: 0 auto;
}

.layout-grid .product-card.section-item .product-item-info,
.layout-carousel .product-card.section-item .product-item-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 0.25rem;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    padding-top: 0.5rem;
}

.layout-grid .product-card.section-item .product-item-info .product-title,
.layout-carousel .product-card.section-item .product-item-info .product-title {
    padding: 0;
    margin: 0;
}

.layout-grid .product-card.section-item .product-title,
.layout-carousel .product-card.section-item .product-title {
    font-weight: normal;
    color: var(--product-title-color);
    margin: 0;
    padding: 0;
    font-size: 1rem;
    line-height: 1.4;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-height: calc(1rem * 1.4 * 2);
    word-wrap: break-word;
    width: 100%;
    min-width: 0;
    height: auto;
}

.layout-grid .product-card.section-item .product-price-container,
.layout-carousel .product-card.section-item .product-price-container {
    padding-top: 0.2rem;
}

.layout-grid .product-card.section-item .product-price,
.layout-carousel .product-card.section-item .product-price {
    font-size: 1.125rem;
    font-weight: bold;
    color: var(--product-title-color);
}

.layout-grid .product-card.section-item .see-details-btn,
.layout-carousel .product-card.section-item .see-details-btn {
    width: 100%;
    margin-top: auto;
    text-align: center;
    padding: 0.3rem 1rem;
    border: 1px solid var(--see-details-button-bg, var(--lasso-button));
    border-radius: 10px;
    background: var(--see-details-button-bg, var(--lasso-button));
    color: var(--see-details-button-text, var(--lasso-button-text));
    font-weight: 500;
    max-width: 250px;
    text-decoration: none;
    display: block;
}

.layout-grid .product-card.section-item .see-details-btn:hover,
.layout-carousel .product-card.section-item .see-details-btn:hover {
    opacity: 0.95;
}

.more-posts .section-item {
    width: 100%;
    max-width: none !important;
    aspect-ratio: 1 / 1;
    border-radius: 0.75rem;
    overflow: hidden;
    position: relative;
}

.more-posts .section-item a {
    display: block;
    height: 100%;
    width: 100%;
    border-radius: inherit;
    overflow: hidden;
    text-decoration: none;
}

.more-posts .section-item img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.more-posts .section-item a:hover img,
.more-posts .section-item a:focus img {
    transform: scale(1.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    font-family: var(--v2-font-heading, "Helvetica Neue"), -apple-system,
        BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--lasso-title);
}

.view-all-btn {
    background: none;
    border: none;
    font-family: var(--v2-font-button, "Helvetica Neue"), -apple-system,
        BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--lasso-title);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: underline;
    margin-bottom: 1rem;
}

.view-all-btn:hover {
    color: var(--lasso-secondary-button);
}

/* Grid Layouts */
.posts-grid.layout-carousel,
.products-grid.layout-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.posts-grid.layout-grid,
.products-grid.layout-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
}

.products-grid.layout-grid .product-card {
    width: 100%;
    min-width: 0;
}

.posts-grid.layout-list,
.products-grid.layout-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.posts-grid.layout-list .post-card,
.products-grid.layout-list .product-card {
    width: 100%;
    flex: 0 0 auto;
    max-width: unset!important;
}

.posts-grid.layout-list .post-card img,
.products-grid.layout-list .product-card img{
    max-width: unset!important;
}

.products-grid.layout-list .product-card .product-link {
    display: flex;
    flex-direction: row!important;
    padding: 1rem;
}

.posts-grid.layout-list .post-card {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    max-width: 40rem;
    max-height: 40rem;
}

/* Button Layout */
.posts-buttons.layout-button,
.products-buttons.layout-button {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.posts-buttons.layout-button .post-button {
    display: block;
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: var(--posts-button-bg, var(--lasso-button));
    color: var(--posts-button-text, var(--lasso-button-text));
    text-align: center;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: var(--product-title-weight);
    font-size: var(--product-title-size);
    transition: var(--transition);
    border: 1px solid var(--posts-button-bg, var(--lasso-button));
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.products-buttons.layout-button .product-button {
    display: block;
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: var(--links-button-bg, var(--lasso-button));
    color: var(--links-button-text, var(--lasso-button-text));
    text-align: center;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: var(--product-title-weight);
    font-size: var(--product-title-size);
    transition: var(--transition);
    border: 1px solid var(--links-button-bg, var(--lasso-button));
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.posts-buttons.layout-button .post-button:hover {
    background: var(--posts-button-bg, var(--lasso-button));
    color: var(--posts-button-text, var(--lasso-button-text));
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
}

.products-buttons.layout-button .product-button:hover {
    background: var(--links-button-bg, var(--lasso-button));
    color: var(--links-button-text, var(--lasso-button-text));
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
}

.posts-buttons.layout-button .post-button span,
.products-buttons.layout-button .product-button span {
    display: block;
    color: inherit;
}

/* Gallery Layout */
.posts-gallery.layout-gallery,
.products-gallery.layout-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.posts-gallery.layout-gallery .gallery-item,
.products-gallery.layout-gallery .gallery-item {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: var(--product-card-border, 1px solid rgba(41, 133, 133, 0.08));
}

.posts-gallery.layout-gallery .gallery-item:hover,
.products-gallery.layout-gallery .gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--hover-shadow);
}

.posts-gallery.layout-gallery .gallery-image,
.products-gallery.layout-gallery .gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Single item gallery - full width */
.single-block .products-gallery.layout-gallery,
.section:not(.single-block) .posts-gallery.layout-gallery:has(> :only-child),
.section .posts-gallery.layout-gallery:has(> :only-child) {
    grid-template-columns: 1fr;
}

.single-block .products-gallery.layout-gallery .gallery-item,
.section .posts-gallery.layout-gallery:has(> :only-child) .gallery-item {
    aspect-ratio: auto;
    max-height: 40rem;
    max-width: 40rem;
}

.posts-grid::-webkit-scrollbar,
.products-grid::-webkit-scrollbar {
    display: none; /* Safari/Chrome */
}

.posts-grid > *,
.products-grid > * {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.posts-grid.layout-carousel .post-card,
.products-grid.layout-carousel .product-card {
    flex: 1 1 calc((100% - 2rem) / 3);
    min-width: 170px;
}

/* Keep carousel cards at 2:3 when row has few items */
.posts-grid.layout-carousel .post-card {
    aspect-ratio: 2 / 3;
    height: auto;
}
.posts-grid.layout-carousel .post-card .post-image {
    aspect-ratio: 2 / 3;
    height: 100%;
}

/* Single-post-item carousel: force square */
.posts-grid.layout-carousel.single-post-item .post-card {
    aspect-ratio: 1 / 1;
}
.posts-grid.layout-carousel.single-post-item .post-card .post-image {
    aspect-ratio: 1 / 1;
}

.posts-grid.layout-grid .post-card,
.products-grid.layout-grid .product-card {
    width: 100%;
    flex: 1 1 auto;
}

.posts-grid .post-card {
    width: 100%;
    min-width: 160px;
    flex: 0 0 auto;
}

.post-card {
    position: relative;
    height: 20rem;
    overflow: hidden;
    cursor: pointer;
    width: 100%;
}
.category-page .post-card {
    height: 30rem;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.post-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.post-title {
    color: var(--post-title-color, white);
    font-weight: bold;
    font-size: 1.125rem;
    text-align: center;
}

.product-card {
    cursor: pointer;
}

.list-product-card {
    /* background: var(--product-card-bg, var(--lasso-background));
    border: var(--product-card-border, 1px solid rgba(41, 133, 133, 0.08));
    border-radius: var(--product-card-border-radius, 10px); */
    width: 100%;
}

.list-product-content {
    display: flex;
    gap: 1rem;
    background: var(--product-card-bg, var(--lasso-background));
    border: var(--product-card-border, 1px solid rgba(41, 133, 133, 0.08));
    border-radius: var(--product-card-border-radius, 0.75rem);
    padding: 1rem;
}
.list-product-card.product-list .list-product-content{
    margin-bottom: 1rem;
}
.list-product-image {
    flex: 0 0 40%;
    max-width: 40%;
    border-radius: var(--product-card-border-radius, 10px);
}

.list-product-image .list-image-box {
    aspect-ratio: 1;
    width: 100%;
    background: white;
    overflow: hidden;
    border-radius: var(--product-card-border-radius, 10px);
    padding: 10px;
}
.list-product-image .list-image-box a{
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}
.list-product-image .list-image-box img{
    border-radius: 10px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.single-block .list-product-info {
    padding: 1rem 0.5rem;
}

.list-product-info .product-name {
    flex: 1;
    padding-bottom: 0;
}

.list-product-info {
    width: 100%;
    overflow: hidden;
}

.single-block .list-product-info .product-name,
.list-product-card.desktop .list-product-info .product-name{
    font-size: 1.5rem!important;
}

.single-post-card-container .list-product-info {
    padding: 1rem 0.5rem;
}

.list-product-card .product-name {
    font-weight: 600;
    font-size: var(--product-title-size);
    line-height: 1.3;
    color: var(--product-title-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-product-card .product-description {
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--product-title-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.list-product-card .product-footer {
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
}

.links-in-post .list-product-content{
    align-items: center;
}
.links-in-post img{
    padding: 5px
}

/* Sidebar product card hover effects */
.sidebar-card .list-product-card .list-image-box {
    -webkit-transition: all 0.1s ease-in-out;
    -moz-transition: all 0.1s ease-in-out;
    -o-transition: all 0.1s ease-in-out;
    -ms-transition: 0.1s ease-in-out;
    transition: all 0.1s ease-in-out;
    display: block;
    width: 100px;
    padding-bottom: 5px;
    border-radius: 10px;
    opacity: 0.8;
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.sidebar-card .list-product-card .list-image-box:hover {
    opacity: 1;
    transform: scale(1.03);
}

.sidebar-card .list-product-card .product-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.amazon-btn {
    display: inline-block;
    background: var(--lasso-button);
    color: var(--lasso-button-text);
    text-decoration: none;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    opacity: 0.95;
    text-align: center;
}

.amazon-btn:hover {
    background: var(--lasso-button);
    opacity: 1;
    text-decoration: none;
}

.mobile-links-panel .amazon-btn,
.sidebar .amazon-btn {
    display: block;
    width: 100%;
}

.links-in-post .list-product-card {
    background: transparent;
    border: none;
}

.links-in-post .list-product-card.product-list{
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.links-in-post .list-product-card.product-list .list-product-content{
    margin-bottom: 0;
}

.links-in-post .list-product-content{
    background: var(--product-card-bg, var(--lasso-background));
    border-radius: 12px;
    overflow: hidden;
    padding: 1rem;
}

.links-in-post .list-product-image .list-image-box{
    padding: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: unset;
}

.links-in-post .list-product-image .list-image-box img,
.links-in-post .list-product-image img.item-image{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.links-in-post .product-price{
    color: var(--product-title-color);
    font-weight: 700;
}

.links-in-post .product-footer{
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.a-price[data-a-size="l"] {
    font-size: var(--product-price-size);
    color: var(--product-price-color);
}

.a-price[data-a-size="l"] .a-price-symbol {
    top: -0.4em;
    font-size: 13px;
    position: relative;
}

.a-price[data-a-size="l"] .a-price-fraction {
    top: -0.5em;
    font-size: 13px;
    position: relative;
}

.product-image-container {
    aspect-ratio: 1;
    background: #f9fafb;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.product-name {
    font-weight: 600;
    color: var(--product-title-color);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.125rem;
    font-weight: bold;
    color: var(--product-title-color);
    padding-left: 0;
}

.product-base-price {
    text-decoration: line-through;
    color: var(--product-title-color);
    opacity: 0.7;
    font-size: 1.2rem;
    line-height: 1;
    padding-left: 0;
}

.prime-badge {
    border: 1px solid #d1d5db;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.sidebar-card {
    margin-bottom: 1.5rem;
}

.sidebar-title {
    font-weight: bold;
    color: var(--product-title-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.sidebar-title *{
    color: var(--product-title-color);
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-btn {
    background: none;
    border: none;
    font-family: var(--v2-font-button, "Helvetica Neue"), -apple-system,
        BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    text-align: left;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
    font-size: 1.4rem;
    color: var(--product-title-color);
}

.category-btn:hover {
    color: var(--product-card-bg);
    background: var(--product-title-color);
}

.category-list-collapsible {
    position: relative;
}

.category-list-collapsible .category-item-hidden {
    display: none;
}

.category-list-collapsible.expanded .category-item-hidden {
    display: block;
}

.category-list-collapsible .view-all-btn {
    font-weight: 500;
    color: var(--product-title-color);
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
}

.category-list-collapsible .view-all-btn:hover {
    color: var(--product-card-bg);
    background: var(--product-title-color);
}

.category-separator {
    border: none;
    height: 0.5px;
    background-color: var(--product-title-color);
    opacity: 0.3;
    margin: 0.5rem 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.flex-row {
    display: flex;
    flex-direction: row!important;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid;
    border-radius: 0.375rem;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    font-size: 0.975rem;
    color: var(--lasso-social-icons);
}
.social-btn:hover{
    color: var(--lasso-button);
    border-color: var(--lasso-button);
    text-decoration: none;
}

.footer {
    background: var(--lasso-background);
    padding: 1rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--lasso-title);
}

.footer-logo {
    width: 2rem;
    height: 2rem;
    background: var(--lasso-accent);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lasso-button-text);
    font-weight: bold;
    font-size: 0.875rem;
}

.footer-name {
    font-weight: 600;
    color: var(--lasso-title);
}

.footer-cta {
    background-color: var(--lasso-button) !important;
    color: var(--lasso-button-text);
    font-family: var(--v2-font-button, "Helvetica Neue"), -apple-system,
        BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none !important;
    transition: opacity 0.2s;
}

.footer-cta:hover {
    opacity: 0.9;
    color: var(--lasso-button-text);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 1rem;
    padding: 1.25rem; /* Reduced from 2rem for mobile */
    max-width: 28rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    font-family: var(--v2-font-heading, "Helvetica Neue"), -apple-system,
        BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--lasso-title);
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: var(--lasso-text-light);
}

.benefits-box {
    background: var(--modal-bg);
    color: var(--lasso-button);
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--lasso-button);
    margin-bottom: 1rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--lasso-button-text);
    margin-bottom: 0.5rem;
}

.benefit-item *{
    color: var(--lasso-button-text);
}

.benefit-item:last-child {
    margin-bottom: 0;
}

.benefit-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--lasso-button-text);
    border-radius: 50%;
}

.modal-form {
    margin-bottom: 1rem;
}

.modal-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.modal-input:focus {
    outline: none;
    border-color: var(--lasso-button);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.modal-submit {
    width: 100%;
    background: var(--lasso-button);
    color: var(--lasso-button-text);
    font-family: var(--v2-font-button, "Helvetica Neue"), -apple-system,
        BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.modal-submit:hover {
    opacity: 0.9;
}

.modal-disclaimer {
    font-size: 0.75rem;
    color: var(--lasso-title);
    text-align: center;
    opacity: 0.9;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
}

/* Category Product Page Styles */
body.category-page {
    padding-bottom: 5rem;
}

/* Category Page Header */
.category-header {
    background: var(--lasso-background);
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.amazon-prime {
    width: 50px;
}

.profile-section {
    display: block;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.profile-image {
    border-radius: 50%;
    flex-shrink: 0;
}

.profile-info h1 {
    font-weight: 600;
    color: var(--lasso-title);
    margin-bottom: 0;
    line-height: 1.2;
}

.profile-info p {
    color: var(--lasso-title);
    line-height: 1.2;
}

.header-cta {
    background: #374151;
    color: white;
    font-family: var(--v2-font-button, "Helvetica Neue"), -apple-system,
        BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.header-cta:hover {
    background: #1f2937;
}

/* Themed variants */
.header-cta.purple {
    background: var(--lasso-accent);
    color: var(--lasso-button-text);
}
.header-cta.purple:hover {
    opacity: 0.9;
}
.header-cta.green {
    background: var(--lasso-button);
    color: var(--lasso-button-text);
}
.header-cta.green:hover {
    background: var(--lasso-secondary-button);
}

/* Search Section */
.search-section {
    background: var(--lasso-background);
    padding: 0.75rem 0;
}

.search-container {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    background: #f9fafb;
    font-size: 1rem;
    transition: border-color 0.2s;
    margin-bottom: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--lasso-button);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 40%;
    transform: translateY(-50%);
    color: #9ca3af;
    width: 1.25rem;
    height: 1.25rem;
}

/* Category Header Section */
.category-header-section {
    background: var(--lasso-background);
    padding: 1.5rem 0;
}

.category-meta {
    font-size: 0.875rem;
    color: var(--lasso-text-light);
    margin-bottom: 0.5rem;
}

.category-title {
    font-size: 2rem;
    font-weight: bold;
    font-family: var(--v2-font-heading, "Helvetica Neue"), -apple-system,
        BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--lasso-title);
    margin-bottom: 0.75rem;
}

.category-subtitle {
    font-size: 1rem;
    color: var(--lasso-text-light);
}

/* Products Section */
.products-section {
    margin-bottom: 3rem;
}

.products-grid.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.product-card.category-card {
    border: var(--product-card-border, solid 1px rgba(41, 133, 133, 0.08));
    border-radius: var(--product-card-border-radius, 0.75rem);
    text-align: left;
    background: var(--product-card-bg, #fff);
    transition: var(--transition, all 0.2s ease);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
    cursor: pointer;
    padding: 0;
}

.product-card.category-card .product-image-container {
    aspect-ratio: 1;
    background: #f9fafb;
    overflow: hidden;
    position: relative;
    margin-bottom: 0;
}

.product-card.category-card .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.product-info {
    padding: 1rem;
}

.product-name {
    font-weight: 600;
    color: var(--product-title-color);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.6em;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.single-block .list-product-info .product-price{
    font-size: 1.8rem!important;
}

.product-price {
    font-size: 1.125rem;
    font-weight: bold;
    color: var(--product-title-color);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-cents {
    font-size: 0.875rem;
    vertical-align: top;
}

.prime-badge {
    color: #0066c0;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Empty Category */
.empty-category {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--lasso-text-light);
}

.empty-category h2 {
    font-size: 1.5rem;
    color: var(--lasso-title);
    margin-bottom: 1rem;
}

/* More from Sara Section */
.more-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--lasso-title);
    margin-bottom: 1rem;
}

.posts-grid.category-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.posts-grid.category-posts-full {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.post-card.category-post {
    aspect-ratio: 1;
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.7) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 0.75rem;
}

.post-title {
    font-weight: bold;
    font-size: 0.75rem;
    line-height: 1.2;
}

/* Category Page Footer */
.footer.category-footer {
    background: linear-gradient(90deg, #8b5cf6 0%, #ec4899 100%);
    color: white;
    padding: 1rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer.category-footer .footer-logo {
    width: 2rem;
    height: 2rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.footer.category-footer .footer-cta {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
}

.footer.category-footer .footer-cta:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Back Button */
.back-button {
    background: none;
    border: none;
    color: var(--lasso-text-light);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.back-button:hover {
    color: var(--lasso-title);
}

/* Search Results Styles */
.search-results-page .category-meta {
    color: var(--lasso-text-light);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.search-highlight {
    --search-highlight-base: var(--product-title-color);
    background-color: color-mix(
        in srgb,
        color-mix(in srgb, var(--search-highlight-base) 15%, white) 55%,
        color-mix(in srgb, var(--search-highlight-base) 35%, black) 45%
    );
    color: var(--search-highlight-base);
    padding: 1px 2px;
    border-radius: 2px;
    font-weight: 600;
}

.search-no-results {
    text-align: center;
    padding: 80px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.no-results-icon {
    color: var(--lasso-text-light);
    margin-bottom: 24px;
}

.search-no-results h2 {
    color: var(--lasso-title);
    font-size: 28px;
    margin-bottom: 16px;
    font-weight: 600;
}

.search-no-results p {
    color: var(--lasso-background);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.search-suggestions {
    background-color: var(--product-card-bg, var(--lasso-background));
    border-radius: 8px;
    padding: 20px;
    margin: 24px 0;
    text-align: left;
}

.search-suggestions p {
    margin-bottom: 12px;
    color: var(--product-title-color);
    font-weight: 600;
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-suggestions li {
    color: var(--product-title-color);
    padding: 4px 0;
    position: relative;
    padding-left: 16px;
}

.search-suggestions li:before {
    content: "•";
    color: var(--product-title-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.back-to-home-btn {
    display: inline-block;
    background-color: var(--product-title-color);
    color: var(--lasso-background);
    font-family: var(--v2-font-button, "Helvetica Neue"), -apple-system,
        BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease;
    margin-top: 16px;
}

.back-to-home-btn:hover {
    background-color: var(--product-title-color);
    color: var(--lasso-background);
    text-decoration: none;
}

.search-results-page .section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.search-results-page .products-grid.category-grid,
.search-results-page .posts-grid.category-posts {
    gap: 20px;
}

.search-container {
    position: relative;
}

.mobile-social-icon {
    display: none;
    text-decoration: none;
    color: var(--lasso-social-icons);
}
.desktop-social-icons {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 10px 0;
}

.desktop-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--lasso-social-icons);
    color: var(--lasso-social-icons);
    background: transparent;
    text-decoration: none;
    gap: 10px;
    justify-content: center;
    margin: 10px 0;
    font-size: 23px;
    color: var(--lasso-social-icons);
}

.desktop-social-icons a:hover {
    color: var(--lasso-button);
    border-color: var(--lasso-button);
}
.desktop{
    display: block;
}
.mobile{
    display: none;
}
.post img{
    padding: 10px;
    border-radius: 20px;
}
.links-in-post.card{
    background: var(--lasso-button)!important;
    padding: 1rem;
}
.card.links-in-post .section-title{
    color: var(--lasso-button-text)!important;
    margin: 0 0 1rem 0;
}
.card.links-in-post{
    box-shadow: none!important;
    border: 1px solid var(--lasso-button)!important;
    border-radius: 0.5rem
}

.pagination-section {
    margin: 40px 0;
    padding: 20px 0;
}

.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.pagination-info {
    font-size: 14px;
    color: var(--lasso-text-light);
    text-align: center;
}

.pagination-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 10px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--lasso-background);
    border-radius: 8px;
    color: var(--lasso-title);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background: var(--lasso-button);
    border-color: var(--lasso-button);
    color: var(--lasso-button-text);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination-page {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: var(--lasso-title);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination-page:hover {
    background: var(--lasso-button);
    color: var(--lasso-button-text);
}

.pagination-page.current {
    background: var(--lasso-button);
    color: var(--lasso-button-text);
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--lasso-text-light);
    font-size: 14px;
}

.post-date {
    color: var(--lasso-title);
    opacity: 0.7;
}
.d-none{
    display: none!important;
}
.profile-text .description-text *{
    color: var(--lasso-title)!important;
}

.description-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    vertical-align: top;
    color: var(--lasso-title);
    word-wrap: break-word;
}
.description-text *{
    color: var(--lasso-title);
}

.description-text.expanded {
    display: block;
    -webkit-line-clamp: none;
    line-clamp: none;
    -webkit-box-orient: unset;
    max-height: none;
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
    margin-bottom: 0.5rem;
}

.more-btn {
    display: inline-block;
    color: var(--product-title-color);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.85em;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.more-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.more-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Less button state */
.more-btn[data-state="less"] {
    opacity: 0.8;
}

.more-btn[data-state="less"]:hover {
    opacity: 1;
}
.embed-description .more-btn{
    color: var(--lasso-title)!important;
}
.embed-description .more-btn:hover{
    color: var(--lasso-title)!important;
    text-decoration: underline!important;
}
.profile-text .more-btn{
    color: var(--lasso-title)!important;
}
.profile-text .more-btn:hover{
    color: var(--lasso-title)!important;
    text-decoration: underline!important;
}

.more-btn {
    background: none;
    border: none;
    color: var(--product-title-color);
    cursor: pointer;
    font-size: inherit;
    padding: 0;
    margin-left: 4px;
    text-decoration: underline;
    display: none; /* Hidden by default, shown by JavaScript when needed */
}

.more-btn:hover {
    color: var(--product-title-color)!important;
    background: unset!important;
}

.product-item-info {
    padding: 10px;
}

.product-item-info > div {
    padding: 0.1rem 0rem;
}

.product-item-info .product-base-price {
    font-size: 0.9rem;
}
.product-item-info .product-price-container {
    padding-top: 0.2rem;
}

.see-details-btn {
    width: 100%;
    margin-top: auto; /* keep CTA at the bottom */
    text-align: center;
    padding: 0.3rem 1rem;
    border: 1px solid var(--see-details-button-bg, var(--lasso-button));
    border-radius: 9999px;
    background: var(--see-details-button-bg, var(--lasso-button));
    color: var(--see-details-button-text, var(--lasso-button-text));
    font-weight: 500;
    max-width: 250px;
}

.see-details-btn:hover {
    opacity: 0.95;
}

.product-card .product-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card .product-item-info {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 0.25rem;
}


.carousel-layout {
    display: flex !important;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 0.75rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-layout::-webkit-scrollbar {
    display: none;
}

.carousel-layout .section-item {
    flex: 0 0 auto;
    min-width: 200px;
    max-width: 250px;
    scroll-snap-align: start;
    background: var(--lasso-background);
}

.carousel-layout {
    flex-wrap: nowrap !important;
}

.carousel-layout > div {
    flex: 0 0 auto !important;
    min-width: 200px;
    max-width: 250px;
}

/* Override for product-card in carousel */
.carousel-layout .product-card.section-item {
    min-width: 170px;
    max-width: 170px;
    width: 170px;
}

.modal-overlay .modal-content{
    background: var(--modal-bg);
}
/* New Featured Course Styles Desktop */
.featured-course .card-content { padding: 0; } .featured-course .course-content { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; align-items: stretch; height: 100%; } .featured-course .course-content > a:first-child { grid-column: 1; grid-row: 1 / 4; display: block; height: 100%; } .featured-course .course-image { width: 100%; height: 100%; object-fit: cover; display: block; border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; } .featured-course .course-text { grid-column: 2; grid-row: 1; padding: 1.5rem 1.5rem 0; } .featured-course .course-description { grid-column: 2; grid-row: 2; padding: 0 1.5rem; margin-top: 0.75rem; } .featured-course .learn-more-btn { grid-column: 2; grid-row: 3; display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 1.5rem; margin-top: 1rem; margin-bottom: 1.25rem; margin-left: 1.5rem; justify-self: start; font-weight: 700; } .featured-course .learn-more-btn span { display: inline-flex; align-items: center; font-weight: 700; } a.learn-more-btn { margin-left: 1rem; }

/* Mobile Styles (max-width: 640px) */
@media (max-width: 640px) {
    .post-title {
        font-size: 0.75rem!important;
    }
    .course-content {
        gap: 0
    }
    .posts-grid{
        gap: 1rem;
    }
    .product-link .item-image, .large-item-image {
        width: 100px!important;
        height: 100px!important;
    }
    .post-card.category-post {
        width: 100%!important;
    }
    .links-in-post.card{
        padding: 0;
    }
    .more-posts{
        margin-bottom: 6rem;
    }
    
    /* Ensure post cards match product card width in grid layout */
    .more-posts .section-items .post-card {
        width: 100%;
        box-sizing: border-box;
    }
    .category-header-section .category-title{
        font-size: 1.5rem!important;
    }
    .single-block .list-product-info .product-price{
        font-size: 1.2rem!important;
    }
    .product-item-info .product-title{
        font-size: 1rem !important;
    }
    .single-block .list-product-info .product-name{
        font-size: 1rem !important;
    }
    .single-block .list-product-info{
        padding: 0.5rem !important;
    }
    .profile-text{
        gap: 0.5rem;
        display: flex;
        flex-direction: column;
    }
    .single-post.mobile .post-date{
        display: none;
    }
    /* Pagination */
    .pagination-container {
        gap: 15px;
    }
    .description-text *{
        color: var(--lasso-title)
    }
    .post-container{
        background: unset;
    }
    .more-btn {
        color: var(--lasso-title)!important;
        background: unset!important;
    }

    .post-container img{
        /* object-fit: contain; */
        border-radius: 10px;
    }
    
    .pagination-info {
        font-size: 12px;
    }
    
    .pagination-nav {
        gap: 8px;
    }
    
    .pagination-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .pagination-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .pagination-page {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
    
    .pagination-ellipsis {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
    .post-container a {
        width: 100%;
    }

    .mobile-social-icon {
        display: flex;
        text-decoration: none;
        gap: 10px;
        justify-content: center;
        font-size: 25px;
    }
    .desktop-social-icons {
        display: none;
    }
    .desktop {
        display: none!important;
    }
    .mobile {
        display: block!important;
    }
    .section.mobile .list-product-card{
        padding: 10px;
    }
    .section.mobile .list-product-card .section-item{
        max-width: 50%;
    }

    .container {
        padding: 0 20px;
    }

    .post-container {
        display: flex;
        flex-direction: column;
    }
    .post-container-content {
        width: 100%;
        background: var(--lasso-background);
    }
    .post-image-container {
        width: 100%;
        max-height: 50vh;
        border-radius: 10px;
    }
    
    .post-image-container a {
        display: block;
        width: 100%;
        height: 100%;
    }
    .post-container-content .post-description {
        color: var(--lasso-title);
    }
    .post-container-content .post-date {
        color: var(--lasso-text-light);
    }
    .post-container{
        border: none;
    }
    .post-container-content{
        padding: 0!important;
    }
    .hero,
    .main-content,
    .footer {
        width: 100%;
    }

    .hero.single-post .profile-section {
        text-align: left;
        justify-content: flex-start;
    }

    .hero.single-post .profile-info {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.8rem;
        text-align: left;
        align-items: center;
    }

    .hero.single-post .profile-image-wrapper {
        flex-shrink: 0;
        min-width: unset;
    }

    .hero .profile-image {
        width: 140px;
        height: 140px;
        flex-shrink: 0;
    }
    .hero.single-post .profile-image {
        width: 100px;
        height: 100px;
    }

    .hero.single-post .profile-text {
        flex: 1;
        text-align: left;
    }

    .hero.single-post .profile-text h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .hero.single-post .profile-description {
        display: none;
    }

    .hero.single-post .mobile-social-icon {
        justify-content: center;
        margin: 0.5rem 0;
        gap: 8px;
    }

    .hero.single-post .mobile-social-icon a {
        font-size: 18px;
    }

    .mobile-social-icon a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        border-radius: 8px;
        border: .5px solid var(--lasso-social-icons);
        color: var(--lasso-social-icons);
        background: transparent;
        text-decoration: none;
        font-size: 23px;
    }
    .mobile-social-icon a:hover {
        color: var(--lasso-button);
        border-color: var(--lasso-button);
        text-decoration: none;
    }

    .hero.single-post .mobile-social-icon[data-position="top"] {
        justify-content: left;
    }
    .hero.single-post .mobile-social-icon{
        margin: 0.2rem 0;
    }

    .hero.single-post .mobile-social-icon[data-position="bottom"] {
        justify-content: left;
        margin: 0.5rem 0 0 0;
    }

    .modal-overlay {
        padding: 0.75rem;
    }

    .modal-content {
        padding: 1rem;
        border-radius: 0.75rem;
    }

    .modal-header {
        margin-bottom: 1rem;
    }

    .modal-title {
        font-size: 1.375rem;
        margin-bottom: 0.375rem;
    }

    .benefits-box {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .benefit-item {
        margin-bottom: 0.375rem;
        font-size: 0.8125rem;
    }

    .modal-form {
        margin-bottom: 0.75rem;
    }

    .modal-input {
        padding: 0.625rem 0.875rem;
        margin-bottom: 0.75rem;
    }

    .posts-grid .post-card {
        display: block;
        width: 170px;
        flex: 0 0 auto;
    }
    .category-posts .posts-grid .post-card {
        display: block;
        width: 100%;
        flex: 0 0 auto;
    }

    .grid-2.section-items {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 1rem;
    }
    
    .grid-2.section-items > div {
        flex: 0 0 calc(50% - 0.5rem) !important;
        max-width: calc(50% - 0.5rem) !important;
        box-sizing: border-box;
    }

    .posts-gallery.layout-gallery,
    .products-gallery.layout-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .single-block .products-gallery.layout-gallery,
    .section .posts-gallery.layout-gallery:has(> :only-child) {
        grid-template-columns: 1fr;
    }
    
    /* Override for carousel layout on mobile */
    .grid-2.section-items.carousel-layout {
        flex-wrap: nowrap !important;
        overflow-x: auto;
    }
    
    .grid-2.section-items.carousel-layout > div {
        flex: 0 0 auto !important;
        max-width: none !important;
    }
    
    /* Layout 2 & 3 product cards on mobile */
    .layout-grid .product-card.section-item {
        width: 100%;
        max-width: 100%;
        flex: 0 0 calc(50% - 0.5rem);
    }
    
    .layout-carousel .product-card.section-item {
        width: 170px;
        min-width: 170px;
        max-width: 170px;
    }

    .mobile-links-panel {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 50;
        background: var(--lasso-button);
        color: var(--lasso-button-text);
        /* height: 85vh; */
        transform: translateY(calc(100% - 3.5rem));
        transition: transform 0.3s ease-in-out;
    }
    .mobile-links-panel.open {
        transform: translateY(0);
    }
    .mobile-links-header {
        position: relative;
        padding: 0.75rem 1rem;
        text-align: center;
        font-weight: 700;
    }
    .mobile-links-title {
        color: var(--lasso-button-text);
        margin-top: 5px;
    }
    .mobile-links-chevron {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: -1.25rem;
        width: 2.8rem;
        height: 2.8rem;
        border-radius: 9999px;
        background: var(--lasso-button);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: -1;
    }
    .mobile-links-chevron:before {
        content: "\2303";
        color: var(--lasso-button-text);
        font-size: 1.25rem;
        line-height: 1;
    }
    .mobile-links-panel.open .mobile-links-chevron:before { transform: rotate(180deg); display: inline-block; }
    .mobile-links-content {
        overflow-y: auto;
        height: calc(100% - 3.5rem);
        padding: 0.75rem;
        margin-bottom: 1rem;
        max-height: 75vh;
    }
    .mobile-links-content .list-product-content {
        border-radius: 0.75rem;
        padding: 1rem;
    }
    
    /* Remove extra padding from carousel in mobile links content */
    .mobile-links-content .carousel-layout {
        padding-bottom: 0;
    }
    
    /* Remove extra margin from card in mobile links content */
    .mobile-links-content .card.links-in-post {
        margin-bottom: 0;
    }

    .mobile-cta-panel {
        margin-top: 0.75rem;
        background: #7C3AED;
        border-radius: 0.75rem;
        padding: 1rem;
        text-align: center;
    }
    
    /* Ensure mobile-cta-panel inside mobile-links-content has minimal spacing */
    .mobile-links-content .mobile-cta-panel {
        margin-top: 1rem;
        margin-bottom: 0;
    }
    
    .mobile-cta-panel.mobile {
        margin-bottom: 2rem;
        width: 100%;
    }
    main:has(#linksFromPostPanel) .mobile-cta-panel.mobile {
        margin-bottom: 5rem;
    }

    .mobile-cta-panel.mobile[style*="display: none"],
    .mobile-cta-panel.mobile[style*="display:none"],
    .mobile-cta-panel.mobile[hidden] {
        display: none !important;
    }
    
    .mobile-cta-panel .mobile-cta-text {
        color: #ffffff;
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    .mobile-cta-panel .mobile-cta-btn {
        display: block;
        width: 100%;
        background: #ffffff;
        color: #7C3AED;
        font-weight: 600;
        border-radius: 0.5rem;
        padding: 0.5rem 0.75rem;
        text-decoration: none;
    }
    .mobile-cta-panel .mobile-cta-btn:hover { background: #f3f4f6; text-decoration: none; }

    .footer[data-has-mobile-links="true"] { display: none !important; }

    /* Single-post pages already show the purple promo badge on mobile */
    .single-post .footer { display: none !important; }
}

@media (min-width: 640px) {
    .products-grid.category-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }

    .posts-grid.category-posts {
        gap: 2rem;
    }

    .posts-grid.category-posts-full {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }

    .category-title {
        font-size: 2.5rem;
    }

    .header-content {
        padding: 0 2rem;
    }

    .container {
        padding: 0 2rem;
    }

    .posts-grid,
    .products-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        overflow-x: visible;
        scroll-snap-type: none;
    }

    .posts-gallery.layout-gallery,
    .products-gallery.layout-gallery {
        grid-template-columns: repeat(4, 1fr);
    }

    .single-block .products-gallery.layout-gallery,
    .section .posts-gallery.layout-gallery:has(> :only-child) {
        grid-template-columns: 1fr;
    }

    .posts-grid > *,
    .products-grid > * {
        flex: none;
        scroll-snap-align: none;
        min-width: 0;
    }

    .products-grid .product-card {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
    
    /* Grid-2 section-items: Use grid on desktop like products-grid */
    .grid-2.section-items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        overflow-x: visible;
        scroll-snap-type: none;
        flex-wrap: nowrap;
    }
    
    .grid-2.section-items > * {
        flex: none;
        scroll-snap-align: none;
    }
    
    /* Carousel layout on desktop - override grid behavior */
    .grid-2.section-items.carousel-layout {
        display: flex !important;
        grid-template-columns: none !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }
    
    .grid-2.section-items.carousel-layout > * {
        flex: 0 0 auto !important;
        scroll-snap-align: start;
    }
    
    /* Layout 2 & 3: Desktop width */
    .layout-grid .product-card.section-item {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
    
    .layout-carousel .product-card.section-item {
        width: 170px;
        max-width: none;
    }

    .profile-image {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
        border: 3px solid white;
    }


    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .hero {
        padding: 3rem 0 1rem 0;
    }

    .hero-content {
        grid-template-columns: minmax(0, 50rem) 1fr;
        gap: 2rem;
        align-items: start;
    }

    .profile-section {
        text-align: left;
    }

    .profile-info {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }

    .profile-image-wrapper {
        flex-shrink: 0;
    }

    .profile-image {
        border-radius: 50%;
        object-fit: cover;
        box-shadow: none;
        flex-shrink: 0;
        border: 0px;
    }

    .profile-text h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero.single-post .profile-image { width: 96px; height: 96px; }
    .hero.single-post .profile-text h1 { font-size: 1.5rem; }
    .hero.single-post .profile-description { display: block; }
    .hero.single-post .profile-text p { font-size: 0.875rem; line-height: 1.5; }

    .profile-text p {
        font-size: 1.25rem;
        line-height: 1.7;
        max-width: none;
    }

    .cta-section {
        align-self: start;
        min-width: 250px;
    }

    .content-grid {
        grid-template-columns: minmax(0, 50rem) 1fr;
        gap: 2rem;
        align-items: start;
        min-height: calc(100vh - 2rem);
    }
    .sidebar {
        display: block;
        position: -webkit-sticky; /* Safari */
        position: sticky;
        top: 0;
        align-self: start;
        height: 100vh;
        min-width: 250px;
        width: auto;
    }

    .sidebar-card {
        width: 100%;
    }

    .sidebar .card {
        max-height: calc(100vh - 2rem);
        overflow: auto;
    }
}

@media (max-width: 1023px) {
    .course-content > a {
        min-width: 100px;
    }
    .main-content {
        padding: 0!important;
    }
    .posts-grid.category-posts {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .more-section .posts-grid.category-posts {
        grid-template-columns: repeat(3, 1fr);
    }
    
}

@media (max-width: 640px) {
    .featured-course .course-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
    }
    .featured-course .course-content > a:first-child {
        grid-column: 1;
        grid-row: 1;
        height: auto;
    }
    .featured-course .course-image {
        height: auto;
        border-radius: 0 !important;
    }
    .featured-course .course-text {
        grid-column: 1;
        grid-row: 2;
        padding: 1.25rem 1.25rem 0;
    }
    .featured-course .course-description {
        grid-column: 1;
        grid-row: 3;
        padding: 0 1.25rem;
        margin-top: 0.5rem;
    }
    .featured-course .learn-more-btn {
        grid-column: 1;
        grid-row: 4;
        margin: 1rem 1.25rem 1.25rem 0;
        justify-self: end;
    }
    .featured-course a.learn-more-btn {
        margin-left: 0;
    }
}