@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Roboto:wght@400;500&display=swap');

:root {
    --primary-color: #2c5b43;
    --secondary-color: #5d8a6a;
    --accent-color: #f7b733;
    --text-color: #333;
    --bg-color: #f4f7f5;
    --white-color: #ffffff;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

h2 {
    font-size: 2.5rem;
    text-align: center;
}

section {
    padding: 60px 0;
}

.section-bg {
    background-color: var(--white-color);
}

.cta-button {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--accent-color);
    color: var(--white-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background-color: #f8c85b;
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: top 0.3s;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 87px;
    margin-right: 10px;
    margin-bottom: -10px;
    margin-top: -15px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 5px 15px;
    font-weight: 500;
    transition: color var(--transition-speed);
}

.nav-links a:hover {
    color: var(--accent-color);
}

.lang-switcher {
    margin-left: 20px;
}

.lang-switcher a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 5px;
}

.lang-switcher a.active {
    color: var(--primary-color);
    font-weight: 700;
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
#hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('hero-background.webp');
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#hero .container {
    max-width: 800px;
}

#hero h1 {
    font-size: 3.5rem;
    color: var(--white-color);
    margin-bottom: 20px;
}

#hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

/* About Section */
#about ul {
    list-style: none;
    padding-left: 0;
}

#about li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

#about li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

/* Themes Section */
.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.theme-card {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.theme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.theme-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.theme-card h3 {
    font-size: 1.2rem;
}

/* Stats Section */
#stats .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    align-items: flex-start;
    margin-top: 40px;
}
#stats .chart-container {
    text-align: center;
}
#stats h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}
#stats canvas {
    max-width: 100%;
    max-height: 400px;
    margin: 0 auto;
}

/* Articles Section */
#articles .articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

#articles .article-card {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    background: var(--white-color);
    padding: 25px;
    border-left: 5px solid var(--secondary-color);
    border-radius: 5px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

#articles .article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

#articles .article-preview {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    border-radius: 5px;
    overflow: hidden;
}

#articles .article-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#articles .article-content {
    flex-grow: 1;
}

#articles .article-card h3 {
    font-size: 1.3rem;
    margin-top: 0;
}

#articles .article-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

#articles .article-card h3 a:hover {
    color: var(--accent-color);
}

#articles .article-card .authors {
    font-style: italic;
    color: #555;
    margin-bottom: 15px;
}

/* FAQ Section */
#faq .faq-container {
    max-width: 800px;
    margin: 40px auto 0;
}
.faq-item {
    background-color: var(--white-color);
    border-radius: 5px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
}
.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: transform 0.3s;
}
.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
}
.faq-answer p {
    padding: 0 20px 20px;
}
.faq-item.active .faq-answer {
    max-height: 300px; /* Adjust as needed */
}

/* Audience Section */
#audience .content {
    display: flex;
    align-items: center;
    gap: 40px;
}

#audience .text-content {
    flex: 1;
}

#audience .image-content {
    flex: 1;
    max-width: 500px;
}

#audience img {
    width: 100%;
    border-radius: 10px;
}

#audience ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

#audience li {
    position: relative;
    padding-left: 25px;
}

#audience li::before {
    content: '›';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* Contribution Section */
#contribution .container {
    text-align: center;
    max-width: 800px;
}

#contribution p {
    margin-bottom: 20px;
}

#contribution .cta-button {
    margin-top: 20px;
}

/* Partners Section */
#partners .logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
    margin-top: 40px;
}

#partners .logo-item {
    text-align: center;
}

#partners .logo-item img {
    max-width: 120px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter var(--transition-speed), opacity var(--transition-speed);
}

#partners .logo-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Location Section */
#location .content {
    display: flex;
    gap: 40px;
    align-items: center;
}

#location .text-content { flex: 1; }
#location .image-content { flex: 1; max-width: 500px; }

#location img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 40px 0 20px;
    text-align: center;
}

footer h2, footer h3 {
    color: var(--white-color);
}

footer .social-links a {
    color: var(--white-color);
    font-size: 2rem;
    margin: 0 10px;
    transition: color var(--transition-speed);
}

footer .social-links a:hover {
    color: var(--accent-color);
}

footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

footer .footer-links a {
    color: var(--white-color);
    text-decoration: none;
    opacity: 0.8;
}

footer .footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

footer .copyright {
    margin-top: 30px;
    font-size: 0.9rem;
    opacity: 0.7;
}
/* Article Page Layout */
.page-wrapper {
    padding: 110px 0;
}

.page-wrapper .container {
    display: flex;
    gap: 40px;
}

.article-container {
    flex: 3;
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    min-width: 0; /* Prevents flex item from overflowing */
}

.sidebar {
    flex: 1;
    min-width: 250px;
}

.sidebar-widget {
    background: var(--white-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 15px;
}

.sidebar ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.sidebar ul li a:hover {
    color: var(--accent-color);
}

.article-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.article-authors {
    font-style: italic;
    color: #555;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.article-content {
    font-size: 1.1rem;
}

.article-content h2 {
    font-size: 1.6rem;
    margin-top: 40px;
    margin-bottom: 20px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content blockquote {
    border-left: 4px solid var(--secondary-color);
    margin: 20px 0;
    padding-left: 20px;
    font-style: italic;
    color: #555;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 20px 0;
}

/* Article Navigation */
.article-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.nav-block {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-color);
    padding: 15px;
    border-radius: 8px;
    transition: background-color 0.3s, box-shadow 0.3s;
    background: var(--bg-color);
}

.nav-block:hover {
    background-color: var(--white-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}

.nav-block.next {
    text-align: right;
    flex-direction: row-reverse;
}

.nav-block img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

.nav-block-content span {
    display: block;
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 5px;
}

.nav-block-content h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    margin: 0;
}


/* Responsive Design */
@media (max-width: 992px) {
    h2 { font-size: 2rem; }
    #hero h1 { font-size: 2.8rem; }
    #audience .content, #location .content { flex-direction: column; }
    #audience .image-content, #location .image-content { margin-top: 30px; }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--white-color);
        text-align: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
    }
    .nav-links.active {
        max-height: 500px; /* Adjust as needed */
        padding: 10px 0;
    }
    .nav-links li { padding: 10px 0; }
    .menu-toggle { display: block; }

    #audience ul { grid-template-columns: 1fr; }
    #stats .stats-grid { grid-template-columns: 1fr; }

    .lang-switcher {
        margin-left: auto;
        margin-right: 20px;
    }
}

@media (max-width: 576px) {
    #hero h1 { font-size: 2.2rem; }
    #hero p { font-size: 1.1rem; }
    .themes-grid { grid-template-columns: 1fr; }
    #articles .article-card {
        flex-direction: column;
    }
    #articles .article-preview {
        width: 100%;
        height: 180px;
    }
}
/* Responsive */
@media (max-width: 992px) {
    .page-wrapper .container {
        flex-direction: column-reverse;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--white-color);
        text-align: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
    }
    .nav-links.active {
        max-height: 500px;
        padding: 10px 0;
    }
    .nav-links li { padding: 10px 0; }
    .menu-toggle { display: block; }

    .lang-switcher {
        margin-left: auto;
        margin-right: 20px;
    }
    .article-navigation {
        flex-direction: column;
    }
}
@media (max-width: 576px) {
    .article-container {
        padding: 20px;
    }
    .article-header h1 {
        font-size: 1.8rem;
    }
}
