@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

/* Bāzes iestatījumi un box-sizing resets visiem pārlūkiem */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Lato', sans-serif;
}

h1, h2, h3, p {
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header stili */
header {
    min-height: 200px;
    box-shadow: 0px 10px 18px 0px rgba(0, 0, 0, 0.25);
    background: #ff000a;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 41px;
    flex-wrap: wrap;
}

header div.left img {
    max-width: 200px;
}

header div.center * {
    margin: 0;
}

header div.center .time {
    color: #ffffff;
    font-family: 'Lato', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    text-align: center;
}

header div.center .date {
    color: #ffffff;
    font-family: 'Lato', sans-serif;
    font-size: 3rem;
    font-weight: 400;
    text-align: center;
}

header div.center .vārda_diena {
    color: #ffffff;
    font-family: sans-serif;
    font-size: 2rem;
    font-weight: 400;
    text-align: center;
}

header div.right h3 {
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 2.5rem;
    font-weight: 500;
    text-align: center;
}

header div.right .forecast {
    display: flex;
    justify-content: center;
    align-items: center;
}

header div.right .forecast .temperature {
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

header div.right #forecast_icon {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    margin-right: 30px;
}

/* Konteiners un Slaidera sadaļa */
.container {
    width: 100%;
    margin-top: 20px;
    padding: 10px 20px;
    overflow-x: hidden; /* Svarīgi, lai novērstu horizontālo skrollu no Slick */
}

.coming_events, .todays_events {
    margin-bottom: 30px;
}

.container .coming_events {
    height: auto;
}

.container .title1 {
    color: #000000;
    font-family: Inter, sans-serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    margin: 20px 0 !important;
}

.container .todays_events_wrapper,
.container .coming_events_wrapper {
    width: 100%;
    margin: 0 auto;
}

.container .slick-dots {
    position: relative;
}

.container .event-card {
    background: #ff000a;
    padding: 25px 10px;
    margin: 0 10px;
    box-sizing: border-box;
}

.container .event-card p {
    margin: 10px;
}

.container .event_image {
    width: 100%;
    height: 212px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Event teksts */
.event_title, 
.event_day, 
.event_date, 
.event_time, 
.event_location {
    color: #ffffff;
    font-family: sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
}

.event_title {
    font-size: 2rem;
    height: 75px;
    font-weight: bold;
    overflow: hidden;
}

.event_location {
    height: 50px;
    overflow: hidden;
}

.event_day {
    text-transform: capitalize;
    font-size: 1.5rem;
    font-weight: 700;
}

.todays_events_wrapper .event_title {
    height: auto;
}

/* Navigācija un citi elementi */
.slick-prev, .slick-next {
    z-index: 10;
}

.text-center {
    text-align: center;
} 

.p-3 {
    padding: 3rem;
}

.admin_panel {
    padding: 10px;
    text-align: center;
    background-color: #ffff00;
}

.admin_panel a {
    color: #ff000a;
}

footer {
    background: #ff000a;
    padding: 10px;
    color: #ffffff;
    text-align: center;
    width: 100%;
}

/* MEDIA QUERIES (Sakārtotas no mazākā uz lielāko ekrānu) */

/* Mobilās ierīces */
@media (max-width: 777px) {
    header {
        padding: 10px 5px;
        flex-direction: column;
    }

    header * {
        font-size: 1.5rem !important;
    }

    header .left img {
        max-width: 85px !important;
    }

    header .center {
        margin-top: 0;
    }

    header .vārda_diena {
        font-size: 1rem !important;
    }

    header .right {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    header .right h3 {
        display: none;
    }

    header .right .forecast {
        margin-top: 0;
    }

    header .right #forecast_icon {
        margin: 0 !important;
    }

    .container {
        margin-top: 5px;
    }

    .container .title1 {
        font-size: 2rem;
    }
}

/* Vidēji ekrāni (Planšetes un mazie klēpjdatori) */
@media (min-width: 768px) and (max-width: 1120px) {
    header {
        flex-direction: column;
    }

    header img {
        width: 200px;
    }

    .title1 {
        font-size: 3rem;
    }
}

/* Lielie ekrāni */
@media (min-width: 1600px) {
    header {
        padding: 0 200px;
    }
}