/* Global Styles */
html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    height: 100vh; /* Ensure full-screen height */
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Prevent scrolling of the whole page */
}

/* Header - Reduced height and font size */
header {
    background-color: #00557F;
    color: #fff;
    padding: 10px 0; /* Reduced padding */
    text-align: center;
    font-size: 18px; /* Smaller font */
    height: 50px; /* Fixed smaller height */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main container layout */
#layout {
    display: flex;
    flex: 1;
    height: calc(100vh - 50px); /* Full height minus header */
    justify-content: center; /* Center items horizontally */
    align-items: center; /* Center items vertically */
    padding: 20px;
    gap: 20px;
}

/* Left Section - Navigation Boxes */
#supercontainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 70%;
    padding: 20px;
}

.box {
    width: 44%; /* Slightly reduced to ensure the border is visible */
    height: 230px; /* Reduced height to keep a balanced look */
    background-color: #00557F;
    border: 4px solid #00557F; /* Thicker and fully visible border */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    box-sizing: border-box; /* Ensures border is included in width/height */
}

/* Box Links */
.box a {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    background-color: #f3ba3f;
    padding: 10px; /* Reduced padding so border is fully visible */
    border-radius: 4px;
    display: block;
    width: 100%; /* Ensures link does not overlap border */
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
				
				 
    transition: background-color 0.3s;
    box-sizing: border-box; /* Prevents the box from exceeding its parent */
}

/* Hover Effect */
.box a:hover {
    background-color: #f7de50;
}

.box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Right Section - Announcements Sidebar (Scrollable) */
#announcement-sidebar {
    width: 30%;
    background-color: #f9f9f9;
    padding: 20px;
    border-left: 4px solid #00557F;
    height: calc(100vh - 50px); /* Full height minus header */
    overflow-y: auto; /* Only sidebar scrolls */
}

/* Styling for Announcements */
#announcement-sidebar h2 {
    color: #00557F;
    margin-bottom: 15px;
}

#announcement-sidebar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#announcement-sidebar .announcement-box {
    background-color: #ffffff;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#announcement-sidebar .announcement-box h3 {
    color: #f3ba3f; /* Yellow-orange color for titles */
    margin: 10px 0px 0px;
    font-size: 17px;
}

#announcement-sidebar .announcement-box p {
    margin: 5px 0;
    color: #333;
}

#announcement-sidebar .announcement-box .announcement-date {
    font-size: 12px;
    color: #888; /* Light gray color for the date */
    margin-bottom: 15px;
}

/* Align Committee Name and Date in a Row */
.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 5px;
}

.announcement-header strong {
    color: #00557F;
    font-weight: bold;
}

.announcement-date {
    font-size: 12px;
    color: #888;
    white-space: nowrap; /* Prevents date from wrapping */
}




/* Responsive Design */
@media (max-width: 1024px) {
    #layout {
        flex-direction: column;
        justify-content: center;
    }

    #supercontainer {
        width: 100%;
    }

    #announcement-sidebar {
        width: 100%;
        height: auto;
        border-left: none;
        border-top: 4px solid #00557F;
        max-height: 40vh; /* Limit height on smaller screens */
    }

    .box {
        width: 90%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .box {
        width: 100%;
        height: 180px;
    }
}

@media (max-width: 480px) {
    header {
        font-size: 16px;
        height: 40px;
    }

    #announcement-sidebar {
        padding: 10px;
    }
}
