/* Buttercup Landing Page Styles */

/* Open Source Popup */
.buttercup-popup {
    position: fixed;
    top: 100px;
    right: 20px;
    background: linear-gradient(135deg, #ad2b43 0%, #8a2236 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(173, 43, 67, 0.4);
    border: 2px solid white;
    z-index: 1000;
    overflow: hidden;
    transition: all 0.3s ease;
    max-width: 350px;
    min-width: 280px;
}

.popup-header {
    padding: 0;
    display: flex;
    justify-content: flex-end;
}

.popup-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0 12px 0 0;
}

.popup-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.popup-content {
    overflow: hidden;
    transition: max-height 0.3s ease;
    max-height: 200px;
}

.popup-content.collapsed {
    max-height: 0;
}

.popup-body {
    padding: 0 20px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
    color: white;
}

.popup-text {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.popup-link {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    align-self: center;
}

.popup-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: white;
}

.buttercup-popup.collapsed .toggle-icon {
    transform: rotate(180deg);
}

/* Mobile responsiveness for popup */
@media (max-width: 768px) {
    .buttercup-popup {
        right: 10px;
        top: 80px;
        max-width: 280px;
        min-width: 250px;
    }

    .popup-text {
        font-size: 1rem;
    }

    .popup-link {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
}

/* GitHub Open Source Section */
.github-section-full {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    border-left: 6px solid #10181f;
    box-shadow: 0 4px 20px rgba(16, 24, 31, 0.1);
}

.github-title {
    margin: 0 0 15px 0;
    color: #10181f;
    font-size: 1.5rem;
    font-weight: 600;
}

.github-description {
    margin: 0 0 20px 0;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
}

.github-repo-link {
    color: #10181f;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid #10181f;
    transition: all 0.3s ease;
}

.github-repo-link:hover {
    color: #1a252f;
    border-bottom-color: #1a252f;
    text-decoration: none;
}

.github-button {
    display: inline-block;
    background: #10181f;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(16, 24, 31, 0.2);
}

.github-button:hover {
    background: #1a252f;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(16, 24, 31, 0.3);
    text-decoration: none;
    color: white;
}

/* Mobile responsiveness for GitHub section */
@media (max-width: 768px) {
    .github-section-full {
        padding: 20px;
        margin-bottom: 30px;
    }

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

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

    .github-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Achievement Banner */
.achievement-banner {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    color: #8b4513;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 6px solid #daa520;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
    box-shadow: 0 3px 12px rgba(255, 215, 0, 0.3);
    text-align: center;
    letter-spacing: 0.3px;
}

/* Open Source Note */
.open-source-note {
    background: #d4edda;
    color: #155724;
    padding: 10px 15px;
    border-radius: 6px;
    border-left: 4px solid #28a745;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.open-source-note:hover {
    background: #c3e6cb;
    color: #155724;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

/* Main container */
.buttercup-landing {
    background-color: #f0f4f7;
    padding: 60px 0;
}

/* Hero section with image and countdown */
.buttercup-hero-section {
    margin-bottom: 60px;
    background: linear-gradient(135deg, #dae2eb 0%, #f0f4f7 100%);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(16, 24, 31, 0.1);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
    justify-content: space-between;
}

.hero-image {
    flex: 0 0 200px;
}

.hero-logo {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

.hero-countdown {
    flex: 1;
    text-align: left;
}

.countdown-title {
    color: #10181f;
    margin-bottom: 40px;
    font-size: 2.2rem;
    font-weight: 600;
    text-align: left;
}

/* CTA Section */
.buttercup-cta {
    text-align: center;
    background: linear-gradient(135deg, #dae2eb 0%, #f0f4f7 100%);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 60px;
    box-shadow: 0 2px 15px rgba(16, 24, 31, 0.1);
}

.buttercup-cta .subtitle {
    color: #10181f;
    margin-bottom: 20px;
    font-size: 2.5rem;
    font-weight: 600;
}

.cta-description {
    font-size: 1.2rem;
    color: #576675;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.buttercup-cta .button {
    background-color: #ad2b43;
    color: white;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 6px;
    text-decoration: none;
    transition:
        background-color 0.3s ease,
        transform 0.2s ease;
    display: inline-block;
}

.buttercup-cta .button:hover {
    background-color: #9c253b;
    transform: translateY(-2px);
}

.countdown-timer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    justify-items: center;
}

.countdown-item {
    text-align: center;
    background: #fff;
    padding: 15px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(16, 24, 31, 0.1);
    width: 100%;
    min-width: 80px;
    border: 2px solid #ad2b43;
}

.countdown-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ad2b43;
    line-height: 1;
    margin-bottom: 3px;
}

.countdown-label {
    font-size: 0.7rem;
    color: #576675;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.countdown-message {
    text-align: center;
    margin-top: 15px;
}

.countdown-message p {
    font-size: 1rem;
    color: #576675;
    margin: 0;
    font-weight: 700;
}

/* Countdown and Form Section */
.buttercup-countdown-form-section {
    margin-bottom: 60px;
}

.header-image {
    text-align: center;
    margin-bottom: 0;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(16, 24, 31, 0.1);
}

.header-buttercup-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.buttercup-form-section .subtitle {
    color: #10181f;
    text-align: left;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.form-description {
    text-align: left;
    font-size: 1.1rem;
    color: #576675;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* HubSpot Form Styling */
.hs-form-frame {
    text-align: left;
}

.hs-form-frame .hs-form {
    margin: 0 !important;
    padding: 0 !important;
}

.hs-form-frame input[type="submit"],
.hs-form-frame .hs-button {
    background-color: #ad2b43 !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
    margin: 0 !important;
}

.hs-form-frame input[type="submit"]:hover,
.hs-form-frame .hs-button:hover {
    background-color: #9c253b !important;
}

.hs-form-frame .hs-form-field {
    margin-bottom: 20px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.hs-form-frame label {
    color: #10181f !important;
    font-weight: 500 !important;
    margin-bottom: 5px !important;
    margin-left: 0 !important;
    display: block !important;
    padding-left: 0 !important;
}

.hs-form-frame input[type="text"],
.hs-form-frame input[type="email"],
.hs-form-frame select,
.hs-form-frame textarea {
    width: 100% !important;
    padding: 10px !important;
    border: 1px solid #dae2eb !important;
    border-radius: 4px !important;
    font-size: 1rem !important;
    color: #10181f !important;
    background-color: #fff !important;
    margin-left: 0 !important;
    box-sizing: border-box !important;
}

.hs-form-frame input[type="text"]:focus,
.hs-form-frame input[type="email"]:focus,
.hs-form-frame select:focus,
.hs-form-frame textarea:focus {
    border-color: #ad2b43 !important;
    outline: none !important;
}

.hs-form-frame .hs-fieldtype-text,
.hs-form-frame .hs-fieldtype-email,
.hs-form-frame .hs-fieldtype-select {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Buttercup Tool Info Section */
.buttercup-tool-section {
    margin-bottom: 60px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(16, 24, 31, 0.1);
    overflow: hidden;
}

.tool-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.tool-main {
    display: flex;
    align-items: center;
    gap: 40px;
}

.countdown-form-container {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    align-items: stretch;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(16, 24, 31, 0.1);
}

.tool-countdown {
    flex: 1;
    padding: 20px;
    background: linear-gradient(135deg, #dae2eb 0%, #f0f4f7 100%);
    border-radius: 0 0 0 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tool-countdown .countdown-timer {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    justify-items: center;
}

.qr-code-container {
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.qr-code-image {
    width: 180px;
    height: 180px;
    max-width: 180px;
    max-height: 180px;
    object-fit: contain;
    border-radius: 4px;
    border: 2px solid #ad2b43;
    background-color: #fff;
    padding: 4px;
}

/* QR Section Styles for buttercup-qr layout */

.qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
}

.qr-code-container-large {
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code-image-large {
    width: 250px;
    height: 250px;
    max-width: 250px;
    max-height: 250px;
    object-fit: contain;
    border-radius: 8px;
    border: 3px solid #ad2b43;
    background-color: #fff;
    padding: 8px;
    box-shadow: 0 4px 15px rgba(16, 24, 31, 0.15);
}

.qr-title {
    color: #10181f;
    text-align: center;
    font-size: 2.2rem;
    font-weight: 600;
    margin: 0;
}

.qr-description {
    text-align: center;
    font-size: 1.1rem;
    color: #576675;
    margin: 0;
    line-height: 1.6;
    max-width: 300px;
}

.form-section {
    flex: 1;
    padding: 20px;
    background: #fff;
    border-radius: 0 0 12px 0;
    border: 1px solid #dae2eb;
    border-left: none;
}

.form-title {
    color: #10181f;
    text-align: left;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 40px;
}

.form-section .form-description {
    text-align: left;
    font-size: 1.1rem;
    color: #576675;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Ensure form elements are left aligned */
.form-section .hs-form-frame {
    text-align: left;
}

.form-section .hs-form-frame .hs-form {
    text-align: left;
}

.form-section .hs-form-frame .hs-form-field {
    text-align: left;
}

.tool-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tool-img {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    display: block;
}

.tool-text {
    flex: 1;
    padding: 40px;
    min-width: 0; /* Prevents flex item from overflowing */
}

.tool-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #10181f;
    margin-bottom: 40px;
}

.tool-title-link {
    color: #10181f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tool-title-link:hover {
    color: #ad2b43;
}

.tool-description {
    font-size: 1.2rem;
    color: #576675;
    line-height: 1.6;
    margin-bottom: 0;
}

.features-header {
    padding: 30px 40px 0;
    text-align: center;
}

.features-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #10181f;
    margin: 0 0 20px 0;
}

.tool-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 0 40px 30px;
    margin-top: 10px;
}

.feature-item {
    padding: 15px;
    background: #f0f4f7;
    border-radius: 6px;
    border-left: 3px solid #ad2b43;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.feature-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #10181f;
    margin: 0;
    line-height: 1.2;
}

/* Blog Section */
.buttercup-blog-section {
    margin-bottom: 60px;
}

.buttercup-blog-section .subtitle {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    color: #10181f;
}

.resources-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 20px;
}

.blog-links-container,
.resources-links-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-item,
.resource-item {
    background: #fff;
    border: 1px solid #dae2eb;
    border-radius: 8px;
    padding: 25px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    cursor: pointer;
    display: block;
}

.blog-link {
    text-decoration: none;
    color: inherit;
}

.blog-item:hover,
.resource-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 24, 31, 0.15);
}

.blog-date,
.resource-type {
    font-size: 0.9rem;
    color: #8294a3;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resource-type {
    background: #ad2b43;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    display: inline-block;
}

.blog-title,
.resource-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #10181f;
    margin-bottom: 0;
    transition: color 0.3s ease;
}

.blog-item:hover .blog-title {
    color: #ad2b43;
}

.resource-title a {
    color: #10181f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.resource-title a:hover {
    color: #ad2b43;
}

.blog-excerpt,
.resource-description {
    color: #576675;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Timeline Section */
.buttercup-timeline {
    margin-bottom: 60px;
}

.timeline-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #10181f;
    text-align: center;
    margin-bottom: 40px;
}

/* Horizontal Timeline Container */
.timeline-container-horizontal {
    position: relative;
    padding: 40px 20px 60px;
    overflow-x: auto;
}

.timeline-outline {
    position: absolute;
    left: 0;
    right: 0;
    top: 160px;
    height: 4px;
    background: transparent;
    border: 1px solid #ad2b43;
    border-radius: 2px;
    z-index: 0;
}

.timeline-progress-line {
    position: absolute;
    left: 0;
    top: 160px;
    height: 4px;
    background: linear-gradient(to right, #ad2b43, #8294a3);
    border-radius: 2px;
    width: 0%;
    transition: width 0.5s ease;
    z-index: 1;
    box-shadow: 0 0 0 1px #f0f4f7;
}

.timeline-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    min-width: 800px;
}

.timeline-item-horizontal {
    position: relative;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-bullet {
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    border: 3px solid #ad2b43;
    position: absolute;
    top: 142px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    transition: all 0.3s ease;
    cursor: pointer;
}

.timeline-bullet.active {
    background: #ad2b43;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #ad2b43;
}

.timeline-item-horizontal:hover .timeline-bullet {
    background: #ad2b43;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #ad2b43;
    transform: translateX(-50%) scale(1.1);
}

.timeline-item-horizontal.active .timeline-bullet {
    background: #ad2b43;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #ad2b43;
    transform: translateX(-50%) scale(1.2);
}

.timeline-date-horizontal {
    font-size: 0.8rem;
    color: #8294a3;
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    top: 0;
}

.timeline-title-horizontal {
    font-size: 1rem;
    font-weight: 600;
    color: #10181f;
    margin-bottom: 15px;
    line-height: 1.2;
    position: relative;
    top: 0;
    text-align: center;
    word-wrap: break-word;
    hyphens: auto;
}

.timeline-item-horizontal:hover .timeline-title-horizontal {
    color: #ad2b43;
}

.timeline-item-horizontal.active .timeline-title-horizontal {
    color: #9c253b;
}

/* Timeline Details Container */
.timeline-details-container {
    background: #fff;
    border: 1px solid #dae2eb;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 2px 15px rgba(16, 24, 31, 0.08);
    transition: all 0.3s ease;
    position: relative;
    margin-top: 30px;
}

/* Arrow pointing up to timeline */
.timeline-details-container::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 20px solid #dae2eb;
    z-index: 1;
}

.timeline-details-container::after {
    content: "";
    position: absolute;
    top: -19px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 19px solid transparent;
    border-right: 19px solid transparent;
    border-bottom: 19px solid #fff;
    z-index: 2;
}

.timeline-details-content {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-detail-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #10181f;
    margin-bottom: 20px;
    text-align: left;
}

.timeline-detail-body {
    color: #576675;
    line-height: 1.6;
    font-size: 1.1rem;
}

.timeline-detail-body ul {
    margin: 15px 0;
    padding-left: 20px;
}

.timeline-detail-body li {
    margin-bottom: 8px;
}

.timeline-detail-body strong {
    color: #10181f;
}

/* Video Section */
.buttercup-video-section {
    margin-bottom: 60px;
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(16, 24, 31, 0.1);
    border: 1px solid #dae2eb;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.video-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #10181f;
    margin-bottom: 40px;
    text-align: center;
}

.video-description {
    font-size: 1.1rem;
    color: #576675;
    margin-bottom: 30px;
    line-height: 1.6;
    text-align: center;
}

.video-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.video-nav-btn {
    background: #ad2b43;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(173, 43, 67, 0.3);
    flex-shrink: 0;
}

.video-nav-btn:hover {
    background: #9c253b;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(173, 43, 67, 0.4);
}

.video-nav-btn:disabled {
    background: #8294a3;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(130, 148, 163, 0.3);
}

.nav-arrow {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(16, 24, 31, 0.15);
    border: 3px solid #dae2eb;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
    flex: 1;
}

.video-wrapper:hover {
    border-color: #ad2b43;
    box-shadow: 0 12px 30px rgba(16, 24, 31, 0.2);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.video-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.video-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #dae2eb;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.video-indicator.active {
    background: #ad2b43;
    border-color: #ad2b43;
}

.video-indicator:hover {
    border-color: #ad2b43;
}

/* DEF CON 33 Section */
.buttercup-defcon-section {
    margin-bottom: 60px;
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(16, 24, 31, 0.1);
    border: 1px solid #dae2eb;
}

.defcon-container {
    max-width: 1000px;
    margin: 0 auto;
}

.defcon-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #10181f;
    text-align: center;
    margin-bottom: 40px;
}

.defcon-schedule {
    display: grid;
    gap: 35px;
    margin-bottom: 40px;
}

.defcon-day {
    background: #f0f4f7;
    border-radius: 12px;
    padding: 25px;
    border-left: 4px solid #ad2b43;
}

.day-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ad2b43;
    margin-bottom: 20px;
    text-align: center;
}

.schedule-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.schedule-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #dae2eb;
    transition: all 0.3s ease;
}

.schedule-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 24, 31, 0.1);
}

