/* ============================================
   MAIN LAYOUT STYLES
   ============================================ */

/* Main Container */
.main-content {
    display: flex;
    min-height: calc(100vh - 200px);
    gap: 20px;
    padding: 20px;
    box-sizing: border-box;
}

/* ============================================
   LEFT SECTION - TILES
   ============================================ */

.left-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 20%;
    width: 20%;
    background-color: #ffffff;
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Left Menu Container */
.tiles-container {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    gap: 15px; /* Add spacing between menu items */
    width: 100%; /* Reduce the size of the menu items to 70% */
    max-width: 220px; /* Limit the maximum width of the menu */
    margin-left: 4%; 
    margin-bottom: 10px;
    position: relative; /* Fix the menu to the left side of the screen */
}

/* Individual Menu Items */
.menu-item {
    position: relative;
    display: block;
    width: 100%;
    height: 138px; /* Reduce the height to 70% of the original (197px * 0.7) */
    overflow: hidden;
    text-decoration: none; /* Remove underline from links */
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

/* Menu Item Images */
.menu-item img {
    width: 100%; /* Make the image fill the container */
    height: 100%; /* Ensure the image covers the container */
    object-fit: cover; /* Maintain aspect ratio and cover the area */
    opacity: 0.675; /* Set image opacity to 67.5% */
    display: block;
}

/* Menu Item Text */
.menu-text {
    position: absolute;
    top: 50%; /* Position the text in the vertical center */
    left: 50%; /* Position the text in the horizontal center */
    transform: translate(-50%, -50%); /* Center the text */
    text-align: center;
    color: black;
    font-size: 18px; /* Reduce font size to 70% of the original (25px * 0.7) */
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2; /* Adjust line height for multi-line text */
    word-wrap: break-word;
    z-index: 1; /* Ensure text appears above the image */
}

.menu-text span {
    display: block;
}




/* ============================================
   CENTER SECTION - BLOG POSTS
   ============================================ */

.center-section {
    flex: 1;
    width: 60%;
    background-color: #ffffff;
    min-width: 0;
}

.welcome-message {
    background-color: #f8f9fa;
    padding: 20px; 
    border-radius: 6px;
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}


.latest-title {
    text-align: left !important;
    margin-top: 10px;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.blog-posts {
    display: flex;
    flex-direction: column;
}

.blog-post {
    display: flex;
    gap: 18px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background-color: #fafafa;
    transition: box-shadow 0.3s, transform 0.2s;
    align-items: flex-start;
}

.blog-post-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: #eee;
}

.blog-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-post:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.blog-post-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.3;
}

.blog-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
    color: #666;
}

.blog-post-author {
    font-weight: 500;
}

.blog-post-date {
    font-style: italic;
}

.blog-post-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
    margin-bottom: 10px;
}

.blog-post-link {
    color: #0056b3;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    display: inline-block;
    margin-top: 5px;
}

.blog-post-link:hover {
    text-decoration: underline;
    color: #004494;
}

/* ============================================
   RIGHT SECTION - RESOURCES
   ============================================ */

.right-section {
    flex: 0 0 20%;
    width: 20%;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.resources-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.resource-item {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    transition: box-shadow 0.3s, transform 0.2s;
}

.resource-item:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.resource-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.3;
}

.resource-link {
    color: #0056b3;
    text-decoration: none;
    font-size: 12px;
    display: block;
    margin-bottom: 5px;
}

.resource-link:hover {
    text-decoration: underline;
    color: #004494;
}

.resource-date {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

/* Event Image Container */
.event-image-container {
    text-align: center; /* Center the image horizontally */
    margin-bottom: 20px; /* Add spacing below the container */
}

.all-events-link {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    text-align: center;
}

/* Event Image Placeholder */
.events-placeholder {
    width: 100%; /* Make the image responsive to the container */
    max-width: 300px; /* Set a maximum width for the image */
    height: auto; /* Maintain the aspect ratio */
    object-fit: cover;
    border-radius: 5px; /* Optional: Add rounded corners */
    margin-bottom: 10px; /* Add spacing below the image */
    display: block; /* Ensure the image behaves like a block element */
}

.right-section a {
    display: block;
    margin-top: 12px;
    font-size: 1em;
    text-align: center;
    font-weight: bold;
}
/* ============================================
   SHARED COMPONENTS
   ============================================ */

.section-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
    background-color: #f8f9fa;
    border-radius: 6px;
}


/* ============================================
   LANGUAGE TOGGLE
   ============================================ */

.language-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.lang-btn {
    padding: 8px 12px;
    border: 1px solid #ccc;
    background: white;
    cursor: pointer;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: #f0f0f0;
    border-color: #999;
}

.lang-btn.active {
    background: #0056b3;
    color: white;
    border-color: #0056b3;
}

.lang-btn.active:hover {
    background: #004494;
    border-color: #004494;
}