:root {
    --primary-color: #00796B; /* Teal */
    --primary-color-dark: #004D40;
    --secondary-color: #666;
    --light-bg: #f4f7f6;
    --white: #ffffff;
    --dark-gray: #333;
    --border-color: #e0e0e0;
    --primary-gradient: linear-gradient(135deg, #00796B, #004D40);
    --shadow-light: rgba(0, 0, 0, 0.07);
    --shadow-dark: rgba(0, 0, 0, 0.12);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    font-family: 'Aria', sans-serif;
    margin: 0;
    background-color: var(--light-bg);
    color: var(--dark-gray);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    animation: fadeIn 0.7s ease-out;
}

header {
    background-color: var(--white);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
}
.logo a{
    text-decoration: none;
    color: var(--primary-color);
}
nav a {
    margin: 0 15px;
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease-out;
}

nav a:hover::after, nav a.active::after {
    width: 100%;
    left: 0;
    right: auto;
}

nav a:hover, nav a.active {
    color: var(--primary-color);
}

.main-content {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.sidebar {
    flex: 1;
    background-color: var(--white);
    padding: 25px;
    border-radius: 12px;
    height: fit-content;
    box-shadow: 0 5px 15px var(--shadow-light);
}

.page-title {
    font-size: 2.8rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--dark-gray);
    font-weight: 700;
}

.sidebar-widget {
    margin-bottom: 35px;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.sidebar-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.sidebar-widget input[type="search"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    transition: all 0.3s ease;
    background-color: #fdfdfd;
    box-sizing: border-box;
    font-family: 'Aria';
}

.sidebar-widget input[type="search"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(0, 121, 107, 0.2);
    outline: none;
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget ul li {
    margin-bottom: 8px;
}

.sidebar-widget ul li a {
    text-decoration: none;
    color: var(--dark-gray);
    transition: all 0.2s ease-in-out;
    display: block;
    padding: 6px 10px;
    border-radius: 5px;
}

.sidebar-widget ul li a:hover {
    color: var(--primary-color-dark);
    background-color: #e8f3f1;
    transform: translateX(-5px);
}

footer {
    background: var(--dark-gray);
    color: var(--light-bg);
    padding: 60px 20px 20px;
    margin-top: 50px;
    background-image: linear-gradient(to top, #212529, #343a40);
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex-basis: 300px;
}

.footer-section h4 {
    color: var(--white);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-section a {
    color: var(--light-bg);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--secondary-color);
    color: var(--secondary-color);
}

@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    nav {
        display: none; /* Simple responsive behavior, a real app would use a burger menu */
    }

    .page-title {
        font-size: 2.2rem;
    }
}