.schedule-item.featured {
    border-left: 4px solid #ad2b43;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.schedule-time {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ad2b43;
    background: rgba(173, 43, 67, 0.1);
    padding: 5px 10px;
    border-radius: 6px;
    min-width: 120px;
    text-align: center;
    white-space: nowrap;
}

.schedule-event {
    font-size: 1rem;
    color: #10181f;
    line-height: 1.5;
    flex: 1;
}

.schedule-event strong {
    color: #ad2b43;
}

.defcon-location {
    background: linear-gradient(135deg, #dae2eb 0%, #f0f4f7 100%);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    border: 1px solid #dae2eb;
}

.location-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #10181f;
    margin-bottom: 15px;
}

.location-detail {
    font-size: 1.1rem;
    color: #576675;
    margin: 8px 0;
    line-height: 1.5;
}

.location-detail strong {
    color: #10181f;
}

/* DEF CON Section Responsive */
@media (max-width: 768px) {
    .buttercup-defcon-section {
        margin-bottom: 40px;
        padding: 30px 20px;
    }

    .defcon-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .defcon-schedule {
        gap: 25px;
        margin-bottom: 30px;
    }

    .defcon-day {
        padding: 20px;
    }

    .day-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .schedule-item {
        flex-direction: column;
        gap: 10px;
        padding: 12px;
    }

    .schedule-time {
        min-width: auto;
        align-self: flex-start;
    }

    .schedule-event {
        font-size: 0.95rem;
    }

    .defcon-location {
        padding: 20px;
    }

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

    .location-detail {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .buttercup-defcon-section {
        padding: 25px 15px;
    }

    .defcon-title {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

    .defcon-schedule {
        gap: 20px;
        margin-bottom: 25px;
    }

    .defcon-day {
        padding: 15px;
    }

    .day-title {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .schedule-item {
        padding: 10px;
        gap: 8px;
    }

    .schedule-time {
        font-size: 0.8rem;
        padding: 4px 8px;
    }

    .schedule-event {
        font-size: 0.9rem;
    }

    .defcon-location {
        padding: 15px;
    }

    .location-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .location-detail {
        font-size: 0.95rem;
        margin: 5px 0;
    }
}

/* X Feed Section */
.buttercup-x-section {
    margin-top: 60px;
    margin-bottom: 60px;
}

.x-ribbon {
    background: linear-gradient(135deg, #dae2eb 0%, #f0f4f7 100%);
    border-radius: 15px;
    padding: 40px;
    color: #10181f;
    box-shadow: 0 4px 20px rgba(16, 24, 31, 0.1);
    position: relative;
    overflow: hidden;
}

.x-ribbon::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(-20px, -20px) rotate(180deg);
    }
}

.x-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.x-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    font-weight: 600;
}

.x-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #10181f;
}

