/* downloads.css - specific styles for the downloads page */

/* Banner Styles */
.downloads-banner {
    position: relative;
    width: 100%;
    height: auto;
    max-height: 550px;
    overflow: hidden;
}

.downloads-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Downloads Introduction Section Styles */
.downloads-intro-section {
    padding: 3rem 0 2rem;
    background-color: #ffffff;
    text-align: center;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.downloads-intro-text {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.6;
    color: #666;
}

/* Downloads Grid Section Styles */
.downloads-grid-section {
    padding: 2rem 0 5rem;
    background-color: #ffffff;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.download-item {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    background-color: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
}

.download-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.download-image {
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 15px;
}

.download-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.download-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.download-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.download-button {
    margin-top: auto;
    text-align: center;
}

.btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-light {
    background-color: #e0e0e0;
    color: #333;
    border: none;
}

.btn-light:hover {
    background-color: #d0d0d0;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .downloads-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .downloads-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .downloads-intro-text {
        padding: 0 1rem;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .download-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .downloads-intro-section {
        padding: 2rem 0 1.5rem;
    }
    
    .downloads-grid-section {
        padding: 1.5rem 0 4rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .download-image {
        height: 180px;
    }
}