/* Comparison & CTA Sections Styling */

/* Comparison Section */
.comparison-section {
    padding: 8rem 0;
    background-color: var(--bg-light);
}

.comparison-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 4rem;
    color: var(--text-main);
}

.comparison-table-container {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

body.dark-mode .comparison-table-container {
    background: #1a1a1a;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.pdrn-table {
    width: 100%;
    border-collapse: collapse;
}

.pdrn-table th {
    background-color: #fcfcfc;
    padding: 1.5rem;
    text-align: left;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 2px solid #f0f0f0;
}

body.dark-mode .pdrn-table th {
    background-color: #222;
    border-bottom: 2px solid #333;
}

.pdrn-table td {
    padding: 1.5rem;
    border-bottom: 1px solid #f5f5f5;
    color: var(--text-muted);
}

body.dark-mode .pdrn-table td {
    border-bottom: 1px solid #2a2a2a;
}

.pdrn-table tr:last-child td {
    border-bottom: none;
}

.pdrn-table .aspek-col {
    font-weight: 600;
    color: var(--text-main);
    width: 25%;
}

.pdrn-table .rice-pdrn-col {
    font-weight: 700;
    color: #4CAF50;
    /* Greenish for positive traits */
}

/* CTA Banner Section */
.cta-banner-section {
    padding: 4rem 0 8rem;
}

.cta-banner-card {
    position: relative;
    border-radius: 30px;
    height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-color: #e3f2fd;
}

.cta-banner-bg {
    position: absolute;
    inset: 0;
}

.cta-banner-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), transparent 70%);
}

body.dark-mode .cta-banner-overlay {
    background: linear-gradient(to right, rgba(15, 15, 15, 0.8), transparent 70%);
}

.cta-banner-content {
    position: relative;
    z-index: 2;
    padding: 4rem;
    max-width: 600px;
}

.cta-banner-content h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.cta-banner-content h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.cta-banner-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.btn-cta-green {
    display: inline-block;
    background-color: #a8e6cf;
    color: #2d3436;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(168, 230, 207, 0.3);
}

.btn-cta-green:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(168, 230, 207, 0.5);
    background-color: #8edcbc;
}

@media (max-width: 768px) {
    .comparison-section {
        padding: 4rem 0;
    }

    .comparison-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    /* Stacking Method for Table */
    .pdrn-table thead {
        display: none;
        /* Hide headers on mobile */
    }

    .pdrn-table,
    .pdrn-table tbody,
    .pdrn-table tr,
    .pdrn-table td {
        display: block;
        width: 100%;
    }

    .pdrn-table tr {
        margin-bottom: 2rem;
        border-bottom: 2px solid var(--primary);
        padding-bottom: 1rem;
    }

    .pdrn-table tr:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    .pdrn-table td {
        text-align: right;
        padding: 0.8rem 1rem;
        position: relative;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    body.dark-mode .pdrn-table td {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .pdrn-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 1rem;
        width: 45%;
        text-align: left;
        font-weight: 700;
        color: var(--text-main);
        font-size: 0.85rem;
        text-transform: uppercase;
    }

    .pdrn-table .aspek-col {
        background-color: rgba(168, 230, 207, 0.1);
        text-align: center;
        font-size: 1.1rem;
        color: var(--primary);
        padding: 1rem;
    }

    .pdrn-table .aspek-col::before {
        display: none;
        /* No label for the aspect row itself */
    }

    .cta-banner-card {
        height: auto;
        padding: 3rem 1.5rem;
        border-radius: 20px;
    }

    .cta-banner-content {
        padding: 0;
        text-align: center;
    }

    .cta-banner-content h2 {
        font-size: 1.8rem;
    }

    .cta-banner-content h3 {
        font-size: 1.4rem;
    }

    .cta-banner-overlay {
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8));
    }

    body.dark-mode .cta-banner-overlay {
        background: linear-gradient(to bottom, rgba(15, 15, 15, 0.95), rgba(15, 15, 15, 0.8));
    }
}