/*
Theme Name: Twenty Twenty-Four Child
Description: Child theme of Twenty Twenty-Four
Author: Linkmedia
Template: twentytwentyfour
Version: 1.0
*/

/* Your custom styles go here */

/* Custom responsive table styles */
.table-wrapper {
    width: 100%;
    margin: 20px 0;
    overflow-x: auto;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.custom-table {
    width: 100%;
    min-width: 800px; /* Ensures table doesn't get too narrow */
    border-collapse: collapse;
    background: white;
    font-size: 14px;
}

.custom-table th,
.custom-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
    vertical-align: top;
}

.custom-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
}

.custom-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Column width distribution */
.custom-table th:nth-child(1), 
.custom-table td:nth-child(1) {
    width: 8%; /* No. column */
}

.custom-table th:nth-child(2), 
.custom-table td:nth-child(2) {
    width: 30%; /* Research ID column */
}

.custom-table th:nth-child(3), 
.custom-table td:nth-child(3) {
    width: 35%; /* Name column */
}

.custom-table th:nth-child(4), 
.custom-table td:nth-child(4) {
    width: 27%; /* Role column */
}

/* Mobile: horizontal scroll */
@media (max-width: 768px) {
    .custom-table {
        min-width: 700px; /* Force horizontal scroll on mobile */
    }
}

/* Post pages */
.category-posts {
    margin: 20px 0;
}

.post-item {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.post-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.post-title {
    margin: 0 0 10px 0;
}

.post-title a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.post-title a:hover {
    color: #142d70;
}

.post-meta {
    margin-bottom: 15px;
}

.post-date {
    color: #666;
    font-size: 14px;
}

.post-excerpt {
    margin: 10px 0;
    color: #555;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    background: #142d70;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease;
}

.read-more:hover {
    background: #004d66;
    color: white;
}

/* Make logo bigger - double the size */
.wp-block-site-logo img {
    width: 120px !important;
    height: 120px !important;
}

/* DESKTOP NAVIGATION STYLES */
@media (min-width: 782px) {
    /* Menu styling improvements */
    .wp-block-navigation .wp-block-navigation__container {
        gap: 0; /* Remove default gaps between items */
    }

    .wp-block-navigation-item {
        margin: 0 2px; /* Small gap between items */
    }

    .wp-block-navigation-item__content {
        padding: 12px 20px !important; /* Increased padding */
        border-radius: 6px;
        transition: all 0.3s ease;
        text-decoration: none;
        display: block;
        position: relative;
        background: transparent;
        color: #333;
    }

    /* Current/selected menu item - blue background with white text */
    .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content,
    .wp-block-navigation-item.current_page_item .wp-block-navigation-item__content {
        background: #142d70;
        color: white;
    }

    /* Hover effect - lighter blue background */
    .wp-block-navigation-item__content:hover {
        background: #65d1ff;
        color: white;
    }

    /* Keep current item blue even on hover */
    .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content:hover,
    .wp-block-navigation-item.current_page_item .wp-block-navigation-item__content:hover {
        background: #142d70;
        color: white;
    }

    /* Ensure text labels inherit the color */
    .wp-block-navigation-item__label {
        color: inherit;
    }
}

/* MOBILE NAVIGATION STYLES - IMPROVED */
@media (max-width: 781px) {
    /* Mobile menu overlay styling */
    .wp-block-navigation__responsive-container {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
    }

    .wp-block-navigation__responsive-dialog {
        padding: 0;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    }

    /* Close button */
    .wp-block-navigation__responsive-container-close {
        position: absolute;
        top: 25px;
        right: 25px;
        background: #f8f9fa;
        border: none;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s ease;
    }

    .wp-block-navigation__responsive-container-close:hover {
        background: #e9ecef;
    }

    /* Menu container */
    .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
        padding: 80px 0 40px;
        margin: 0;
        gap: 0;
    }

    /* Menu items */
    .wp-block-navigation__responsive-container-content .wp-block-navigation-item {
        width: 100%;
        margin: 0;
    }

    .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
        padding: 18px 30px !important;
        font-size: 17px !important;
        font-weight: 400 !important;
        color: #333 !important;
        text-decoration: none !important;
        display: block !important;
        border-radius: 0 !important;
        background: transparent !important;
        transition: all 0.2s ease !important;
        border: none !important;
        outline: none !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }

    /* Remove border from last item */
    .wp-block-navigation__responsive-container-content .wp-block-navigation-item:last-child .wp-block-navigation-item__content {
        border-bottom: none !important;
    }

    /* Hover effect */
    .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content:hover {
        background: #f8f9fa !important;
        color: #142d70 !important;
        padding-left: 35px !important;
    }

    /* Current page - full width background */
    .wp-block-navigation__responsive-container-content .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content {
        background: #142d70 !important;
        color: white !important;
        font-weight: 500 !important;
        position: relative !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    /* Left accent bar for current page */
    .wp-block-navigation__responsive-container-content .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: rgba(255, 255, 255, 0.3);
    }

    /* Animation */
    .wp-block-navigation__responsive-container {
        animation: slideInRight 0.3s ease-out;
    }

    @keyframes slideInRight {
        from {
            transform: translateX(100%);
        }
        to {
            transform: translateX(0);
        }
    }
}

