/* ==========================================================================
   RxBUU Curriculum Modern Styles
   ========================================================================== */

/* Page Base Setup */
.mainbg {
    font-family: 'Sarabun', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #334155;
}

/* ==========================================================================
   RxBUU Header & Switcher Refined Design
   ========================================================================== */

/* 1. Breadcrumbs Container (ปรับเป็นกล่องการ์ดโค้งสไตล์มินิมอล) */
.breadcrum-container {
    background: #ffffff;
    padding: 10px 22px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
    margin-bottom: 20px;
    display: inline-block;
}

.breadcrum-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.breadcrum-list li {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 12px;
}

.breadcrum-list li a {
    color: #64748b;
    text-decoration: none !important;
    font-weight: 500;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrum-list li a i {
    color: #084c30;
}

.breadcrum-list li a:hover {
    color: #084c30;
}

/* ใส่สัญลักษณ์แบ่งระดับขั้นตัวหนอนโดยอิงไอคอน FontAwesome */
.breadcrum-list li:not(:last-child)::after {
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #cbd5e1;
    font-size: 11px;
}

.breadcrum-list li.active {
    color: #084c30;
    font-weight: 700;
}


/* Hero Banner - Full Cover Right Image Style */
/* Academic Hero Card Styling */
.academic-hero-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    min-height: 220px;
    position: relative;
}

/* ข้อความฝั่งซ้าย */
.academic-hero-text {
    flex: 1;
    padding: 36px 40px;
    z-index: 2;
}

.academic-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e6f4ea;
    color: #084c30;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.academic-title {
    color: #084c30;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.academic-desc {
    color: #475569;
    font-size: 17px;
    margin: 0;
    line-height: 1.6;
    max-width: 90%;
}

/* พื้นที่รูปภาพฝั่งขวา */
.academic-hero-media {
    width: 40%;
    align-self: stretch;
    position: relative;
    overflow: hidden;
}

/* แผ่นกรองสี (Overlay) ช่วยให้รูปถ่ายเข้ากับโทนสีเว็บเขียว-ขาว */
.academic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #ffffff 0%, rgba(8, 76, 48, 0.2) 60%);
    z-index: 1;
}

.academic-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Responsive Support สำหรับหน้าจอมือถือ */
@media (max-width: 768px) {
    .academic-hero-card {
        flex-direction: column-reverse;
    }

    .academic-hero-media {
        width: 100%;
        height: 180px;
    }

    .academic-overlay {
        background: linear-gradient(0deg, #ffffff 0%, rgba(8, 76, 48, 0.1) 100%);
    }

    .academic-hero-text {
        padding: 24px;
    }
}


/* 3. Degree Selector Buttons - ปรับแก้ให้ขยายเต็มขอบเฟรม (Full Width Grid) */
.degree-switcher {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 30px;
    width: 100%;
}

.degree-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 14px 24px;
    border-radius: 16px;
    color: #475569;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.015);
    cursor: pointer;
    position: relative;
    width: 100%;
}

.degree-btn:hover {
    background: #f8fafc;
    color: #084c30;
    border-color: #084c30;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(8, 76, 48, 0.05);
}

/* กล่องไอคอนมินิมอล */
.degree-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #084c30;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

/* สถานะ Active เมื่อปุ่มถูกเลือก */
.degree-btn.active {
    background: #084c30;
    color: #ffffff;
    border-color: #084c30;
    box-shadow: 0 8px 22px rgba(8, 76, 48, 0.15);
}

/* ใส่การเด้ง (Bounce Animation) ให้กล่องไอคอนเมื่อกด Active */
.degree-btn.active .degree-icon-box {
    background: rgba(255, 255, 255, 0.2);
    color: #fef08a;
    /* เปลี่ยนไอคอนเป็นสีเหลืองทอง */
    border: 1px solid rgba(254, 240, 138, 0.4);
    animation: activeIconBounce 0.7s ease infinite alternate;
    /* เรียกใช้ Animation */
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.25;
}

.btn-text strong {
    font-size: 14.5px;
    font-weight: 700;
}

