* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    display: flex;
    background-color: #ffffff;
    color: #333;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Sidebar Styles */
.sidebar {
    width: 270px;
    padding: 40px 30px;
    border-right: 1px solid #e6e6e6;
    height: 100vh;
    position: fixed;
    background-color: #fff;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.close-menu {
    display: none;
    cursor: pointer;
    font-size: 20px;
}

.logo {
    font-size: 34px;
    font-weight: bold;
}

.tagline {
    font-size: 16px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 30px;
}

.divider {
    height: 1px;
    background-color: #e6e6e6;
    margin: 20px 0;
    width: 80px;
}

.nav-header {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
}

.nav-links {
    list-style: none;
}

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

.nav-links a {
    text-decoration: none;
    color: #666;
    font-size: 16px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #333;
}

.nav-links a.active {
    color: #333;
    font-weight: 500;
}

/* Menu Toggle Button */
.menu-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 99;
    background-color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: none;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

/* Overlay for mobile menu */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 90;
    display: none;
}

/* Main Content Styles */
.main-content {
    margin-left: 270px;
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    width: calc(100% - 270px);
    justify-content: center;
}

/* Card Styles */
.card {
    width: 400px;
    max-height: 500px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-image {
    width: 100%;
    height: 250px;
    background-color: #f6f6f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-tag {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.card-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.card-description {
    font-size: 16px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Author Styles */
.author {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 12px;
    background-color: #f0f0f0;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 14px;
    font-weight: 500;
}

.author-title {
    font-size: 12px;
    color: #666;
}

.craft-italic {
    font-family: serif;
    font-style: italic;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .main-content {
        justify-content: space-between;
    }

    .card {
        width: calc(50% - 20px);
    }
}

@media (max-width: 992px) {
    .card {
        width: 100%;
        max-width: 400px;
        margin: 0 auto 40px auto;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .menu-toggle {
        display: flex;
    }

    .close-menu {
        display: block;
    }

    .overlay.active {
        display: block;
    }
}