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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    height: 100vh;
    overflow: hidden;
}

/* Main Container - 3 rows: logo, content, footer */
.container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 80px 1fr 60px;
    height: 100vh;
}

/* Logo */
.logo {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    background-color: #4E342E;
    color: #FFF8DC;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 2px solid #6D4C41;
    gap: 20px;
}

.logo-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 25px;
    margin-top: 5px;
    margin-right: 0px;
    filter: brightness(1.2);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
    white-space: nowrap;
}

.search-container {
    display: flex;
    align-items: center;
    background-color: #6D4C41;
    border-radius: 25px;
    padding: 5px 10px;
    max-width: 500px;
    width: 100%;
    height: 40px;
    border: 2px solid #8D6E63;
    transition: all 0.3s ease;
    flex: 1;
    margin-left: auto;
}

.search-container:hover {
    border-color: #D2691E;
    box-shadow: 0 0 10px rgba(141, 110, 99, 0.6);
}
.search-container :focus-within {
    border-color: #D2691E;
    box-shadow: 0 0 10px rgba(210, 105, 30, 0.6);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    color: #FFF8DC;
    outline: none;
    padding: 8px 12px;
    font-size: 1rem;
}

.search-input::placeholder {
    color: #FFF8DC;
    opacity: 0.7;
}

.search-button {
    background: transparent;
    border: none;
    color: #FFF8DC;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 5px;
    transition: color 0.3s ease;
}

.search-button:hover {
    color: #D2691E;
}

.search-button svg {
    width: 20px;
    height: 20px;
}

/* Content Wrapper */
.content-wrapper {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    display: grid;
    grid-template-columns: 250px 1fr;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    background-color: #6D4C41;
    color: #FFF8DC;
    padding: 20px;
    overflow-y: auto;
    border-right: 2px solid #4E342E;
}

.sidebar h2 {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #8D6E63;
    padding-bottom: 10px;
    color: #FFF8DC;
}

.sidebar nav ul {
    list-style: none;
}

.sidebar nav ul li {
    margin-bottom: 12px;
}

.sidebar nav ul li a {
    color: #FFF8DC;
    text-decoration: none;
    display: block;
    padding: 10px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar nav ul li a:hover {
    background-color: #5D4037;
    transform: translateX(5px);
    border-left: 3px solid #D2691E; 
}

/* Header + Body */
.right-content {
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
}

/* Header/Banner */
.header {
    background-image: linear-gradient(rgba(78, 52, 46, 0.7), rgba(109, 76, 65, 0.7)), url('assets/images/banner.jpg');
    background-size: cover;
    background-position: center;
    color: #FFF8DC;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0px;
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.header h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header p {
    font-size: 1.1rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Body Area */
.body {
    background-color: #ffffff; 
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
}

.body section {
    background-color: #FFFAF0; 
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(78, 52, 46, 0.15);
    border-left: 4px solid #8D6E63;
}

.body section h2 {
    color: #4E342E; 
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-bottom: 2px solid #A1887F; 
    padding-bottom: 10px;
    font-family: 'Georgia', serif;
}

.body section p {
    line-height: 1.8;
    color: #3E2723; 
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-align: justify;
}

/* Footer */
.footer {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
    background-color: #4E342E; 
    color: #FFF8DC; /* Cream */
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 2px solid #6D4C41;
}

.footer p {
    font-size: 0.9rem;
}

/* Scrollbar Body */
.body::-webkit-scrollbar {
    width: 12px;
}

.body::-webkit-scrollbar-track {
    background: #F5E6D3; 
}

.body::-webkit-scrollbar-thumb {
    background: #8D6E63; 
    border-radius: 6px;
}

.body::-webkit-scrollbar-thumb:hover {
    background: #6D4C41; 
}

/* Scrollbar sidebar */
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: #5D4037; 
}

.sidebar::-webkit-scrollbar-thumb {
    background: #8D6E63; 
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #A1887F; 
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .logo {
        padding: 0 10px;
        gap: 10px;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

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

    .search-container {
        display: none;
    }

    .search-container {
        max-width: 200px;
    }

    .container {
        grid-template-rows: 60px 1fr 60px;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .right-content {
        grid-template-rows: auto 1fr;
    }

    .header {
        margin: 10px;
        padding: 15px;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .body {
        padding: 15px;
    }

    .body section {
        padding: 20px;
        margin-bottom: 20px;
    }

    .body section h2 {
        font-size: 1.5rem;
    }

    .body section p {
        font-size: 1rem;
    }
}
