/* =================== Container Styling =================== */
#connecting_line{
    position: absolute;
    padding: 2rem max(10%, calc((100vw - 1440px) / 2));
    margin-left: 9.6rem;
    margin-top: -8.8rem;
}

/* =================== Container Styling =================== */
.multimedia-communication-section {
    color: var(--text-white);
    padding: 2rem max(10%, calc((100vw - 1440px) / 2));
    font-family: 'InterBold';
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* =================== Layout - Split into TV side and Text side =================== */
.multimedia-communication-items {
    display: flex;
    height: inherit;
    justify-content: space-between;
    gap: 3.125rem;
}
/* =================== Left Side: TV and "Every design..." =================== */
/* Left Side: TV and "Every design..." */
.communication-visuals {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.communication-visuals-image img {
    max-width: 21.875rem;
    height: auto;
}

.communication-visuals-text {
    font-size: 2rem;
    line-height: 1.1;
    margin-top: 1.25rem;
}

.communication-visuals-text span {
    color: var(--accent-green);
}

/* =================== Right Side: Brief and Bottom Items =================== */
.communication-brief {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    flex: 1;
}

.top-text-header {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.top-text-header span {
    color: var(--accent-green);
}

.top-text-divider {
    width: 6.25rem;
    height: 0.125rem;
    background-color: var(--text-white);
    margin: 1.25rem 0;
}

.top-text-subheader {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 31.25rem;
}

/* =================== Bottom 3 Icons (Clarity, Purpose, Impact) =================== */
.brief-bottom-text {
    display: flex;
    justify-content: flex-start;
    gap: 2.5rem;
    margin-top: 3.75rem;
}

.bottom-text-item {
    display: flex;
    flex-direction: column;
    gap: 0.9375rem;
}

.text-item-image img {
    width: 2.5rem; 
    height: auto;
}

.text-item-call {
    font-size: 0.9rem;
    max-width: 6.25rem;
}

/* =================== Footer Section Snippet =================== */
.footer-section {
    background-color: var(--bg-black);
    border-top: 1px solid var(--grid-color);
    padding: 3.75rem max(10%, calc((100vw - 1440px) / 2));
}

.big-text {
    font-size: 5rem;
    line-height: 0.9;
}
.big-text span {
    color: var(--accent-green);
}

/* =================== STRATEGY SECTION =================== */

.strategy-section {
    color: var(--text-white);
    padding: 2rem max(10%, calc((100vw - 1440px) / 2));
}

.strategy-section-items {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

/* =================== Left Side: Pattern =================== */
.brand-pattern img {
    width: 15.625rem; /* Adjust based on your SVG size */
    height: auto;
}
/* =================== Right Side: Content =================== */
/* --- Right Side: Content --- */
.right-items {
    flex: 1;
}

/* Header Text Styles */
.right-items-header {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 3.75rem;
    max-width: 56.25rem;
}

.right-items-header span:first-child {
    color: var(--brand-green);
    margin-right: 5px;
}

.right-items-header span {
    color: var(--brand-green);
}

.right-items-header p {
    position: relative;
    z-index: 1;
    /* Add some padding so the background is slightly larger than the text */
    padding: 0.25em;
    margin: -0.25em; /* Use negative margin to prevent layout shift from padding */
}

.right-items-header p::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Position behind the text */
    background-color: var(--accent-green);
    /* We use a mask with multiple gradients to create the line-by-line effect.
       Each gradient acts as a mask for one line of text. */
    -webkit-mask-image: linear-gradient(to right, black 50%, transparent 50%),
        linear-gradient(to right, black 50%, transparent 50%), linear-gradient(to right, black 50%, transparent 50%),
        linear-gradient(to right, black 50%, transparent 50%);
    mask-image: linear-gradient(to right, black 50%, transparent 50%),
        linear-gradient(to right, black 50%, transparent 50%), linear-gradient(to right, black 50%, transparent 50%),
        linear-gradient(to right, black 50%, transparent 50%);
    -webkit-mask-size: 200% 1.2em;
    /* Width is 200% for the slide, height is for one line */
    mask-size: 200% 1.2em;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    /* Position each mask. The JS will animate the 'x' position for each. */
    -webkit-mask-position: var(--bg-slide-x-1, 0%) 0em, var(--bg-slide-x-2, 0%) 1.2em,
        var(--bg-slide-x-3, 0%) 2.4em, var(--bg-slide-x-4, 0%) 3.6em;
    mask-position: var(--bg-slide-x-1, 0%) 0em, var(--bg-slide-x-2, 0%) 1.2em,
        var(--bg-slide-x-3, 0%) 2.4em, var(--bg-slide-x-4, 0%) 3.6em;
}
/* =================== Grid for Bottom Items =================== */
/* --- Grid for Bottom Items --- */
.right-items-bottom {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 5rem;
    row-gap: 3.75rem;
}

.right-items-bottom-item {
    display: flex;
    gap: 1.25rem;
}
/* =================== The vertical white line on the left of each item =================== */
/* The vertical white line on the left of each item */
.divider {
    width: 0.125rem;
    background-color: #ffffff;
    align-self: stretch;
}/* =================== Individual Item Content =================== */

/* --- Individual Item Content --- */
.item-content-top {
    display: flex;
    flex-direction: column;
    gap: 0.9375rem;
    margin-bottom: 0.9375rem;
}

.item-content-top-icon img {
    width: 40px;
    height: auto;
}

.item-content-top-text {
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: capitalize;
}

.item-content-middle {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    max-width: 20rem;
}

.item-content-bottom {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-white);
}

/* =================== Responsive Adjustments =================== */
@media (max-width: 992px) {
    br{
        display: none;
    }
    .strategy-section {
        padding: 2rem 1rem;
    }
    .brand-pattern{
        display: none;
    }
    .right-items-bottom {
        grid-template-columns: 1fr;
    }
    
    .strategy-section-items {
        flex-direction: column;
    }
    
    .right-items-header {
        font-size: 1.8rem;
    }
}

@media (min-width: 1800px) {/* =================== RESPONSIVENESS =================== */
    .right-items-bottom {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem; /* 40px */
    }
}

/* --- RESPONSIVENESS --- */
/* =================== Tablet View (Screens smaller than 1024px) =================== */
/* Tablet View (Screens smaller than 1024px) */
@media (max-width: 1024px) {
    .multimedia-communication-section {
        padding: 3.75rem 5%;
        height: auto;
    }
    
    .multimedia-communication-items {
        flex-direction: column; /* Stack the TV above the text */
        text-align: left;
        align-items: flex-start;
        gap: 60px;
    }

    .communication-visuals-image img {
        max-width: 100%; /* Ensure TV scales down */
        width: 21.875rem;
    }

    .communication-visuals-text {
        font-size: 2.2rem;
        max-width: 400px;
    }
}

/* =================== Mobile View (Screens smaller than 600px) =================== */
@media (max-width: 600px) {
    .multimedia-communication-section {
        height: auto;
        padding: 2.5rem 1.25rem;
        background-size: 1.875rem 1.875rem; /* Smaller grid for smaller screens */
    }

    .communication-visuals-text {
        font-size: 1.8rem; /* Scale down heading */
    }
    .communication-brief {
    gap: 1rem;
}

    .top-text-header {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    /* Stack the three bottom items vertically or in a tighter grid */
    .brief-bottom-text {
        flex-direction: row;
        gap: 1.875rem;
        margin-top: 2.5rem;
    }

    .bottom-text-item {
        flex-direction: column; /* Icon next to text on mobile for better space usage */
        align-items: left;
        
    }

    .text-item-call {
        max-width: none;
        font-size: 1rem;
        text-align: left;
    }

    /* Adjust footer for mobile */
    .big-text {
        font-size: 3.5rem;
    }
}