:root {
    --background-color: #1E1E1E;
    --text-color: #FFFFFF;
    --secondary-color: #333333;
    --primary-color: #1E90FF;
    --highlight-color: orange;
    --card-background: #2A2A2A;
    --card-border: #3A3A3A;
    --transition-speed: 0.3s;
}

body.light-mode {
    --background-color: #FFFFFF;
    --text-color: #222222;
    --secondary-color: #E1E1E1;
    --primary-color: #1E90FF;
    --highlight-color: orange;
    --card-background: #F5F5F5;
    --card-border: #CCCCCC;
}

body {
    font-family: 'Roboto', -apple-system, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

header {
    background-color: var(--secondary-color);
    padding: 1rem;
    position: relative;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

nav ul li a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.5rem;
    transition: color var(--transition-speed);
}

nav ul li a:hover,
nav ul li a:focus,
nav ul li a.active {
    color: var(--highlight-color);
    outline: none;
}

nav ul li a.active {
    text-decoration: underline;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

main {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
}

.news-grid {
    padding: 1rem 0;
}

.articles-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

article {
    background-color: var(--card-background);
    border-radius: 10px;
    border: 1px solid var(--card-border);
    overflow: hidden;
    transition: all var(--transition-speed);
}

article:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

article img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 1.5rem;
}

.date {
    color: #aaa;
    font-size: 0.85rem;
    margin: 0.5rem 0;
    display: block;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--highlight-color);
    font-weight: 600;
    text-decoration: none;
    transition: opacity var(--transition-speed);
}

.read-more:hover {
    opacity: 0.8;
    text-decoration: underline;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
}

label {
    font-weight: bold;
}

input,
textarea {
    padding: 0.6rem;
    border: 1px solid #444;
    border-radius: 6px;
    background-color: #333;
    color: white;
    transition: border-color var(--transition-speed);
}

input:focus,
textarea:focus {
    border-color: var(--primary-color);
    outline: 2px solid var(--highlight-color);
    outline-offset: 2px;
}

button {
    padding: 0.7rem 1.2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color var(--transition-speed);
}

button:hover {
    background-color: #1a7fdd;
}

.review {
    background-color: var(--card-background);
    border-radius: 10px;
    border: 1px solid var(--card-border);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.stars {
    color: var(--highlight-color);
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin: 0.5rem 0;
}

.review-date {
    color: #aaa;
    font-size: 0.8rem;
}

footer {
    background-color: var(--secondary-color);
    padding: 1.5rem;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    gap: 15px;
}

.footer-logo {
    width: 30px;
    height: 30px;
}

.social-links img {
    width: 30px;
    height: 30px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.social-links img:hover {
    opacity: 1;
}

.logo-and-copyright {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.light-mode {
    --background-color: #f5f5f5;
    --text-color: #222;
    --secondary-color: #e1e1e1;
}

#theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    nav ul.show {
        display: flex;
    }
    #theme-toggle {
        right: 3.5rem;
    }
    main {
        padding: 1rem;
    }
}

.about-us {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    max-width: 800px;
    margin: 2rem auto;
    line-height: 1.6;
}

.about-us p {
    margin-bottom: 1.2rem;
}

.about-list {
    list-style: disc inside;
    margin: 1rem 0;
    padding-left: 1rem;
}

.about-list li {
    margin-bottom: 0.5rem;
}

.article-detail {
    max-width: 800px;
    margin: 2rem auto;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 10px;
    overflow: hidden;
}

.article-detail img {
    height: 300px;
    object-fit: cover;
}

.article-detail .article-content {
    padding: 2rem;
}

.article-detail h2 {
    margin-top: 0;
}

.archive-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.archive-section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.archive-group {
    margin-bottom: 2rem;
}

.archive-group h3 {
    margin-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.3rem;
}

.archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column-reverse;
}

.archive-list li {
    margin: 0.5rem 0;
}

.archive-list a {
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.archive-list a:hover {
    color: var(--highlight-color);
    text-decoration: underline;
}

.events-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.events-section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.event-item {
    background-color: var(--card-background);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.event-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.event-item h3 {
    margin-top: 0;
}

.event-date {
    color: #aaa;
    font-size: 0.9rem;
    margin: 0.5rem 0 1rem;
    display: block;
}

.event-item a {
    color: var(--highlight-color);
    text-decoration: none;
    font-weight: 600;
}

.event-item a:hover {
    text-decoration: underline;
}

.disclaimer a {
    color: var(--text-color);
    text-decoration: underline;
    transition: color var(--transition-speed);
}

.disclaimer a:hover {
    color: var(--highlight-color);
}