/*--------------------------------------------------------------
# Normalize & Variables
--------------------------------------------------------------*/
:root {
    --primary-color: #2e7d32;
    /* Forest Green */
    --primary-dark: #1b5e20;
    --primary-light: #4caf50;
    --secondary-color: #f57f17;
    /* Earthy Orange */
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f9fbf9;
    /* Very light green tint */
    --bg-dark: #1a251b;
    --white: #ffffff;
    --border-color: #e0e0e0;

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/*--------------------------------------------------------------
# Typography & Utilities
--------------------------------------------------------------*/
.text-center {
    text-align: center;
}

.text-white {
    color: var(--white);
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--bg-dark);
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.max-w-3xl {
    max-width: 800px;
}

.section-padding {
    padding: 80px 0;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 120px 0;
    }
}

.sub-title {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    position: relative;
}

.sub-title-light {
    color: var(--primary-light);
}

.section-title-wrapper {
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0;
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-dark);
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.site-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.site-title a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.site-branding img,
.custom-logo-link img {
    max-height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.main-navigation ul {
    display: flex;
    gap: 30px;
}

.main-navigation li a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
}

.main-navigation li a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 0;
    position: relative;
    padding-top: 80px;
    /* offset for fixed header */
}

.hero-content {
    color: var(--white);
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}

/*--------------------------------------------------------------
# Hero Dashboard Layout & Widgets
--------------------------------------------------------------*/
.hero-dashboard-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    text-align: left;
}

.hero-text-column {
    flex: 1 1 50%;
    max-width: 600px;
}

.hero-visual-column {
    flex: 1 1 50%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-dashboard-layout .hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    text-align: left;
}

.hero-dashboard-layout .hero-subtitle {
    margin: 0 0 40px 0;
    text-align: left;
}

.hero-dashboard-layout .hero-actions {
    justify-content: flex-start;
}