.btn-text small {
    font-size: 11px;
    opacity: 0.7;
    font-weight: 400;
    margin-top: 3px;
}

.degree-btn.active .btn-text small {
    color: #e2e8f0;
}

/* คีย์เฟรมสร้างลูกเล่นขยับเด้งขึ้นลงสำหรับกล่องไอคอน */
@keyframes activeIconBounce {
    0% {
        transform: translateY(0) scale(1.05);
    }

    100% {
        transform: translateY(-4px) scale(1.05);
    }
}

/* Responsive บนมือถือ */
@media (max-width: 768px) {
    .degree-switcher {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Program Selection Container - 5 columns on desktop */
.program-cards-container {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.program-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    /* ไล่ระดับสีพื้นหลัง จากสีเขียวไอวอรี่อ่อนไปยังสีขาว */
    background: linear-gradient(135deg, #fcfdf0 0%, #ffffff 100%);
    /* เส้นขอบซ้ายไล่ระดับสีทองนุ่มนวล */
    border-left: 5px solid #a39d1b;
    color: #084c30;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.2px;
    /* เพิ่มเงาเบาๆ ให้การ์ดดูลอยมีมิติ */
    box-shadow: 0 2px 8px rgba(8, 76, 48, 0.04);
    border-top: 1px solid #e6f4ea;
    border-right: 1px solid #e6f4ea;
    border-bottom: 1px solid #e6f4ea;
}

.program-card-title i {
    font-size: 20px;
    color: #1f4e79;
}

.program-card-title span {
    line-height: 1.5;
}

/* Grid Layout for Program Cards */
.program-grid {
    display: grid;
    gap: 18px;
}

/* Bachelor Grid: บน 3 ล่าง 2 (3 columns on desktop) */
.program-grid-bachelor {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 992px) {
    .program-grid-bachelor {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .program-grid-bachelor {
        grid-template-columns: 1fr;
    }
}

/* Master & Doctorate Grid: 2 columns */
.program-grid-master,
.program-grid-doctorate {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {

    .program-grid-master,
    .program-grid-doctorate {
        grid-template-columns: 1fr;
    }
}

/* Program Cards Modern Design */
.program-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(8, 76, 48, 0.06);
    border-color: #0d5d3b;
}

.program-card.active {
    border-color: #084c30;
    background: rgba(8, 76, 48, 0.01);
    box-shadow: 0 8px 20px rgba(8, 76, 48, 0.1);
}

.program-card.active::before {
    content: "✓ เลือกอยู่";
    position: absolute;
    top: 12px;
    right: 12px;
    background: #084c30;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

.program-card-icon {
    width: 40px;
    height: 40px;
    background: rgba(8, 76, 48, 0.05);
    color: #084c30;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.program-card.active .program-card-icon {
    background: #084c30;
    color: #ffffff;
}

.program-card-name {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
    line-height: 1.4;
}

.program-card-subtitle {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
    line-height: 1.3;
}

.program-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    color: #64748b;
    border-top: 1px dashed #e2e8f0;
    padding-top: 10px;
    margin-top: auto;
}

.program-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.program-card-meta i {
    color: #084c30;
}

/* Details Tabs Styles */
.curr-tab-wrapper {
    background: #f8fafc;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    overflow-x: auto;
    white-space: nowrap;
}

.curr-tab-wrapper::-webkit-scrollbar {
    height: 4px;
}

.curr-tab-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.curr-tab-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 4px;
}

.curr-tab-link {
    display: block;
    padding: 8px 16px;
    font-size: 13.5px;
    color: #64748b;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 6px;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    cursor: pointer;
}

.curr-tab-link:hover {
    color: #084c30;
    background: rgba(8, 76, 48, 0.05);
}

.curr-tab-link.active {
    background-color: #084c30 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(8, 76, 48, 0.15);
}

/* Last Update Text */
.curr-update-date {
    text-align: right;
    font-size: 12px;
    color: #64748b;
    font-style: italic;
    margin-bottom: 20px;
}

/* Sections Title */
.curr-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 25px 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.curr-section-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 16px;
    background: #084c30;
    border-radius: 2px;
}

/* Key Value Lists for details */
.curr-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.curr-info-item {
    font-size: 13.5px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
}

.curr-info-item:last-child {
    border-bottom: none;
}

.curr-info-label {
    color: #084c30;
    font-weight: 700;
    width: 220px;
    flex-shrink: 0;
}

.curr-info-value {
    color: #334155;
}

@media (max-width: 768px) {
    .curr-info-item {
        flex-direction: column;
        gap: 4px;
    }

    .curr-info-label {
        width: auto;
    }
}

/* Tabs Content Show/Hide */
.curr-tab-pane {
    display: none;
    animation: fadeIn 0.25s ease;
}

.curr-tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tables for Structure & Plans */
.curr-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.curr-table th {
    background-color: #084c30;
    color: #ffffff;
    padding: 12px 16px;
    font-size: 13.5px;
    font-weight: 600;
    text-align: left;
}

.curr-table td {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.curr-table tbody tr:last-child td {
    border-bottom: none;
}

.curr-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.curr-table tbody tr:hover {
    background-color: #f1f5f9;
}

/* ==========================================================================
   Grid & Card for Lecturers (อาจารย์ประจำหลักสูตร)
   ========================================================================== */
.lecturer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 15px;
}

.lecturer-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px 18px 18px 18px;
    text-align: center;
    transition: all 0.25s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    position: relative;
}

.lecturer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(8, 76, 48, 0.08);
    border-color: #084c30;
}

