/* ============================================================
   FEE STRUCTURE SECTION - FINAL BEST VERSION
   ============================================================ */

.fee-section {
    padding: 80px 0;
    background: #F1F5F9;
    position: relative;
    overflow: hidden;
}

/* Background Decorations */
.fee-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.fee-section::after {
    content: '';
    position: absolute;
    bottom: -25%;
    left: -8%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.fee-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ============================================================
   HEADER
   ============================================================ */

.fee-header {
    text-align: center;
    margin-bottom: 48px;
}

.fee-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #F97316;
    background: rgba(249, 115, 22, 0.1);
    padding: 7px 18px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.fee-title {
    font-size: clamp(28px, 4.5vw, 44px);
    font-weight: 800;
    color: #1E293B;
    margin-bottom: 12px;
    line-height: 1.15;
}

.fee-title span {
    color: #F97316;
}

.fee-subtitle {
    font-size: 16.5px;
    color: #64748B;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ============================================================
   TABLE
   ============================================================ */

.fee-table-wrapper {
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid #F1F5F9;
    overflow: hidden;
    margin-bottom: 32px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    min-width: 720px;
}

.fee-table thead {
    background: linear-gradient(135deg, #F97316, #EA580C);
}

.fee-table thead tr th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    color: #FFFFFF;
    font-size: 13.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.fee-table thead tr th:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.fee-table thead tr th span {
    font-weight: 400;
    opacity: 0.85;
    font-size: 11.5px;
    display: block;
    text-transform: none;
}

.fee-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #F1F5F9;
}

.fee-table tbody tr:last-child {
    border-bottom: none;
}

.fee-table tbody tr:hover {
    background: rgba(249, 115, 22, 0.05);
}

.fee-table tbody tr:nth-child(even) {
    background: #F8FAFC;
}

.fee-table tbody tr:nth-child(even):hover {
    background: rgba(249, 115, 22, 0.06);
}

.fee-table tbody tr td {
    padding: 16px 20px;
    color: #1E293B;
    line-height: 1.5;
}

/* Table Cell Styles */
.program-name {
    font-weight: 700;
    color: #1E293B;
    font-size: 15px;
}

.duration {
    color: #64748B;
    font-size: 13.5px;
}

.semester-fee { font-weight: 600; color: #F97316; }
.total-fee { font-weight: 700; color: #1E293B; }
.yearly-fee { color: #22C55E; font-weight: 600; }

.lump-sum-fee {
    font-weight: 700;
    color: #F97316;
    position: relative;
}

.lump-sum-fee::before {
    content: 'Best Value';
    position: absolute;
    top: -22px;
    left: 0;
    font-size: 9.5px;
    font-weight: 700;
    color: #FFFFFF;
    background: #22C55E;
    padding: 2px 9px;
    border-radius: 999px;
    letter-spacing: 0.4px;
}

/* ============================================================
   FEE NOTES
   ============================================================ */

.fee-notes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.fee-note-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #FFFFFF;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid #F1F5F9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.fee-note-item:hover {
    border-color: #F97316;
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.1);
    transform: translateY(-3px);
}

.fee-note-item i {
    font-size: 18px;
    color: #F97316;
    margin-top: 2px;
    flex-shrink: 0;
}

.fee-note-item i.fa-check-circle { color: #22C55E; }
.fee-note-item i.fa-tag { color: #8B5CF6; }

.fee-note-item p {
    font-size: 14px;
    color: #64748B;
    line-height: 1.55;
    margin: 0;
}

.fee-note-item p strong {
    color: #1E293B;
}

/* ============================================================
   CTA
   ============================================================ */

.fee-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.fee-cta-btn,
.fee-cta-btn-secondary {
    padding: 15px 34px;
    border-radius: 999px;
    font-size: 15.5px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fee-cta-btn {
    color: #FFFFFF;
    background: linear-gradient(135deg, #F97316, #EA580C);
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.35);
}

.fee-cta-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(249, 115, 22, 0.45);
}

.fee-cta-btn-secondary {
    color: #1E293B;
    background: #FFFFFF;
    border: 2px solid #E2E8F0;
}

.fee-cta-btn-secondary:hover {
    border-color: #F97316;
    transform: translateY(-3px);
}

/* ============================================================
   RESPONSIVE - ALL DEVICES
   ============================================================ */

@media (max-width: 991px) {
    .fee-section { padding: 70px 0; }
    .fee-notes { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .fee-section { padding: 60px 0; }
    .fee-header { margin-bottom: 40px; }
    .fee-table-wrapper { border-radius: 16px; }
    .fee-table { font-size: 14px; min-width: 680px; }
    .fee-table thead tr th,
    .fee-table tbody tr td { padding: 14px 16px; }
    .program-name { font-size: 14px; }
    .fee-notes { gap: 14px; }
}

@media (max-width: 575px) {
    .fee-section { padding: 50px 0; }
    .fee-container { padding: 0 16px; }
    
    .fee-title { font-size: 26px; }
    .fee-subtitle { font-size: 15px; }
    
    .fee-table-wrapper { border-radius: 14px; }
    .fee-table { font-size: 13px; min-width: 620px; }
    .fee-table thead tr th,
    .fee-table tbody tr td { padding: 12px 14px; font-size: 12.5px; }
    
    .fee-notes {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .fee-note-item {
        padding: 14px 16px;
    }
    
    .fee-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .fee-cta-btn,
    .fee-cta-btn-secondary {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .lump-sum-fee::before { display: none; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .fee-table tbody tr,
    .fee-note-item,
    .fee-cta-btn,
    .fee-cta-btn-secondary {
        transition-duration: 0.01ms !important;
    }
    .fee-table tbody tr:hover,
    .fee-note-item:hover,
    .fee-cta-btn:hover,
    .fee-cta-btn-secondary:hover {
        transform: none !important;
    }
}