/* Dashboard Widgets */
.dashboard-widget {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.card-main {
    flex-grow: 1;
}

.dashboard-widget-row {
    display: flex;
    gap: 20px;
}

.card-sub {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.widget-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
}

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success { background: rgba(76, 175, 80, 0.2); color: #81c784; border: 1px solid rgba(76, 175, 80, 0.3); }
.badge-info { background: rgba(33, 150, 243, 0.2); color: #64b5f6; border: 1px solid rgba(33, 150, 243, 0.3); }
.badge-warning { background: rgba(255, 152, 0, 0.2); color: #ffb74d; border: 1px solid rgba(255, 152, 0, 0.3); }

.stat-large {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-large span {
    font-size: 1.5rem;
    opacity: 0.7;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0 0 15px 0;
}

.progress-bar-bg {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-color));
    border-radius: 4px;
}

.widget-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--white);
}

.widget-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-text {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Charts & Variations */
.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    height: 80px;
    margin-bottom: 20px;
    padding-top: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    gap: 5px;
}

.bar-col .bar {
    width: 100%;
    max-width: 30px;
    background: linear-gradient(0deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    border-radius: 4px 4px 0 0;
    transition: height 1s ease-out;
}

.bar-col span {
    font-size: 0.75rem;
    opacity: 0.7;
}

.farmer-avatars {
    display: flex;
    align-items: center;
    padding-top: 10px;
}

.farmer-avatars .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid #fff;
    margin-left: -10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.farmer-avatars .avatar:first-child {
    margin-left: 0;
}

.farmer-avatars .avatar.more {
    background: var(--bg-dark);
    font-size: 0.9rem;
    font-weight: bold;
}

@media (max-width: 991px) {
    .hero-dashboard-layout {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 100px;
    }
    
    .hero-text-column, .hero-visual-column {
        flex: none;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-dashboard-layout .hero-title,
    .hero-dashboard-layout .hero-subtitle {
        text-align: center;
    }
    
    .hero-dashboard-layout .hero-actions {
        justify-content: center;
    }
    
    .hero-visual-column {
        margin-top: 40px;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .card-main {
        width: 100%;
    }
    
    .dashboard-widget-row {
        width: 100%;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .hero-dashboard-layout .hero-title {
        font-size: 2.2rem;
    }
    .hero-visual-column {
        display: none; /* Hide visual column on very small screens to save space */
    }
}

/*--------------------------------------------------------------
# Pillars Section (Cards)
--------------------------------------------------------------*/
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pillar-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--primary-color);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(46, 125, 50, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.pillar-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.pillar-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
}

@media (min-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.lead-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-light);
}

.check-list {
    margin-top: 30px;
}

.check-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    font-weight: 500;
    color: var(--text-color);
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.image-frame {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.placeholder-img {
    width: 100%;
    padding-top: 120%;
    background-size: cover;
    background-position: center;
}

.stats-box {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary-color);
    color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/*--------------------------------------------------------------
# Featured Service Section
--------------------------------------------------------------*/
.video-placeholder {
    margin: 40px auto 0;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.video-placeholder:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.play-button {
    margin-bottom: 10px;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer {
    background-color: #0d140e;
    color: rgba(255, 255, 255, 0.7);
}

.footer-widgets {
    padding: 80px 0 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-widget .widget-title {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget .widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-menu li,
.footer-service-list li,
.footer-contact-info li {
    margin-bottom: 12px;
}

.footer-menu a,
.footer-service-list a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-menu a:hover,
.footer-service-list a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.site-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
}

.site-info .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
}

/*--------------------------------------------------------------
# Forms and Contact Page
--------------------------------------------------------------*/
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info-panel h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.contact-details-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(46, 125, 50, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.contact-text a,
.contact-text span {
    color: var(--text-light);
    font-size: 1rem;
}

.contact-text a:hover {
    color: var(--primary-color);
}

.form-wrapper {
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

.form-wrapper h3 {
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--text-color);
    background-color: var(--white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
}

/*--------------------------------------------------------------
# Publications / Blog Grid
--------------------------------------------------------------*/
.publications-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .publications-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 992px) {
    .publications-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.publication-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.publication-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.post-thumbnail {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    flex-shrink: 0;
}

.post-thumbnail img,
.placeholder-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.placeholder-fallback {
    background-size: cover;
    background-position: center;
}

.publication-card:hover .post-thumbnail img,
.publication-card:hover .placeholder-fallback {
    transform: scale(1.05);
}

.card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

.entry-header .entry-title {
    font-size: 1.05rem;
    margin-bottom: 5px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.entry-header .entry-title a {
    color: var(--text-color);
}

.entry-header .entry-title a:hover {
    color: var(--primary-color);
}

.entry-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.entry-summary {
    color: var(--text-light);
    margin-bottom: 10px;
    flex-grow: 1;
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.read-more-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: auto;
    font-size: 0.85rem;
}

.read-more-link:hover {
    color: var(--primary-dark);
}

/*--------------------------------------------------------------
# Animations
--------------------------------------------------------------*/
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .menu-toggle {
        display: block;
        padding: 5px;
    }

    .hamburger-box {
        width: 30px;
        height: 24px;
        display: inline-block;
        position: relative;
    }

    .hamburger-inner,
    .hamburger-inner::before,
    .hamburger-inner::after {
        width: 30px;
        height: 2px;
        background-color: var(--text-color);
        position: absolute;
        transition: transform 0.15s ease;
    }

    .hamburger-inner {
        top: 50%;
        margin-top: -1px;
    }

    .hamburger-inner::before {
        content: "";
        top: -8px;
    }

    .hamburger-inner::after {
        content: "";
        bottom: -8px;
    }

    .main-navigation {
        position: static;
        display: block;
    }

    .menu-primary-container {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
        display: none;
    }

    .main-navigation.toggled .menu-primary-container {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }

    .main-navigation li a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .header-actions {
        display: none;
    }

    .slider-controls {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }

    .slider-dots {
        bottom: 20px;
    }
}

/*--------------------------------------------------------------
# Team Section
--------------------------------------------------------------*/
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.team-member {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.member-image {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center top;
}

.member-info {
    padding: 25px;
}

.member-info h3 {
    margin-bottom: 5px;
    font-size: 1.25rem;
}

.member-role {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.member-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(46, 125, 50, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    margin: 0 5px;
    transition: var(--transition);
}

.member-socials a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/*--------------------------------------------------------------
# Projects Grid & Cards
--------------------------------------------------------------*/
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.project-image-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tag-policy { background-color: var(--primary-color); }
.tag-research { background-color: var(--secondary-color); }
.tag-consultancy { background-color: #1976d2; }

.project-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--text-color);
}

.project-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-outline-primary {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.project-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}