/* Base Styles */
body {
    font-family: 'Poppins', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

/* Main Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Title Styling */
.announcement-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    border-bottom: 2px solid #00ff7f;
    padding-bottom: 10px;
    margin-bottom: 30px;
    margin-top: -5px;
    color: #003366;
    text-align: left;
}

/* Table Container - CRITICAL FIX */
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Table Styling - CRITICAL FIX */
.vacancy-table {
    width: 100%;
    min-width: 800px; /* This forces horizontal scrolling when container is smaller */
    border-collapse: collapse;
    background-color: #fefefe;
}

/* Table Header & Cell */
.vacancy-table th,
.vacancy-table td {
    text-align: left;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.vacancy-table th {
    background-color: #53a9ff;
    color: #000;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 10; /* Ensure header stays above content when scrolling */
}

/* Hover Effect */
.vacancy-table tr:hover {
    background-color: #f4fff9;
}

/* Lists Inside Cells */
.vacancy-table ul {
    padding-left: 20px;
    margin: 0;
    list-style-type: disc;
}

/* Apply Button */
.apply-btn {
    display: inline-block;
    color: rgb(24, 24, 24);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.apply-btn:hover {
    color: #53a9ff;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .table-container {
        border: 1px solid #e0e0e0;
        position: relative;
    }
    
    /* Scroll indicator for mobile */
    .table-container:after {
        content: '↔ Scroll to view full table';
        display: block;
        text-align: center;
        padding: 8px;
        font-size: 0.85rem;
        color: #666;
        background: #f5f5f5;
        border-top: 1px solid #e0e0e0;
    }
    
    .vacancy-table th,
    .vacancy-table td {
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .vacancy-table th,
    .vacancy-table td {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .vacancy-table ul {
        padding-left: 15px;
    }
    
    .apply-btn {
        font-size: 0.85rem;
    }
}