/* University Application Fees Table Styles */
.university-fees-container {
    max-width: 950px;
    margin: 40px auto;
    padding: 32px 16px;
    background: #f8fafc;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

.university-fees-container h1 {
    font-size: 2.1rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 24px;
    text-align: center;
}

.intro-text {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 32px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.university-fees-table {
    border-collapse: collapse;
    width: 100%;
    background: #fff;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    border-radius: 8px;
    overflow: hidden;
}

.university-fees-table th, .university-fees-table td {
    border: 1px solid #e2e8f0;
    padding: 14px 12px;
    text-align: left;
    background: #fff;
}

.university-fees-table th {
    background: #2563eb;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.02em;
    position: sticky;
    top: 0;
    z-index: 2;
}

.university-fees-table tr:nth-child(even) {
    background: #f1f5f9;
}

.university-fees-table tr:hover {
    background: #e0e7ef;
    transition: background 0.2s;
}

.university-fees-table td {
    vertical-align: top;
    font-size: 1.01rem;
}

.university-fees-table ul {
    margin: 0;
    padding-left: 18px;
}

.university-fees-table li {
    margin-bottom: 8px;
}

.mt-4 {
    margin-top: 2rem;
}
.mt-4 h2 {
    font-size: 1.35rem;
    color: #1a365d;
    margin-bottom: 12px;
    font-weight: 600;
}
.mt-4 ul {
    line-height: 1.6;
    color: #475569;
    margin-bottom: 1rem;
}

/* Related Posts Styles */
.related-posts {
    margin-top: 2.5rem;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 24px 16px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.related-posts h2 {
    font-size: 1.35rem;
    color: #1a365d;
    margin-bottom: 18px;
    font-weight: 600;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.related-post-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.related-post-card a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.related-post-card:hover {
    box-shadow: 0 4px 16px rgba(37,99,235,0.13);
    transform: translateY(-4px);
}

.related-post-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-bottom: 1px solid #e2e8f0;
}

.card-content {
    padding: 14px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.08rem;
    color: #2563eb;
    margin: 0 0 8px 0;
    font-weight: 500;
}

.card-content p {
    font-size: 0.9rem;
    color: #475569;
    margin: 0 0 12px 0;
    flex-grow: 1;
}

.read-more {
    color: #1a365d;
    font-size: 0.98rem;
    font-weight: 500;
    margin-top: auto;
}

/* Mobile Responsive Cards */
@media (max-width: 768px) {
    .university-fees-container {
        padding: 24px 16px;
        margin: 16px;
    }
    
    .university-fees-container h1 {
        font-size: 1.75rem;
        margin-bottom: 16px;
    }

    .intro-text {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .table-responsive {
        border: none;
        overflow-x: visible;
    }

    .university-fees-table, 
    .university-fees-table thead, 
    .university-fees-table tbody, 
    .university-fees-table th, 
    .university-fees-table td, 
    .university-fees-table tr { 
        display: block; 
        width: 100%;
    }
    
    .university-fees-table thead { 
        display: none;
    }
    
    .university-fees-table tr {
        margin-bottom: 20px;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        background: #fff !important;
        overflow: hidden;
    }
    
    .university-fees-table td { 
        border: none;
        border-bottom: 1px solid #f1f5f9;
        padding: 12px 16px !important;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        text-align: left;
    }

    .university-fees-table td:last-child {
        border-bottom: none;
    }
    
    .university-fees-table td::before { 
        font-weight: 700;
        color: #64748b;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    
    /* Label the data */
    .university-fees-table td:nth-of-type(1)::before { content: "#"; display: none; }
    .university-fees-table td:nth-of-type(2)::before { content: "University Name"; display: none; }
    .university-fees-table td:nth-of-type(3)::before { content: "Application Fee"; }
    .university-fees-table td:nth-of-type(4)::before { content: "Notes"; }

    /* Number column hidden */
    .university-fees-table td:nth-of-type(1) {
        display: none;
    }

    /* Second cell (University name) emphasis */
    .university-fees-table td:nth-of-type(2) {
        background: #2563eb;
        color: #fff;
        font-weight: 600;
        font-size: 1.15rem;
        padding: 16px !important;
        display: block;
    }
}