* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    display: grid;
    grid-template-columns: 1fr 300px;
    max-width: 1400px;
    margin: auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    min-height: 100vh;
}

h1 { 
    font-weight: 700; 
    color: #fff;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 30px 20px;
    text-align: center;
    grid-column: 1 / span 2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

nav {
    background-color: #fff;
    color: #333;
    text-align: center;
    padding: 20px;
    grid-column: 1 / span 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    text-decoration: none;
    color: #667eea;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background-color: #667eea;
    color: #fff;
    transform: translateY(-2px);
}

.content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px;
    grid-column: 1;
    background-color: #f5f7fa;
}

.item {
    background: #fff; 
    border-radius: 16px; 
    box-shadow: 0 8px 24px rgba(0,0,0,0.12); 
    padding: 24px; 
    transition: all 0.3s ease;
    text-align: center;
    overflow: hidden;
}

.item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.3);
}

.item h2 {
    margin: 16px 0 8px 0;
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
}

.item p {
    color: #666;
    margin: 8px 0;
    font-size: 0.95rem;
}

.item p:last-of-type {
    color: #667eea;
    font-weight: 700;
    font-size: 1.3rem;
    margin: 16px 0;
}

.item img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.item:hover img {
    transform: scale(1.05);
}

button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff; 
    border: none; 
    border-radius: 25px; 
    padding: 12px 32px; 
    cursor: pointer; 
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

button:hover { 
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
}

button:active {
    transform: translateY(0);
}

.sider {
    background: #fff;
    color: #333;
    padding: 30px 20px;
    grid-column: 2;
    box-shadow: -4px 0 12px rgba(0,0,0,0.08);
}

.sider h3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.sider h3:hover {
    transform: translateX(-4px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.footer { 
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: #fff; 
    padding: 40px 20px;
    grid-column: 1 / span 2;
    margin-top: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-item {
    text-align: center;
    padding: 20px;
}

.footer-item h3 {
    color: #667eea;
    margin-bottom: 16px;
    font-size: 1.3rem;
    font-weight: 600;
}

.footer-item p { 
    font-size: 0.95rem;
    color: #cbd5e0;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 968px) {
    body {
        grid-template-columns: 1fr;
    }
    
    .content {
        grid-column: 1;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .sider {
        grid-column: 1;
        grid-row: auto;
    }
    
    .footer {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 640px) {
    .content {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
}