/* Main Stylesheet */
/* Imports modular CSS files to restore global styling */

@import 'css/base.css';
@import 'css/header.css';
@import 'css/sidebar.css';
@import 'css/cv.css';
@import 'css/writings.css';
@import 'css/banner.css';
@import 'css/footer.css';
@import 'css/carousel.css';

/* Home Page Sections */

/* Home Page Layout (Matching CV) */
.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #F5F2F0;
}

.home-section {
    background-color: #ffffff;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    border-radius: 8px;
    text-align: center;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: #333;
    font-weight: 500;
}

.card-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: #fff;
    border-radius: 8px;
    /* Rounded corners like drawings */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    width: 100%;
    /* Default to full width on mobile */
    max-width: 500px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-img {
    width: 100%;
    height: 350px;
    /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.card-caption {
    padding: 20px;
    text-align: center;
}

/* Mobile Layout Improvements - Industrial Standard */
@media (max-width: 600px) {
    .home-container {
        padding: 20px 16px;
        /* Safe 16px gutters */
        width: 100%;
        box-sizing: border-box;
        /* Ensure padding doesn't add to width */
    }

    .home-section {
        padding: 20px 15px;
        /* Compact internal spacing */
        border-radius: 8px;
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }

    .card-grid {
        gap: 20px;
    }

    .card-img {
        height: 250px;
        /* Proportional height */
    }
}

.card-caption p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.card-caption small {
    display: block;
    color: #666;
    font-size: 0.9rem;
}