/* Basic Reset and Fonts */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    background-color: #f4f7f6;
    color: #333;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 2rem 0;
    text-align: center;
    border-bottom: 5px solid #3498db;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

header p {
    margin: 5px 0 0;
    font-size: 1.1rem;
    color: #bdc3c7;
}

/* Search Section */
.search-section {
    background: #fff;
    padding: 2rem;
    margin-top: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.search-section h2 {
    margin-top: 0;
    color: #34495e;
}

#searchInput {
    width: 80%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Added for better sizing */
}

#searchInput:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.5);
}

/* Software Grid */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 2rem;
}

.software-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.software-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.software-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 15px;
    object-fit: contain;
}

.software-card h3 {
    margin: 10px 0;
    color: #2c3e50;
}

.software-card p {
    font-size: 0.9rem;
    color: #555;
    flex-grow: 1; /* Pushes button to the bottom */
}

.tag {
    background-color: #eaf2f8;
    color: #2e86c1;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin: 10px 0;
}

.download-btn {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.2s ease;
    margin-top: auto; /* Pushes button to the bottom */
}

.download-btn:hover {
    background-color: #2980b9;
}

/* SEO Article */
.seo-article {
    background: #fff;
    padding: 2rem;
    margin-top: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.seo-article h2, .seo-article h3, .seo-article h4 {
    color: #2c3e50;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
}

.seo-article p, .seo-article li {
    font-size: 1.1rem;
    color: #34495e;
    text-align: justify;
}

.seo-article hr {
    border: 0;
    height: 1px;
    background-color: #ddd;
    margin: 2rem 0;
}

/* Footer */
footer {
    background-color: #34495e;
    color: #ecf0f1;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer p {
    margin: 5px 0;
}

footer strong {
    color: #f1c40f;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    /* Center search box on mobile */
    #searchInput {
        width: 100%;
    }
}