* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 5px;
}

header p {
    font-size: 1.1em;
    opacity: 0.9;
    margin-bottom: 15px;
}

nav {
    margin-top: 15px;
}

nav a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background 0.3s;
    display: inline-block;
}

nav a:hover {
    background: rgba(255,255,255,0.2);
}

/* AdSense Container */
.ad-container {
    margin: 20px 0;
    text-align: center;
    min-height: 90px;
    background: #fff;
    padding: 10px;
    border-radius: 5px;
}

/* Main Layout */
main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin: 30px auto;
}

/* Content */
.content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.content h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 2em;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

.content h3 {
    color: #34495e;
    margin: 25px 0 15px;
    font-size: 1.5em;
}

.content h4 {
    color: #2c3e50;
    margin: 20px 0 10px;
    font-size: 1.2em;
}

.content p {
    margin-bottom: 15px;
}

.content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.content li {
    margin-bottom: 10px;
}

.intro {
    font-size: 1.1em;
    color: #555;
    line-height: 1.8;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2em;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.widget {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.widget h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3em;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.widget ul {
    list-style: none;
}

.widget li {
    margin-bottom: 10px;
}

.widget a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.widget a:hover {
    color: #2c3e50;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

footer a {
    color: #3498db;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
    }
    
    nav a {
        display: block;
        margin: 5px 0;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 2em;
    }
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table th {
    background: #3498db;
    color: white;
    padding: 10px;
    text-align: left;
}

table td {
    padding: 10px;
    border: 1px solid #ddd;
}

table tr:nth-child(even) {
    background: #f8f9fa;
}