/* Links page styles - mobile-first approach */

/* Section styles */
.section {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section h2 {
    color: #4a7c3f;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #5a8c4f;
    padding-bottom: 0.5rem;
}

/* Link grid */
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.link-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #4a7c3f;
    transition: transform 0.3s, box-shadow 0.3s;
}

.link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.link-card h3 {
    color: #4a7c3f;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.link-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.link-card a {
    display: inline-block;
    color: #2554C7;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.link-card a:hover {
    background-color: #e7f3ff;
}

/* Link list */
.link-list {
    list-style: none;
}

.link-list li {
    background: #f8f9fa;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid #5a8c4f;
}

.link-list a {
    color: #2554C7;
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.link-list a:hover {
    text-decoration: underline;
}

.link-list .description {
    color: #666;
    font-size: 0.9rem;
}

/* Featured box */
.featured-box {
    background: linear-gradient(135deg, #4a7c3f 0%, #5a8c4f 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.featured-box h2 {
    color: white;
    border: none;
    margin-bottom: 1rem;
}

.featured-box a {
    display: inline-block;
    background: white;
    color: #4a7c3f;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    margin: 0.5rem;
    transition: transform 0.3s;
}

.featured-box a:hover {
    transform: translateY(-2px);
}

/* Sponsor grid */
.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.sponsor-card {
    background: white;
    padding: 1.25rem;
    border-radius: 6px;
    text-align: center;
    border: 2px solid #e0e0e0;
    transition: border-color 0.3s;
}

.sponsor-card:hover {
    border-color: #4a7c3f;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 1rem;
    text-align: center;
    margin-top: 3rem;
}

footer a {
    color: white;
    text-decoration: none;
}

/* Tablet responsive styles */
@media (max-width: 768px) {
    .link-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 1.5rem;
    }

    .featured-box {
        padding: 1.5rem;
    }

    .sponsor-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Mobile-specific styles */
@media (max-width: 480px) {
    .section {
        padding: 1rem;
    }

    .link-card {
        padding: 1rem;
    }

    .featured-box {
        padding: 1rem;
    }

    .featured-box a {
        display: block;
        margin: 0.5rem 0;
    }

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