/* Reset Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #d4f3e3; /* Light green */
    margin: 0;
}

/* Main Container Grid Layout */
.container {
    display: grid;
    grid-template-rows: 100px auto auto auto 50px; /* Header, image, video, content, footer */
    grid-template-columns: 200px 1fr 300px; /* Sidebar + Content + Right Sidebar */
    grid-template-areas:
        "header header header"
        "sidebar image-section right-sidebar"
        "sidebar video-section right-sidebar"
        "sidebar content right-sidebar"
        "footer footer footer";
    gap: 10px;
    height: 100vh;
    padding: 10px;
}

/* Header Section */
header {
    grid-area: header;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #63b976; /* Complementary green */
    color: #ffffff; /* White text */
    padding: 10px 20px;
    border-radius: 5px;
}

header .title {
    font-size: 1.5em;
}

header .logo img {
    max-height: 60px;
    border-radius: 5px;
}

/* Sidebar Section */
.sidebar {
    grid-area: sidebar;
    background-color: #2d6a4f; /* Dark green */
    color: #ffffff;
    padding: 20px;
    border-radius: 5px;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    display: block;
    text-decoration: none;
    color: #ffffff;
    background-color: #63b976;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.sidebar ul li a:hover {
    background-color: #95d5b2;
    color: #2d6a4f;
}

/* Image Section */
.image-section {
    grid-area: image-section;
    background-color: #ffffff;
    border: 1px solid #95d5b2;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.image-section img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Video Section */
.video-section {
    grid-area: video-section;
    background-color: #f4f4f4;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.video-section h2 {
    color: #2d6a4f;
    font-size: 1.2em;
}

.video-section video {
    width: 100%;
    border-radius: 5px;
    border: 2px solid #95d5b2;
}

.video-section p {
    color: #2d6a4f;
}

/* Content Section */
.content {
    grid-area: content;
    background-color: #ffffff;
    padding: 20px;
    border: 1px solid #95d5b2;
    border-radius: 5px;
    text-align: justify;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.content h2 {
    color: #2d6a4f;
    font-size: 1.5em;
}

.content p {
    color: #555555;
    line-height: 1.6;
}

/* Right Sidebar - Latest News and Upcoming Events */
.right-sidebar {
    grid-area: right-sidebar;
    background-color: #ffffff;
    padding: 20px;
    display: grid;
    grid-template-rows: auto auto;
    gap: 20px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.latest-news h3, .upcoming-events h3 {
    margin-bottom: 10px;
    color: #2d6a4f;
}

.latest-news p, .upcoming-events p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Footer Section */
footer {
    grid-area: footer;
    background-color: #2d6a4f;
    color: #ffffff;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
}

/* Responsive Design */

/* Mobile View */
@media (max-width: 768px) {
    .container {
        grid-template-rows: auto;
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "image-section"
            "video-section"
            "content"
            "right-sidebar"
            "footer";
    }

    .sidebar {
        display: none;
    }

    .hamburger {
        display: flex;
        cursor: pointer;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        width: 30px;
        height: 30px;
    }

    .hamburger div {
        background-color: #ffffff;
        height: 3px;
        width: 100%;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .sidebar.open {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 200px;
        height: 100%;
        background-color: #2d6a4f;
    }
}

/* Tablet View */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr 2fr 1fr;
        grid-template-areas:
            "header header header"
            "sidebar content right-sidebar"
            "footer footer footer";
    }
}
