:root {
    --bg-color: #225722;
    --card-color: #ffffff;
    --text-color: #555;
    --heading-color: #333;
    --primary-accent: #4CAF50;
    --primary-accent-hover: #45a049;
    --white-color: #ffffff;
    --light-gray: #f9f9f9;
    --border-color: #e9e9e9;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

header {
    background-color: var(--bg-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    height: 40px;
    margin-right: 12px;
}

.logo h1 {
    font-size: 22px;
    font-weight: 600;
    color: var(--white-color);
}

.main-nav {
    display: block;
}
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}
.main-nav ul li a {
    color: var(--white-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
.main-nav ul li a:hover {
    color: #ccc;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-actions {
    display: flex;
    align-items: center;
}

.header-actions .btn {
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-left: 10px;
    border: 1px solid var(--white-color);
}
.header-actions .btn-secondary {
    background-color: transparent;
    color: var(--white-color);
}
.header-actions .btn-secondary:hover {
    background-color: var(--white-color);
    color: var(--bg-color);
}
.header-actions .btn-primary {
    background-color: var(--white-color);
    border-color: var(--white-color);
    color: var(--bg-color);
}
.header-actions .btn-primary:hover {
    opacity: 0.9;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--white-color);
    border-radius: 10px;
    transition: all 0.3s linear;
}

main { padding: 50px 0; }
.content-card { background-color: var(--card-color); border-radius: var(--border-radius); box-shadow: var(--shadow); padding: 30px; }
.welcome-section { text-align: center; }
.welcome-section h2 { font-size: 28px; font-weight: 700; color: var(--heading-color); }
.subtitle { font-size: 16px; color: var(--text-color); margin-bottom: 25px; }
.banner img { width: 100%; border-radius: var(--border-radius); margin-bottom: 30px; }
.btn-cta { display: inline-block; background: linear-gradient(90deg, var(--primary-accent), var(--primary-accent-hover)); color: var(--white-color); padding: 15px 40px; text-align: center; text-decoration: none; border-radius: 50px; font-weight: 600; font-size: 18px; text-transform: uppercase; transition: transform 0.3s ease, box-shadow 0.3s ease; box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4); }
.btn-cta:hover, .btn-cta:focus { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(76, 175, 80, 0.5); outline: none; }
.separator { height: 1px; background-color: var(--border-color); margin: 40px 0; }
.details-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.details-grid h3 { font-size: 22px; margin-bottom: 15px; color: var(--heading-color); }
table { width: 100%; border-collapse: collapse; }
table td { padding: 12px 0; border-bottom: 1px solid var(--border-color); }
table tr:last-child td { border-bottom: none; }
table tr td:first-child { font-weight: 600; }
footer { text-align: center; padding: 40px 0; color: rgba(255, 255, 255, 0.7); }

@media (max-width: 992px) {
    .main-nav {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        background-color: var(--card-color);
        border-radius: 8px;
        box-shadow: var(--shadow);
        width: 200px;
        overflow: hidden;
    }
    .main-nav.is-open {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    .main-nav ul li a {
        color: var(--heading-color);
        display: block;
        padding: 12px 20px;
        font-weight: 500;
    }
    .main-nav ul li a:hover {
        background-color: var(--light-gray);
    }
    .main-nav ul li:not(:last-child) {
        border-bottom: 1px solid var(--border-color);
    }

    .header-actions {
        margin-left: auto;
    }
    .menu-toggle {
        display: flex;
    }
}

@media (min-width: 768px) {
    .content-card { padding: 40px; }
    .details-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .logo h1 { display: none; }
    .header-actions .btn {
        padding: 6px 14px;
        font-size: 14px;
        margin-left: 5px;
    }
    .header-right { gap: 10px; }
    .content-card { padding: 20px; }
    .welcome-section h2 { font-size: 24px; }
    .btn-cta { font-size: 16px; padding: 12px 30px; }
}

/* Page-specific styles for About, Contact, etc. */
.page-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 30px;
}

.text-content h3 {
    font-size: 22px;
    color: var(--heading-color);
    margin-top: 20px;
    margin-bottom: 10px;
}

.text-content p, .text-content li {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 15px;
}

.text-content ul {
    list-style-position: inside;
    padding-left: 10px;
}

/* Contact Page Styles */
.contact-details {
    margin-top: 30px;
    display: grid;
    gap: 25px;
}

.contact-item {
    background-color: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.contact-item h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: var(--heading-color);
}

.contact-item p {
    margin-bottom: 20px;
    color: var(--text-color);
    min-height: 48px; /* To keep cards of the same height */
}

.contact-item .btn-contact {
    display: inline-block;
    background-color: var(--primary-accent);
    color: var(--white-color);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.contact-item .btn-contact:hover {
    background-color: var(--primary-accent-hover);
}

@media (min-width: 768px) {
    .contact-details {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* New Blog Page Layout Styles */
.new-blog-layout {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.new-blog-item {
    display: block;
    text-decoration: none;
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.new-blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.post-thumbnail-new {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.post-content-new {
    padding: 20px;
}

.post-content-new .post-meta {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 10px;
    display: block;
}

.post-content-new .post-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--heading-color);
}

.post-content-new .post-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
}

/* Override previous blog styles if they exist */
.blog-post-list {
    grid-template-columns: 1fr !important;
}
.blog-post-item {
    flex-direction: column !important;
}