/* ====================================================
   IR Main Content Section: 2 Columns (8/12 Left, 4/12 Right)
   ==================================================== */
.ir-main-section {
    background-color: #fcfdff;
    padding: 40px 0 50px;
}


/* 2-Column Grid Layout: Exactly 8 cols (66.67%) and 4 cols (33.33%) */
.ir-main-layout {
    /* display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 24px; */
    /* align-items: start; */
    width: 100%;
}

.ir-col-left {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ir-col-right {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Base Card Block */
.ir-card-block {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #edf2f7;
    /* box-shadow: 0 4px 11px rgba(0, 0, 0, 0.03); */
    padding: 24px 22px 26px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: box-shadow 0.3s ease;
    width: 100%;
}

.ir-card-block:hover {
    /* box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06); */
}

/* Block Header */
.ir-block-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
}

.ir-block-title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ir-title-bar {
    display: block;
    width: 4px;
    height: 20px;
    background-color: #f50315;
    border-radius: 2px;
    margin-top: 2px;
    flex-shrink: 0;
}

.ir-title-text {
    display: flex;
    flex-direction: column;
}

.ir-block-title {
    font-size: 17px;
    font-weight: 700;
    color: #0b2d64;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.2px;
}

.ir-block-subtitle {
    font-size: 14px;
    /* color: #64748b; */
    margin: 3px 0 0 0;
    line-height: 1.4;
}

.ir-view-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    color: #f73e5e;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s ease, color 0.2s ease;
}

.ir-view-all:hover {
    /* color: #b91c1c; */
    transform: translateX(3px);
}

.ir-view-all svg {
    width: 14px;
    height: 14px;
}

/* ----------------------------------------------------
   1. Báo Cáo Tài Chính (Report Cards Grid) - 4 cols
   ---------------------------------------------------- */
.ir-report-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

.ir-report-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    padding: 16px 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-sizing: border-box;
    min-width: 0;
}

.ir-report-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.ir-report-icon-wrap {
    margin-bottom: 12px;
}

.ir-file-icon {
    /* width: 36px; */
    /* height: 36px; */
    /* border-radius: 6px; */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ir-file-icon.icon-red {
    /* background-color: #fef2f2; */
    color: #ef4444;
}

.ir-file-icon.icon-blue {
    background-color: #eff6ff;
    color: #0284c7;
}

.ir-file-icon.icon-green {
    background-color: #f0fdf4;
    color: #16a34a;
}

.ir-file-icon.icon-orange {
    background-color: #fffbeb;
    color: #f59e0b;
}

.ir-report-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ir-report-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
    margin: 0 0 6px 0;
    /* min-height: 36px; */
    /* word-break: break-word; */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ir-report-sub {
    font-size: 12px;
    color: #64748b;
    line-height: 1.35;
    margin: 0 0 6px 0;
    /* min-height: 32px; */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ir-report-size {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 14px;
}

.ir-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background-color: #ffffff;
    color: #1e293b;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.ir-download-btn:hover {
    background-color: #dd2027;
    color: #ffffff;
    border-color: #dd2027;
}

.ir-download-btn svg {
    width: 14px;
    height: 14px;
}

/* ----------------------------------------------------
   2. Thông Báo Mới Nhất (News List)
   ---------------------------------------------------- */
.ir-news-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.ir-news-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background-color: #ffffff;
    border: 1px solid #f1f5f9;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    min-width: 0;
}

.ir-news-item:hover {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    transform: translateX(3px);
}

.ir-news-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: #fef2f2;
    color: #E60000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ir-news-icon svg {
    width: 17px;
    height: 17px;
}

.ir-news-info {
    flex: 1;
    min-width: 0;
}

.ir-news-date {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 2px;
    font-weight: 500;
}

.ir-news-title {
    font-size: 12.5px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ir-news-item:hover .ir-news-title {
    color: #E60000;
}

.ir-news-arrow {
    color: #E60000;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.ir-news-arrow svg {
    width: 16px;
    height: 16px;
}

.ir-news-item:hover .ir-news-arrow {
    transform: translateX(3px);
}

/* ----------------------------------------------------
   3. Đại Hội Cổ Đông (Meeting Cards Grid) - 4 cols
   ---------------------------------------------------- */
.ir-meeting-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

.ir-meeting-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-sizing: border-box;
    min-width: 0;
}

.ir-meeting-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.ir-meeting-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    overflow: hidden;
    background-color: #f1f5f9;
}

.ir-meeting-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.ir-meeting-card:hover .ir-meeting-img {
    transform: scale(1.06);
}

.ir-meeting-body {
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.ir-meeting-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.35;
    margin: 0 0 5px 0;
    /* min-height: 36px; */
    /* word-break: break-word; */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 38px;
}

.ir-meeting-date {
    font-size: 11.5px;
    color: #64748b;
    margin-bottom: 10px;
    font-weight: 500;
}

.ir-meeting-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.ir-meeting-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ir-action-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 600;
    color: #E60000;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

.ir-action-link:hover {
    color: #b91c1c;
    transform: translateX(2px);
}

.ir-action-link svg {
    width: 11px;
    height: 11px;
}

/* ----------------------------------------------------
   4. Lịch Sự Kiện (Events List)
   ---------------------------------------------------- */
.ir-events-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.ir-event-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 4px 0;
    min-width: 0;
}

.ir-event-date-badge {
    width: 44px;
    height: 48px;
    border-radius: 8px;
    background-color: #fef2f2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #fee2e2;
}

.ir-event-day {
    font-size: 17px;
    font-weight: 700;
    color: #E60000;
    line-height: 1;
    margin-bottom: 2px;
}

.ir-event-month {
    font-size: 10px;
    font-weight: 700;
    color: #E60000;
    line-height: 1;
    text-transform: uppercase;
}

.ir-event-title {
    font-size: 12.5px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    margin: 0;
    flex: 1;
}

/* ====================================================
   Responsive Breakpoints
   ==================================================== */
@media (max-width: 991px) {

    /* Stack on tablet/mobile */
    .ir-main-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ir-report-grid,
    .ir-meeting-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .ir-card-block {
        padding: 18px 14px 20px;
    }
}

@media (max-width: 480px) {

    .ir-report-grid,
    .ir-meeting-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ir-block-header {
        flex-direction: row;
        align-items: center;
    }
}