/* ============================================
   SMART VILLAGE INITIATIVE - SHARED STYLES
   ============================================ */

:root {
    --primary-green: #2E5C3F;
    --accent-orange: #E67C2F;
    --cream: #F5F1E6;
    --dark-brown: #3A2A1D;
    --light-green: #4A7C59;
    --off-white: #F8F9FA;
    --charcoal: #333333;
    --youth-blue: #3498db;
    --climate-teal: #1abc9c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--charcoal);
    background-color: var(--off-white);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-green);
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.text-center { text-align: center; }

/* Navigation */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.logo { height: 45px; }

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--charcoal);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--accent-orange); }

/* Breadcrumb */
.breadcrumb {
    background-color: var(--cream);
    padding: 1rem 5%;
}

.breadcrumb a {
    color: var(--primary-green);
    text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: var(--accent-orange);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(230,124,47,0.3);
}

.btn:hover {
    background: #d86c1f;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    box-shadow: none;
}

.btn-outline:hover { background: var(--cream); }

.btn-youth { background: var(--youth-blue); }
.btn-youth:hover { background: #2980b9; }

.btn-climate { background: var(--climate-teal); }
.btn-climate:hover { background: #16a085; }

/* Sections */
.section { padding: 5rem 0; }

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.section-sub {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: var(--dark-brown);
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    border-radius: 28px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,30,10,0.05);
    transition: transform 0.25s;
    border: 1px solid rgba(46,92,63,0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.card:hover { transform: translateY(-6px); }

.card-icon {
    background: #e2f0e9;
    width: 60px;
    height: 60px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-green);
    font-size: 26px;
    flex-shrink: 0;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--primary-green);
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

.card p {
    color: var(--charcoal);
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex-grow: 1;
}

/* SDG Badges */
.sdg-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.sdg-badge {
    background-color: var(--primary-green);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Footer */
footer {
    background: var(--dark-brown);
    color: white;
    padding: 3rem 0 1.5rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo { height: 50px; margin-bottom: 1rem; }

.footer-links { margin: 1.5rem 0; }

.footer-links a {
    color: white;
    margin: 0 1rem;
    text-decoration: none;
}

.footer-links a:hover { color: var(--accent-orange); }

.social-icons a {
    color: white;
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: color 0.3s;
}

.social-icons a:hover { color: var(--accent-orange); }

/* Hero */
.hero {
    background: linear-gradient(rgba(46,92,63,0.85), rgba(46,92,63,0.85)), url('https://images.unsplash.com/photo-1542606835-4e1b6e0032c9?ixlib=rb-4.0.3&auto=format&fit=crop&w=1500&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 8rem 0 5rem;
    text-align: center;
    margin-top: 70px;
}

.hero h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .card-grid { grid-template-columns: 1fr; }
    .footer-links a { display: block; margin: 0.5rem 0; }
}