/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Import Custom Font */
@font-face {
    font-family: 'SmartNudi1';
    src: url('../fonts/SmartNudi1.ttf');
}

/* Apply Custom Font & Justify All Text */
body {
    font-family: "SmartNudi1", sans-serif;
    line-height: 1.6;
    text-align: justify;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Header */
header {
    background-color: green;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.menu li {
    margin: 0;
}

.menu a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    display: block;
    transition: background-color 0.3s, color 0.3s;
}

.menu a.active {
    background-color: #ffcc00;
    color: black;
    border-radius: 5px;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2c3e50;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 4px;
}

.dropdown-menu li {
    padding: 8px 16px;
    list-style: none;
}

.dropdown-menu a {
    color: #ecf0f1;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #34495e;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

/* President Section */
.president-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 10px;
}

/* Individual President Box */
.president {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8f8f8;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    width: 48%;
    text-align: center;
}

/* Image Styling */
.president img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* Headings */
.president h4 {
    font-size: 1.3em;
    color: darkgreen;
    margin-bottom: 5px;
}

/* Names */
.president p {
    font-size: 1em;
    color: black;
    font-weight: bold;
}

/* Main Content */
.main-content {
    display: flex;
    flex: 1;
    padding: 20px;
    gap: 20px;
}

.left-sidebar, .right-sidebar {
    flex: 1;
    padding: 10px;
    background-color: #f4f4f4;
    overflow-y: auto;
}

.content {
    flex: 3;
    padding: 10px 20px;
}

/* Right Sidebar */
.right-sidebar .window {
    margin-bottom: 20px;
}

.right-sidebar .window table {
    width: 100%;
    border-collapse: collapse;
}

.right-sidebar .window table,
.right-sidebar .window th,
.right-sidebar .window td {
    border: 1px solid #ddd;
    padding: 8px;
}

.right-sidebar .window th {
    background-color: green;
    color: white;
}

.right-sidebar .window ul {
    list-style: none;
    padding: 0;
}

.right-sidebar .window ul li {
    margin: 10px 0;
}

.right-sidebar .window ul li a {
    color: green;
    text-decoration: none;
}

/* Footer */
footer {
    background-color: green;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

.first-row {
    background-color: darkgreen;
    padding: 15px;
    border-radius: 5px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    transition: background-color 0.3s, color 0.3s;
}

.footer-links a:hover {
    background-color: #ffcc00;
    color: black;
    border-radius: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Header */
    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: green;
        position: absolute;
        top: 60px;
        left: 0;
    }

    .menu.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    /* President Section */
    .president-container {
        flex-direction: column;
        gap: 20px;
    }

    .president {
        width: 100%;
    }

    /* Main Content */
    .main-content {
        flex-direction: column;
    }

    .left-sidebar, .right-sidebar {
        flex: 1;
        width: 100%;
    }

    .content {
        flex: 1;
        width: 100%;
    }

    /* Footer */
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    /* Calendar */
    .calendar {
        max-width: 100%;
    }

    /* Marquee */
    .marquee-container {
        height: 200px;
    }

    .marquee-item {
        font-size: 1em;
    }

    /* New Row Styling */
    .new-row {
        flex-direction: column;
    }

    .new-row .window {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Highlight event days with a static yellow background */
.event-day {
    background-color: yellow !important;
    font-weight: bold;
    text-align: center;
    position: relative;
    cursor: pointer;
}

/* Tooltip for event details */
.event-day:hover::after {
    content: attr(data-event);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: black;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Show tooltip when hovered */
.event-day:hover::after {
    opacity: 1;
}

/* Ensure tooltip works on mobile tap */
@media (max-width: 768px) {
    .event-day:active::after {
        opacity: 1;
    }
}

/* Calendar Styles */
.calendar {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.calendar-title {
    font-size: 1.2em;
    font-weight: bold;
}

.nav-arrow {
    text-decoration: none;
    color: green;
    font-size: 1.5em;
    cursor: pointer;
}

.nav-arrow:hover {
    color: darkgreen;
}

.calendar-grid {
    width: 100%;
    border-collapse: collapse;
}

.calendar-grid th,
.calendar-grid td {
    text-align: center;
    padding: 3px;
    border: 1px solid #ddd;
}

.calendar-grid th {
    background-color: green;
    color: white;
}

.calendar-grid td {
    background-color: #f9f9f9;
}

.calendar-grid td:hover {
    background-color: #e0e0e0;
    cursor: pointer;
}

/* Marquee Styles */
.marquee-container {
    height: 250px;
    overflow: hidden;
    position: relative;
    background: #fffae5;
    border-radius: 8px;
    border: 2px solid #ffcc00;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.marquee-item {
    background: white;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0px 3px 7px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    font-size: 1.1em;
}

.marquee-content {
    position: absolute;
    width: 100%;
    animation: scrollUp 35s linear infinite;
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes scrollUp {
    0% { transform: translateY(100%); }
    100% { transform: translateY(-100%); }
}

/* Scrollable List */
.scrollable-list {
    max-height: 180px;
    overflow-y: auto;
    border: 5px solid #ddd;
    border-radius: 4px;
    padding: 8px;
    margin-top: 8px;
}

.scrollable-list ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.scrollable-list ul li {
    margin-bottom: 8px;
}

.scrollable-list ul li a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.scrollable-list ul li a:hover {
    color: #0056b3;
}

.scrollable-list::-webkit-scrollbar {
    width: 8px;
}

.scrollable-list::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 4px;
}

.scrollable-list::-webkit-scrollbar-track {
    background-color: #f1f1f1;
}

/* Blinking Animation */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.blink-red {
    color: red;
    animation: blink 1s infinite;
}

/* Hidden Class */
.hidden {
    display: none;
}

/* Read More Button */
.read-more-container {
    text-align: right;
    margin-top: 10px;
}

button {
    background-color: green;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background-color: darkgreen;
}

/* New Row Styling */
.new-row {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.new-row .window {
    width: 32%;
    background-color: white;
    border: 1px solid #ddd;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: height 0.3s ease;
    overflow: hidden;
    cursor: pointer;
}

.new-row .window.expanded {
    height: auto;
    max-height: 500px;
}

/* Alternating Row Colors and Borders */
.scrollable-list ul li {
    padding: 8px 10px;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.3s ease;
}

.scrollable-list ul li:nth-child(odd) {
    background-color: #f9f9f9;
}

.scrollable-list ul li:nth-child(even) {
    background-color: #e9e9e9;
}

.scrollable-list ul li:hover {
    background-color: #d9d9d9;
    cursor: pointer;
}

.scrollable-list ul li:last-child {
    border-bottom: none;
}

.footer-row {
    background-color: darkgreen;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links a {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    padding: 10px;
    transition: background-color 0.3s, color 0.3s;
}

.footer-links a img {
    height: 20px;
    margin-right: 8px;
}

.footer-links a:hover {
    background-color: #ffcc00;
    color: black;
    border-radius: 5px;
}