/* ===== ADMISSION FEE STRUCTURE SECTION STYLES ===== */
/* File: /css/sections/admission/admission-fee-structure-section.css */
/* Purpose: Styles for admission fee structure section with tables */
/* Dependencies: main.css (for variables) */
/* Last Updated: [CURRENT_DATE] */

/* ===== ADMISSION FEE STRUCTURE SECTION STYLES START ===== */

/* ===== FEE TABLES CONTAINER STYLES ===== */
.fee-tables-container {
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.program-fee-table {
    margin-bottom: 2.5rem;
    background: var(--nsb-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.program-fee-table:last-child {
    margin-bottom: 0;
}

.program-title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semi-bold);
    color: var(--nsb-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--nsb-light);
}

/* ===== TABLE STYLES ===== */
.table-responsive {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.fee-table th {
    background-color: var(--nsb-primary);
    color: var(--nsb-white);
    padding: 1.25rem 1rem;
    text-align: left;
    font-weight: var(--font-weight-semi-bold);
    font-size: 1.05rem;
    border: none;
    white-space: nowrap;
}

.fee-table th:first-child {
    border-top-left-radius: 6px;
}

.fee-table th:last-child {
    border-top-right-radius: 6px;
}

/* ===== FIXED: Consistent fee styling ===== */
.fee-table td {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--nsb-light);
    color: var(--nsb-text-primary); /* Changed to primary text color */
    font-size: 1rem; /* Fixed size for all fee values */
    line-height: 1.5;
    vertical-align: top;
}

/* Ensure all fee amounts have same styling */
.fee-table td:not(:nth-child(3)) {
    font-weight: var(--font-weight-medium);
    color: var(--nsb-text-primary); /* Black color for fees */
}

/* Installment column has different styling */
.fee-table td:nth-child(3) {
    color: var(--nsb-text-secondary);
    font-weight: var(--font-weight-normal);
    text-align: left;
}

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

.fee-table tr:hover td {
    background-color: rgba(252, 163, 17, 0.05);
}

/* ===== HOSTEL FEE SECTION STYLES (UPDATED) ===== */
.hostel-fee-section {
    background: linear-gradient(135deg, rgba(20, 33, 61, 0.03) 0%, rgba(20, 33, 61, 0.01) 100%);
    border-radius: 10px;
    padding: 1.75rem;
    margin: 1.5rem 0 0 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.hostel-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semi-bold);
    color: var(--nsb-primary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hostel-title:before {
    content: '🏠';
    font-size: 1.1rem;
}

.hostel-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

/* ===== FIXED: Reduced background, consistent styling ===== */
.hostel-option {
    background: rgba(255, 255, 255, 0.8); /* Reduced opacity */
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--nsb-light);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hostel-option:hover {
    background: var(--nsb-white); /* Full white on hover */
    border-color: rgba(252, 163, 17, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.hostel-type {
    font-weight: var(--font-weight-medium);
    color: var(--nsb-text-primary);
    font-size: 1rem; /* Consistent with table font size */
}

/* ===== FIXED: Same font size and color as registration fee ===== */
.hostel-price {
    font-weight: var(--font-weight-medium);
    color: var(--nsb-text-primary); /* Black color, not yellow */
    font-size: 1rem; /* Same as ₹30,000/- */
    text-align: right;
}

.hostel-features {
    margin-top: 1.25rem;
}

.hostel-features p {
    color: var(--nsb-text-secondary);
    line-height: 1.6;
    margin: 0.75rem 0;
    font-size: 0.95rem;
    padding-left: 1.25rem;
    position: relative;
}

.hostel-features p strong {
    color: var(--nsb-primary);
    font-weight: var(--font-weight-semi-bold);
}

.hostel-note {
    background: rgba(252, 163, 17, 0.05);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border-left: 3px solid var(--nsb-accent);
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* ===== GENERAL NOTES SECTION ===== */
.fee-notes-section {
    background: var(--nsb-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.notes-header {
    margin-bottom: 1.5rem;
}

.notes-title {
    font-size: 1.4rem;
    font-weight: var(--font-weight-semi-bold);
    color: var(--nsb-primary);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--nsb-light);
}

.notes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notes-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--nsb-text-secondary);
    line-height: 1.5;
    border-bottom: 1px solid var(--nsb-light);
}

.notes-list li:last-child {
    border-bottom: none;
}

.notes-list li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--nsb-accent);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
    .program-fee-table {
        padding: 1.75rem;
    }
    
    .program-title {
        font-size: 1.4rem;
    }
    
    .fee-table th,
    .fee-table td {
        padding: 1.25rem 0.75rem;
    }
    
    .hostel-options {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hostel-fee-section {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .program-fee-table {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .program-title {
        font-size: 1.3rem;
    }
    
    .fee-table {
        min-width: 500px;
    }
    
    .fee-table th {
        font-size: 1rem;
        padding: 1rem 0.75rem;
    }
    
    .fee-table td {
        padding: 1.25rem 0.75rem;
        font-size: 0.95rem;
    }
    
    .hostel-fee-section {
        padding: 1.25rem;
        margin: 1.25rem 0 0 0;
    }
    
    .hostel-title {
        font-size: 1.2rem;
    }
    
    .hostel-option {
        padding: 1rem;
    }
    
    .hostel-price {
        font-size: 0.95rem; /* Consistent on mobile */
    }
    
    .fee-notes-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .program-fee-table {
        padding: 1.25rem;
    }
    
    .program-title {
        font-size: 1.2rem;
        margin-bottom: 1.25rem;
    }
    
    .hostel-fee-section {
        padding: 1rem;
        margin: 1rem 0 0 0;
    }
    
    .hostel-option {
        padding: 0.875rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .hostel-type {
        font-size: 0.95rem;
    }
    
    .hostel-price {
        font-size: 0.95rem;
        text-align: center;
    }
    
    .fee-notes-section {
        padding: 1.25rem;
    }
    
    .notes-list li {
        padding-left: 1.25rem;
        font-size: 0.9rem;
    }
}
/* ===== ADMISSION FEE STRUCTURE SECTION STYLES END ===== */