/* ========================================
   Advertisement Table CSS
   ======================================== */

/* Advertisement Header */
.dt-advertisement-header {
    margin-bottom: 30px;
    margin-top: 10px;
}

.dt-advertisement-title {
    font-family: "Finlandica Headline", sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    background-color: #001f4d;
    padding: 18px 25px;
    margin: 0;
    border-radius: 4px;
    letter-spacing: 1px;
}

/* Advertisement Table Wrapper */
.dt-advertisement-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

/* Advertisement Table */
.dt-advertisement-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

/* Table Header Row */
.dt-table-header-row {
    background-color: #0052cc;
    color: #ffffff;
}

.dt-table-header-cell {
    padding: 15px 12px;
    text-align: center;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Column Widths */
.dt-col-sno {
    width: 60px;
    min-width: 60px;
}

.dt-col-program {
    width: 35%;
    min-width: 280px;
}

.dt-col-admission {
    width: 90px;
    min-width: 90px;
}

.dt-col-notification {
    width: 140px;
    min-width: 140px;
}

.dt-col-registration {
    width: 140px;
    min-width: 140px;
}

.dt-col-instruction {
    width: 130px;
    min-width: 130px;
}

.dt-col-apply {
    width: 100px;
    min-width: 100px;
}

/* Table Body Rows */
.dt-table-body-row {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
    letter-spacing: 1px;
}

.dt-table-body-row:hover {
    background-color: #f8f9fa;
}

.dt-table-body-row:last-child {
    border-bottom: none;
}

/* Alternating Row Colors */
.dt-table-body-row:nth-child(odd) {
    background-color: #ffffff;
}

.dt-table-body-row:nth-child(even) {
    background-color: #f5f5f5;
}

/* Table Cells */
.dt-table-cell {
    padding: 15px 12px;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #e8e8e8;
    color: #333333;
}

.dt-table-cell.dt-col-program {
    text-align: left;
    padding: 15px;
}

.dt-cell-content {
    display: inline-block;
    letter-spacing: 1px;
}

/* Program Title Styling */
.dt-program-title {
    display: block;
    line-height: 1.5;
    font-size: 14px;
    text-align: left;
    font-weight: 500;
    color: #1a1a1a;
    letter-spacing: 1px;
}

.dt-date-extended {
    color: #d32f2f;
    font-weight: 700;
    display: inline;
    margin-left: 8px;
}

.dt-revised {
    color: #d32f2f;
    font-weight: 700;
    display: inline;
    margin-left: 8px;
}

/* Notification Section */
.dt-notification-number {
    display: block;
    font-weight: 600;
    color: #333333;
    margin-bottom: 3px;
}

.dt-notification-date {
    display: block;
    color: #d32f2f;
    font-weight: 700;
}

/* Registration Dates */
.dt-start-date {
    display: block;
    color: #333333;
    font-weight: 600;
    margin-bottom: 5px;
}

.dt-last-date {
    display: block;
    color: #d32f2f;
    font-weight: 700;
}

/* Instruction Buttons */
.dt-table-cell.dt-col-instruction {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    border: none;
    width: 100%;
}

.dt-apply-btn,
.dt-view-adv-btn {
    display: inline-block;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    width: 100%;
}

.dt-apply-btn {
    background-color: #ffb84d;
    color: #ffffff;
}

.dt-apply-btn:hover {
    background-color: #ff9800;
    text-decoration: none;
}

.dt-view-adv-btn {
    background-color: #5d4037;
    color: #ffffff;
}

.dt-view-adv-btn:hover {
    background-color: #3e2723;
    text-decoration: none;
}

/* ========================================
   Responsive Design - Tablet (768px)
   ======================================== */

@media (max-width: 768px) {
    .dt-advertisement-title {
        font-size: 18px;
        padding: 15px 20px;
    }

    .dt-table-header-cell {
        padding: 12px 8px;
        font-size: 12px;
    }

    .dt-table-cell {
        padding: 12px 8px;
        font-size: 12px;
    }

    .dt-col-program {
        width: 40%;
        min-width: 220px;
    }

    .dt-program-title {
        font-size: 11px;
        line-height: 1.4;
    }

    .dt-apply-btn,
    .dt-view-adv-btn {
        padding: 6px 10px;
        font-size: 11px;
        max-width: 95px;
    }

}

/* ========================================
   Responsive Design - Mobile (600px)
   ======================================== */

@media (max-width: 600px) {
    .dt-advertisement-header {
        margin-bottom: 20px;
    }

    .dt-advertisement-title {
        font-size: 16px;
        padding: 12px 15px;
    }

    .dt-advertisement-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dt-advertisement-table {
        font-size: 11px;
    }

    .dt-table-header-cell {
        padding: 10px 6px;
        font-size: 11px;
    }

    .dt-table-cell {
        padding: 10px 6px;
        font-size: 11px;
    }

    .dt-col-sno {
        width: 50px;
        min-width: 50px;
    }

    .dt-col-program {
        width: 45%;
        min-width: 200px;
    }

    .dt-col-admission {
        width: 70px;
        min-width: 70px;
    }

    .dt-col-notification {
        width: 110px;
        min-width: 110px;
    }

    .dt-col-registration {
        width: 110px;
        min-width: 110px;
    }

    .dt-col-instruction {
        width: 110px;
        min-width: 110px;
    }

    .dt-col-apply {
        width: 80px;
        min-width: 80px;
    }

    .dt-program-title {
        font-size: 10px;
        line-height: 1.3;
    }

    .dt-date-extended,
    .dt-revised {
        font-size: 9px;
    }

    .dt-apply-btn,
    .dt-view-adv-btn {
        padding: 5px 8px;
        font-size: 9px;
        max-width: 85px;
    }

    .dt-notification-number,
    .dt-notification-date,
    .dt-start-date,
    .dt-last-date {
        font-size: 10px;
    }
}
