/* 2025 Year in Review Landing Page Styles */

:root {
    --tob-red: #ad2b43;
    --tob-red-light: #c7344f;
    --tob-red-dark: #9c253b;
    --tob-dark-gray: #2a333d;
    --tob-black: #10181f;
    --tob-medium-gray: #8294a3;
    --tob-light-gray: #f0f4f7;
    --tob-white: #ffffff;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
}

/* Prevent horizontal overflow on page level */
html,
body {
    overflow-x: hidden;
    max-width: 100vw;
}

.year-review-container {
    width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--tob-black) 0%, var(--tob-dark-gray) 50%, var(--tob-red-dark) 100%);
    color: var(--tob-white);
    padding: 120px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(173, 43, 67, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(199, 52, 79, 0.2) 0%, transparent 50%),
        linear-gradient(45deg, transparent 30%, rgba(173, 43, 67, 0.1) 30%, rgba(173, 43, 67, 0.1) 32%, transparent 32%),
        linear-gradient(-45deg, transparent 68%, rgba(173, 43, 67, 0.1) 68%, rgba(173, 43, 67, 0.1) 70%, transparent 70%);
    background-size:
        100% 100%,
        100% 100%,
        100px 100px,
        100px 100px;
    animation: heroAnimation 20s ease-in-out infinite;
}

@keyframes heroAnimation {
    0%,
    100% {
        opacity: 1;
        transform: translateY(0);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-10px);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: "Rubik", sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.2;
    color: var(--tob-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin: 0 auto 40px;
    color: var(--tob-white);
    max-width: 600px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.2s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform var(--transition-speed) ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-family: "Rubik", sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--tob-red-light);
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 1rem;
    color: var(--tob-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Highlight Cards Carousel */
.highlight-cards-wrapper {
    margin-top: 60px;
    position: relative;
    animation: fadeInUp 1s ease-out 0.6s both;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.highlight-cards-carousel {
    display: flex;
    justify-content: center;
    align-items: stretch;
    position: relative;
    overflow: hidden;
    flex: 1;
}

.highlight-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    display: none;
    opacity: 0;
}

.highlight-card.active {
    display: block;
    animation: fadeInSlide 0.5s ease-out forwards;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.highlight-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 25px 70px rgba(173, 43, 67, 0.4);
}

.carousel-arrow {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--tob-white);
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
    padding: 0;
    padding-bottom: 4px;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.carousel-arrow:active {
    transform: scale(0.95);
}

.card-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--tob-red) 0%, var(--tob-red-dark) 100%);
    color: var(--tob-white);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(173, 43, 67, 0.4);
}

.card-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.card-logo:hover {
    transform: scale(1.05);
}

.card-title {
    font-family: "Rubik", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--tob-white);
    margin: 0 0 16px 0;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.card-title-center {
    text-align: center;
}

.card-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    margin: 0 0 24px 0;
    text-align: left;
}

.card-link {
    display: inline-block;
    color: var(--tob-white);
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.card-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.dot.active {
    background: var(--tob-white);
    width: 32px;
    border-radius: 6px;
}

/* Category Section */
.category-section {
    padding: 60px 20px;
    background: var(--tob-white);
}

.section-heading {
    font-family: "Rubik", sans-serif;
    font-size: 2rem;
    text-align: center;
    margin: 0 0 40px 0;
    color: var(--tob-black);
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.category-btn {
    background: var(--tob-light-gray);
    border: 2px solid transparent;
    color: var(--tob-dark-gray);
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    font-family: "Open Sans", sans-serif;
}

.category-btn:hover {
    background: var(--tob-red-light);
    color: var(--tob-white);
    transform: translateY(-2px);
}

.category-btn.active {
    background: var(--tob-red);
    color: var(--tob-white);
    border-color: var(--tob-red-dark);
}

/* Tag Filters */
.tag-filter-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--tob-light-gray);
    display: none;
}

.tag-filter-section.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tag-filter-label {
    font-size: 0.9rem;
    color: var(--tob-medium-gray);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.tag-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.tag-btn {
    background: var(--tob-white);
    border: 1px solid var(--tob-medium-gray);
    color: var(--tob-medium-gray);
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    font-family: "Open Sans", sans-serif;
}

.tag-btn:hover {
    background: var(--tob-red-light);
    color: var(--tob-white);
    border-color: var(--tob-red-light);
}

.tag-btn.active {
    background: var(--tob-red);
    color: var(--tob-white);
    border-color: var(--tob-red);
}

/* Content Section */
.content-section {
    padding: 40px 20px 80px;
    background: var(--tob-light-gray);
}

.content-block {
    background: var(--tob-white);
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow var(--transition-speed) ease;
}

.content-block:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.section-toggle {
    width: 100%;
    background: transparent;
    border: none;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background var(--transition-speed) ease;
}

.section-toggle:hover {
    background: var(--tob-light-gray);
}

.section-title {
    font-family: "Rubik", sans-serif;
    font-size: 1.5rem;
    margin: 0;
    color: var(--tob-black);
    text-align: left;
}

.section-count {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--tob-red);
    opacity: 0.8;
}

