/*
Theme Name: My Custom Theme
Theme URI: http://example.com
Author: Anna
Author URI: http://example.com
Description: A simple custom WordPress theme
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: mycustomtheme
*/

/* ===== Basic Reset & Typography ===== */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    background: #f9f9f9;
    color: #333;
}

/* Links */
a {
    color: #0073aa;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* ===== Header Styling ===== */
header {
    background: #0073aa;
    color: white;
    padding: 20px;
    text-align: left;
}
header h1 a {
    color: white;
    text-decoration: none;
    font-size: 2rem;
}
header p {
    margin: 5px 0 0;
    font-size: 1.1rem;
}

/* ===== Main Layout (Content + Sidebar) ===== */
.site-main {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px auto;
    max-width: 1200px;
    padding: 0 20px;
}

/* Main content area */
.content-area {
    flex: 1 1 70%;
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Sidebar */
.widget-area {
    flex: 1 1 25%;
    background: #f8f8f8;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Widgets inside sidebar */
.widget {
    margin-bottom: 20px;
}
.widget-title {
    font-size: 18px;
    margin-bottom: 10px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
}

/* ===== Footer Styling ===== */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 40px;
}

/* ===== Mobile Responsiveness ===== */
@media (max-width: 768px) {
    .site-main {
        flex-direction: column;
    }
    .content-area,
    .widget-area {
        flex: 1 1 100%;
    }
}

@media (max-width: 600px) {
    header h1 {
        font-size: 1.5rem;
    }
    article h2 a {
        font-size: 1.2rem;
    }
}

/* --- Navigation Menu Styling --- */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
}
.main-navigation li {
    padding: 0 15px;
}
.main-navigation a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    display: block;
    padding: 10px 0;
}
.main-navigation a:hover {
    color: #ddd;
}
/* === Layout with Sidebar === */
.content-wrapper {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.content-area {
    width: 70%;
}

.widget-area {
    width: 30%;
    background: #f1f1f1;
    padding: 15px;
    border-radius: 5px;
}
