.timer-container {
    margin-top: 10px;
}

.timer-display {
    font-size: 1.1rem;
    color: #333;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* DataTables customization */
.dataTables_wrapper {
    width: 100%;
    overflow-x: visible;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 10px;
}

table.dataTable {
    width: 100% !important;
    min-width: 1200px;
    table-layout: fixed;
}

.dataTables_scrollBody {
    min-height: 300px;
}

/* Make table more compact */
.table td, .table th {
    padding: 0.5rem;
    font-size: 0.9rem;
}

/* Improve badge visibility */
.badge {
    font-size: 0.8rem;
    padding: 0.35em 0.65em;
}

/* Alumni Portal specific styles */
.alumni-card {
    transition: transform 0.2s ease-in-out;
}

.alumni-card:hover {
    transform: translateY(-2px);
}

.job-card,
.event-card,
.announcement-card,
.profile-card {
    border-left: 0;
}

/* Announcements list styling: gold top accent */
.announcements-page .announcement-card {
    border-top: 4px solid var(--aiu-gold) !important;
    border-left: 0 !important;
    border-radius: 16px;
    overflow: hidden;
}


/* Description preview for jobs/events cards */
.description-preview {
    max-height: 100px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    font-size: 0.95rem;
    line-height: 1.6;
}
.description-preview p:last-child {
    margin-bottom: 0;
}

/* ===== RESPONSIVE FIXES ===== */

/* Fix DataTables overflow on mobile */
@media (max-width: 991.98px) {
    table.dataTable {
        min-width: unset;
        table-layout: auto;
    }
    .dataTables_wrapper {
        overflow-x: auto;
    }
}

/* Mobile phones */
@media (max-width: 575.98px) {
    .main {
        padding: 15px;
        border-radius: 10px;
    }
    .card-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start !important;
    }
    .card-header .btn,
    .card-header .btn-group {
        width: 100%;
    }
    .bulk-actions .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }
    .bulk-actions select,
    .bulk-actions button {
        width: 100%;
        margin-bottom: 5px;
    }
    .hero-stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .hero-title {
        font-size: 1.5rem;
    }
    .portal-title {
        font-size: 1.2rem;
        letter-spacing: 0.1em;
    }
    .brand-copy .eyebrow {
        font-size: 0.65rem;
        letter-spacing: 0.3em;
    }
    .logo-holder {
        padding: 15px 25px 15px 20px;
    }
    .logo-holder .logo {
        max-height: 60px;
    }
    .dashboard-panels .col-md-6,
    .dashboard-panels .col-xl-3 {
        padding-left: 5px;
        padding-right: 5px;
    }
    .modal-dialog {
        margin: 10px;
    }
    .modal-lg,
    .modal-xl {
        max-width: calc(100% - 20px);
    }
    .d-flex.gap-2 {
        flex-wrap: wrap;
    }
    .btn-group {
        flex-wrap: wrap;
    }
    .qualification-item .row {
        gap: 0;
    }
}

/* Tablets */
@media (min-width: 576px) and (max-width: 991.98px) {
    .portal-title {
        font-size: 1.8rem;
    }
    .hero-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Fix Select2 on mobile */
.select2-container {
    width: 100% !important;
}

/* Fix modals on mobile */
@media (max-width: 767.98px) {
    .modal-body {
        padding: 15px;
    }
    .modal-footer {
        flex-wrap: wrap;
        gap: 5px;
    }
    .modal-footer .btn {
        flex: 1;
        min-width: 100px;
    }
}

/* Ensure cards stack properly on mobile */
@media (max-width: 767.98px) {
    .row.g-4 > [class*="col-"] {
        margin-bottom: 1rem;
    }
}

/* Fix utility bar on mobile */
@media (max-width: 767.98px) {
    .utility-bar {
        display: none;
    }
}

/* Fix profile bar on mobile */
@media (max-width: 575.98px) {
    .apb-inner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    .apb-details span {
        display: block;
    }
    .apb-sep {
        display: none;
    }
}

/* Cross-browser fixes */
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* Safari flexbox fix */
.d-flex {
    -webkit-flex-wrap: wrap;
}

/* Touch-friendly buttons on mobile */
@media (max-width: 767.98px) {
    .btn-sm {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    .btn {
        min-height: 38px;
    }
}

/* Prevent horizontal scroll on body */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Fix table actions column on mobile */
@media (max-width: 767.98px) {
    .table td:last-child,
    .table th:last-child {
        white-space: nowrap;
    }
    .table .btn-group {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
}
