/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background: #f4f4f4;
    transition: background 0.3s, color 0.3s;
}

body.dark {
    background: #222;
    color: #f4f4f4;
}

/* Header */
header {
    background: #007bff;
    color: #fff;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Burger Menu */
.burger {
    display: none;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    transition: all 0.3s;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: flex;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.nav-menu a.active,
.nav-menu a:hover {
    color: #ffd700;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 1rem;
    background: #e9ecef;
}

.breadcrumbs a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumbs span {
    color: #333;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

body.dark section {
    background: #333;
}

h1, h2 {
    color: #007bff;
    margin-bottom: 1rem;
}

body.dark h1,
body.dark h2 {
    color: #ffd700;
}

/* World Clock */
#clock {
    font-size: 2rem;
    font-weight: bold;
}

/* Calendar */
.calendar-placeholder {
    background: #e9ecef;
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
}

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

.posts-grid article {
    background: #e9ecef;
    padding: 1rem;
    border-radius: 8px;
    transition: transform 0.3s;
}

.posts-grid article:hover {
    transform: translateY(-5px);
}

/* Footer */
footer {
    background: #007bff;
    color: #fff;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

.theme-toggle button {
    padding: 0.5rem 1rem;
    border: none;
    background: #ffd700;
    color: #333;
    cursor: pointer;
    border-radius: 5px;
}

.theme-toggle button:hover {
    background: #ffca28;
}

/* Responsive Design */
@media (max-width: 768px) {
    .burger {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #007bff;
        padding: 1rem;
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 1rem;
    }

    main {
        padding: 1rem;
    }

    section {
        padding: 1rem;
    }
}