@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    color: #2C2C2C;
    overflow-y: scroll;
    scrollbar-width: none;
    min-height: 100vh;
    background: white;
}

body::-webkit-scrollbar {
    display: none;
}

a {
    text-decoration: none;
    color: inherit;
}

nav ul {
    list-style: none;
    margin: 0;
    margin-top: 40px;
    padding-left: 0;
}

nav ul li {
    margin-bottom: 4px;
}

nav ul li a {
    font-size: 16px;
    font-weight: normal;
    transition: font-weight 0.3s ease, transform 0.3s ease;
    margin-left: 20px;
}

nav ul li:first-child a,
nav ul li.special a {
    font-size: 20px;
    font-weight: bold;
    color: #004C3F;
    margin-left: 0;
}

nav ul li.special:last-child {
    position: absolute;
    bottom: 50px;
    left: 20px;
    margin-top: 0;
}

nav ul li.special:last-child a {
    border: 2px solid #E78C3B;
    padding: 5px 10px;
    border-radius: 4px;
    background: #E78C3B;
    color: white;
    width: 100px;
    text-align: center;
}

nav ul li a:hover,
nav ul li.active a {
    font-weight: bold;
    color: #004C3F;
    background: #fff;
    border-radius: 4px;
}

nav ul li a span {
    margin-right: 10px;
}

main {
    margin-left: 320px;
    margin-right: auto;
    max-width: 1200px;
}

.flex-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.parent {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-template-rows: auto repeat(auto-fit, minmax(300px, 1fr));
    grid-column-gap: 10px;
    grid-row-gap: 10px;
    padding: 20px;
}

.div1 { grid-area: 1 / 1 / 2 / 2; }
.div2 { grid-area: 1 / 2 / 2 / 3; }
.div3 { grid-area: 1 / 3 / 2 / 4; }
.div4 { grid-area: 2 / 1 / 3 / 2; }
.div5 { grid-area: 2 / 2 / 3 / 3; }
.div6 { grid-area: 2 / 3 / 3 / 4; }

.grid-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-color: #e0e0e0;
    border-radius: 8px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    display: block;
    margin-left: 0;
}

.grid-item h3 {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: white;
    background: #E78C3B;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 16px;    
    z-index: 2;
}

.special-link {
    display: block;
    border: 2px solid #E78C3B;
    padding: 5px 10px;
    border-radius: 4px;
    background: #E78C3B;
    color: white;
    width: 100px;
    text-align: center;
    margin-top: 40px;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
}

.special-link:hover {
    background: #E78C3B;
    color: white;
}

footer {
    text-align: center;
    padding: 20px 0;
    background-color: white;
}

footer nav ul {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

footer nav ul li {
    display: inline;
}

footer nav ul li a {
    text-decoration: none;
    color: #004C3F;
    font-weight: bold;
    transition: color 0.3s ease;
}

footer nav ul li a:hover {
    color: #E78C3B;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 420px;
    display: flex;
    flex-direction: column;
    background: #004C3F;
    padding: 25px 20px;
}

.sidebar .sidebar-header {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar .sidebar-header img {
    margin-top: 40px;
    margin-left: 40px;
    width: 360px;
}

.sidebar-links {
    list-style: none;
    margin-top: 20px;
    height: 80%;
    overflow-y: auto;
    scrollbar-width: none;
}

.sidebar-links::-webkit-scrollbar {
    display: none;
}

.sidebar-links li a {
    display: flex;
    align-items: center;
    gap: 0 20px;
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
    padding: 15px 10px;
    text-decoration: none;
    transition: 0.2s ease;
}

.sidebar-links li a:hover,
.sidebar-links li.active a {
    color: #2C2C2C;
    background: #fff;
    border-radius: 8px;
}

.sidebar-links li a.title {
    font-size: 16px;
    font-weight: normal;
}

.sidebar-links li a.subtitle {
    font-size: 16px;
    font-weight: normal;
    margin-left: 40px;
}

.user-account {
    margin-top: auto;
    padding: 12px 10px;
    margin-left: -10px;
}

.user-profile {
    display: flex;
    align-items: center;
    color: #2C2C2C;
}

.user-profile img {
    width: 42px;
    border: 2px solid #fff;
}

.user-detail {
    margin-left: 23px;
    white-space: nowrap;
}

.sidebar .user-account {
    background: #fff;
    border-radius: 8px;
}

.SidebarContainer {
    display: flex;
    flex-direction: column;
    width: 420px;
    background-color: #2C2C2C;
    height: 100vh;
    overflow: auto;
    position: fixed;
}

.ParentContainer {
    display: flex;
    flex-direction: column;
    margin-left: 220px;
    margin-top: 0;
    flex: 1;
    padding-top: 150px;
}

.div0 {
    grid-column: 1 / -1;
    padding: 20px;
    width: calc(100% - 40px);
    max-width: 1200px;
    margin: 20px auto;
}

.TextBoxContainer {
    display: flex;
    justify-content: center;
    margin-left: 320px;
}

.text-box {
    margin-left: 100px;
    border: 2px solid #E78C3B;
    border-radius: 8px;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.text-box p {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    color: #2C2C2C;
    line-height: 1.6;
}

.text-box strong {
    color: #E78C3B;
}

@media (max-width: 1024px) {
    main {
        margin-left: 0;
        padding: 20px;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .SidebarContainer {
        width: 100%;
        height: auto;
        position: relative;
    }

    .ParentContainer {
        margin-left: 0;
        padding-top: 20px;
    }

    .text-box {
        width: calc(100% - 40px);
        margin-left: 0; /* Adjusted left margin for smaller screens */
    }

    .div0 {
        width: calc(100% - 40px);
    }
}

@media (max-width: 768px) {
    nav ul li a {
        font-size: 14px;
    }

    .sidebar .sidebar-header img {
        width: 300px;
    }

    .grid-item h3 {
        font-size: 14px;
    }

    .special-link {
        width: 80px;
        font-size: 16px;
    }

    .text-box {
        width: calc(100% - 40px);
        margin-left: 0; /* Adjusted left margin for smaller screens */
    }

    .div0 {
        width: calc(100% - 40px);
    }
}

@media (max-width: 480px) {
    nav ul li a {
        font-size: 12px;
    }

    .sidebar .sidebar-header img {
        width: 240px;
    }

    .grid-item h3 {
        font-size: 12px;
    }

    .special-link {
        width: 60px;
        font-size: 14px;
    }

    .text-box {
        width: calc(100% - 40px);
        margin-left: 0; /* Adjusted left margin for smaller screens */
    }

    .div0 {
        width: calc(100% - 40px);
    }
}