
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: #000;
    text-decoration: none;
}

.search-container {
    position: relative;
    width: 300px;
}

.search-container input {
    width: 100%;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.search-container input:focus {
    border-color: #0078d7;
    box-shadow: 0 0 5px rgba(0, 120, 215, 0.3);
}

.search-container button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 15px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #0078d7;
}

main {
    padding: 20px 0;
}

.banner {
    width: 100%;
    height: 200px;
    background-color: #eee;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.banner:hover {
    transform: scale(1.02);
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.card {
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-img {
    width: 100%;
    height: 150px;
    background-color: #eee;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img img {
    transform: scale(1.05);
}

.card-content {
    padding: 15px;
}

.card-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}

.card-meta {
    font-size: 12px;
    color: #666;
}

.sidebar {
    background-color: #fff;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.sidebar h2 {
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    font-size: 18px;
}

.sidebar-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    transition: transform 0.3s ease;
}

.sidebar-item:hover {
    transform: translateX(5px);
}

.sidebar-img {
    width: 60px;
    height: 60px;
    background-color: #eee;
    margin-right: 10px;
    flex-shrink: 0;
}

.sidebar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-content h3 {
    font-size: 14px;
    margin-bottom: 4px;
}

.sidebar-content p {
    font-size: 12px;
    color: #666;
}

footer {
    background-color: #fff;
    padding: 20px 0;
    margin-top: 30px;
    border-top: 1px solid #eee;
}

.footer-content {
    display: flex;
    flex-direction: column;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    margin-bottom: 15px;
}

.footer-links h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #0078d7;
}

.copyright {
    margin-top: 20px;
    color: #666;
    font-size: 12px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Mobile Navigation */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 2px 0;
}

.nav-menu {
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin-top: 10px;
    overflow: hidden;
}

.nav-menu.active {
    display: block;
}

.nav-menu li {
    margin: 0;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.nav-menu li:last-child {
    border-bottom: none;
}

.nav-menu a {
    display: block;
    padding: 12px 20px;
    transition: background-color 0.3s ease;
}

.nav-menu a:hover {
    background-color: #f9f9f9;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .search-container {
        width: 100%;
        margin-bottom: 15px;
    }

    .search-container input {
        width: 100%;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        margin-bottom: 10px;
    }

    nav ul {
        display: none;
    }

    .nav-menu {
        width: 100%;
        margin-top: 10px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .main-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
    }
}

@media (min-width: 768px) {
    .content-grid {
        grid-template-columns: 2fr 1fr;
    }

    .main-content {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .main-content {
        grid-template-columns: repeat(2, 1fr);
    }
}