/* TAGS Awards 2026 - Messages (President / Chairman) */

.tags-messages {
    background: #FAF8F5;
    padding: 72px 0 80px;
    position: relative;
}

.tags-messages__heading {
    font-family: var(--font-display, 'Bodoni Moda', serif);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    color: var(--color-primary-dark, #16161A);
    text-align: center;
    margin-bottom: 8px;
}

.tags-messages__sub {
    display: block;
    text-align: center;
    color: #6b6b73;
    font-size: 15px;
    font-family: var(--font-body, 'Montserrat', sans-serif);
    margin-bottom: 48px;
}

.tags-messages__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

/* Executive Card Frame */
.tags-msg {
    position: relative;
    display: flex;
    flex-direction: row;
    background: #FFFFFF;
    border: 1px solid rgba(205, 156, 33, 0.22);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(20, 20, 24, 0.05);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.35s ease, 
                border-color 0.35s ease;
}

.tags-msg.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.tags-msg:hover {
    box-shadow: 0 20px 40px rgba(20, 20, 24, 0.12), 0 0 24px rgba(205, 156, 33, 0.15);
    border-color: rgba(205, 156, 33, 0.45);
    transform: translateY(-3px);
}

/* Media / Portrait Column (Desktop) */
.tags-msg__media {
    position: relative;
    width: 200px;
    min-width: 200px;
    background: linear-gradient(135deg, #1E1E22 0%, #16161A 100%);
    overflow: hidden;
    flex-shrink: 0;
}

.tags-msg__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.tags-msg:hover .tags-msg__media img {
    transform: scale(1.04);
}

.tags-msg__media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
                rgba(0, 0, 0, 0) 50%, 
                rgba(22, 22, 26, 0.4) 80%,
                rgba(22, 22, 26, 0.7) 100%);
    pointer-events: none;
}

/* Gold Badges */
.tags-msg__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #CD9C21 0%, #F0DA6A 50%, #CD9C21 100%);
    color: #1A1A1E;
    font-family: var(--font-body, 'Montserrat', sans-serif);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

.tags-msg__media .tags-msg__badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    z-index: 2;
}

.tags-msg__badge--mobile {
    margin-bottom: 6px;
}

/* Card Content Area */
.tags-msg__content {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px 26px 26px;
    background: #FFFFFF;
    min-width: 0;
}

/* Mobile Header Row (hidden on desktop) */
.tags-msg__mobile-header {
    display: none;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(205, 156, 33, 0.15);
}

/* Prominent Mobile Card Portrait Avatar Frame */
.tags-msg__mobile-avatar {
    width: 110px;
    height: 135px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #CD9C21;
    box-shadow: 0 6px 16px rgba(20, 20, 24, 0.15);
    background: #16161A;
}

.tags-msg__mobile-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.tags-msg__mobile-info {
    flex: 1;
    min-width: 0;
}

.tags-msg__mobile-info .tags-msg__name {
    margin-bottom: 2px;
}

/* Desktop Header */
.tags-msg__header--desktop {
    margin-bottom: 12px;
}

