/* Home Page Styles for perio-tools.com */

.main-wrapper {
    background-color: #e7e7e7;
}

/* Hero Banner */
.hero-banner {
    width: 1060px;
    max-width: calc(100% - 40px);
    margin: 0 auto 20px auto;
    min-height: 240px;
    display: flex;
    align-items: center;
    background: white url(../img/jpg/0_00-hero-background.jpg) no-repeat -300px center / auto 100%;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.hero-text {
    max-width: 400px;
    padding-left: 50px;
    text-align: left;
}

.hero-text h1 {
    color: #444;
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 400;
}

.hero-text .welcome {
    color: #666;
    font-size: 17px;
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-text .feedback {
    color: #666;
    font-size: 17px;
    line-height: 1.5;
    font-style: normal;
}

/* Content Tiles */
.content-tile {
    width: 1060px;
    max-width: calc(100% - 40px);
    margin: 0 auto 20px auto;
    background: white;
    padding: 40px 50px;
    box-sizing: border-box;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
}

.tile-top {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
}

.tile-image {
    flex-shrink: 0;
    width: 300px;
}

.tile-image img {
    width: 100%;
    height: auto;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.15);
}

.tile-content {
    flex-grow: 1;
}

.tile-content h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 25px;
    margin-top: 0;
    font-weight: 400;
}

.tile-content p {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    font-weight: 300;
}

.read-more {
    display: inline-block;
    color: #17669d;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    margin-top: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    font-family: 'Heebo';
    font-size: 18px;
    font-weight: 300;
}

.read-more:hover {
    color: #0b304a;
}

.action-container {
    display: flex;
    justify-content: flex-end;
}

.start-button {
    background-color: #0b304a;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    border-radius: 4px;
    text-transform: uppercase;
}

.start-button:hover {
    background-color: #17669d;
}

.lang-intro {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 16px;
    color: #666;
}

.lang-box {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 15px 20px;
    margin-top: 20px;
}

.lang-header {
    cursor: pointer;
    color: #17669d;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
}

.toggle-icon {
    background: #444;
    color: white;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    font-size: 14px;
    font-weight: bold;
}

.lang-list {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 0;
    padding-left: 32px;
}

.lang-list.show {
    max-height: 1000px;
    margin-top: 15px;
    padding-bottom: 15px;
}

.lang-list a {
    color: #17669d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.lang-list a:hover {
    color: #0b304a;
}

/* Footer */
.footer-container {
    background: white;
    width: 100%;
    max-width: 1100px;
    margin: 20px auto 0 auto;
}

/* Override global styles for footer and copyright width */
div.footer,
div.copyright {
    width: 100% !important;
    max-width: 1100px !important;
}

/* --- Responsive Queries --- */
@media (max-width: 900px) {

    /* Hero alignment and width */
    .hero-banner {
        width: calc(100% - 30px) !important;
        /* Use consistent margin */
        margin-left: auto !important;
        margin-right: auto !important;
        background-image: none !important;
        min-height: auto;
        padding: 40px 0;
        justify-content: flex-start;
    }

    .hero-text {
        padding: 0 30px;
        max-width: 100%;
        text-align: left !important;
    }

    /* Content / Tiles width */
    .content-tile {
        width: calc(100% - 30px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 25px 20px;
    }

    .tile-top {
        flex-direction: column;
    }

    .tile-image {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Footer responsiveness */
    div.footer {
        flex-direction: column !important;
        height: auto !important;
        padding: 40px 20px !important;
        gap: 30px;
    }

    div.footer-item {
        padding: 0 !important;
        width: 100% !important;
    }

    div.copyright {
        height: auto !important;
        padding: 20px !important;
    }
}
