:root {
    --primary-color: #10b981;
    /* Emerald 500 */
    --secondary-color: #34d399;
    /* Emerald 400 */
    --accent-color: #f59e0b;
    /* Amber 500 */
    --text-color: #1f2937;
    /* Gray 800 */
    --bg-color: #f8fafc;
    /* Slate 50 */
    --white: #ffffff;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-500: #64748b;
    --danger: #ef4444;
    --success: #10b981;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1rem;
}

.col-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding: 0 1rem;
}

.col-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 1rem;
}

@media(max-width: 768px) {

    .col-8,
    .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--gray-100);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
    font-size: 1rem;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 6px 8px rgba(16, 185, 129, 0.3);
    transform: translateY(-1px);
}

.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-control::placeholder {
    color: #9ca3af;
}

/* Auth Pages */
.auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.auth-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 450px;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 2rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Hero Section */
.hero {
    padding: 4rem 1rem;
    background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
    color: var(--text-color);
    border-radius: 0 0 3rem 3rem;
    margin-bottom: 5rem;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    justify-content: space-between;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-image {
    flex: 1;
    display: none;
}

@media(min-width: 992px) {
    .hero-image {
        display: block;
    }
}

.hero-img-rounded {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}

.hero-img-rounded:hover {
    transform: rotate(0deg) scale(1.02);
}


.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.hero h1 {
    color: var(--text-color);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero h1 span {
    color: var(--primary-color);
}

.tagline {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--gray-500);
    position: relative;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    position: relative;
}

.hero .btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.hero .btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Mission Section */
.mission-section {
    padding: 5rem 0;
    background-color: var(--white);
    margin-bottom: 5rem;
}

.mission-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.mission-image,
.mission-text {
    flex: 1;
    min-width: 300px;
}

.mission-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.mission-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.mission-text p {
    font-size: 1.1rem;
    color: var(--gray-500);
    margin-bottom: 2rem;
}

.mission-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.mission-list i {
    color: var(--success);
    margin-right: 0.5rem;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--gray-500);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding-bottom: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    border: none;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-card .icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: #ecfdf5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.feature-card p {
    color: var(--gray-500);
    line-height: 1.6;
}

/* Recent Posts Section */
.recent-posts-section {
    padding: 4rem 0;
    margin-bottom: 4rem;
}

.recent-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.recent-post-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: all 0.3s;
}

.recent-post-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.post-date {
    color: var(--gray-500);
}

.post-excerpt {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.post-author {
    font-weight: 600;
    color: var(--primary-color);
}

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1.5rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-danger {
    background-color: #fee2e2;
    color: var(--danger);
}

.alert-success {
    background-color: #dcfce7;
    color: var(--success);
}

/* Feed & Cards */
.card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--gray-200);
}

.create-post-card {
    border-top: 4px solid var(--primary-color);
}

.create-post-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.post-content {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.post-footer {
    border-top: 1px solid var(--gray-100);
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.validations-group {
    display: flex;
    gap: 0.5rem;
}

.btn-link {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.btn-link:hover {
    color: var(--danger);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 9999px;
    vertical-align: middle;
}

.badge-impact {
    background-color: var(--primary-color);
    color: var(--white);
    margin-left: 0.5rem;
}

.badge-warning {
    background-color: #f59e0b;
    color: var(--white);
}

.badge-success {
    background-color: var(--success);
    color: var(--white);
}

.text-muted {
    color: #6b7280;
    font-size: 0.9rem;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
}

.btn-outline-success {
    border-color: var(--success);
    color: var(--success);
    background: transparent;
}

.btn-outline-success:hover {
    background: var(--success);
    color: white;
}

.btn-outline-primary {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--secondary-color);
    color: white;
}

.btn-outline-warning {
    border-color: #d97706;
    color: #d97706;
    background: transparent;
}

.btn-outline-warning:hover {
    background: #d97706;
    color: white;
}

/* Footer */
.footer {
    background-color: var(--white);
    color: var(--gray-500);
    padding: 4rem 0;
    margin-top: auto;
    text-align: center;
    border-top: 1px solid var(--gray-100);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.2rem;
    }
}