/* ーーーーーーー endai Page ーーーーーーーーーー */
/* Center the button */
.kekka {
    display: flex;
    /* Use flexbox */
    justify-content: center;
    /* Center the button horizontally */
    align-items: center;
    /* Center the button vertically */
}


/* Notice section styling */
.notice {
    margin: 20px 0;
    /* Margin for notice */
    padding: 20px;
    /* Padding for notice */
    background-color: #ffffff;
    /* White background */
    border-radius: 8px;
    /* Rounded corners */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* Enhanced shadow for depth */
}

.endai-sec2 h3 {
    color: #ec3c71;
    /* Professional blue color */
    margin: 0;
    /* Remove default margin */
    font-size: 1.6rem;
    /* Font size for the title */
}

/* Section styling */
.endai-sec1,
.endai-sec2 {
    margin: 20px 0;
    /* Margin for sections */
    padding: 20px;
    /* Padding for sections */
    background-color: #ffffff;
    /* White background */
    border-radius: 8px;
    /* Rounded corners */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* Enhanced shadow for depth */
}

/* Table styling */
.category-table {
    width: 100%;
    /* Full width */
    border-collapse: collapse;
    /* Collapse borders */
    margin-top: 10px;
    /* Margin above table */
}

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

.category-table th {
    background-color: #007BFF;
    /* Header background color */
    color: white;
    /* Header text color */
}

/* Responsive design */
@media (max-width: 768px) {
    .program-button {
        font-size: 1em;
        /* Adjust button font size */
        padding: 10px 15px;
        /* Adjust padding */
    }

    .notice,
    .endai-sec1,
    .endai-sec2 {
        padding: 15px;
        /* Adjust padding for sections */
    }

    .category-table th,
    .category-table td {
        font-size: 0.9em;
        /* Adjust font size for table cells */
        padding: 8px;
        /* Adjust padding for table cells */
    }
}


/* Responsive styles */
@media (max-width: 768px) {
    .greek-table {
        display: block;
        /* Allow block display for the table */
        overflow-x: auto;
        /* Enable horizontal scrolling */
        white-space: nowrap;
        /* Prevent line breaks */
    }

    .greek-table th,
    .greek-table td {
        display: block;
        /* Change to block layout */
        text-align: left;
        /* Align text to the left for better readability */
    }

    .greek-table tr {
        display: flex;
        /* Use flexbox for row items */
        flex-direction: column;
        /* Stack items vertically */
        margin-bottom: 15px;
        /* Space between rows */
    }

    .greek-table th {
        position: relative;
        /* Position relative for label */
        padding-left: 50%;
        /* Space for label */
    }

    .greek-table th::before {
        position: absolute;
        /* Position label before header */
        left: 10px;
        /* Adjust position */
        white-space: nowrap;
        /* Prevent line breaks */
        font-weight: bold;
        /* Make bold */
    }

    /* Apply alternating background for odd rows */
    .greek-table tr:nth-child(odd) {
        background-color: #f9f9f9;
        /* Light gray for odd rows */
    }
}

.endai-sec2 .houhou {
    list-style-type: none;
    /* Remove default bullet points */
    padding: 0;
    /* Remove default padding */
    margin: 20px 0;
    /* Add margin above and below the list */
    font-family: Arial, sans-serif;
    /* Clean sans-serif font */
    display: flex;
    /* Flexbox for responsive layout */
    flex-direction: column;
    /* Column layout for the list items */
}

.endai-sec2 .houhou li {
    list-style-type: circle;
    background-color: #ffffff;
    /* Light gray background for list items */
    border: 1px solid #ffffff;
    /* Light border around items */
    border-radius: 5px;
    /* Rounded corners */
    padding: 5px;
    /* Padding inside list items */
    margin-bottom: 10px;
    /* Space between items */
    transition: background-color 0.3s, transform 0.2s;
    /* Smooth transitions */
}

/* Hover effect */
.endai-sec2 .houhou li:hover {
    background-color: #007bff;
    /* Change background color on hover */
    color: white;
    /* Change text color to white */
    transform: scale(1.02);
    /* Slightly enlarge on hover */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .houhou {
        flex-direction: column;
        /* Stack items vertically on smaller screens */
    }

    .houhou li {
        font-size: 16px;
        /* Adjust font size for readability */
        padding: 12px;
        /* Adjust padding */
    }
}

@media (max-width: 480px) {
    .houhou li {
        font-size: 14px;
        /* Smaller text for mobile */
        padding: 10px;
        /* Further adjust padding */
        margin-bottom: 8px;
        /* Reduce spacing between items */
    }
}

.styled-table {
    width: 100%;
    /* Full width */
    border-collapse: collapse;
    /* Collapse borders */
    margin: 20px 0;
    /* Margin above and below the table */
}

.styled-table th,
.styled-table td {
    border: 1px solid #ddd;
    /* Light gray border */
    padding: 12px;
    /* Padding inside cells */
    text-align: center;
    /* Center text */
}

.styled-table th {
    background-color: #007BFF;
    /* Header background color */
    color: white;
    /* Header text color */
}

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

.styled-table tr:hover {
    background-color: #ddd;
    /* Darker gray on hover */
}

/* Responsive design */
@media (max-width: 768px) {
    .styled-table {
        display: block;
        /* Allow block display for the table */
        overflow-x: auto;
        /* Enable horizontal scrolling */
        white-space: nowrap;
        /* Prevent line breaks */
    }

    .styled-table th,
    .styled-table td {
        display: block;
        /* Change to block layout */
        text-align: left;
        /* Align text to the left for better readability */
    }

    .styled-table tr {
        display: flex;
        /* Use flexbox for row items */
        flex-direction: column;
        /* Stack items vertically */
        margin-bottom: 15px;
        /* Space between rows */
    }

    .styled-table th {
        position: relative;
        /* Position relative for label */
        padding-left: 50%;
        /* Space for label */
    }

    .styled-table th::before {
        position: absolute;
        /* Position label before header */
        left: 10px;
        /* Adjust position */
        white-space: nowrap;
        /* Prevent line breaks */
        font-weight: bold;
        /* Make bold */
    }

    /* Apply alternating background for odd rows */
    .styled-table tr:nth-child(odd) {
        background-color: #f9f9f9;
        /* Light gray for odd rows */
    }
}

.endai-button1,
.endai-button2 {
    display: inline-block;
    /* Inline block for button */
    padding: 15px 25px;
    /* Padding for button */
    font-size: 1.2em;
    /* Font size for button */
    background: #ec3c71;
    color: #ffffff;
    /* Button text color */
    border: solid 1px rgb(235, 87, 87);
    /* No border */
    text-decoration: none;
    border-radius: 5px;
    /* Rounded corners */
    text-align: center;
    /* Center align text */
    transition: background-color 0.3s;
    /* Smooth transition */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Button shadow */
    margin-bottom: 15px;
}

/* Hover effect */
.endai-button1:hover,
.endai-button2:hover {
    background-color: #ffffff;
    color: #ec3c71;
    transform: translateY(-2px);
    /* Lift effect */
}

.deadline-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.old-date {
    position: relative;
    display: inline-block;
    margin-right: 10px;
}

.old-date::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 2px;
    background: #000;
}

.new-date {
    color: red;
    font-weight: bold;
}