/* ======================================
   INTERNSHIP PAGE UI - UNIFIED DESIGN
====================================== */

/* Global Styles */
.internship-section {
    background: #f4f7fb;
    position: relative;
    padding: 40px 0;
}

.main-title {
    font-size: 42px;
    font-weight: 800;
    color: #0b3c5d;
    margin-bottom: 20px;
}

.subtitle {
    max-width: 950px;
    margin: auto;
    font-size: 17px;
    line-height: 1.9;
    color: #555;
}

.title-icon {
    width: 90px;
    height: 90px;
    margin: auto;
    background: linear-gradient(135deg, #0b3c5d, #1f6d9c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 38px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Cards */
.custom-card {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: 0.4s ease;
}

.custom-card:hover {
    transform: translateY(-5px);
}

.card-body {
    padding: 40px;
}

/* Section Headings */
.section-heading {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.section-heading i {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #ff9800, #ffb74d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-right: 15px;
    font-size: 22px;
}

.section-heading h3 {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    color: #0b3c5d;
}

/* ======================================
   UNIFIED TABLE STYLES
====================================== */
.table-wrapper {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-top: 20px;
    margin-bottom: 30px;
}

.unified-table {
    width: 100%;
    margin-bottom: 0;
    background: #fff;
}

.unified-table thead th {
    background: linear-gradient(135deg, #0b3c5d, #1f6d9c);
    color: white;
    font-weight: 600;
    padding: 16px 15px;
    border: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.unified-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #e9ecef;
}

.unified-table tbody tr:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.unified-table tbody td {
    padding: 14px 15px;
    vertical-align: middle;
    color: #444;
    font-size: 14px;
}

/* Table Badges */
.badge-custom {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.badge-primary-custom {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.badge-success-custom {
    background: #d4edda;
    color: #155724;
}

.badge-danger-custom {
    background: #f8d7da;
    color: #721c24;
}

.badge-warning-custom {
    background: #fff3cd;
    color: #856404;
}

.badge-info-custom {
    background: #e7f3ff;
    color: #004085;
}

/* Status Badges */
.status-open {
    background: #d4edda;
    color: #155724;
}

.status-closed {
    background: #f8d7da;
    color: #721c24;
}

.duration-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: #e7f3ff;
    color: #004085;
    white-space: nowrap;
}

/* Document List Styles */
.document-list-inline {
    max-height: 120px;
    overflow-y: auto;
    padding: 5px;
}

.document-link {
    display: inline-block;
    background: linear-gradient(135deg, #f0f0f0, #e9ecef);
    padding: 5px 12px;
    margin: 4px;
    border-radius: 20px;
    font-size: 11px;
    text-decoration: none;
    color: #0b3c5d;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.document-link i {
    margin-right: 5px;
    font-size: 11px;
}

.document-link:hover {
    background: linear-gradient(135deg, #0b3c5d, #1f6d9c);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.no-docs {
    color: #999;
    font-size: 12px;
    font-style: italic;
}

/* Table Lists */
.table-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-list li {
    margin-bottom: 8px;
    font-size: 13px;
}

.table-list i {
    color: #ff9800;
    margin-right: 8px;
}

/* Alert */
.custom-alert {
    background: #fff8e6;
    border-left: 5px solid #ff9800;
    color: #8a5b00;
    border-radius: 12px;
    padding: 18px;
    font-weight: 600;
}

.custom-alert i {
    margin-right: 10px;
}

/* Info Boxes */
.info-box {
    background: #fff;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    transition: 0.3s;
    border-top: 5px solid #0b3c5d;
    height: 100%;
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.info-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff9800, #ffb74d);
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.info-box h5 {
    font-size: 22px;
    font-weight: 700;
    color: #0b3c5d;
    margin-bottom: 15px;
}

.info-box p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* Lists */
.custom-list {
    list-style: none;
    padding: 0;
}

.custom-list li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 22px;
    line-height: 1.9;
    color: #444;
    font-size: 14px;
}

.custom-list li i {
    position: absolute;
    left: 0;
    top: 5px;
    color: #ff9800;
    font-size: 18px;
}

.inner-list {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.inner-list li {
    padding-left: 28px;
    margin-bottom: 10px;
}

.note-text {
    color: #d32f2f;
    font-weight: 600;
    font-size: 13px;
}

/* Contact Box */
.contact-box {
    background: linear-gradient(135deg, #0b3c5d, #1f6d9c);
    padding: 50px 30px;
    border-radius: 25px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-top: 30px;
}

.contact-icon {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    margin: auto auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
}

.contact-box h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-box p {
    font-size: 16px;
    margin-bottom: 10px;
    color: #fff;
}

.contact-box i {
    margin-right: 8px;
    color: #ffd54f;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.empty-state i {
    font-size: 60px;
    color: #cbd5e0;
    margin-bottom: 20px;
}

.empty-state h4 {
    font-size: 20px;
    color: #666;
    margin-bottom: 10px;
}

.empty-state p {
    color: #999;
}

/* DataTable Customization */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    padding: 15px 20px;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 6px 15px;
    margin-left: 10px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 6px 12px;
    border-radius: 8px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #0b3c5d, #1f6d9c);
    color: white !important;
    border: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .unified-table thead th {
        font-size: 13px;
        padding: 12px 12px;
    }
    
    .unified-table tbody td {
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 992px) {
    .main-title {
        font-size: 34px;
    }
    
    .section-heading h3 {
        font-size: 26px;
    }
    
    .card-body {
        padding: 30px;
    }
    
    .info-box h5 {
        font-size: 20px;
    }
    
    .contact-box h3 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .internship-section {
        padding: 20px 0;
    }
    
    .main-title {
        font-size: 28px;
    }
    
    .subtitle {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .section-heading {
        flex-direction: column;
        text-align: center;
    }
    
    .section-heading i {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .section-heading h3 {
        font-size: 24px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    /* Make tables horizontally scrollable on mobile */
    .table-responsive-custom {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .unified-table {
        min-width: 650px;
    }
    
    .unified-table thead th {
        font-size: 11px;
        padding: 10px 10px;
        white-space: nowrap;
    }
    
    .unified-table tbody td {
        font-size: 12px;
        padding: 8px 10px;
    }
    
    .badge-custom,
    .status-badge,
    .duration-badge {
        font-size: 10px;
        padding: 4px 10px;
    }
    
    .document-link {
        font-size: 10px;
        padding: 3px 8px;
        margin: 2px;
    }
    
    .document-list-inline {
        max-height: 100px;
    }
    
    .info-box {
        padding: 20px;
    }
    
    .info-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .info-box h5 {
        font-size: 18px;
    }
    
    .info-box p {
        font-size: 13px;
    }
    
    .custom-list li {
        font-size: 13px;
        margin-bottom: 18px;
    }
    
    .contact-box {
        padding: 30px 20px;
    }
    
    .contact-icon {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }
    
    .contact-box h3 {
        font-size: 24px;
    }
    
    .contact-box p {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .main-title {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .section-heading h3 {
        font-size: 20px;
    }
    
    .unified-table {
        min-width: 580px;
    }
    
    .badge-custom,
    .status-badge,
    .duration-badge {
        font-size: 9px;
        padding: 3px 8px;
    }
    
    .document-link {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    .custom-list li {
        font-size: 12px;
        padding-left: 35px;
    }
    
    .custom-list li i {
        font-size: 16px;
    }
    
    .contact-box h3 {
        font-size: 20px;
    }
}

/* Print Styles */
@media print {
    .internship-section {
        background: white;
        padding: 0;
    }
    
    .unified-table thead th {
        background: #ddd;
        color: black;
    }
    
    .document-link {
        text-decoration: underline;
    }
    
    .no-docs {
        color: #666;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-card,
.internship-table-wrapper {
    animation: fadeInUp 0.6s ease-out;
}