/* Universal Section Styling */

/* Main section title styling */
.section-title {
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
    color: #ffc107; /* Bootstrap yellow */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Container for section content */
.section-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: transparent;
    border: 1px solid #c0c0c0; /* Silver border around container */
    border-radius: 8px;
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
    margin: 2rem 0;
}

/* Individual section item */
.section-item {
    display: block;
    margin-bottom: 0; /* Remove margin since using gap */
    background-color: transparent;
    border: 1px solid #c0c0c0; /* Silver border around each item */
    border-radius: 8px;
    transition: transform 0.2s ease;
    overflow: hidden;
    position: relative;
    padding: 1rem;
}

.section-item::after {
    content: "";
    display: table;
    clear: both;
}

.section-item:hover {
    transform: translateY(-2px);
}

/* Item title box - floated left, 1/3 width */
.section-item-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffc107; /* Yellow titles */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    background-color: #0f1419; /* Much darker box */
    padding: 0.8rem 1rem;
    margin: 0 1rem 0.5rem 0;
    width: 33%; /* 1/3 width */
    float: left;
    text-align: left;
    border: 1px solid #c0c0c0; /* Fine silver border */
    border-radius: 0px;
    box-sizing: border-box;
}

/* Item content - wraps around the floated title */
.section-item-content {
    background-color: transparent;
    padding: 0;
    margin: 0;
    /* Text will naturally wrap around the floated title */
}

.section-item-content p {
    color: #e2e8f0; /* Light text for readability */
    line-height: 1.6;
    margin-bottom: 0.5rem;
    text-align: justify;
}

.section-item-content p:last-child {
    margin-bottom: 0;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-item-title {
        font-size: 1.1rem;
        width: 100%;
        float: none;
        margin: 0 0 1rem 0;
        padding: 1rem;
    }
    
    .section-item-content {
        padding: 1rem;
    }
}

/* Alternative styling variants */

/* Compact section styling */
.section-container.compact {
    gap: 1rem;
    padding: 1.5rem;
}

.section-container.compact .section-item {
    padding: 0.75rem;
}

.section-container.compact .section-item-title {
    font-size: 1.1rem;
    padding: 0.6rem 0.8rem;
}

/* Large section styling */
.section-container.large {
    gap: 2rem;
    padding: 2.5rem;
}

.section-container.large .section-item {
    padding: 1.5rem;
}

.section-container.large .section-item-title {
    font-size: 1.3rem;
    padding: 1rem 1.2rem;
}

/* Alternative color schemes */
.section-container.blue-theme .section-item-title {
    background-color: #1e3a8a;
    color: #ffffff;
}

.section-container.green-theme .section-item-title {
    background-color: #166534;
    color: #ffffff;
}

.section-container.red-theme .section-item-title {
    background-color: #991b1b;
    color: #ffffff;
}