@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,700&family=Montserrat:wght@500;700&display=swap');

/* Chairman Message Section Styles */
.chairman-message-section {
    background-color: #fcfcfc;
    overflow: hidden;
    font-family: 'Plus Jakarta Sans', sans-serif;
    position: relative;
}

/* Background subtlety */
.chairman-message-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(to left, rgba(222, 177, 34, 0.05), transparent);
    z-index: 0;
}

.chairman-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.chairman-content-wrapper {
    display: flex;
    align-items: center;
    gap: 80px;
    /* More space for cleaner look */
    flex-wrap: wrap;
}

/* 50% Columns */
.chairman-image-col {
    flex: 1;
    min-width: 300px;
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px;
    /* For 3D tilt effect if desired later */
}

.chairman-text-col {
    flex: 1;
    min-width: 300px;
}

/* Image Styling */
.chairman-img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: visible;
    box-shadow: 0 20px 50px rgba(107, 66, 38, 0.2);
    border: 8px solid #ffffff;
    width: fit-content;
    margin: 0 auto;
    background: #fff;
    max-width: 100%;
    /* Initial state for GSAP */
    opacity: 0;
    transform: translateX(-50px) rotateY(10deg);
}

.chairman-img-wrapper img {
    width: auto;
    display: block;
    max-height: 480px;
    border-radius: 12px;
    transition: transform 0.5s ease;
    max-width: 100%;
}

.chairman-img-wrapper:hover img {
    transform: scale(1.02);
}

/* Decorative background shapes */
.chairman-img-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid #deb122;
    /* Gold Accent */
    border-radius: 25px;
    z-index: -1;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chairman-img-wrapper:hover::before {
    top: -12px;
    left: -12px;
}

/* Text Styling */
.chairman-title {
    font-size: 42px;
    /* Bigger and bolder */
    font-weight: 800;
    color: #6B4226;
    /* Primary Coffee Brown */
    text-transform: uppercase;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    line-height: 1.2;
    /* Initial state for GSAP */
    opacity: 0;
    transform: translateY(30px);
}

.chairman-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: var(--underline-width, 0);
    /* Animate width via GSAP */
    height: 5px;
    background-color: #deb122;
    /* Gold Accent */
    border-radius: 3px;
}

.chairman-description {
    font-size: 17px;
    line-height: 1.9;
    color: #555;
    text-align: justify;
    margin-bottom: 0;
    position: relative;
}

.chairman-desc-text {
    /* Initial state for GSAP */
    opacity: 0;
    transform: translateY(20px);
    display: block;
}

/* Highlighted phrases */
.chairman-highlight {
    color: #6B4226;
    font-weight: 800;
    position: relative;
    background: linear-gradient(120deg, transparent 0%, transparent 100%);
    background-repeat: no-repeat;
    background-size: 100% 30%;
    background-position: 0 88%;
    transition: background-size 0.3s ease;
}

/* Just a subtle highlight bg on hover if needed, or controlled via GSAP */
.chairman-highlight.active-highlight {
    background: linear-gradient(120deg, rgba(222, 177, 34, 0.3) 0%, rgba(222, 177, 34, 0.3) 100%);
    background-repeat: no-repeat;
    background-size: 100% 30%;
    background-position: 0 88%;
}

/* Floating Quotes Icon */
.quote-icon {
    font-size: 45px;
    color: #f58221;
    float: left;
    margin-right: 12px;
    margin-top: 5px;
    line-height: 1;
    pointer-events: none;
    /* Initial state for GSAP */
    opacity: 0;
    transform: scale(0);
}

/* Responsive */
@media screen and (max-width: 992px) {
    .chairman-content-wrapper {
        flex-direction: column;
        gap: 50px;
    }

    .chairman-text-col {
        padding: 0 10px;
    }

    .chairman-title {
        font-size: 32px;
        text-align: center;
        display: block;
    }

    .chairman-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .chairman-description {
        text-align: center;
        /* Center text on mobile for better flow? Or keep justify. Let's keep justify but ensure readability */
        text-align: justify;
    }
}

/* Signature Block */
.chairman-signature-block {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(107, 66, 38, 0.1);
    /* Initial State for GSAP */
    opacity: 0;
    transform: translateY(20px);
}

