/* Helical Stylesheet */

@font-face {
    font-family: 'MollenPersonalUse-Regular';
    src: url('../fonts/MollenPersonalUse-Regular.eot?#iefix') format('embedded-opentype'),
        url('../fonts/MollenPersonalUse-Regular.otf') format('opentype'),
        url('../fonts/MollenPersonalUse-Regular.woff') format('woff'),
        url('../fonts/MollenPersonalUse-Regular.ttf') format('truetype'),
        url('../fonts/MollenPersonalUse-Regular.svg#MollenPersonalUse-Regular') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'MollenPersonalUse-Bold';
    src: url('../fonts/MollenPersonalUse-Bold.eot?#iefix') format('embedded-opentype'),
        url('../fonts/MollenPersonalUse-Bold.otf') format('opentype'),
        url('../fonts/MollenPersonalUse-Bold.woff') format('woff'),
        url('../fonts/MollenPersonalUse-Bold.ttf') format('truetype'),
        url('../fonts/MollenPersonalUse-Bold.svg#MollenPersonalUse-Bold') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Porter-BoldDEMO';
    src: url('../fonts/Porter-BoldDEMO.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Porter-BoldDEMO.woff') format('woff'),
        url('../fonts/Porter-BoldDEMO.ttf') format('truetype'),
        url('../fonts/Porter-BoldDEMO.svg#Porter-BoldDEMO') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Swiss721BT-Roman';
    src: url('../fonts/Swiss721BT-Roman.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Swiss721BT-Roman.woff') format('woff'),
        url('../fonts/Swiss721BT-Roman.ttf') format('truetype'),
        url('../fonts/Swiss721BT-Roman.svg#Swiss721BT-Roman') format('svg');
    font-weight: normal;
    font-style: normal;
}

/* Wrapper for the entire Investor & Announcement Portal component */
.hc-section-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 0;
    box-sizing: border-box;
    background-color: #f0f2f5;
}

.hc-main-wrapper {
    width: 100%;
    max-width: 1000px;
    background-color: #FFFFFF;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

/* Header Section for Investor Relations & Announcement Titles */
.hc-header-section {
    display: flex;
    justify-content: center;
    padding: 18px 0;
    border-bottom: 1px solid #E0E0E0;
    background-color: #FFFFFF;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.hc-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1b46;
    text-align: center;
    flex: 1;
    padding: 0 15px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    position: relative;
    font-family: 'Roboto', sans-serif;
}

.hc-section-title:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background-color: #E0E0E0;
}

.hc-content-columns {
    display: flex;
    justify-content: center;
    padding: 25px;
    gap: 25px;
    flex-wrap: wrap;
}

.hc-column-box {
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 0;
    flex: 1;
    min-width: 400px;
    max-width: calc(50% - 12.5px);
    box-sizing: border-box;
    background-color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.hc-investor-card-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.hc-investor-image-frame {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hc-investor-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.hc-announcement-section-content {
    padding: 0;
}

.hc-search-container {
    padding: 15px 20px;
    border-bottom: 1px solid #E0E0E0;
    background-color: #fdfdfd;
}

#hc-announcementSearch {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #E0E0E0;
    border-radius: 5px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

#hc-announcementSearch:focus {
    border-color: #2F52A1;
    box-shadow: 0 0 5px rgba(255, 130, 1, 0.3);
    outline: none;
}

.hc-announcement-section {
    height: 280px;
    overflow-y: auto;
    padding: 15px 20px;
    padding-right: 15px;
}

.hc-announcement-section::-webkit-scrollbar {
    width: 8px;
}

.hc-announcement-section::-webkit-scrollbar-track {
    background: #f0f2f5;
    border-radius: 10px;
}

.hc-announcement-section::-webkit-scrollbar-thumb {
    background: #a0a0a0;
    border-radius: 10px;
    border: 2px solid #f0f2f5;
}

.hc-announcement-section::-webkit-scrollbar-thumb:hover {
    background: #888888;
}

.hc-announcement-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hc-announcement-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #4B4B4D;
    transition: opacity 0.25s ease, transform 0.25s ease,
        height 0.25s ease, margin 0.25s ease, padding 0.25s ease;
    box-sizing: border-box;
}

.hc-announcement-list li.hc-hide {
    opacity: 0;
    transform: translateY(-5px);
    height: 0;
    margin: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
    pointer-events: none;
}

.hc-announcement-list li:first-child {
    padding-top: 0;
}

.hc-announcement-list li:last-child:not(.hc-hide) {
    border-bottom: none;
}

.hc-announcement-text {
    flex-grow: 1;
    margin-right: 15px;
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
}

.hc-view-file-button {
    background-color: #2F52A1;
    color: #FFFFFF;
    border: none;
    padding: 7px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: 'Roboto', sans-serif;
}

