:root {
    --art-primary: #1a1a1a;
    --template-accent: #c62828;
    /* สีแดงหลัก */
    --bg-light-gray: #f8f9fa;
}

body {
    font-family: 'Prompt', sans-serif;
    color: #333;
    background-color: #fafafa;
}

/* Hero Banner (ใช้ภาพเดียว + สีแดงโปร่งแสง) */
.page-banner {
    position: relative;
    padding: 120px 0;
    text-align: center;
    color: #fff;
    margin-bottom: 50px;
    background-color: var(--template-accent);
    background-image: url('image/acadprogram/banner_acadprogram.jpg');
    /* โหลดภาพแบนเนอร์หลัก */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

/* Overlay สีแดงเข้มจางๆ ทับรูปแบนเนอร์ */
.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(198, 40, 40, 0.85);
    /* ปรับความเข้มสีแดงได้ที่นี่ (0.85 คือความทึบ) */
    z-index: 1;
}

.page-banner .container {
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: 1px;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
}

.breadcrumb-custom {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

/* Sidebar Menu [แก้ไขใหม่ตามคำสั่ง: เปลี่ยน BG เป็นสีขาวและใส่เงาให้ชัดเหมือนด้านขวา] */
.sidebar-menu {
    background: #fff;
    /* แก้ไข: เปลี่ยนจากสีเทาอ่อนเป็นสีขาวเพื่อให้เห็นชัดเจน */
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    /* แก้ไข: ใส่เงาให้ลอยเด่นเท่าเทียมกับด้านขวา */
}

.sidebar-title {
    color: var(--template-accent);
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 20px;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list a {
    display: block;
    padding: 12px 20px;
    color: #555;
    text-decoration: none;
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    /* ปรับพื้นหลังปุ่มเมนูเล็กน้อยให้ตัดกับกล่องขาวด้านหลัง */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    font-size: 0.95rem;
}

.sidebar-list a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    color: var(--template-accent);
    background: #fff;
}

.sidebar-list a.active {
    background: var(--template-accent);
    color: #fff;
    box-shadow: 0 5px 15px rgba(198, 40, 40, 0.3);
    font-weight: 500;
}

.sidebar-list a.active .arrow-icon {
    display: none;
}

/* Content Section */
.content-section {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.content-section h3,
.career-section h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 20px;
    border-bottom: 2px dashed #ddd;
    padding-bottom: 15px;
    line-height: 1.5;
}

.custom-list {
    list-style: none;
    padding: 0;
}

.custom-list li {
    background: #fff;
    border: 1px solid #eee;
    border-left: 4px solid var(--template-accent);
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
}

.career-section {
    margin-top: 40px;
    padding-top: 10px;
}

/* [ปรับปรุงใหม่] Career Grid: แบ่ง 2 คอลัมน์สวยๆ */
.career-grid-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (max-width: 992px) {
    .career-grid-layout {
        grid-template-columns: 1fr;
    }
}

.career-grid-layout li {
    margin-bottom: 0 !important;
    /* จัดระยะให้พอดีกับ grid */
    height: 100%;
}

/* Course Details Accordion */
.course-accordion {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.course-accordion .accordion-item {
    border: 1px solid #eee;
    border-radius: 12px !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    background-color: #fff;
}

.course-accordion .accordion-button {
    background-color: #fff;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: none;
    padding: 18px 25px;
    border-radius: 12px !important;
}

.course-accordion .accordion-button::after {
    content: "\F4FE";
    font-family: "bootstrap-icons";
    color: var(--template-accent);
    background-image: none;
    font-size: 1.1rem;
    transform: none !important;
    transition: all 0.3s ease;
    filter: grayscale(1);
    opacity: 0.5;
}

.course-accordion .accordion-button:not(.collapsed) {
    color: var(--template-accent);
    border-bottom: 1px solid #f0f0f0;
}

.course-accordion .accordion-button:not(.collapsed):after {
    content: "\F28A";
    filter: none;
    opacity: 1;
}

.course-accordion .accordion-body {
    background: #fafafa;
    padding: 25px;
    color: #555;
    line-height: 1.8;
    font-size: 0.95rem;
}

.course-accordion .accordion-body p {
    margin-bottom: 10px;
}

/* สไตล์การ์ดหลักสูตรแบบใช้รูปเป็น BG */
.program-grand-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 40px;
}

.program-grand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(198, 40, 40, 0.18);
}

.program-grand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.4) 60%,
            rgba(0, 0, 0, 0.15) 100%);
    z-index: 1;
}

.program-grand-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    width: 100%;
}

.program-tag {
    background-color: var(--template-accent);
    color: #fff;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.4);
}

/* สไตล์สำหรับกล่องดาวน์โหลดเอกสาร */
.download-box {
    background: #fff;
    border: 2px dashed #e5e7eb;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
}

.download-box:hover {
    border-color: var(--template-accent);
    background: #fffdfd;
}

.btn-download {
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s;
    background: #fff;
    color: var(--template-accent);
    border: 2px solid var(--template-accent);
    display: inline-flex;
    align-items: center;
}

.btn-download:hover {
    background: var(--template-accent);
    color: #fff;
    box-shadow: 0 8px 20px rgba(198, 40, 40, 0.25);
    transform: translateY(-2px);
}

/* สีแดงตอน Hover สำหรับลิงก์ มคอ. */
.mko-link {
    transition: color 0.2s ease-in-out;
}

.mko-link:hover {
    color: var(--template-accent) !important;
}