﻿body, html {
    margin: 0;
    padding: 0;
}

/* Container for all events */
.events-container {
    margin: 0 auto 2rem;
    padding: 30px;
}

.heroHuvuddiv {
    background-color: #4f7c84;
    color: #fff;
    /*padding: 100px 0;*/
    margin: 0;
}
/* Hero Section */
.event-hero {
    /*background: linear-gradient(to bottom, #C0C0C0, #333);*/
    color: #fff;
    /*height: 925px;*/
    height: auto;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    padding-left: 2rem;
    padding-top: 29rem;
    width: 100vw; /* Ensure the div spans the full viewport width */
    position: relative; /* Ensure the div is positioned correctly */
    left: 50%; /* Move the div to the center */
    right: 50%; /* Move the div to the center */
    margin-left: -50vw; /* Adjust the margin to center the div */
    margin-right: -50vw; /* Adjust the margin to center the div */
    background-image: url("https://skane.com/app/uploads/2025/01/international-house-woman-in-aula-header.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 6rem;
}

    .event-hero h1 {
        font-size: 2.5rem;
        color: white;
        font-family: ivarDisplay;
        font-weight: 700;
    }

.subH1 {
    font-size: 2.25rem;
    font-weight: 900;
    color: white;
    font-family: 'Gotham', serif;
    font-weight: 900;
}

@media (min-width: 120rem) {
    .event-hero h1 {
        font-size: 5rem;
    }
}

@media (min-width: 62rem) {
    .event-hero h1 {
        font-size: 4rem;
    }

    .subH1 {
        font-size: 4rem;
    }
}

@media (min-width: 48rem) {
    .event-hero h1 {
        font-size: 3rem;
    }

    .subH1 {
        font-size: 3rem;
    }
}

@media (min-width: 93.5rem) {
    .event-hero h1 {
        font-size: 5rem;
    }

    .subH1 {
        font-size: 5rem;
    }
}

@media (min-width: 120rem) {
    .subH1 {
        font-size: 5rem;
    }
}

.event-hero p {
    padding-bottom: 2rem;
    font-weight: 700;
    font-size: .875rem;
    width: 60%;
    font-family: 'Gotham', serif;
}

@media (min-width: 120rem) {
    .event-hero p {
        font-size: 1.375rem;
    }
}

@media (max-width: 1024px) {
    .event-hero p {
        font-size: 16px;
        width: 70%;
    }
}

/* For mobile devices (landscape and portrait) */
@media (max-width: 768px) {
    .event-hero p {
        font-size: 14px;
        width: 80%;
    }
}

/* For very small mobile devices */
@media (max-width: 480px) {
    .event-hero p {
        font-size: 12px;
        width: 90%;
    }
}

.event-text-box {
    max-width: 1300px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: left;
    font-family: 'IvarText', serif;
}

    .event-text-box h1 {
        font-size: 48px;
        font-weight: 700;
        margin-bottom: 1rem;
        color: #000;
        line-height: 1.2;
        font-family: 'IvarDisplay', serif;
    }

        .event-text-box h1 span {
            font-size: 48px;
            font-weight: 800;
            margin-bottom: 1rem;
            color: #000;
            line-height: 1.2;
            font-family: 'Gotham', serif;
        }

    .event-text-box p {
        font-size: 20px; /* Gör texten lite större */
        font-weight: 700; /* Bold */
        color: #333; /* Mörkgrå färg */
        line-height: 1.5;
        max-width: 800px; /* Begränsar bredden för bättre läsbarhet */
        margin: 0;
        font-family: 'Gotham', serif; /* Sätter fonten */
    }


/* Grid layout for the events */
.event-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
    gap: 1rem;
    padding: 1rem;
    max-width: 100%;
}

/* Event card styling */
.event-card {
    background: #F0BE50;
    display: flex;
    flex-direction: column;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.event-box {
    display: flex;
    padding: 30px;
    flex-direction: column;
}

/* Hover effect for event cards */
.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.45);
}

/* Image wrapper for event card */
.event-image-wrapper {
    width: 100%;
    height: 250px;
    /*height: 250px;*/
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #F0BE50;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Content section inside each event card */
.event-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
}

/* Event title styles */
.event-title {
    font-family: 'Gotham';
    font-size: 24px;
    font-weight: 700;
    line-height: normal;
}

/* Description section inside event cards */
.event-description {
    font-family: 'IvarText', serif;
    color: #000;
    font-size: 18px;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Meta information like location and date */
.event-meta,
.event-location {
    display: flex;
    /*align-items: ;*/
    font-size: 14px;
    color: #333;
    gap: 8px;
    /*letter-spacing: 0.14px;
            margin-bottom: 10px;*/
    margin: 0;
    padding: 0;
    /*white-space: nowrap;*/
}

/* Styling for the event location */
.event-location {
    color: #000;
    font-family: 'Gotham';
    font-size: 14px;
    font-weight: 700;
    line-height: 24px;
    text-transform: uppercase;
}

    .event-location span {
        /*display: inline-flex; /* Use inline-flex for better alignment */
        align-items: center; /* Vertically center the icon and text */
    }

    .event-location svg,
    .event-date svg {
        width: 24px;
        height: 24px;
    }


/* Date section in the event cards */
.event-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #000;
    margin: 0;
}

.event-date-text {
    font-size: 16px;
    font-weight: 400;
}

.event-date-time {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.event-date-icon,
.event-time-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}


.event-time {
    color: #000;
    font-family: 'IvarText', serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 32px;
    display: flex;
    align-items: center;
    gap: 9px;
    align-self: stretch;
    margin: 0;
}

/* Link section at the bottom of the event cards */
.event-link {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px 30px 20px;
    gap: 10px;
    margin-top: auto;
    font-family: 'Gotham', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    text-decoration: none;
}

    .event-link .arrow {
        transition: transform 0.3s ease;
        transform: rotate(-60deg);
    }

    .event-link:hover .arrow {
        transform: rotate(0deg);
    }

    .event-link:hover {
        text-decoration: none;
    }

/* Pagination styling */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    font-family: 'Gotham', sans-serif;
}

    .pagination .page-number {
        background: transparent;
        border: 1px solid #333;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        text-decoration: none;
        color: #000;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

.page-number.active {
    background-color: #4F7C84;
    color: #fff;
    border-color: #4F7C84;
}

.page-number:hover:not(.active):not(.ellipsis) {
    background-color: #e0e0e0;
    border-color: #e0e0e0;
}

/* Ellipsis styling */
.page-number.ellipsis {
    cursor: default;
    border-color: #333;
    color: #333;
}

    .page-number.ellipsis:hover {
        background-color: transparent;
        border-color: #333;
    }

/* Responsive adjustments for smaller screens */
@media (max-width: 1024px) {
    .event-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .event-grid {
        grid-template-columns: 1fr;
    }

    .event-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    }
}