.toggle-icon {
    font-size: 2rem;
    color: var(--tob-red);
    font-weight: 300;
    transition: transform var(--transition-speed) ease;
    line-height: 1;
}

.content-block.expanded .toggle-icon {
    transform: rotate(45deg);
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.content-block.expanded .section-content {
    max-height: none;
    padding: 0 30px 30px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 20px;
    align-items: stretch;
}

.content-item-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    height: 100%;
}

.content-item-link:hover .item-title {
    color: var(--tob-red);
}

.content-item-link .content-item {
    cursor: pointer;
}

.content-item {
    background: var(--tob-light-gray);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--tob-red);
    transition: all var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}

.content-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(173, 43, 67, 0.2);
    border-left-width: 6px;
}

.content-item.hidden {
    display: none;
}

.content-item-link:has(.content-item.hidden) {
    display: none;
}

/* Pagination Controls */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--tob-light-gray);
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--tob-light-gray);
    border: 2px solid transparent;
    border-radius: 50%;
    color: var(--tob-dark-gray);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    line-height: 0;
    padding-bottom: 3px;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--tob-red-light);
    color: var(--tob-white);
    transform: scale(1.05);
}

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

.pagination-info {
    font-family: "Open Sans", sans-serif;
    font-size: 0.95rem;
    color: var(--tob-medium-gray);
    min-width: 100px;
    text-align: center;
}

.pagination-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pagination-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--tob-light-gray);
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    padding: 0;
}

.pagination-dot:hover {
    background: var(--tob-medium-gray);
}

.pagination-dot.active {
    background: var(--tob-red);
    transform: scale(1.2);
}

/* Hide pagination if only one page */
.pagination-controls.single-page {
    display: none;
}

/* Paginated item visibility */
.content-item-link.paginated-hidden,
.content-grid > .content-item.paginated-hidden {
    display: none !important;
}

/* Swipe hint hidden on desktop */
.swipe-hint {
    display: none;
}

.item-title {
    font-family: "Rubik", sans-serif;
    font-size: 1.1rem;
    margin: 0 0 12px 0;
    color: var(--tob-black);
    font-weight: 500;
    line-height: 1.4;
}

.item-title a {
    color: var(--tob-black);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.item-title a:hover {
    color: var(--tob-red);
}

.item-description {
    font-family: "Open Sans", sans-serif;
    font-size: 0.95rem;
    margin: 0 0 15px 0;
    color: var(--tob-medium-gray);
    line-height: 1.6;
    font-weight: 400;
    flex-grow: 1;
}

.item-date,
.item-meta {
    font-family: "Open Sans", sans-serif;
    font-size: 0.85rem;
    color: var(--tob-medium-gray);
    display: block;
    margin-top: auto;
    font-weight: 400;
    line-height: 1.5;
}

/* Item Type Label */
.item-type {
    display: inline;
    font-family: "Open Sans", sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--tob-medium-gray);
}

/* GitHub Star Button */
.github-stars {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    color: var(--tob-medium-gray);
    padding: 0;
    font-size: 0.85rem;
    font-weight: 400;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    margin-top: auto;
}

.github-stars:hover {
    color: var(--tob-black);
}

.github-stars svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.github-stars .star-icon {
    color: #f0c14b;
    font-size: 0.85rem;
}

.github-stars .star-count {
    color: var(--tob-medium-gray);
}

.github-stars:hover .star-count {
    color: var(--tob-black);
}

/* CTA Section */
.cta-section {
    background: var(--tob-black);
    color: var(--tob-white);
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: ctaGlow 8s ease-in-out infinite alternate;
}

@keyframes ctaGlow {
    0% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}

.cta-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(45deg, transparent 30%, rgba(0, 0, 0, 0.05) 30%, rgba(0, 0, 0, 0.05) 32%, transparent 32%),
        linear-gradient(-45deg, transparent 68%, rgba(0, 0, 0, 0.05) 68%, rgba(0, 0, 0, 0.05) 70%, transparent 70%);
    background-size: 100px 100px;
    opacity: 0.3;
}