.chairman-name {
    font-size: 24px;
    font-weight: 800;
    color: #6B4226;
    margin-bottom: 5px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.chairman-designation {
    font-size: 16px;
    color: #deb122;
    /* Gold */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
}

@media screen and (max-width: 992px) {
    .chairman-signature-block {
        text-align: center;
        border-top: none;
        margin-top: 30px;
    }
}

.chairman-section-title {
    font-size: 42px;
    font-weight: 800;
    color: #6B4226;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    display: table;
    /* To allow pseudo element to match text width if needed, or just block */
    margin-left: auto;
    margin-right: auto;
}

.chairman-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background-color: #deb122;
    border-radius: 3px;
}

/* --- Dual Chairman Message Layout Updates --- */
.chairman-message-card {
    /* Base styles for card wrapper */
    position: relative;
    /* ensure animations work */
}

@media screen and (min-width: 993px) {
    .chairman-messages-row {
        display: flex;
        gap: 40px;
        align-items: stretch;
        /* Make both cards equal height */
        justify-content: center;
    }

    .chairman-message-card {
        flex: 1;
        min-width: 0;
        /* Prevent flex overflow */
        background: #fff;
        padding: 40px;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(107, 66, 38, 0.05);
        /* Subtle shadow consistent with theme */
        display: flex;
        flex-direction: column;
        border: 1px solid rgba(107, 66, 38, 0.05);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .chairman-message-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(107, 66, 38, 0.1);
    }

    /* Inside the card, we want Image TOP, Text BOTTOM */
    .chairman-message-card .chairman-content-wrapper {
        flex-direction: column;
        gap: 30px;
        height: 100%;
        width: 100%;
    }

    .chairman-message-card .chairman-image-col,
    .chairman-message-card .chairman-text-col {
        width: 100%;
        flex: unset;
        /* Override flex: 1 */
        min-width: 0;
    }

    .chairman-message-card .chairman-image-col {
        display: flex;
        justify-content: center;
        perspective: none;
        /* Reset perspective if needed */
    }

    .chairman-message-card .chairman-img-wrapper {
        transform: none !important;
        /* Reset tilt if needed */
        margin: 0 auto;
        border-width: 5px;
        /* Slightly thinner border for smaller card */
        width: 100%;
        max-width: 350px;
        /* Constrain image width in card */
        height: 350px;
        /* Fixed height for uniformity */
        overflow: hidden;
        /* Ensure image stays within bounds */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .chairman-message-card .chairman-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* Maintain aspect ratio filling the box */
        object-position: top;
        /* Focus on faces */
    }

    .chairman-message-card .chairman-title {
        text-align: center;
        font-size: 28px;
        /* Slightly smaller title for side-by-side */
        width: 100%;
        margin-bottom: 20px;
        transform: none !important;
        opacity: 1 !important;
        display: block;
        /* Ensure block display */
    }

    .chairman-message-card .chairman-title::after {
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        /* Default width */
    }

    .chairman-message-card .chairman-description {
        text-align: justify;
        /* Ensure text doesn't overflow */
        width: 100%;
    }

    .chairman-message-card .chairman-desc-text {
        font-size: 16px;
        /* Slightly smaller text */
        line-height: 1.8;
    }

    .chairman-message-card .chairman-signature-block {
        text-align: center;
        margin-top: auto;
        /* Push to bottom */
        padding-top: 20px;
        border-top: 1px solid rgba(107, 66, 38, 0.1);
    }

    /* Adjust quote icon size for card layout */
    .chairman-message-card .quote-icon {
        font-size: 35px;
        margin-right: 10px;
        margin-top: 5px;
    }
}

@media screen and (max-width: 992px) {
    .chairman-messages-row {
        display: flex;
        flex-direction: column;
        gap: 60px;
    }

    .chairman-message-card {
        /* On mobile, looks like a normal section but maybe boxed */
        width: 100%;
        background: #fff;
        padding: 20px;
        border-radius: 15px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    }

    .chairman-message-card .chairman-content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .chairman-message-card .chairman-title {
        text-align: center;
        width: 100%;
    }

    .chairman-message-card .chairman-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .chairman-message-card .chairman-image-col {
        justify-content: center;
        display: flex;
    }
}

/* New Attractive Chairman Title Styles */
.attractive-chairman-title-wrap {
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
}

.attractive-chairman-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 33px;
    color: #6B4226;
    margin: 0;
    line-height: 1.2;
    position: relative;
    display: inline-block;
    padding: 0 15px;
}

.attractive-chairman-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #f58221, #deb122);
    border-radius: 2px;
}

.attractive-chairman-title .highlight-text {
    color: #f58221;
    font-size: 33px;


    /* Highlight with theme orange color */
}

@media screen and (max-width: 992px) {
    .attractive-chairman-title {
        font-size: 28px;
    }
}