/**
 * Front Page Home Styling
 * @package StandAloneProject
 */

/* Hero Section */
.home-hero {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 120px 20px;
}

@media (max-width: 768px) {
    .home-hero {
        padding: 80px 20px;
    }
    .home-hero h1 {
        font-size: 2rem !important;
    }
    .home-hero p {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .home-hero {
        padding: 60px 20px;
    }
    .home-hero h1 {
        font-size: 1.5rem !important;
    }
    .home-hero a {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* Services Grid */
.home-services-grid,
.home-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

@media (max-width: 1024px) {
    .home-services-grid,
    .home-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .home-services-grid,
    .home-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .home-services-grid,
    .home-posts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Post Cards */
article {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

article:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    border-color: #2563eb !important;
}

article h3 a:hover {
    color: #2563eb !important;
}

article a:not(h3 a):hover {
    opacity: 0.8;
}

/* Responsive Images */
@media (max-width: 480px) {
    article {
        border-radius: 8px !important;
    }
}

/* Loading State */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

article,
.home-hero,
section {
    animation: fadeIn 0.6s ease-out;
}

/* Print Styles */
@media print {
    .home-hero {
        background: white;
        color: #000;
    }
    article {
        page-break-inside: avoid;
        border: 1px solid #000 !important;
    }
}