.x-subtitle {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
    font-weight: 400;
}

.x-feed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.post-item {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(218, 226, 235, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.post-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px);
    border-color: #ad2b43;
}

.post-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-text {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 15px 0;
    flex-grow: 1;
    color: #10181f;
}

.post-meta {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: auto;
}

.post-author {
    font-weight: 600;
    color: #10181f;
}

.post-date {
    color: #576675;
}

.x-cta {
    text-align: center;
    position: relative;
    z-index: 2;
}

.x-follow-btn {
    display: inline-block;
    background: white;
    color: #ad2b43;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.x-follow-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Resources Section */
.buttercup-resources-section {
    margin-top: 60px;
    margin-bottom: 60px;
}

.resources-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #10181f;
    text-align: center;
    margin-bottom: 40px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.resource-item {
    display: block;
    background: #fff;
    border: 1px solid #dae2eb;
    border-radius: 12px;
    padding: 25px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(16, 24, 31, 0.08);
}

.resource-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 24, 31, 0.15);
    border-color: #ad2b43;
}

.resource-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-align: center;
}

.resource-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #10181f;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.resource-item:hover .resource-title {
    color: #ad2b43;
}

.resource-description {
    font-size: 1rem;
    color: #576675;
    line-height: 1.5;
    margin: 0;
}

