* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f1f8f7;
    color: #102c43;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background-color: #001e39;
    color: white;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #00a8a8;
}

.intranet-title {
    font-size: 28px;
    font-weight: bold;
}



.nameday {
    flex: 1;
    margin: 0 30px;
    text-align: center;
    font-size: 17px;
    color: white;
}

.nameday-label {
    font-weight: bold;
}

.nameday-names {
    margin-left: 5px;
}



.search-bar {
    width: 300px;
    padding: 12px 16px;

    border: none;
    border-radius: 6px;

    font-size: 16px;
}



.login-button {
    display: inline-block;
    padding: 10px 22px;
    background-color: #00a8a8;
    color: white;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.login-button:hover {
    background-color: #018b91;
}



.container {
    display: flex;
    width: 100%;
}

.left-column {
    width: 66%;
    padding: 30px;
}

.right-column {
    width: 34%;
    padding: 30px;
}




.banner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.banner {
    display: block;
    text-decoration: none;
    border-radius: 9px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 30, 57, 0.10);
    transition:
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.banner-img {
    width: 100%;
    height: 300px;
    background-color: #f1f8f7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.banner-img img {
    object-fit: contain;
    width: 100%;
    height: auto;
}

.banner-description {
    min-height: 50px;
    padding: 12px 15px;
    background-color: #f1f8f7;
    border-top: 2px solid #8fd3d0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #102c43;
    font-size: 17px;
    font-weight: bold;
    line-height: 1.3;
}

.banner:hover {
    box-shadow: 0 7px 18px rgba(0, 30, 57, 0.28);
    transform: translateY(-2);
}



.calendar {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    background-color: #ffffff;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow:
        0 3px 10px rgba(0, 30, 57, 0.12);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background-color: #01636a;
    color: white;
}

.calendar-month {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}

.calendar-nav {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 5px;
    background-color: transparent;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.calendar-nav:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-bottom: 1px solid #e1eeee;
}

.calendar-weekdays div {
    padding: 10px 2px;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    color: #102c43;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: white;
    color: #102c43;
    font-size: 15px;
    cursor: pointer;
}

.calendar-day.empty {
    cursor: default;
}

.calendar-day:not(.empty):hover {
    background-color: #f1f8f7;
}

.calendar-day.today {
    background-color: #01636a;
    color: white;
    font-weight: bold;
    border-radius: 4px;
}

.calendar-day.selected {
    outline: 2px solid #00a8a8;
    outline-offset: -2px;
    font-weight: bold;
}

.calendar-selected {
    padding: 12px 15px;
    border-top: 1px solid #e1eeee;
    font-size: 14px;
    color: #01636a;
    text-align: center;
}



.news-section {
    margin: 0 auto;
    margin-top: 25px;
    padding: 15px;
    background-color: #ffffff;
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 30, 57, 0.10);

}

.news-title {
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #00a8a8;
    display: inline-block;
    font-size: 22px;
    color: #102c43;
}

.news-card {
    padding: 10px 0;
    border-bottom: 1px solid #dcebea;
}

.news-card:last-of-type {
    border-bottom: none;
}

.news-card-date {
    margin-bottom: 4px;
    font-size: 11px;
    color: #6d7d87;
}

.news-card-title {
    margin: 0 0 5px 0;
    font-size: 16px;
    line-height: 1.3;
    color: #102c43;
}

.news-card-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #536872;
}

.news-card-link {
    display: inline-block;
    margin-top: 5px;
    color: #01636a;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
}

.news-card-link:hover {
    color: #00a8a8;
    text-decoration: underline;
}

.more-news {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 9px;
    background-color: #01636a;
    color: white;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.more-news:hover {
    background-color: #00a8a8;
}




@media (max-width: 768px) {

    .header {
        padding: 15px;
    }

    .search-bar {
        width: 200px;
    }

    .container {
        flex-direction: column;
    }

    .left-column,
    .right-column {
        width: 100%;
    }

    .banner-grid {
        grid-template-columns: 1fr;
    }

}