.lecturer-avatar-wrap {
    margin-bottom: 14px;
    position: relative;
}

.lecturer-avatar {
    width: 140px;
    height: 175px;
    max-width: 100%;
    border-radius: 10px;
    object-fit: cover;
    object-position: top center;
    margin: 0 auto;
    border: 2px solid #f1f5f9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease;
}

.lecturer-card:hover .lecturer-avatar {
    transform: scale(1.02);
    border-color: #084c30;
}

.lecturer-info {
    width: 100%;
    margin-bottom: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lecturer-name {
    font-size: 15.5px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
    line-height: 1.4;
}

.lecturer-role {
    font-size: 13px;
    color: #084c30;
    font-weight: 600;
    background: rgba(8, 76, 48, 0.06);
    padding: 3px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.lecturer-email {
    font-size: 13px;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.lecturer-email a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
    word-break: break-all;
}

.lecturer-email a:hover {
    color: #e03b14;
    text-decoration: underline;
}

.lecturer-btn-wrap {
    width: 100%;
    margin-top: auto;
}

.btn-lecturer-profile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #e6f4ea;
    color: #084c30;
    border: 1px solid #cbd5e1;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.btn-lecturer-profile:hover {
    background: #084c30;
    color: #ffffff !important;
    border-color: #084c30;
    box-shadow: 0 4px 12px rgba(8, 76, 48, 0.2);
    transform: translateY(-1px);
}

/* รองรับการแสดงผลบนสมาร์ทโฟนและแท็บเล็ต */
@media (max-width: 768px) {
    .lecturer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .lecturer-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Document & Actions Badge Buttons */
.download-badge-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #084c30;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    margin-right: 8px;
    margin-bottom: 8px;
}

.download-badge-btn:hover {
    background: #084c30;
    color: #ffffff;
    border-color: #084c30;
    transform: translateY(-1px);
}

/* ==========================================================================
   Tab 1 (รายละเอียดหลักสูตร) – Section Styles
   ========================================================================== */

/* Section Title with Number Badge */
.curr-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #084c30;
    border-left: 4px solid #d4af37;
    padding: 8px 14px;
    margin: 24px 0 14px 0;
    background: linear-gradient(90deg, rgba(133, 201, 7, 0.05) 0%, transparent 100%);
    border-radius: 0 8px 8px 0;
}

.curr-section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #a39d1b;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Bullet List (วัตถุประสงค์ / ทุน / สิ่งสนับสนุน) */
.curr-bullet-list {
    list-style: none;
    padding: 0;
    margin: 0 0 8px 0;
}

