/* Desktop styles */
@media screen and (min-width: 769px) {
    .block-left {
        position: fixed;
        left: 0;
        top: 0;
        width: 50%;
        height: 100vh;
    }
    
    .block-right {
        width: 50%;
        margin-left: 50%;
        height: auto;
        min-height: 100vh;
    }

    .block-right .content {
        padding: 2rem;
        height: auto;
    }
}

/* Mobile styles */
@media screen and (max-width: 768px) {
    .block-left,
    .block-right {
        width: 100%;
        height: auto;
        float: none;
        position: relative;
    }

    .block-left {
        height: 100vh;
    }

    .block-right {
        min-height: 100vh;
        overflow-y: visible;
    }

    .block-right .content {
        padding: 1.5rem;
    }

    .content {
        padding: 1.5rem;
    }

    h1 {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.5rem !important;
    }
}

/* Reset theme display properties for right block */
.block-right,
.block-right > div,
.block-right .content {
    display: block !important;
}

.block-right {
    float: right;
    width: 50%;
    height: 100vh;
    overflow-y: auto;
}

.block-right .content {
    height: auto;
    padding: 2rem;
}

.about-info {
    height: auto;
    min-height: 100%;
    max-width: none;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(155, 155, 155, 0.5) transparent;
}

/* Override theme's content max-width */
.content {
    max-width: none;
    padding: 2rem;
    height: auto;
}

/* Ensure the main content area is scrollable */
.main-content {
    height: auto;
    min-height: 100%;
}

.about-info::-webkit-scrollbar {
    width: 8px;
}

.about-info::-webkit-scrollbar-track {
    background: transparent;
}

.about-info::-webkit-scrollbar-thumb {
    background-color: rgba(155, 155, 155, 0.5);
    border-radius: 4px;
    border: 2px solid transparent;
}

.about-info h1 {
    font-size: 2.5rem;
    color: #e65100;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.about-info h2 {
    font-size: 1.8rem;
    color: #424242;
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.about-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #333;
}

.about-info strong {
    color: #1976d2;
    font-weight: 600;
}

.event-meta {
    background-color: #f5f5f5;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.collection-period {
    background-color: #fff3e0;
    padding: 1rem;
    border-radius: 8px;
    text-align: left;
    margin: 1rem 0;
}

.collection-period strong {
    color: #e65100;
    font-size: 1.3rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    width: 100%;
}

@media screen and (max-width: 768px) {
    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    .help-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .collection-period,
    .event-meta {
        padding: 1rem;
        margin: 1rem 0;
    }

    .cta-button {
        display: block;
        text-align: center;
        margin: 1rem 0;
    }

    .mascot-image img {
        max-width: 100%;
        height: auto;
    }
}

.partner-item {
    background-color: #e8eaf6;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #4caf50;
    color: white !important;
    text-decoration: none;
    border-radius: 5px;
    margin: 1rem 0;
    transition: background-color 0.3s;
    font-weight: 600;
}

.cta-button:hover {
    background-color: #388e3c;
    text-decoration: none;
}

.help-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.help-item {
    background-color: #f5f5f5;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.mascot-image {
    text-align: center;
    margin: 2rem 0;
}

.mascot-image img {
    max-width: 300px;
    height: auto;
    border-radius: 10px;
}

.closing-message {
    text-align: center;
    font-size: 1.2rem;
    color: #424242;
    margin: 2rem 0;
    font-style: italic;
}

/* Split layout adjustments */
.block-right {
    overflow: hidden;
}

.main-content {
    width: 100%;
    padding: 0 2rem;
    box-sizing: border-box;
}

@media screen and (max-width: 1200px) {
    .main-content {
        padding: 1rem;
    }
}

/* Ensure content is scrollable on smaller screens */
@media screen and (max-height: 800px) {
    .about-info {
        height: auto;
        min-height: 100%;
    }
}
