/* =========================================
   UNIVERSAL RESPONSIVE CUSTOM WIDGET
   Mobile • Tablet • Laptop • Desktop
========================================= */

/* Main Wrapper */
.custom-widget{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2vw, 24px);
}

/* Row */
.custom-widget .row{
    width: 100%;
    margin: 0 !important;
}

/* =========================================
   CARD DESIGN
========================================= */

.custom-widget .chairman-box{
    position: relative;

    width: 100%;
    overflow: hidden;

    background: #ffffff;

    padding: clamp(18px, 2vw, 28px);

    border-radius: 18px;
    border: 1px solid #e5e7eb;

    box-shadow:
        0 6px 24px rgba(0,0,0,.05);

    transition:
        transform .35s ease,
        box-shadow .35s ease;

}

/* Hover Card */
.custom-widget .chairman-box:hover{
    transform: translateY(-5px);

    box-shadow:
        0 16px 40px rgba(0,0,0,.08);
}



/* =========================================
   CHAIRMAN TITLE FIX
========================================= */

.custom-widget .chairman-box h3,
.chairman-box h3{
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    margin: 0 0 22px;
    padding: 14px 18px;

    background: #343a40;
    color: #ffffff;

    font-size: clamp(18px, 2vw, 26px);
    font-weight: 700;
    line-height: 1.3;

    text-align: center;

    border-radius: 12px;

    overflow: hidden;
}

/* Bottom Accent Line */
.custom-widget .chairman-box h3::after,
.chairman-box h3::after{

   content: "";

    position: absolute;
    right: 45;
    bottom: 0;

    width: 70px;
    height: 4px;
    margin-bottom: 7px;
    background: linear-gradient(
        90deg,
        #2563eb,
        #7c3aed
    );

    border-radius: 10px;
}

/* Mobile Responsive */
@media (max-width: 575px){

    .custom-widget .chairman-box h3,
    .chairman-box h3{
        padding: 12px 14px;

        font-size: 20px;

        border-radius: 10px;
    }

    .custom-widget .chairman-box h3::after,
    .chairman-box h3::after{
        width: 55px;
    }
}
/* Gradient Underline */
.custom-widget .chairman-box h3::after{
    content: "";

    position: absolute;
    left: 45;
    bottom: 0;

    width: 70px;
    height: 4px;

    border-radius: 20px;

    margin-bottom: 5px;

    background: linear-gradient(
        90deg,
        #2563eb,
        #7c3aed
    );
}

/* =========================================
   LINK
========================================= */

.custom-widget .speach{
    display: block;
    text-decoration: none;
}

/* =========================================
   SPEECH BOX
========================================= */

.custom-widget .speach-box{
    display: flex;
    align-items: center;

    gap: clamp(14px, 2vw, 22px);

    width: 100%;
}

/* =========================================
   IMAGE
========================================= */

.custom-widget .spech-img{
    flex-shrink: 0;
}

.custom-widget .spech-img img{
    width: clamp(70px, 7vw, 95px) !important;
    height: clamp(70px, 7vw, 95px) !important;

    object-fit: cover;

    border-radius: 50%;

    border: 4px solid #ffffff;

    box-shadow:
        0 6px 18px rgba(0,0,0,.12);

    transition:
        transform .35s ease,
        box-shadow .35s ease;
}

/* Image Hover */
.custom-widget .chairman-box:hover .spech-img img{
    transform: scale(1.06);

    box-shadow:
        0 12px 24px rgba(37,99,235,.22);
}

/* =========================================
   CONTENT
========================================= */

.custom-widget .spech-cont{
    flex: 1;
    min-width: 0;
}

/* Name */
.custom-widget .spech-cont h4{
    margin: 0 0 8px;

    font-size: clamp(16px, 1.5vw, 22px);
    font-weight: 700;
    line-height: 1.4;

    color: #111827;

    transition: color .3s ease;
}

/* Position */
.custom-widget .spech-cont span{
    display: inline-flex;
    align-items: center;

    padding:
        6px 14px;

    font-size: clamp(12px, 1vw, 14px);
    font-weight: 600;

    color: #2563eb;

    background:
        rgba(37,99,235,.08);

    border-radius: 999px;
}

/* Hover Name */
.custom-widget .chairman-box:hover .spech-cont h4{
    color: #2563eb;
}

/* =========================================
   MOBILE DEVICES
========================================= */

@media (max-width: 575px){

    .custom-widget .chairman-box{
        padding: 18px;
        border-radius: 16px;
    }

    .custom-widget .speach-box{
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .custom-widget .spech-cont{
        text-align: center;
    }

    .custom-widget .chairman-box h3{
        text-align: center;
    }

    .custom-widget .chairman-box h3::after{
        left: 50%;
        transform: translateX(-50%);
    }
}

/* =========================================
   TABLET DEVICES
========================================= */

@media (min-width: 576px) and (max-width: 991px){

    .custom-widget .chairman-box{
        padding: 22px;
    }
}

/* =========================================
   LARGE DESKTOP DEVICES
========================================= */

@media (min-width: 1400px){

    .custom-widget .chairman-box{
        padding: 34px;
    }

    .custom-widget .speach-box{
        gap: 26px;
    }
}

/* =========================================
   TOUCH DEVICE OPTIMIZATION
========================================= */

@media (hover: none){

    .custom-widget .chairman-box:hover{
        transform: none;
    }

    .custom-widget .chairman-box:hover .spech-img img{
        transform: none;
    }
}

/* =========================================
   DARK MODE SUPPORT
========================================= */

@media (prefers-color-scheme: dark){

    .custom-widget .chairman-box{
        background: #111827;
        border-color: #1f2937;

        box-shadow:
            0 10px 30px rgba(0,0,0,.35);
    }

    .custom-widget .chairman-box h3,
    .custom-widget .spech-cont h4{
        color: #f9fafb;
    }

    .custom-widget .spech-cont span{
        background: rgba(255,255,255,.08);
        color: #93c5fd;
    }

    .custom-widget .spech-img img{
        border-color: #1f2937;
    }
}