.curr-bullet-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 9px 14px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    color: #334155;
    line-height: 1.7;
    transition: background 0.15s ease;
}

.curr-bullet-item:last-child {
    border-bottom: none;
}

.curr-bullet-item:hover {
    background: #f8fafc;
    border-radius: 6px;
}

.curr-bullet-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(8, 76, 48, 0.1);
    color: #084c30;
    font-size: 12px;
    margin-top: 2px;
}

.curr-bullet-icon--gold {
    background: rgba(234, 179, 8, 0.12);
    color: #a16207;
}

.curr-bullet-icon--blue {
    background: rgba(14, 116, 144, 0.1);
    color: #0e7490;
}

/* Schedule Info Box (วัน-เวลาการเรียน) */
.curr-schedule-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.curr-schedule-row {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #334155;
    line-height: 1.7;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: baseline;
}

.curr-schedule-row:last-child {
    margin-bottom: 0;
}

.curr-schedule-header {
    font-size: 16px;
    color: #084c30;
    white-space: nowrap;
}

.curr-schedule-body {
    font-size: 16px;
    color: #475569;
}

/* Empty section placeholder */
.curr-empty-section {
    height: 6px;
    margin-bottom: 4px;
}

/* ==========================================================================
   Tab 4 (แผนการศึกษา) – Study Plan Styles
   ========================================================================== */

.curr-plan-container {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.curr-plan-year {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.curr-plan-year-title {
    margin: 0 0 18px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e03b14;
    font-size: 17px;
    font-weight: 700;
    color: #e03b14;
}

.curr-plan-semester {
    margin-bottom: 22px;
}

.curr-plan-semester:last-child {
    margin-bottom: 0;
}

.curr-plan-semester-title {
    margin: 0 0 10px 0;
    font-size: 14.5px;
    font-weight: 700;
    color: #084c30;
    display: flex;
    align-items: center;
    gap: 8px;
}

.curr-plan-semester-title::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #084c30;
    border-radius: 50%;
    flex-shrink: 0;
}

.curr-plan-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.curr-plan-table {
    margin-bottom: 0;
    min-width: 560px;
}

.curr-plan-code {
    display: inline-block;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 4px;
}

.curr-plan-name-en {
    color: #64748b;
    font-size: 12.5px;
}

.curr-plan-total-row td {
    background: #f8fafc !important;
    border-top: 2px solid #e2e8f0;
}

@media (max-width: 768px) {
    .curr-plan-year {
        padding: 16px;
    }

    .curr-plan-year-title {
        font-size: 15px;
    }
}

/* รูปแบบ หน้าเอกสาร มคอ.2 */
.tqf2-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.tqf2-card-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.25s ease;
}

.tqf2-card-item:hover {
    border-color: #084c30;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.tqf2-card-badge {
    font-size: 12px;
    font-weight: 700;
    color: #ef4444;
    margin-bottom: 8px;
}

.tqf2-card-title {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 12px;
}

.tqf2-card-footer {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px dashed #f1f5f9;
    padding-top: 8px;
}

.tqf2-card-item:hover .tqf2-card-footer {
    color: #5ec1df;
}

/* tcas : Timeline List CSS */
.tcas-container.style-timeline {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.tcas-heading {
    font-weight: 700;
    color: #084c30;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tcas-timeline-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.tcas-timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #f8fafc;
    padding: 14px 18px;
    border-radius: 12px;
    border-left: 4px solid #a39d1b;
    transition: transform 0.2s ease;
}

.tcas-timeline-item:hover {
    transform: translateX(4px);
    background: #f1f5f9;
}

.tcas-round-badge {
    font-weight: 700;
    color: #084c30;
    white-space: nowrap;
    font-size: 14px;
    background: #e6f4ea;
    padding: 4px 10px;
    border-radius: 6px;
}

.tcas-round-detail {
    color: #334155;
    font-size: 14px;
    line-height: 1.5;
}

.tcas-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #084c30;
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14.5px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(8, 76, 48, 0.2);
}

.tcas-btn-primary:hover {
    background: #063823;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(8, 76, 48, 0.3);
}