/* Theme variables */
:root {
    --about-bg: #F5F7FA;
    --about-text: #2C3E50;
    --about-heading: #4CA1AF;
    --table-bg: #FFFFFF;
    --table-border: rgba(0, 0, 0, 0.1);
    --table-header: linear-gradient(145deg, #4CA1AF, #2C3E50);
}

[data-theme="dark"] {
    --about-bg: #121212;
    --about-text: #E0E0E0;
    --about-heading: #7FC7D2;
    --table-bg: #1E1E1E;
    --table-border: rgba(255, 255, 255, 0.1);
    --table-header: linear-gradient(145deg, #1F444B, #1A252F);
}

/* Container styles */
.about-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Typography */
.about-content {
    line-height: 1.6;
    color: var(--about-text);
}

.about-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: clamp(1.5rem, 4vw, 2rem) 0 clamp(1rem, 2vw, 1.5rem);
    color: var(--about-heading);
}

.about-content h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    margin-top: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
    color: var(--about-heading);
}

.about-content h4 {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-top: clamp(1.25rem, 3vw, 1.5rem);
    margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
    color: var(--about-heading);
}

/* Tables */
.guidelines-table,
.benefits-table {
    width: 100%;
    overflow-x: auto;
    display: block;
    margin: 1rem 0;
}

/* Make tables responsive */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: clamp(1rem, 3vw, 1.5rem) 0;
}

th {
    background: var(--table-header);
    color: white;
    padding: clamp(0.75rem, 2vw, 1.5rem);
    text-align: left;
    font-size: clamp(0.9rem, 2vw, 1rem);
    white-space: nowrap;
}

td {
    padding: clamp(0.75rem, 2vw, 1.2rem);
    border: 1px solid var(--table-border);
    font-size: clamp(0.875rem, 2vw, 1rem);
}

/* Lists */
.technique-details ul {
    list-style-type: disc;
    margin-left: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.technique-details li {
    margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

/* Media queries */
@media screen and (max-width: 768px) {
    .about-container {
        padding: 0;
    }

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 0.5rem;
    }

    .guidelines-table,
    .benefits-table {
        max-width: calc(100vw - 2rem);
    }
}

@media screen and (max-width: 768px) {
    .about-container {
        width: 95%;
    }
    
    .about-content {
        padding: clamp(1rem, 3vw, 1.5rem);
    }
}

@media screen and (max-width: 480px) {
    .about-container {
        margin: 1rem auto;
    }
}