.hc-view-file-button:hover {
    background-color: #0032e6;
    transform: translateY(-1px);
}

/* Modal Styling */
.hc-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.hc-modal.active {
    display: flex;
    opacity: 1;
}

.hc-modal-content {
    background-color: #FFFFFF;
    margin: auto;
    padding: 0;
    border: 1px solid #777;
    width: 90%;
    max-width: 1000px;
    height: 90%;
    max-height: 90vh;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(-50px);
    transition: transform 0.3s cubic-bezier(.68, -0.55, .27, 1.55), opacity 0.3s ease-out;
}

.hc-modal.active .hc-modal-content {
    transform: translateY(0);
    opacity: 1;
}

.hc-modal-header {
    padding: 12px 20px;
    background-color: #2F52A1;
    color: #FFFFFF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}

.hc-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
}

.hc-modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hc-modal-action-button {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    color: #FFFFFF;
}

.hc-modal-action-button:hover {
    transform: translateY(-1px) scale(1.1);
    opacity: 0.8;
}

.hc-modal-action-button svg {
    width: 20px;
    height: 20px;
    fill: #FFFFFF;
    transition: fill 0.2s ease;
}

.hc-modal-action-button:hover svg {
    fill: #ffe0b2;
}


.hc-fullscreen-button {
    width: 30px;
    height: 30px;
    padding: 0;
}

.hc-fullscreen-icon {
    fill: #ffe0b2;
}

.hc-fullscreen-button:hover .hc-fullscreen-icon {
    fill: #FFFFFF;
}

.hc-close-button {
    font-size: 32px;
    font-weight: bold;
    color: #FFFFFF;
    margin-left: 5px;
    height: 30px;
    width: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    transition: color 0.3s ease, transform 0.2s ease;
}

.hc-close-button:hover,
.hc-close-button:focus {
    transform: rotate(90deg);
    cursor: pointer;
}

#hc-copyAcknowledgment {
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 13px;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out, bottom 0.3s ease-in-out;
    z-index: 10001;
    white-space: nowrap;
}


.hc-modal-body {
    flex-grow: 1;
    padding: 15px;
    background-color: #eceff1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
}

.hc-modal-body .hc-viewer-element {
    display: none;
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
    background-color: #FFFFFF;
}

.hc-modal-body .hc-active-content {
    display: block;
}

.hc-modal-body iframe,
.hc-modal-body img,
.hc-modal-body video {
    object-fit: contain;
    object-position: center;
}

.hc-modal-body video {
    width: auto;
    height: auto;
    min-width: 50%;
    min-height: 50%;
}

.hc-modal-content:fullscreen {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
    transition: none;
}

.hc-modal-content:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
    transition: none;
}

.hc-modal-content:-moz-full-screen {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
    transition: none;
}

.hc-modal-content:-ms-fullscreen {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
    transition: none;
}

@media (max-width: 900px) {
    .hc-column-box {
        min-width: unset;
        max-width: 100%;
    }

    .hc-content-columns {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }

    .hc-investor-card-wrapper {
        padding: 10px;
    }

    .hc-investor-image-frame {
        height: 220px;
    }

    .hc-announcement-section {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .hc-section-container {
        padding: 10px 0;
    }

    .hc-main-wrapper {
        border-radius: 0;
        box-shadow: none;
    }

    .hc-header-section {
        padding: 15px 10px;
    }

    .hc-section-title {
        font-size: 16px;
        letter-spacing: 1px;
    }

    .hc-section-title:not(:last-child)::after {
        content: none;
    }

    .hc-search-container {
        padding: 10px 15px;
    }

    #hc-announcementSearch {
        font-size: 14px;
        padding: 8px 12px;
    }

    .hc-announcement-section {
        padding: 10px 15px;
        padding-right: 10px;
    }

    .hc-announcement-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 0;
    }

    .hc-announcement-text {
        margin-right: 0;
    }

    .hc-view-file-button {
        width: 100%;
        text-align: center;
        font-size: 11px;
        padding: 8px 10px;
    }

    .hc-modal-content {
        width: 95%;
        height: 95%;
        max-width: 95%;
        max-height: 95vh;
    }

    .hc-modal-header h3 {
        font-size: 18px;
    }

    .hc-fullscreen-button {
        width: 25px;
        height: 25px;
    }

    .hc-fullscreen-icon {
        width: 18px;
        height: 18px;
    }

    .hc-close-button {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hc-section-container {
        padding: 5px 0;
    }

    .hc-header-section {
        padding: 10px 5px;
    }

    .hc-section-title {
        font-size: 14px;
    }

    .hc-investor-image-frame {
        height: 180px;
    }

    .hc-announcement-section {
        height: 180px;
    }

    .hc-search-container {
        padding: 8px 10px;
    }

    #hc-announcementSearch {
        font-size: 13px;
        padding: 6px 10px;
    }
}
