/* =========================================================================
   Content Section Stylesheet - Premium UI
   ========================================================================= */

/* --- Content Item Container --- */
.content-item 
{
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    border: 1px solid var(--glass-border);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.content-item:hover 
{
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* On larger screens, switch to side-by-side layout (Image/Text) */
@media (min-width: 768px) 
{
    .content-item 
    {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    /* Alternate the image position on every even row for an editorial magazine layout feel */
    .content-item:nth-child(even)>img 
    {
        grid-row: 1;
        grid-column: 2;
    }
}

/* --- Mobile Specific Overrides --- */
@media (max-width: 768px) {
    .content-item {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-lg);
        border-radius: 16px;
    }
}

/* --- Typography Content --- */
.content-item h2 
{
    font-size: clamp(2rem, 3vw, 2.5rem);
    color: var(--text-main);
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

/* Subtle accent line under headings */
.content-item h2::after 
{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.content-item p 
{
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
}

/* --- Content Image --- */
.content-item img 
{
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transition: transform var(--transition-slow);
}

.content-item:hover img 
{
    transform: scale(1.02);
    /* Very subtle premium zoom */
}

/* --- Link Tags & Buttons --- */
/* Target the first tag link which prints out tags */
/*.content-item a:nth-of-type(1) {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}*/

/* The 'Read More' Premium Button */
.content-item a.btn-premium 
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    /* Push button to bottom if text is short */
    text-decoration: none;
    color: white;
}