.cta-title {
    font-family: "Rubik", sans-serif;
    font-size: 3rem;
    margin: 0 0 20px 0;
    position: relative;
    z-index: 1;
    color: var(--tob-white);
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.cta-subtitle {
    font-size: 1.3rem;
    margin: 0 0 40px 0;
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.newsletter-form-container {
    max-width: 550px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* HubSpot form overrides for CTA section */
.cta-section .hs-form {
    font-family: "Open Sans", sans-serif;
}

.cta-section .hs-form input[type="email"],
.cta-section .hs-form input[type="text"] {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    margin-bottom: 15px;
    font-family: "Open Sans", sans-serif;
    color: var(--tob-black);
}

.cta-section .hs-form input[type="submit"] {
    background: var(--tob-white);
    color: var(--tob-red);
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    font-family: "Open Sans", sans-serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
}

.cta-section .hs-form input[type="submit"]:hover {
    background: var(--tob-light-gray);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.cta-section .hs-form label {
    color: var(--tob-white);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

/* What's Next Section */
.whats-next-section {
    background: var(--tob-white);
    padding: 80px 20px;
    text-align: center;
}

.whats-next-header {
    margin-bottom: 50px;
}

.whats-next-title {
    font-family: "Rubik", sans-serif;
    font-size: 2.5rem;
    color: var(--tob-black);
    margin: 0 0 15px 0;
}

.whats-next-subtitle {
    font-size: 1.3rem;
    color: var(--tob-medium-gray);
    margin: 0;
    font-weight: 400;
}

.website-preview-card {
    position: relative;
    max-width: 900px;
    margin: 0 auto 40px;
    background: var(--tob-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-speed) ease;
}

.website-preview-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.preview-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--tob-red);
    color: var(--tob-white);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(173, 43, 67, 0.4);
}

.preview-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--tob-light-gray);
    /* Maintain aspect ratio for lazy loading */
    aspect-ratio: 16 / 9;
    min-height: 200px;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.website-preview-card:hover .preview-image {
    transform: scale(1.05);
}

.preview-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.website-preview-card:hover .preview-shine {
    left: 100%;
}

.preview-content {
    padding: 40px;
    text-align: left;
    background: var(--tob-light-gray);
}

.preview-title {
    font-family: "Rubik", sans-serif;
    font-size: 1.8rem;
    color: var(--tob-black);
    margin: 0 0 15px 0;
}

.preview-description {
    font-size: 1.1rem;
    color: var(--tob-medium-gray);
    line-height: 1.7;
    margin: 0;
}

.whats-next-footer {
    font-size: 1.2rem;
    color: var(--tob-dark-gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .hero-section {
        padding: 80px 15px;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    .hero-stats {
        gap: 40px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    /* Carousel adjustments */
    .highlight-cards-wrapper {
        max-width: 100%;
        gap: 10px;
        margin-top: 50px;
    }

    .highlight-card {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .carousel-arrow {
        width: 45px;
        height: 45px;
        font-size: 2rem;
    }

    .card-logo {
        max-width: 150px;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .card-description {
        font-size: 1rem;
    }

    .card-link {
        padding: 10px 24px;
        font-size: 0.95rem;
    }

    /* Category section */
    .category-section {
        padding: 50px 15px;
    }

    .section-heading {
        font-size: 1.75rem;
    }

    .category-buttons {
        gap: 10px;
    }

    .category-btn {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    .tag-buttons {
        gap: 8px;
    }

    .tag-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    /* Content section */
    .content-section {
        padding: 30px 15px 60px;
    }

    .content-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .section-toggle {
        padding: 20px 15px;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .section-count {
        font-size: 1.1rem;
    }

    .toggle-icon {
        font-size: 1.75rem;
    }

    .content-block.expanded .section-content {
        padding: 0 15px 20px;
    }

    .content-item {
        padding: 20px;
    }

    .item-title {
        font-size: 1rem;
    }

    .item-description {
        font-size: 0.9rem;
    }

    /* CTA section */
    .cta-section {
        padding: 80px 15px;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-subtitle {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    .newsletter-form-container {
        padding: 30px 20px;
        border-radius: 12px;
    }

    .cta-section .hs-form input[type="email"],
    .cta-section .hs-form input[type="text"] {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    .cta-section .hs-form input[type="submit"] {
        padding: 14px 32px;
        font-size: 1rem;
    }

    /* What's Next section */
    .whats-next-section {
        padding: 70px 15px;
    }

    .whats-next-title {
        font-size: 2rem;
    }

    .whats-next-subtitle {
        font-size: 1.1rem;
    }

    .preview-content {
        padding: 25px 20px;
    }

    .preview-title {
        font-size: 1.4rem;
    }

    .preview-description {
        font-size: 1rem;
    }

    .preview-badge {
        font-size: 0.8rem;
        padding: 6px 15px;
        top: 15px;
        right: 15px;
    }

    .whats-next-footer {
        font-size: 1.1rem;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    /* Ensure navbar hamburger menu is always visible */
    .navbar {
        width: 100%;
        max-width: 100vw;
    }

    .navbar .nav-content {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
    }

    .navbar .menu-button {
        flex-shrink: 0;
    }

    .container {
        padding: 0 12px;
    }

    .hero-section {
        padding: 60px 12px;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-stats {
        gap: 30px;
        flex-direction: column;
    }

    .stat-item {
        width: 100%;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    /* Carousel for small screens - arrows side by side above card */
    .highlight-cards-wrapper {
        flex-direction: column;
        gap: 15px;
        position: relative;
        padding-top: 55px;
    }

    .highlight-cards-wrapper .carousel-arrow {
        position: absolute;
        top: 0;
        width: 40px;
        height: 40px;
        font-size: 1.75rem;
    }

    .highlight-cards-wrapper .carousel-arrow-left {
        left: calc(50% - 50px);
    }

    .highlight-cards-wrapper .carousel-arrow-right {
        right: calc(50% - 50px);
    }

    .highlight-card {
        padding: 25px 15px;
    }

    .card-logo {
        max-width: 120px;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .card-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .card-link {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Category section */
    .category-section {
        padding: 40px 12px;
    }

    .section-heading {
        font-size: 1.5rem;
    }

    .category-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .tag-btn {
        padding: 7px 14px;
        font-size: 0.8rem;
    }

    /* Content section */
    .content-section {
        padding: 25px 12px 50px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .section-toggle {
        padding: 18px 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .section-count {
        font-size: 1rem;
    }

    .toggle-icon {
        position: absolute;
        right: 12px;
        top: 18px;
    }

    .content-block.expanded .section-content {
        padding: 0 12px 15px;
    }

    .content-item {
        padding: 18px 15px;
    }

    .item-title {
        font-size: 0.95rem;
    }

    .item-description {
        font-size: 0.85rem;
    }

    .item-date,
    .item-meta {
        font-size: 0.8rem;
    }

    /* Pagination for mobile */
    .pagination-controls {
        gap: 12px;
        margin-top: 20px;
        padding-top: 15px;
    }

    .pagination-btn {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    .pagination-info {
        font-size: 0.85rem;
        min-width: 80px;
    }

    .pagination-dots {
        gap: 6px;
    }

    .pagination-dot {
        width: 8px;
        height: 8px;
    }

    /* Swipe hint for mobile */
    .swipe-hint {
        display: block;
        text-align: center;
        font-size: 0.8rem;
        color: var(--tob-medium-gray);
        margin-top: 10px;
        opacity: 0.7;
    }

    /* CTA section */
    .cta-section {
        padding: 60px 12px;
    }

    .cta-section::after {
        background-size: 60px 60px;
    }

    .cta-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .cta-subtitle {
        font-size: 1rem;
    }

    .newsletter-form-container {
        padding: 25px 15px;
        border-radius: 10px;
    }

    .cta-section .hs-form input[type="email"],
    .cta-section .hs-form input[type="text"] {
        padding: 12px 14px;
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .cta-section .hs-form input[type="submit"] {
        padding: 12px 28px;
        font-size: 0.95rem;
        margin-top: 15px;
    }

    .cta-section .hs-form label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    /* What's Next section */
    .whats-next-section {
        padding: 60px 12px;
    }

    .whats-next-title {
        font-size: 1.7rem;
    }

    .whats-next-subtitle {
        font-size: 1rem;
    }

    .website-preview-card {
        border-radius: 12px;
    }

    .preview-content {
        padding: 20px 15px;
    }

    .preview-title {
        font-size: 1.2rem;
    }

    .preview-description {
        font-size: 0.95rem;
    }

    .preview-badge {
        font-size: 0.75rem;
        padding: 5px 12px;
        top: 12px;
        right: 12px;
    }

    .whats-next-footer {
        font-size: 1rem;
        line-height: 1.7;
    }

    /* Disable hover effects on touch devices */
    .highlight-card:hover {
        transform: none;
    }

    .content-item:hover {
        transform: translateY(-2px);
    }

    .website-preview-card:hover {
        transform: translateY(-4px);
    }
}
