@charset "utf-8";

/* ==========================================================================
   UPEC / MF / Graduate Program Styles
   Based on references from ee.css (comm.css)
   ========================================================================== */

/* --- Page Background --- */
.layer {
    background: url(../images/bg24.png) no-repeat center 37% / 100% auto;
}

/* --- Layout Adjustments --- */

.section-box {
    padding-bottom: 0 !important;
}

.section-box__content {
    max-width: 100% !important;
    padding-bottom: 0 !important;
}

.ugedu-fullwidth {
    width: 100%;
    max-width: 100%;
}

/* --- Typography & Heading Hierarchy (From ee.css) --- */

/* H2: Main Section Titles */
.section-box .section-box__content h2.title,
.section-box .section-box__content h2 {
    font-size: calc(36 * var(--px)) !important;
    font-weight: 800;
    margin-bottom: calc(24 * var(--px));
    color: #223f99;
    /* Primary Blue */
    line-height: 1.2;
}

/* H3: Sub-sections */
.section-box .section-box__content h3,
.section-box .section-box__content h3.ugedu-subtitlep-follow,
.ugedu-subtitlep-follow {
    font-size: calc(26 * var(--px)) !important;
    font-weight: 700;
    margin-top: calc(24 * var(--px));
    margin-bottom: calc(12 * var(--px));
    color: var(--thirdary);
    line-height: 1.3;
    display: block;
}

/* H4: Item Headers */
.section-box .section-box__content h4,
.section-box .section-box__content h4.ugedu-subtitlep-main,
.ugedu-subtitlep-main,
.ugedu-subtitle-main,
.ugedu-subtitle-small,
.ugedu-subtitle-follow {
    font-size: calc(20 * var(--px)) !important;
    font-weight: 700;
    margin-top: calc(18 * var(--px));
    margin-bottom: calc(8 * var(--px));
    color: #000;
    /* EE uses black for H4, though MF used thirdary before. Stick to EE/Black or MF/Thirdary? EE uses Black. */
    line-height: 1.4;
    display: block;
}

/* Note: Overriding colors for legacy ugedu classes if they prefer thirdary color (brown/red) */
/* In MF original, they were all var(--thirdary). In EE, H4 is #000. 
   I will keep H4 as #000 to match EE style exactly as requested. 
   But if it conflicts heavily with design, I can revert. 
   Let's trust "Refer to ee.html". */

/* Standard Paragraphs */
.section-box .section-box__content p {
    margin-bottom: calc(16 * var(--px));
    text-align: justify;
    line-height: 1.6;
    font-size: calc(18 * var(--px));
    /* Matched to ee.html (inherited from page_as_overview) */
    color: #333;
    /* Matched to ee.html (inherited from page_as_overview) */
}

/* --- Apply Box Components --- */
.ugedu-apply-wrap {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: calc(20 * var(--px));
    padding-top: calc(28 * var(--px));
    background: linear-gradient(180deg, rgba(244, 244, 244, 0.5), #ffffff);
}

.ugedu-apply-flex {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    align-items: stretch;
}

.ugedu-apply-card {
    flex: 1 1 320px;
    max-width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: calc(22 * var(--px)) calc(20 * var(--px));
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.03);
}

/* --- List Styles --- */
.career-list-arrow {
    padding: 0;
    margin: 0;
    list-style: none;
}

.career-list-arrow li {
    position: relative;
    padding-left: calc(20 * var(--px));
    margin-bottom: calc(10 * var(--px));
    font-size: calc(18 * var(--px));
    line-height: 1.5;
    color: #333;
    text-align: justify;
}

.career-list-arrow li::before {
    content: '';
    position: absolute;
    left: 0;
    top: calc(9 * var(--px));
    width: 0;
    height: 0;
    border-top: calc(5 * var(--px)) solid transparent;
    border-bottom: calc(5 * var(--px)) solid transparent;
    border-left: calc(8 * var(--px)) solid var(--thirdary);
}

/* --- Table Styles --- */
.application-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: calc(16 * var(--px));
}

.application-table th,
.application-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

.application-table th {
    background-color: var(--thirdary);
    color: white;
    font-weight: bold;
}

.application-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.application-table tr:hover {
    background-color: #f1f1f1;
}

/* --- Image Styling --- */
.content-image-box {
    width: 65%;
    margin: 40px auto;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-image-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.content-image-box img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.content-image-box:hover img {
    transform: scale(1.02);
}

/* --- Program Info Grid (Language & Length) --- */
.program-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
    margin-top: 24px;
}

.program-info-card {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 16px 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    flex: 0 1 auto;
    min-width: 240px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.program-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    border-color: var(--thirdary);
}

.program-info-icon {
    width: 42px;
    height: 42px;
    margin-right: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(34, 63, 153, 0.08);
    border-radius: 50%;
    color: var(--primary);
    flex-shrink: 0;
}

.program-info-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.program-info-text {
    display: flex;
    flex-direction: column;
}

.program-info-label {
    font-size: 13px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.program-info-value {
    font-size: 18px;
    color: #333;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 4px;
}

/* --- Contact Us Section Styling (Reference ee.css) --- */
.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.contact-info {
    flex: 1;
}

.contact-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.contact-item a {
    color: inherit;
}

/* Pure CSS Icons */
.c-icon {
    position: absolute;
    left: 0;
    top: 0;
    display: inline-block;
    box-sizing: border-box;
    width: 24px;
    height: 24px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Phone Icon: SVG */
.c-icon-phone {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0a000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E");
    background-size: 18px 18px;
}

/* Mail Icon: Envelope */
.c-icon-mail {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0a000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'%3E%3C/rect%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'%3E%3C/path%3E%3C/svg%3E");
    background-size: 20px 16px;
}

/* Pin Icon: SVG */
.c-icon-pin {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0a000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E");
    background-size: 18px 18px;
}

.contact-qrcode {
    text-align: center;
    flex-shrink: 0;
}

/* Mobile Responsiveness for Contact Section */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 30px;
    }

    .contact-qrcode {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-item {
        font-size: 13px !important;
        padding-left: 24px;
        margin-bottom: 14px;
    }

    .c-icon {
        transform: scale(0.9);
        top: 3px;
    }
}

/* Mobile: Program Info Cards Side-by-Side */
@media (max-width: 768px) {
    .program-info-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .program-info-card {
        min-width: 0;
        width: 100%;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 12px 6px;
    }

    .program-info-icon {
        margin-right: 0;
        margin-bottom: 8px;
        width: 32px;
        height: 32px;
    }

    .program-info-icon svg {
        width: 18px;
        height: 18px;
    }

    .program-info-value {
        font-size: 14px;
    }

    .program-info-label {
        font-size: 11px;
    }
}