.tags-msg__name {
    font-family: var(--font-display, 'Bodoni Moda', serif);
    font-size: clamp(20px, 1.6vw, 23px);
    font-weight: 700;
    color: var(--color-primary-dark, #16161A);
    margin: 0 0 2px;
    line-height: 1.25;
}

.tags-msg__title {
    display: block;
    font-family: var(--font-body, 'Montserrat', sans-serif);
    font-size: 13px;
    font-weight: 500;
    color: #CD9C21;
    letter-spacing: 0.01em;
}

.tags-msg__watermark {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 44px;
    height: 44px;
    color: rgba(205, 156, 33, 0.12);
    pointer-events: none;
    user-select: none;
}

.tags-msg__excerpt {
    position: relative;
    font-family: var(--font-body, 'Montserrat', sans-serif);
    font-size: 13.5px;
    line-height: 1.65;
    color: #4A4A52;
    margin: 0 0 20px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.tags-msg__btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 0;
    border-radius: 999px;
    font-family: var(--font-body, 'Montserrat', sans-serif);
    font-size: 13px;
    font-weight: 600;
    color: #1A1A1E;
    background: linear-gradient(90deg, #CD9C21 0%, #F0DA6A 100%);
    box-shadow: 0 4px 12px rgba(205, 156, 33, 0.25);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.tags-msg__btn:hover,
.tags-msg__btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(205, 156, 33, 0.38);
    background: linear-gradient(90deg, #F0DA6A 0%, #CD9C21 100%);
    color: #1A1A1E;
}

.tags-msg__btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.25s ease;
}

.tags-msg__btn:hover svg {
    transform: translateX(4px);
}

/* ==========================================================================
   Luxury Executive Popup Modal Styling
   ========================================================================== */

/* Lock background outer page scrolling when modal is active */
body.modal-open,
html.modal-open {
    overflow: hidden !important;
    touch-action: none;
    overscroll-behavior: none;
}

.tags-modal,
.tags-modal .modal-dialog,
.tags-modal .modal-content {
    overscroll-behavior: contain;
}

.tags-modal .modal-dialog {
    max-width: 760px;
    margin: 1.75rem auto;
    overscroll-behavior: contain;
}

.tags-modal .modal-content {
    border: 1px solid rgba(205, 156, 33, 0.35);
    border-radius: 24px;
    overflow: hidden;
    background: #FAF8F5;
    box-shadow: 0 24px 72px rgba(15, 15, 18, 0.35);
}

/* Modal Header */
.tags-modal .modal-header,
#president-modal .modal-header,
#chairman-modal .modal-header {
    background: linear-gradient(135deg, #1E1E22 0%, #16161A 100%) !important;
    border-bottom: 3px solid #CD9C21;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 32px;
}

.modal-header__profile {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

/* Prominent Modal Header Avatar Frame */
.modal-header__avatar {
    width: 88px;
    height: 88px;
    border-radius: 18px;
    object-fit: cover;
    object-position: top center;
    flex-shrink: 0;
    border: 2px solid #CD9C21;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.modal-header__meta {
    flex: 1;
    min-width: 0;
}

.modal-header__badge {
    display: inline-block;
    font-family: var(--font-body, 'Montserrat', sans-serif);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #F0DA6A;
    margin-bottom: 4px;
}

.tags-modal .modal-title {
    font-family: var(--font-display, 'Bodoni Moda', serif);
    color: #FFFFFF;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    line-height: 1.25;
}

.tags-modal .modal-title small {
    display: block;
    font-family: var(--font-body, 'Montserrat', sans-serif);
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 3px;
}

/* Perfect Circular Close Button */
.tags-modal .close {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #FFFFFF !important;
    opacity: 0.85;
    text-shadow: none;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    align-self: center !important;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    aspect-ratio: 1 / 1 !important;
    box-sizing: border-box !important;
}

.tags-modal .close:hover {
    opacity: 1;
    background: #CD9C21 !important;
    color: #16161A !important;
    border-color: #CD9C21 !important;
}

#president-modal .close span,
#chairman-modal .close span {
    background: transparent !important;
    opacity: 1;
    padding: 0 !important;
    font-size: 22px;
    line-height: 1;
    display: block;
}

/* Modal Body */
.tags-modal .modal-body {
    padding: 36px 40px;
    max-height: 65vh;
    overflow-y: auto;
    background: #FAF8F5;
    scrollbar-width: thin;
    scrollbar-color: #CD9C21 transparent;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.tags-modal .modal-body::-webkit-scrollbar {
    width: 6px;
}

.tags-modal .modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.tags-modal .modal-body::-webkit-scrollbar-thumb {
    background: #CD9C21;
    border-radius: 6px;
}

.tags-modal .modal-body p {
    font-family: var(--font-body, 'Montserrat', sans-serif);
    font-size: 15px;
    line-height: 1.8;
    color: #3D3D46;
    margin-bottom: 18px;
    text-align: left;
}

.tags-modal .modal-body p:last-of-type {
    margin-bottom: 0;
}

/* Signature Card (Clean without star seal) */
.modal-signature {
    display: flex;
    align-items: center;
    margin-top: 28px;
    padding: 18px 22px;
    background: #FFFFFF;
    border: 1px solid rgba(205, 156, 33, 0.25);
    border-radius: 14px;
    border-left: 4px solid #CD9C21;
}

.modal-signature__info strong {
    display: block;
    font-family: var(--font-display, 'Bodoni Moda', serif);
    font-size: 18px;
    color: #16161A;
    line-height: 1.25;
}

.modal-signature__info span {
    display: block;
    font-family: var(--font-body, 'Montserrat', sans-serif);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #CD9C21;
    margin-top: 2px;
}

/* Modal Footer */
.tags-modal .modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 16px 32px;
    background: #FAF8F5;
    display: flex;
    justify-content: flex-end;
}

.tags-modal__close-btn {
    background: #16161A !important;
    border: 1px solid #16161A !important;
    color: #FFFFFF !important;
    border-radius: 999px !important;
    padding: 10px 26px !important;
    font-family: var(--font-body, 'Montserrat', sans-serif) !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.25s ease !important;
}

.tags-modal__close-btn:hover,
.tags-modal__close-btn:focus {
    background: #CD9C21 !important;
    border-color: #CD9C21 !important;
    color: #16161A !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(205, 156, 33, 0.35) !important;
}

/* Responsive Media Queries */
@media (max-width: 1199px) {
    .tags-messages__grid {
        grid-template-columns: 1fr;
        max-width: 680px;
        margin: 0 auto;
        gap: 28px;
    }
}

@media (max-width: 767px) {
    .tags-messages {
        padding: 48px 16px;
    }

    .tags-messages__heading {
        margin-bottom: 6px;
    }

    .tags-messages__sub {
        font-size: 14px;
        margin-bottom: 32px;
    }

    .tags-msg {
        flex-direction: column;
        border-radius: 18px;
    }

    /* Hide desktop media & header on mobile */
    .tags-msg__media,
    .tags-msg__header--desktop {
        display: none !important;
    }

    /* Show mobile header row */
    .tags-msg__mobile-header {
        display: flex;
    }

    .tags-msg__content {
        padding: 20px 20px 22px;
    }

    .tags-msg__watermark {
        width: 36px;
        height: 36px;
        top: 14px;
        right: 14px;
    }

    .tags-msg__excerpt {
        font-size: 13.5px;
        line-height: 1.6;
        margin-bottom: 18px;
        -webkit-line-clamp: 3;
    }

    .tags-msg__btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 13px;
        min-height: 44px;
    }

    /* Mobile Bottom Sheet Modal */
    .tags-modal .modal-dialog {
        margin: 0;
        min-height: 100vh;
        display: flex;
        align-items: flex-end;
    }

    .tags-modal .modal-content {
        border-radius: 24px 24px 0 0;
        max-height: 90vh;
        width: 100%;
        border-bottom: 0;
    }

    .tags-modal .modal-header {
        padding: 20px 18px;
        gap: 16px;
    }

    .modal-header__avatar {
        width: 74px;
        height: 74px;
        border-radius: 14px;
    }

    .tags-modal .modal-title {
        font-size: 18px;
    }

    .tags-modal .modal-body {
        padding: 22px 18px;
        max-height: calc(90vh - 150px);
    }

    .tags-modal .modal-body p {
        font-size: 14px;
        line-height: 1.7;
    }

    .modal-signature {
        padding: 14px 18px;
    }

    .tags-modal .modal-footer {
        padding: 14px 18px;
    }

    .tags-modal__close-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tags-msg {
        transition: opacity 0.4s ease;
        transform: none !important;
    }
    
    .tags-msg__media img,
    .tags-msg__btn,
    .tags-msg__btn svg {
        transition: none !important;
        transform: none !important;
    }
}
