/* Main Container */
.gpm-main-academic-calender-container {
    width:90%;
    margin: auto;
}

/* -------------------------------------
           TOP CARDS ROW (Moved to top)
        ------------------------------------- */
.gpm-main-academic-calender-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.gpm-main-academic-calender-card {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gpm-main-academic-calender-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.08);
}

.gpm-main-academic-calender-card-icon-wrapper {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    flex-shrink: 0;
}

.gpm-main-academic-calender-card-icon-wrapper i {
    font-size: 24px;
}

/* Card Icon Specific Colors */
.gpm-main-academic-calender-bg-pink {
    background-color: #ffebee;
    color: #c21717;
    /* Red */
}

.gpm-main-academic-calender-bg-blue {
    background-color: #e3f2fd;
    color: #1976d2;
    /* Blue */
}

.gpm-main-academic-calender-bg-purple {
    background-color: #ede7f6;
    color: #5e35b1;
    /* Purple */
}

.gpm-main-academic-calender-card-text {
    display: flex;
    flex-direction: column;
}

.gpm-main-academic-calender-card-label {
    font-size: 13px;
    color: #888888;
    margin-bottom: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gpm-main-academic-calender-card-value {
    font-size: 18px;
    font-weight: 700;
    color: #222222;
}

/* -------------------------------------
           PDF VIEWER SECTION
        ------------------------------------- */
.gpm-main-academic-calender-pdf-section {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.03);
}

.gpm-main-academic-calender-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.gpm-main-academic-calender-title-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.gpm-main-academic-calender-title {
    font-size: 20px;
    font-weight: 700;
    color: #1976d2;
    /* Blue */
}

.gpm-main-academic-calender-subtitle {
    font-size: 13px;
    color: #666666;
}

/* Download Button Upgrade */
.gpm-main-academic-calender-btn-download {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background-color: #c21717;
    /* Red */
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.gpm-main-academic-calender-btn-download:hover {
    background-color: #a01212;
    transform: translateY(-2px);
}

.gpm-main-academic-calender-btn-download:active {
    transform: translateY(0px);
    box-shadow: 0px 2px 5px rgba(194, 23, 23, 0.3);
}

/* Iframe Height Bug Fix Applied Here */
.gpm-main-academic-calender-pdf-wrapper {
    width: 100%;
    min-height: 600px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    overflow: hidden;
    background: #323639;
    position: relative;
    /* Crucial for absolute iframe */
}

.gpm-main-academic-calender-iframe {
    position: absolute;
    /* Takes iframe out of normal flow to bypass 150px default */
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* -------------------------------------
           INSTRUCTIONS SECTION
        ------------------------------------- */
.gpm-main-academic-calender-instructions-section {
    background-color: #fdf5f5;
    /* Light red tint for importance */
    border: 1px solid #fadcdc;
    border-left: 5px solid #c21717;
    /* Accent border on left */
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.02);
}

.gpm-main-academic-calender-inst-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.gpm-main-academic-calender-inst-header i {
    color: #c21717;
    font-size: 22px;
}

.gpm-main-academic-calender-inst-title {
    font-size: 18px;
    font-weight: 700;
    color: #c21717;
}

.gpm-main-academic-calender-inst-list {
    list-style-type: none;
    /* Removed default bullets for custom ones */
    padding-left: 0px;
    margin: 0px;
}

.gpm-main-academic-calender-inst-list li {
    font-size: 14px;
    color: #444444;
    margin-bottom: 12px;
    line-height: 1.7;
    position: relative;
    padding-left: 25px;
}

/* Custom stylish bullet points */
.gpm-main-academic-calender-inst-list li::before {
    content: "\f105";
    /* FontAwesome angle-right icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0px;
    top: 0px;
    color: #c21717;
}

.gpm-main-academic-calender-inst-list li:last-child {
    margin-bottom: 0px;
}

/* -------------------------------------
           RESPONSIVE BREAKPOINTS
        ------------------------------------- */

/* Breakpoint: 1024px */
@media (max-width: 1024px) {
    .gpm-main-academic-calender-cards-row {
        gap: 15px;
    }

    .gpm-main-academic-calender-pdf-wrapper {
        min-height: 500px;
    }
}

/* Breakpoint: 768px */
@media (max-width: 768px) {
    .gpm-main-academic-calender-cards-row {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns */
    }

    /* Make the 3rd card span full width to look nice */
    .gpm-main-academic-calender-card:nth-child(3) {
        grid-column: 1 / -1;
    }

    .gpm-main-academic-calender-pdf-wrapper {
        min-height: 450px;
    }

    .gpm-main-academic-calender-header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Breakpoint: 480px */
@media (max-width: 480px) {
    .gpm-main-academic-calender-cards-row {
        grid-template-columns: 100%;
        /* 1 column stack */
    }

    .gpm-main-academic-calender-container {
        margin: 0 15px;
    }

    .gpm-main-academic-calender-card:nth-child(3) {
        grid-column: auto;
    }

    .gpm-main-academic-calender-pdf-section {
        padding: 15px;
    }

    .gpm-main-academic-calender-title {
        font-size: 16px;
    }

    .gpm-main-academic-calender-pdf-wrapper {
        min-height: 380px;
    }

    .gpm-main-academic-calender-instructions-section {
        padding: 20px 15px;
    }

    .gpm-main-academic-calender-btn-download {
        width: 100%;
        justify-content: center;
    }
}

/* Breakpoint: 325px (Very small screens) */
@media (max-width: 325px) {
    .gpm-main-academic-calender-card {
        padding: 15px;
    }

    .gpm-main-academic-calender-card-icon-wrapper {
        width: 45px;
        height: 45px;
        margin-right: 12px;
    }

    .gpm-main-academic-calender-card-icon-wrapper i {
        font-size: 20px;
    }

    .gpm-main-academic-calender-card-value {
        font-size: 16px;
    }

    .gpm-main-academic-calender-pdf-wrapper {
        min-height: 300px;
    }

    .gpm-main-academic-calender-inst-title {
        font-size: 16px;
    }

    .gpm-main-academic-calender-inst-list li {
        font-size: 13px;
    }
}