/*
 Theme Name: Twenty Twenty-Five Lua Child
 Theme URI: https://example.com/my-school-website/ (replace with your actual website URL)
 Description: A child theme for Twenty Twenty-Five named "Lua" for My School website.
 Author: Your Name or School Name
 Author URI: https://example.com/ (replace with your actual website URL or author page)
 Template: twentytwentyfive
 Version: 1.0.0
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: twentytwentyfive-lua
*/

/*
 * Custom Styles for Staff Profile Template
 */
.staff-profile-container {
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.staff-profile-container .staff-job-title {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    margin-top: -1rem;
    /* Adjust to sit closer to the name */
}

/* For smaller screens, stack the columns */
@media (max-width: 768px) {
    .wp-block-columns {
        flex-direction: column;
    }

    .wp-block-column:first-child {
        margin-bottom: 1.5rem;
    }
}
/*
 * Custom CSS for Staff Category: Admin
 * Adjusts the profile picture size specifically for the Admin category archive.
 */
body.term-admin .wp-block-query .wp-block-post-template .wp-block-post-featured-image img {
    /* Set your desired width and height here */
    width: 120px !important;
    height: 120px !important;
    object-fit: cover !important;
    /* Ensures the image fills the space without distortion */
    border-radius: 50% !important;
    /* You can keep it round, or change it */
    display: block !important;
    /* Ensure block-level element for proper sizing */
}
/* ====================================================================
   ====================== Monthly Calendar Grid =======================
   ==================================================================== */

.calendar-wrapper {
    max-width: 900px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.calendar-wrapper h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.calendar-grid {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.calendar-grid th,
.calendar-grid td {
    border: 1px solid #e0e0e0;
    padding: 10px;
    vertical-align: top;
    height: 120px;
    /* Adjust height for more space */
    position: relative;
    font-size: 14px;
}

.calendar-grid th {
    background-color: #f7f7f7;
    font-weight: bold;
    color: #666;
    text-align: center;
    padding: 12px 10px;
}

.day-number {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: right;
    color: #444;
}

.event-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.event-list li {
    background-color: #e6f7ff;
    border-radius: 4px;
    padding: 6px 8px;
    margin-bottom: 5px;
    font-size: 0.9rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-list li:hover {
    background-color: #cceeff;
}

.event-list a {
    text-decoration: none;
    color: #0073aa;
    font-weight: 500;
    display: block;
    white-space: normal;
}

.event-list a:hover {
    text-decoration: underline;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {

    .calendar-grid th,
    .calendar-grid td {
        height: 80px;
        font-size: 12px;
        padding: 5px;
    }

    .day-number {
        font-size: 1rem;
        margin-bottom: 4px;
    }

    .event-list li {
        font-size: 0.75rem;
        padding: 3px 5px;
    }
}
/* Calendar Navigation */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-header h2 {
    margin: 0;
    flex-grow: 1;
}

.calendar-header .nav-link {
    text-decoration: none;
    color: #0073aa;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.calendar-header .nav-link:hover {
    background-color: #f0f0f0;
}

/* Post Slider Styling */
.post-slider-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
    position: relative; /* Add this line */
}

.swiper-slide {
    text-align: center;
    background: #f7f7f7;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-item {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slider-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

.slider-item h3 {
    font-size: 1.2rem;
    margin: 0 0 5px 0;
}

.slider-item p.slider-meta {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Updated Navigation Arrows Styling */
.swiper-button-next,
.swiper-button-prev {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    color: #0073aa;
    /* The primary color of your theme */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    top: 50%;
    /* Position the arrows vertically centered */
    transform: translateY(-50%);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: #0073aa;
    color: #fff;
}

/* Updated Pagination Dots Styling */
.swiper-pagination-bullet {
    background: #ccc;
    opacity: 0.8;
}

.swiper-pagination-bullet-active {
    background: #0073aa;
    /* The primary color of your theme */
    opacity: 1;
}
/* Ensure the swiper container clips the slides */
.swiper-container.mySwiper {
    overflow: hidden;
    width: 100%;
}

/* Make sure the swiper wrapper aligns the slides correctly */
.swiper-wrapper {
    display: flex;
}