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

:root {
    --earth-brown: #8B6F47;
    --earth-tan: #D4B896;
    --earth-light: #ECE6DB; 
    --earth-dark: #4A3728;
    --accent-green: #6B8E23;
    --accent-orange: #D97330;
    --text-primary: #2C2416;
    --text-secondary: #6B5D4F;
    --white: #FFFFFF;
    --gray-light: #F8F6F3;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
}

/* NETWORK SECTION */
.network-section {
    padding: 80px 20px;
    background: var(--white);
}

.network-container {
    max-width: 1400px;
    margin: 0 auto;
}

.network-intro {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
}

.network-intro h2 {
    font-size: 2.5rem;
    color: var(--earth-dark);
    margin-bottom: 20px;
}

.network-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* FILTER BAR */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 12px 24px;
    background: var(--gray-light);
    border: 2px solid transparent;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: var(--earth-light);
    color: var(--earth-dark);
}

.filter-btn.active {
    background: var(--earth-brown);
    color: var(--white);
    border-color: var(--earth-dark);
}

/* LINKS GRID */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.link-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: solid 1px var(--earth-light);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-image {
    position: relative;
    height: 200px;
    background: var(--gray-light);
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.link-card:hover .card-image img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 100%);
}

.card-content {
    padding: 25px;
}

.category-tag {
    display: inline-block;
    padding: 5px 12px;
    background: var(--earth-light);
    color: var(--earth-brown);
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--earth-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.card-url {
    font-size: 0.9rem;
    color: #0693e3;
    text-decoration: none;
    word-break: break-all;
}

.external-icon {
    display: inline-block;
    margin-left: 5px;
    opacity: 0.7;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .links-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .network-intro h2 {
        font-size: 2rem;
    }

    .links-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .filter-bar {
        gap: 8px;
    }

    .filter-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .network-intro h2 {
        font-size: 1.5rem;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }

    .filter-btn {
        flex: 1 1 calc(50% - 8px);
        min-width: 140px;
    }
}

