﻿/* Basic Reset & Body */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #f4f7f6;
    color: #333;
}

.container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header & Navigation */
header {
    background-color: #e8f5e9;
    color: #333;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ccc;
    position: relative;
}
header .logo img {
    height: 47px;
    width: auto;
    display: block;
}
header nav a {
    color: #333;
    text-decoration: none;
    margin: 0 15px;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.2s;
}
header nav a:hover {
    border-bottom: 2px solid #28a745;
}
.header-right {
    display: flex;
    align-items: center;
}
.login-btn, .logout-btn {
    background-color: #007bff;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    margin-left: 15px;
}
.logout-btn {
    background-color: #e74c3c;
}
.login-btn:hover {
    background-color: #0056b3;
}
.logout-btn:hover {
    background-color: #c0392b;
}

/* Main Content */
h1 {
    color: #2c3e50;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
    margin-top: 30px;
}
.section-header h2 {
    margin: 0;
    color: #2c3e50;
}
.btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
}
.btn:hover {
    background-color: #218838;
}
ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

/* Hamburger Menu */
#hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 1rem;
    z-index: 20;
}
#hamburger-btn .bar {
    width: 2rem;
    height: 0.25rem;
    background-color: #333;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}
#hamburger-btn.active .bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}
#hamburger-btn.active .bar:nth-child(2) {
    opacity: 0;
}
#hamburger-btn.active .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Media Query for Screens 900px or less */
@media (max-width: 900px) {
    #main-nav {
        display: none;
        position: absolute;
        top: 78px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: #f0fdf0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        border-top: 1px solid #ccc;
        z-index: 10;
    }
    #main-nav.active {
        display: flex;
    }
    #main-nav a {
        padding: 1rem;
        text-align: left;
        border-bottom: 1px solid #e0e0e0;
    }
    .user-info {
        display: none;
    }
    #hamburger-btn {
        display: flex;
    }
}

.logo img { max-width: 367px; height: auto; }

/* Two-Column Layout for Homepage */
.two-column-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px; /* Adjust spacing between columns */
    align-items: flex-start;
    margin-top: 20px;
}

.text-column {
    flex: 2; /* Gives the text column more space */
    min-width: 300px; /* Prevents column from getting too narrow */
}

.image-column {
    flex: 1; /* Gives the image column less space */
    min-width: 300px;
}

.image-column img {
    width: 100%;
    height: auto;
    border-radius: 8px; /* Optional: adds rounded corners to the image */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Optional: adds a subtle shadow */
}

/* Make columns stack on smaller screens */
@media (max-width: 900px) {
    .two-column-container {
        flex-direction: column;
    }
}