/* New wrapper for the whole section - UPDATED FOR TOP-CENTER TITLE */
.blog-section {
    display: flex;
    /* KEY: This stacks the title and panels vertically. */
    flex-direction: column;
    /* KEY: This centers the title and panels horizontally. */
    align-items: center; 
    width: 100%;
    padding: 50px 0;
    background-color: #000000; 
}

/* H1 styling for the top-centered title */
 h1 {
    text-align: center;
    color: #cccccc;
    font-weight: 400;
    font-size: 2.5rem;
    /* This adds space between the title and the panels below it. */
    margin-bottom: 30px;
}

/* Main Container for the panels */
.container {
    display: flex;
    /* 'flex-direction: row;' is the default, creating the horizontal row of panels. */
    width: 100vw;
    height: 60vh;
    gap: 10px; 
}

/* Individual Panel Styling */
.panel {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    border-radius: 50px;
    color: #e8c46c;
    cursor: pointer;

    /* flex: 1 makes panels share WIDTH equally */
    flex: 1; 
    
    position: relative;
    overflow: hidden;
    
    /* This transition now animates the WIDTH (flex-basis) */
    transition: flex 0.7s cubic-bezier(0.05, 0.65, 0.25, 0.95);
    
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding: 20px;
}
a{
        color: #e8c46c;
}

/* Dark overlay effect on each panel */
.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgba(0, 0, 0, 0.7); */
    border-radius: 50px;
    z-index: 1;
    transition: background-color 0.5s ease;
}

/* Text elements inside the panel */
.panel h3, .panel p {
    position: relative;
    z-index: 2;
    margin: 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}

.panel  h3 {
    font-size: 28px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.panel p {
    font-size: 16px;
    font-weight: 400;
    max-width: 90%;
}

/* --- HOVER STATE --- */

/* This makes the hovered panel expand its WIDTH */
.panel:hover {
    flex: 5; /* Expanded state */
}

/* Make overlay slightly more transparent on hover */
.panel:hover::before {
    background-color: rgba(0, 0, 0, 0.5);
}

/* When a panel is hovered, make its text visible */
.panel:hover h3,
.panel:hover p {
    opacity: 1;
    transform: translateY(0);
}