/*
Theme Name: OceanWP Child Theme
Theme URI: https://oceanwp.org/
Description: OceanWP WordPress theme. Sample child theme.
Author: OceanWP
Author URI: https://oceanwp.org/
Template: oceanwp
Version: 1.0
*/

/* General Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: 'Roboto', sans-serif; /* Changed font to Roboto */
    font-size: 14px;
    background-color: #fff;
    border: 1px solid #ddd; /* Light border around the table */
}

th, td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd; /* Border for cells */
}

th {
    background-color: #FFC7C7; /* Light pastel pink background */
    color: #000000; /* Black text for strong contrast */
    font-weight: 700;
    text-align: center;
    padding: 14px 18px;
    border-bottom: 2px solid #e6a84d; /* Slightly darker orange accent line */
    border-top: 1px solid #ddd;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

tr:nth-child(even) {
    background-color: #f9f9f9; /* Light gray for even rows */
}

tr:hover {
    background-color: #f1f1f1; /* Subtle hover effect */
}

/* Job Details Container */
.job-details-container {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align items to start */
    gap: 10px; /* Reduced spacing between dates and button */
}

.application-dates {
    font-weight: bold; /* Make dates bold */
    margin-bottom: 10px; /* Add space below End Date */
}

.view-details-button {
    display: inline-block;
    padding: 8px 12px;
    background-color: #0073e6; /* Blue background */
    color: white; /* White text */
    text-align: center;
    text-decoration: none; /* Remove underline */
    border-radius: 4px; /* Rounded corners */
    font-weight: bold; /* Make button text bold */
}

.view-details-button:hover {
    background-color: #005bb5; /* Darker blue on hover */
}

/* Responsive Table Styles */
@media screen and (max-width: 600px) {
    table {
        display: block;
        overflow-x: auto; /* Horizontal scroll for small screens */
        white-space: nowrap; /* Prevent wrapping */
    }

    th, td {
        text-align: left; /* Ensure content is aligned properly */
    }

    /* Optional: Add a shadow effect for better visibility */
    table {
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
}

/* Wrap all tables in a scrollable container */
.table-container {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling for touch devices */
    margin-bottom: 20px;
}

table {
    display: table; /* Ensure the table behaves normally inside the container */
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}
