/* ==========================================================================
   Welcome / Intro Section Styles
   ========================================================================== */

/* --- Container & Background --- */
.cim-intro-section {
    padding: 80px 20px;
    font-family: 'Manrope', sans-serif;
}

/* --- Layout Grid --- */
.cim-intro-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    /* 1 fraction for image, 1.2 fractions for content gives a balanced look */
    grid-template-columns: 1fr 1.2fr; 
    gap: 60px;
    align-items: center;
}

/* --- Featured Image Styling --- */
.cim-featured-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    height: 100%;
    min-height: 450px;
    position: relative;
}

.cim-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.5s ease;
}

/* Optional subtle zoom effect on image hover */
.cim-featured-image:hover img {
    transform: scale(1.03);
}

/* --- Typography & Content --- */
.cim-intro-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cim-intro-label {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ff3019; 
    font-weight: 700;
    margin-bottom: 12px;
}

.cim-intro-content h1 {
    font-size: 38px;
    color: #0a2540; /* Executive dark navy */
    margin-top: 0;
    margin-bottom: 30px;
    line-height: 1.25;
    font-weight: 800;
}

.cim-intro-text-wrapper p {
    font-size: 17px;
    line-height: 1.8;
    color: #4a5568; /* Professional dark gray for readability */
    margin-top: 0;
    margin-bottom: 20px;
}

/* --- Read More / Read Less Interaction --- */
.cim-extra-text {
    display: none; /* Hidden by default */
}

/* When Javascript adds the 'expanded' class to the wrapper */
.cim-intro-text-wrapper.expanded .cim-extra-text {
    display: block;
    animation: cimFadeInUp 0.5s ease forwards;
}

@keyframes cimFadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(15px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* --- Button Styling --- */
.cim-read-more-link {
    display: inline-block;
    align-self: flex-start;
    margin-top: 10px;
    padding: 14px 32px;
    background-color: #0a2540;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(10, 37, 64, 0.2);
}

.cim-read-more-link:hover {
    background-color: #1877F2;
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.3);
    transform: translateY(-2px);
}

/* ==========================================================================
   Responsive Design (Tablets & Mobile)
   ========================================================================== */
@media (max-width: 992px) {
    .cim-intro-section {
        padding: 60px 20px;
    }

    .cim-intro-grid {
        grid-template-columns: 1fr; /* Stacks the image and text */
        gap: 40px;
    }

    .cim-featured-image {
        min-height: 350px;
        border-radius: 12px;
    }

    .cim-intro-content h1 {
        font-size: 32px;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .cim-featured-image {
        min-height: 250px;
    }
    
    .cim-intro-content h1 {
        font-size: 28px;
    }

    .cim-intro-text-wrapper p {
        font-size: 16px;
    }
}