/* css/home.css - Homepage styles for parodont.ch */

/* Hero Banner */
.hero-banner {
    width: 1060px;
    max-width: calc(100% - 40px);
    margin: 30px auto 20px auto;
    min-height: 280px;
    display: flex;
    align-items: stretch;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.hero-text {
    width: 40%;
    padding: 50px;
    text-align: left;
    z-index: 10;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
    /* Fallback */
}

.hero-text h1 {
    color: #333;
    font-size: 32px;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 300;
}

.hero-text .welcome {
    color: #555;
    font-size: 19px;
    line-height: 1.6;
    font-weight: 300;
    margin: 0;
}

/* Slider */
.hero-slider {
    position: absolute;
    right: 10px;
    top: 0;
    width: 40%;
    height: 80%;
    z-index: 1;
    padding: 20px;
    box-sizing: border-box;
    margin: 40px;
}

.slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center right;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slider-img.active {
    opacity: 1;
}

.content-tiles-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.content-tile {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 15px;
    cursor: pointer;
}

.content-tile:hover {
    transform: translateX(8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-blue);
}

.tile-image {
    width: 280px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    margin: 20px;
}

.tile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.content-tile:hover .tile-image img {
    transform: scale(1);
}

.tile-body {
    padding: 0 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    /* Ensures text truncation/wrapping works in flex */
}

.tile-body h2 {
    margin: 0 0 10px 0;
    font-weight: 300;
    font-size: 28px;
    color: black;
}

.tile-body p {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    font-weight: 300;
}

.tile-actions {
    flex-shrink: 0;
    padding: 0 20px;
}

.btn-more {
    display: inline-block;
    padding: 12px 35px;
    background-color: #00274d;
    color: white !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 39, 77, 0.2);
    box-sizing: border-box;
    margin-top: 70px;
}

.btn-more:hover {
    background-color: #003d7a;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 39, 77, 0.3);
}

@media (max-width: 900px) {
    .hero-banner {
        width: calc(100% - 20px) !important;
        margin: 20px auto !important;
        min-height: initial;
        padding: 0;
        justify-content: flex-start;
        border-radius: 8px;
    }

    .hero-slider {
        display: none;
    }

    .hero-text {
        width: 100% !important;
        padding: 30px 20px;
        text-align: left;
    }

    .hero-text h1 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .hero-text .welcome {
        font-size: 16px;
    }

    .content-tiles-container {
        padding: 40px 15px;
        gap: 20px;
    }

    .content-tile {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
    }

    .content-tile:hover {
        transform: translateY(-5px);
    }

    .tile-image {
        width: calc(100% - 40px);
        margin: 20px auto 0 auto;
        height: auto;
        max-height: 200px;
    }

    .tile-body {
        padding: 20px;
    }

    .tile-actions {
        padding: 0 20px 20px 20px;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        justify-content: flex-end;
    }

    .btn-more {
        display: inline-block;
        width: auto;
        margin: 15px 0 0 0;
        text-align: center;
        white-space: nowrap;
        line-height: 1.4;
    }
}