/* Responsive Design */
/* Large tablets and small laptops */
@media (max-width: 1024px) {
    .buttercup-landing {
        padding: 50px 0;
    }

    .w-container {
        padding: 0 20px;
    }

    .timeline-horizontal {
        min-width: 700px;
    }

    .timeline-details-container {
        padding: 35px 25px;
    }

    .buttercup-x-section {
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .x-ribbon {
        padding: 30px 25px;
    }

    .x-title {
        font-size: 1.8rem;
    }

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

    .x-feed {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 15px;
    }

    .resources-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

/* Static Timeline for Mobile */
.static-timeline {
    display: none;
}

/* Ensure static timeline is hidden on desktop */
@media (min-width: 769px) {
    .static-timeline {
        display: none !important;
    }
}

.timeline-instruction {
    display: none;
    text-align: center;
    font-size: 0.9rem;
    color: #8294a3;
    margin-bottom: 20px;
    padding: 8px 16px;
    background: rgba(173, 43, 67, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(173, 43, 67, 0.1);
    font-style: italic;
}

.static-timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border-left: 4px solid #ad2b43;
    box-shadow: 0 2px 10px rgba(16, 24, 31, 0.08);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.static-timeline-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 24, 31, 0.12);
    text-decoration: none;
    color: inherit;
}

.static-timeline-item:visited {
    color: inherit;
}

.static-timeline-date {
    flex: 0 0 80px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #ad2b43;
    background: rgba(173, 43, 67, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    margin-right: 20px;
    white-space: nowrap;
}

.static-timeline-content {
    flex: 1;
}

.static-timeline-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #10181f;
    margin-bottom: 8px;
}

/* Prevent "DEF CON 33" from breaking across lines on small screens */
.static-timeline-title.no-wrap {
    white-space: nowrap;
}

/* Keep "DEF CON 33" together but allow wrapping to newline on mobile */
.no-break-unit {
    white-space: nowrap;
    display: inline-block;
}

/* Tablets */
@media (max-width: 768px) {
    .buttercup-landing {
        padding: 40px 0;
    }

    .w-container {
        padding: 0 15px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .w-container > * {
        width: 100%;
        max-width: 100%;
    }

    /* Hide interactive timeline and show static one */
    .timeline-container-horizontal,
    .timeline-details-container {
        display: none !important;
    }

    .static-timeline {
        display: block;
        margin-bottom: 40px;
    }

    .timeline-instruction {
        display: block;
        margin-top: -10px;
    }

    .firstsentence {
        font-size: 2rem;
        text-align: center;
    }

    .buttercup-hero-section {
        margin-bottom: 40px;
        padding: 30px;
    }

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

    .hero-image {
        flex: none;
        order: 1;
    }

    .hero-countdown {
        order: 2;
    }

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

    .countdown-timer {
        gap: 20px;
    }

    .countdown-item {
        min-width: 70px;
        padding: 15px;
    }

    .countdown-number {
        font-size: 2rem;
    }

    .tool-main {
        flex-direction: column;
        gap: 20px;
    }

    .tool-image {
        max-width: 100%;
        order: 2;
        flex: none;
    }

    .tool-text {
        order: 1;
        padding: 30px;
    }

    .countdown-form-container {
        flex-direction: column;
        gap: 0;
    }

    .tool-countdown {
        padding: 15px;
        border-radius: 12px 12px 0 0;
    }

    .tool-countdown .countdown-timer {
        gap: 12px;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .qr-code-container {
        padding: 15px 0;
    }

    .qr-code-image {
        width: 140px;
        height: 140px;
        max-width: 140px;
        max-height: 140px;
    }

    .qr-code-image-large {
        width: 200px;
        height: 200px;
        max-width: 200px;
        max-height: 200px;
    }

    .qr-title {
        font-size: 1.8rem;
    }

    .form-section {
        padding: 20px;
        border-radius: 0 0 12px 12px;
        border-left: 1px solid #dae2eb;
    }

    .form-title {
        font-size: 1.8rem;
    }

    .tool-title {
        font-size: 1.8rem;
    }

    .tool-description {
        font-size: 1.1rem;
    }

    .tool-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 30px 25px;
    }

    .buttercup-cta {
        padding: 30px 20px;
    }

    .buttercup-cta .subtitle {
        font-size: 2rem;
    }

    .cta-description {
        font-size: 1.1rem;
    }

    .buttercup-blog-section .subtitle,
    .timeline-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .resources-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-links-container,
    .resources-links-container {
        grid-template-columns: 1fr;
    }

    .timeline-container-horizontal {
        padding: 18px 10px 35px;
        overflow-x: auto;
    }

    .timeline-outline {
        top: 80px;
    }

    .timeline-progress-line {
        top: 80px;
    }

    .timeline-bullet {
        top: 72px;
    }

    .timeline-horizontal {
        min-width: 1400px;
    }

    .timeline-item-horizontal {
        padding: 0 5px;
    }

    .timeline-title-horizontal {
        font-size: 0.8rem;
        line-height: 1.1;
        text-align: center;
        word-wrap: break-word;
        hyphens: auto;
    }

    .timeline-details-container {
        padding: 30px 20px;
        margin-top: 25px;
    }

    .timeline-details-container::before {
        border-left: 12px solid transparent;
        border-right: 12px solid transparent;
        border-bottom: 12px solid #dae2eb;
        top: -12px;
    }

    .timeline-details-container::after {
        border-left: 11px solid transparent;
        border-right: 11px solid transparent;
        border-bottom: 11px solid #fff;
        top: -11px;
    }

    .timeline-detail-title {
        font-size: 1.5rem;
    }

    .timeline-detail-body {
        font-size: 1rem;
    }

    .buttercup-resources-section {
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .resources-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .resources-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .resource-item {
        padding: 20px;
    }

    .resource-icon {
        font-size: 2rem;
    }

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

    .x-ribbon {
        padding: 25px 20px;
    }

    .x-icon {
        font-size: 2.5rem;
    }

    .x-title {
        font-size: 1.6rem;
    }

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

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

    .post-item {
        padding: 15px;
    }

    .x-follow-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .buttercup-video-section {
        margin-bottom: 40px;
        padding: 30px 20px;
    }

    .video-title {
        font-size: 1.8rem;
    }

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

    .video-carousel {
        gap: 15px;
    }

    .video-nav-btn {
        width: 45px;
        height: 45px;
    }

    .nav-arrow {
        font-size: 1.3rem;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .buttercup-landing {
        padding: 30px 0;
    }

    .w-container {
        padding: 0 10px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .w-container > * {
        width: 100%;
        max-width: 100%;
    }

    /* Hide interactive timeline and show static one */
    .timeline-container-horizontal,
    .timeline-details-container {
        display: none !important;
    }

    .static-timeline {
        display: block;
        margin-bottom: 30px;
    }

    .timeline-instruction {
        display: block;
        font-size: 0.85rem;
        margin-top: -10px;
        margin-bottom: 15px;
        padding: 6px 12px;
    }

    .static-timeline-item {
        margin-bottom: 20px;
        padding: 15px;
    }

    .static-timeline-date {
        flex: 0 0 70px;
        font-size: 0.8rem;
        padding: 6px 8px;
        margin-right: 15px;
    }

    .static-timeline-title {
        font-size: 1rem;
    }

    .firstsentence {
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 30px;
    }

    .buttercup-hero-section {
        margin-bottom: 30px;
        padding: 25px 15px;
    }

    .hero-image {
        flex: 0 0 150px;
    }

    .countdown-title {
        font-size: 1.8rem;
    }

    .countdown-timer {
        gap: 15px;
    }

    .countdown-item {
        min-width: 60px;
        padding: 12px;
    }

    .countdown-number {
        font-size: 1.8rem;
    }

    .countdown-label {
        font-size: 0.8rem;
    }

    .tool-text {
        padding: 20px;
    }

    .tool-countdown {
        padding: 12px;
    }

    .tool-countdown .countdown-timer {
        gap: 10px;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .qr-code-container {
        padding: 12px 0;
    }

    .qr-code-image {
        width: 120px;
        height: 120px;
        max-width: 120px;
        max-height: 120px;
    }

    .qr-code-image-large {
        width: 180px;
        height: 180px;
        max-width: 180px;
        max-height: 180px;
    }

    .qr-title {
        font-size: 1.6rem;
    }

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

    v .form-section {
        padding: 15px;
    }

    .form-title {
        font-size: 1.6rem;
    }

    .tool-title {
        font-size: 1.6rem;
    }

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

    .tool-features {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 0 20px 15px;
    }

    .feature-item {
        padding: 10px;
        min-height: 50px;
    }

    .feature-item h3 {
        font-size: 0.9rem;
    }

    .buttercup-cta {
        padding: 25px 15px;
        margin-bottom: 40px;
    }

    .buttercup-cta .subtitle {
        font-size: 1.8rem;
    }

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

    .buttercup-blog-section .subtitle,
    .timeline-title {
        font-size: 1.6rem;
        margin-bottom: 5px;
    }

    .buttercup-blog-section,
    .buttercup-timeline {
        margin-bottom: 40px;
    }

    .blog-item,
    .resource-item {
        padding: 20px;
    }

    .timeline-container-horizontal {
        padding: 12px 5px 30px;
    }

    .timeline-outline {
        top: 75px;
    }

    .timeline-progress-line {
        top: 75px;
    }

    .timeline-horizontal {
        min-width: 1600px;
    }

    .timeline-bullet {
        width: 16px;
        height: 16px;
        border: 2px solid #ad2b43;
        background: #fff;
        top: 67px;
    }

    .timeline-item-horizontal:hover .timeline-bullet,
    .timeline-item-horizontal.active .timeline-bullet {
        background: #ad2b43;
        border: 2px solid #fff;
        box-shadow: 0 0 0 2px #ad2b43;
    }

    .timeline-date-horizontal {
        font-size: 0.7rem;
        margin-bottom: 3px;
    }

    .timeline-title-horizontal {
        font-size: 0.7rem;
        line-height: 1.1;
        text-align: center;
        word-wrap: break-word;
        hyphens: auto;
    }

    .timeline-item-horizontal {
        padding: 0 8px;
        min-width: 120px;
    }

    .timeline-details-container {
        padding: 20px 15px;
        margin-bottom: 30px;
        margin-top: 20px;
    }

    .timeline-details-container::before {
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 10px solid #dae2eb;
        top: -10px;
    }

    .timeline-details-container::after {
        border-left: 9px solid transparent;
        border-right: 9px solid transparent;
        border-bottom: 9px solid #fff;
        top: -9px;
    }

    .timeline-detail-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .timeline-detail-body {
        font-size: 0.95rem;
    }
}

/* Very small screens */
@media (max-width: 320px) {
    .buttercup-landing {
        padding: 20px 0;
    }

    .w-container {
        padding: 0 8px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .w-container > * {
        width: 100%;
        max-width: 100%;
    }

    /* Hide interactive timeline and show static one */
    .timeline-container-horizontal,
    .timeline-details-container {
        display: none !important;
    }

    .static-timeline {
        display: block;
        margin-bottom: 25px;
    }

    .static-timeline-item {
        margin-bottom: 15px;
        padding: 12px;
    }

    .static-timeline-date {
        flex: 0 0 60px;
        font-size: 0.75rem;
        padding: 4px 6px;
        margin-right: 12px;
    }

    .static-timeline-title {
        font-size: 0.9rem;
    }

    .firstsentence {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

    .buttercup-hero-section {
        padding: 20px 12px;
    }

    .hero-image {
        flex: 0 0 120px;
    }

    .countdown-title {
        font-size: 1.6rem;
    }

    .buttercup-cta {
        padding: 20px 12px;
    }

    .buttercup-cta .subtitle {
        font-size: 1.6rem;
    }

    .countdown-item {
        min-width: 50px;
        padding: 10px;
    }

    .countdown-number {
        font-size: 1.6rem;
    }

    .countdown-label {
        font-size: 0.7rem;
    }

    .tool-title {
        font-size: 1.6rem;
    }

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

    .tool-features {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 0 15px 12px;
    }

    .feature-item {
        padding: 8px;
        min-height: 45px;
    }

    .feature-item h3 {
        font-size: 0.85rem;
    }

    .buttercup-blog-section .subtitle,
    .buttercup-timeline .subtitle {
        font-size: 1.4rem;
    }

    .timeline-outline {
        top: 70px;
    }

    .timeline-progress-line {
        top: 70px;
    }

    .timeline-horizontal {
        min-width: 1800px;
    }

    .timeline-bullet {
        width: 14px;
        height: 14px;
        border: 2px solid #ad2b43;
        background: #fff;
        top: 62px;
    }

    .timeline-title-horizontal {
        font-size: 0.65rem;
        line-height: 1.1;
        text-align: center;
        word-wrap: break-word;
        hyphens: auto;
    }

    .timeline-item-horizontal {
        padding: 0 6px;
        min-width: 100px;
    }

    .timeline-details-container {
        padding: 15px 10px;
        margin-top: 15px;
    }

    .timeline-details-container::before {
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 8px solid #dae2eb;
        top: -8px;
    }

    .timeline-details-container::after {
        border-left: 7px solid transparent;
        border-right: 7px solid transparent;
        border-bottom: 7px solid #fff;
        top: -7px;
    }

    .timeline-detail-title {
        font-size: 1.2rem;
    }

    .timeline-detail-body {
        font-size: 0.9rem;
    }

    .blog-item,
    .resource-item {
        padding: 15px;
    }

    .blog-title,
    .resource-title {
        font-size: 1.1rem;
    }

    .blog-excerpt,
    .resource-description {
        font-size: 0.9rem;
    }

    .buttercup-resources-section {
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .resources-title {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

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

    .resource-item {
        padding: 15px;
    }

    .resource-icon {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

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

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

    .x-ribbon {
        padding: 20px 15px;
    }

    .x-icon {
        font-size: 2rem;
    }

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

    .x-subtitle {
        font-size: 0.9rem;
    }

    .post-item {
        padding: 12px;
    }

    .post-text {
        font-size: 0.9rem;
    }

    .x-follow-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .buttercup-video-section {
        margin-bottom: 30px;
        padding: 25px 15px;
    }

    .video-title {
        font-size: 1.6rem;
    }

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

    .video-carousel {
        gap: 10px;
    }

    .video-nav-btn {
        width: 40px;
        height: 40px;
    }

    .nav-arrow {
        font-size: 1.2rem;
    }
}

/* Form section responsive styles */
@media (max-width: 768px) {
    .buttercup-form-section {
        margin-bottom: 40px;
    }

    .buttercup-form-section .subtitle {
        font-size: 1.8rem;
    }

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

@media (max-width: 480px) {
    .buttercup-form-section {
        margin-bottom: 30px;
    }

    .buttercup-form-section .subtitle {
        font-size: 1.6rem;
    }

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

    .hs-form-frame {
        font-size: 14px;
    }

    .hs-form-frame input[type="submit"],
    .hs-form-frame .hs-button {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
    }
}

/* Horizontal scroll indicator for timeline on mobile */
@media (max-width: 768px) {
    .timeline-container-horizontal {
        position: relative;
    }

    /* Left fade indicator */
    .timeline-container-horizontal::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 20px;
        background: linear-gradient(to right, #f0f4f7, transparent);
        pointer-events: none;
        z-index: 2;
    }

    /* Right fade indicator */
    .timeline-container-horizontal::after {
        content: "";
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 30px;
        background: linear-gradient(to right, transparent, #f0f4f7);
        pointer-events: none;
        z-index: 2;
    }

    .timeline-container-horizontal::-webkit-scrollbar {
        height: 8px;
    }

    .timeline-container-horizontal::-webkit-scrollbar-track {
        background: #dae2eb;
        border-radius: 4px;
    }

    .timeline-container-horizontal::-webkit-scrollbar-thumb {
        background: #ad2b43;
        border-radius: 4px;
        min-width: 30px;
    }

    .timeline-container-horizontal::-webkit-scrollbar-thumb:hover {
        background: #9c253b;
    }

    /* Improve touch interactions */
    .timeline-item-horizontal {
        touch-action: manipulation;
    }

    .timeline-item-horizontal:active .timeline-bullet {
        background: #ad2b43;
        border: 2px solid #fff;
        box-shadow: 0 0 0 2px #ad2b43;
        transform: translateX(-50%) scale(1.1);
    }

    .timeline-item-horizontal:active .timeline-title-horizontal {
        color: #ad2b43;
    }
}

/* Animation enhancements */
.blog-item,
.resource-item,
.timeline-item-horizontal {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.blog-item:nth-child(1),
.resource-item:nth-child(1) {
    animation-delay: 0.1s;
}
.blog-item:nth-child(2),
.resource-item:nth-child(2) {
    animation-delay: 0.2s;
}
.blog-item:nth-child(3),
.resource-item:nth-child(3) {
    animation-delay: 0.3s;
}

.timeline-item-horizontal:nth-child(1) {
    animation-delay: 0.2s;
}
.timeline-item-horizontal:nth-child(2) {
    animation-delay: 0.4s;
}
.timeline-item-horizontal:nth-child(3) {
    animation-delay: 0.6s;
}
.timeline-item-horizontal:nth-child(4) {
    animation-delay: 0.8s;
}
.timeline-item-horizontal:nth-child(5) {
    animation-delay: 1s;
}

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

/* Smooth fade animation for timeline details */
.timeline-details-container {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.timeline-details-container.fade-in {
    opacity: 1;
}

.timeline-details-container.fade-out {
    opacity: 0.5;
}

/* Team Section */
.buttercup-team-section {
    margin-bottom: 60px;
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(16, 24, 31, 0.1);
    border: 1px solid #dae2eb;
}

.team-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.team-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #10181f;
    text-align: center;
    margin-bottom: 40px;
}

.team-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.team-photo-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.team-group-photo {
    max-width: 600px; /* Reduced from 100% to make it smaller */
    max-height: 400px; /* Increased height to make it a bit longer */
    width: 100%;
    height: auto;
    object-fit: cover; /* Crop if needed to maintain aspect */
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(16, 24, 31, 0.15);
    border: 3px solid #dae2eb;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.team-group-photo:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(16, 24, 31, 0.2);
    border-color: #ad2b43;
}

.team-names {
    width: 100%;
}

.team-instruction {
    display: none;
    text-align: center;
    font-size: 0.9rem;
    color: #8294a3;
    margin-bottom: 20px;
    padding: 8px 16px;
    background: rgba(173, 43, 67, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(173, 43, 67, 0.1);
    font-style: italic;
}

.team-names-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px 20px;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Remove special positioning for consistent sizing */

.team-member-name {
    background: #f0f4f7;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #10181f;
    border: 1px solid #dae2eb;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    cursor: pointer;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.team-member-name:hover {
    background: #fff;
    border-color: #ad2b43;
    color: #ad2b43;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 24, 31, 0.1);
    z-index: 9999; /* Ensure hovered name is on top */
}

/* Tooltip/popup for team member descriptions */
.team-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #10181f;
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.4;
    white-space: normal;
    width: 280px;
    max-width: 90vw;
    text-align: left;
    box-shadow: 0 8px 25px rgba(16, 24, 31, 0.3);
    z-index: 10000; /* Higher than hovered name to ensure it's on top */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-top: 8px;
    pointer-events: none;
}

/* Arrow pointing up */
.team-tooltip::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #10181f;
    z-index: 1001;
}

/* Show tooltip on hover (desktop) */
@media (hover: hover) {
    .team-member-name:hover .team-tooltip {
        opacity: 1;
        visibility: visible;
    }
}

/* Show tooltip when active class is added (mobile) */
.team-member-name.active {
    z-index: 9999; /* Ensure active name is on top */
}

.team-member-name.active .team-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Team Section Responsive */
@media (max-width: 1024px) {
    .team-names-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 12px 15px;
        padding: 0 15px;
    }

    .team-member-name {
        padding: 10px 16px;
        font-size: 0.95rem;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .buttercup-team-section {
        margin-bottom: 40px;
        padding: 30px 20px;
    }

    .team-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .team-content {
        gap: 30px;
    }

    .team-instruction {
        display: block;
    }

    .team-names-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px 12px;
        padding: 0 10px;
    }

    .team-member-name {
        padding: 8px 12px;
        font-size: 0.9rem;
        min-height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .buttercup-team-section {
        padding: 25px 15px;
    }

    .team-title {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

    .team-content {
        gap: 25px;
    }

    .team-instruction {
        display: block;
        font-size: 0.85rem;
        margin-bottom: 15px;
        padding: 6px 12px;
    }

    .team-names-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px 10px;
        padding: 0 5px;
    }

    .team-member-name {
        padding: 6px 10px;
        font-size: 0.85rem;
        min-height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }
}
