body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #212529;
}

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

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background-color: #007bff;
    color: #fff;
    position: relative;
}
header .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { font-size: 2em; font-weight: bold; }
.nav-menu { display: flex; align-items: center; }
.nav-menu ul { list-style: none; margin: 0; padding: 0; display: flex; }
.nav-menu ul li { margin-left: 20px; }
.nav-menu a { color: #fff; text-decoration: none; font-size: 1em; }
.switch { position: relative; display: inline-block; width: 60px; height: 34px; margin-right: 20px; }
.hamburger-btn { display: none; flex-direction: column; justify-content: space-around; width: 30px; height: 24px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 10; }
.hamburger-btn .line { width: 30px; height: 3px; background-color: #fff; border-radius: 10px; transition: all 0.3s linear; position: relative; transform-origin: 1px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #2196F3; }
input:checked + .slider:before { transform: translateX(26px); }


/* Main Content (Original Layout) */
.main-content { display: flex; gap: 40px; padding: 40px 0; }
.left-column { flex: 2; }
.right-column { flex: 1; }
.intro h1 { font-size: 2.5em; margin-bottom: 20px; }
.intro p { font-size: 1.1em; line-height: 1.6; color: #555; }
.layout-cards { display: flex; justify-content: space-between; gap: 20px; margin: 40px 0; }
.card { background-color: #ffffff; border-radius: 10px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); padding: 20px; width: calc(33.333% - 20px); text-align: left; }
.card img { width: 100%; border-radius: 5px; margin-bottom: 15px; }
.card h3 { font-size: 1.2em; margin-bottom: 10px; }
.latest-articles h2 { font-size: 1.8em; margin-bottom: 20px; }
.article-link-list a { display: block; background-color: #007bff; color: #fff; padding: 15px; margin-bottom: 10px; border-radius: 8px; text-decoration: none; transition: background-color 0.3s; text-align: center; }
.article-link-list a:hover { background-color: #0056b3; }


/* ---- NEW STYLES FOR THE BLOG SECTION ---- */
.blog {
    margin-top: 40px;
}
.blog h2 {
    font-size: 2em;
    margin-bottom: 30px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    display: inline-block;
}

.blog-post {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 40px;
    overflow: hidden;
}

.post-image-container { position: relative; }
.post-image { width: 100%; height: auto; display: block; }

.post-meta {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.85em;
    backdrop-filter: blur(4px);
}
.post-meta span:last-child::before { content: '•'; margin: 0 8px; }

.post-body { padding: 30px; }
.post-title { font-size: 2em; margin: 0 0 10px 0; }
.post-title a { text-decoration: none; color: inherit; }
.post-title a:hover { color: #007bff; }

.post-content h2, .post-content h3 { margin-top: 30px; margin-bottom: 15px; }
.post-content p { font-size: 1.1em; line-height: 1.7; color: #495057; margin-bottom: 1em; }
.post-content ul, .post-content ol { padding-left: 25px; }
.post-content ul li, .post-content ol li { line-height: 1.7; margin-bottom: 10px; }

/* --- ADDED: STYLES FOR SINGLE ARTICLE PAGE --- */
.single-article-post h1 {
    font-size: 2.8em;
    margin-bottom: 25px;
    line-height: 1.2;
}

.article-main-image {
    width: 100%;
    height: auto; /* This makes the image responsive */
    display: block;
    border-radius: 8px;
    margin-bottom: 20px;
}
/* --- End Blog Section Styles --- */


/* Footer */
footer { background-color: #222; color: #fff; padding: 40px 0; }
footer .container { display: flex; justify-content: space-between; align-items: center; }
.footer-logo { font-size: 1.5em; font-weight: bold; }
.footer-about h3 { font-size: 1.2em; margin-bottom: 10px; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links a { color: #fff; text-decoration: none; }


/* Dark Mode */
body.dark-mode { background-color: #121212; color: #e0e0e0; }
body.dark-mode header { background-color: #1a1a1a; }
body.dark-mode .card { background-color: #1e1e1e; box-shadow: 0 4px 6px rgba(0,0,0,0.2); }
body.dark-mode .intro p { color: #adb5bd; }
body.dark-mode .blog-post { background-color: #1e1e1e; box-shadow: 0 4px 12px rgba(0,0,0,0.4); }
body.dark-mode .post-title a { color: #e0e0e0; }
body.dark-mode .post-title a:hover { color: #58a6ff; }
body.dark-mode .post-content p { color: #adb5bd; }
body.dark-mode footer { background-color: #1a1a1a; }


/* RESPONSIVE AND MOBILE MENU STYLES */
@media (max-width: 768px) {
    /* Mobile Menu */
    .hamburger-btn { display: flex; }
    .nav-menu { position: absolute; top: 100%; left: 0; width: 100%; background-color: #007bff; max-height: 0; overflow: hidden; transition: max-height 0.35s ease-in-out; flex-direction: column; padding-bottom: 10px; }
    body.dark-mode .nav-menu { background-color: #1a1a1a; }
    .nav-menu.open { max-height: 500px; }
    .nav-menu ul { flex-direction: column; width: 100%; align-items: center; margin-top: 20px; }
    .nav-menu ul li { margin: 10px 0; }
    .nav-menu .switch { margin: 20px 0 0 0; }
    .hamburger-btn.open .line1 { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger-btn.open .line2 { opacity: 0; }
    .hamburger-btn.open .line3 { transform: rotate(-45deg) translate(7px, -6px); }

    /* Original Layout Responsive */
    .main-content { flex-direction: column; }
    .layout-cards { flex-direction: column; align-items: center; }
    .card { width: 90%; }
    .post-title { font-size: 1.5em; }
    .single-article-post h1 { font-size: 2em; } /* Adjust single article title for mobile */
    footer .container { flex-direction: column; gap: 20px; text-align: center; }
}