/**
 * Two Large Lists Layout Styles
 * 
 * Displays two large card columns with titles and lists.
 * Styling is based on the cards layout but adapted for a two-column format.
 * 
 * @package USCAA
 */

.two-large-lists {
    padding: 3.2rem 0;
    
    /* Section description styling */
    .section-description {
        max-width: 75%;
        margin-bottom: 2.4rem;
        font-size: 1.8rem;
        line-height: 2.8rem;
        color: var(--color-black);
        
        p {
            margin-bottom: 1.6rem;
            
            &:last-child {
                margin-bottom: 0;
            }
        }
        
        /* At 1200px and below, make content full width */
        @media (max-width: 1200px) {
            max-width: 100%;
            width: 100%;
        }
    }
    
    .lists-grid {
        display: flex;
        flex-direction: column;
        gap: 3.2rem;
        
        @media (min-width: 768px) {
            flex-direction: row;
            align-items: flex-start; /* Prevent stretching to equal height */
        }
    }
    
    .list-card {
        background: var(--color-white);
        box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.10);
        border-top: 0.5rem solid var(--color-black);
        padding: 2.4rem 2.4rem 5.4rem 2.4rem; /* Added extra padding at the bottom */
        flex: 0 1 auto; /* Changed from flex: 1 to prevent stretching */
        display: flex;
        flex-direction: column;
        transition: border-color 0.3s ease, box-shadow 0.3s ease;
        cursor: pointer;
        
        /* Hover state - transform border to full card border with garnet color */
        &:hover {
            border: 0.5rem solid var(--color-garnet);
            padding: 2.4rem 1.9rem 4.9rem 1.9rem; /* Adjusted for border change while keeping bottom padding */
            box-shadow: 0px 0px 25px 0px rgba(0, 0, 0, 0.15);
            
            .list-card-title {
                color: var(--color-garnet);
                border-bottom-color: var(--color-garnet);
            }
        }
        
        /* Equal width columns on desktop */
        @media (min-width: 768px) {
            width: calc(50% - 1.6rem);
        }
    }
    
    .list-card-title {
        font-family: var(--serif);
        font-size: 2.8rem;
        line-height: 3.2rem;
        font-weight: 700;
        margin: 0 0 1.6rem 0;
        padding-bottom: 1.6rem;
        border-bottom: 2px solid var(--color-border-light);
        color: var(--color-text);
        transition: color 0.3s ease, border-bottom-color 0.3s ease;
    }
    
    .list-pre-title {
        font-family: var(--sans);
        font-size: 1.8rem;
        line-height: 2.4rem;
        font-weight: 500;
        margin: 0 0 1.6rem 0;
        padding-left: 2.4rem; /* Match the padding-left of list items for alignment */
        color: var(--color-garnet); /* Garnet color as requested */
    }
    
    .list-content {
        flex: 1;
    }
    
    .list-items {
        margin: 0;
        padding: 0;
        list-style: none;
        
        .list-item {
            margin-bottom: 1.2rem;
            font-family: var(--sans);
            font-size: 1.6rem;
            line-height: 2.4rem;
            padding-left: 2.4rem;
            position: relative;
            
            /* Custom bullet using the SVG image */
            &::before {
                content: '';
                position: absolute;
                left: 0;
                top: 0.7rem; 
                width: 18px; 
                height: 14px; 
                background-image: url('../../assets/svg/SpursUp.svg');
                background-repeat: no-repeat;
                background-size: contain;
                background-position: center;
            }
            
            &:last-child {
                margin-bottom: 0;
            }
            
            p {
                margin: 0 0 1rem 0;
                
                &:last-child {
                    margin-bottom: 0;
                }
            }
            
            a {
                color: var(--color-garnet);
                text-decoration: none;
                transition: color 0.2s ease;
                
                &:hover {
                    color: var(--color-primary);
                }
            }
        }
    }
    
    /* Preview styles */
    .preview-message {
        color: #666;
        font-style: italic;
        font-size: 1.4rem;
        padding: 1rem;
        background: #f5f5f5;
        border-radius: 4px;
    }
}