/* IMAGE SECTION ABOVE FOOTER */
.footer-image-section {
    background-color: white;
    padding-top: 30px !important;
    padding-bottom: 30px !important;
}

.footer-logos {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile responsive for image */
@media (max-width: 768px) {
    .footer-image-section {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }
    
    .footer-logos {
        max-width: 90%;
    }
}

/* FOOTER STYLES - UPDATED */
/* Main footer container with background color - smaller padding */
footer {
    margin-block-start: 0;
}

footer .wp-block-group {
    background-color: #f7a443 !important;
}

footer .wp-block-group.has-global-padding {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

/* Footer content layout - two equal columns */
footer .wp-block-group.alignwide {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 40px !important;
}

/* Hide the logo completely */
footer .wp-block-site-logo,
footer .wp-block-group.is-nowrap {
    display: none !important;
}

/* Left side text container - equal width and left aligned */
footer .footer-text {
    flex: 1;
    text-align: center;
    color: #333 !important;
}

footer .footer-text h3 {
    margin: 0 0 3px 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    color: #333 !important;
    font-family: inherit !important;
    font-style: normal !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Right side navigation - equal width and centered */
footer .wp-block-navigation {
    flex: 1;
    text-align: center;
    order: 2;
    display: flex !important;
    justify-content: center !important;
}

footer .wp-block-navigation__container {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center;
    width: 100% !important;
}

footer .wp-block-navigation-item {
    margin: 0 !important;
}

footer .wp-block-navigation-item__content {
    padding: 0 !important;
    border-radius: 0 !important;
    transition: all 0.2s ease !important;
    background: transparent !important;
    color: #333 !important;
    text-decoration: none;
    font-size: 14px !important;
    display: block;
    text-align: center;
}

/* Simple hover effect - just underline */
footer .wp-block-navigation-item__content:hover {
    background: transparent !important;
    color: #000 !important;
    text-decoration: underline !important;
}

/* Current page styling - just bold text */
footer .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content {
    background: transparent !important;
    color: #000 !important;
    font-weight: 600 !important;
}


/* Mobile responsive */
@media (max-width: 768px) {
    footer .wp-block-group.alignwide {
        flex-direction: column !important;
        gap: 20px !important;
        align-items: center !important;
    }
    
    footer .footer-text h3 {
        font-size: 14px !important;
    }
    
    footer .wp-block-navigation__container {
        gap: 8px !important;
    }
}

/* Smaller logo on mobile */
@media (max-width: 768px) {
   .wp-block-site-logo img {
       width: 80px !important;
       height: 80px !important;
   }
}


.wp-element-button{
    display: inline-block;
    background: #142d70;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease;
}