/* --- Steg 1: Importera ett modernt typsnitt från Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* --- Grundläggande design för hela sidan --- */
body {
    background-color: #f7f8fc;
}
#page-container, #et-boc {
    font-family: 'Poppins', sans-serif;
}

/* --- Design för rutnät (Grid) --- */
.swe-event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}
.swe-event-card {
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
}
.swe-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.swe-card-image-wrapper {
    height: 200px;
    position: relative;
}
.swe-card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}
.swe-card-content {
    padding: 20px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.swe-card-content h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #1d3557;
    letter-spacing: -0.5px;
    margin: 0 0 10px 0;
}
.swe-card-content p {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
    flex-grow: 1;
}
.swe-card-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
    color: #e63946;
    font-weight: 600;
    margin-top: auto;
}
.swe-card-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.swe-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #ffffff;
    border-radius: 5px;
    padding: 5px 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.swe-date-badge .month {
    display: block;
    font-size: 11px;
    font-weight: bold;
    color: #e63946;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.swe-date-badge .day {
    display: block;
    font-size: 22px;
    font-weight: bold;
    color: #1d3557;
    line-height: 1;
}
.swe-date-badge.multi-day {
    padding: 8px 12px;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    color: #1d3557;
    letter-spacing: 0.5px;
}


/* --- Design för singelsidan --- */
#main-content {
    padding-top: 0 !important;
}
.swe-single-header {
    min-height: 45vh;
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
    display: flex;
    align-items: center;
    padding: 40px 0;
}
.swe-header-overlay {
    background: linear-gradient(90deg, rgba(29, 53, 87, 0.85) 0%, rgba(29, 53, 87, 0.1) 100%);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}
.swe-header-content {
    width: 100%;
    position: relative;
    z-index: 2;
}
.swe-pre-title {
    margin: 0 0 5px 0;
    font-weight: bold;
    opacity: 0.8;
}
.swe-header-content .entry-title {
    font-family: 'Poppins', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: 0px 2px 10px rgba(0,0,0,0.2);
    color: #fff !important;
}
#main-content .container {
    background-color: #ffffff;
    padding: 40px !important;
    margin-top: -80px;
    position: relative;
    z-index: 10;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}
#left-area p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}
#left-area h2, #left-area h3, #left-area h4 {
    font-weight: 600;
}
#sidebar .swe-sidebar-widget {
    background: transparent;
    padding: 0;
    margin-bottom: 40px;
    border: none;
    border-radius: 0;
    box-shadow: none;
}
#sidebar .swe-sidebar-widget h3 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e63946;
    font-size: 1.2rem;
    font-weight: 600;
}
#sidebar .swe-sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#sidebar .swe-sidebar-widget ul li {
    padding: 8px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid #eee;
}
#sidebar .swe-sidebar-widget ul li:last-child {
    border-bottom: none;
}
#sidebar .swe-sidebar-widget ul li strong {
    color: #1d3557;
}
.swe-social-icons {
    display: flex;
    gap: 15px;
}
.swe-social-link {
    position: relative;
    display: block;
    width: 40px;
    height: 40px;
    transition: transform 0.2s ease;
}
.swe-social-link svg {
    width: 100%;
    height: 100%;
    fill: #1d3557;
}
.swe-social-link:hover {
    transform: translateY(-3px);
}
.swe-social-link:hover svg {
    fill: #e63946;
}
.swe-copy-tooltip {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}
.swe-copy-tooltip.show {
    opacity: 1;
    visibility: visible;
}

/* ---- NYTT: Stil för "Tillbaka"-knappen och dess container ---- */
.swe-back-button-wrapper {
    padding: 20px 0 40px 0;
    text-align: center;
}
.swe-back-button {
    display: inline-block; /* Ändrad från block till inline-block */
    border: 2px solid #e63946;
    color: #e63946;
    background-color: transparent;
    border-radius: 30px;
    padding: 12px 30px; /* Lite mer padding på sidorna */
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: all 0.3s ease;
}
.swe-back-button:hover {
    background-color: #e63946;
    color: #fff;
}


/* --- Anpassad Footer --- */
#footer-info {
    text-align: center;
    width: 100%;
    color: #aaa;
    font-size: 0.9rem;
    padding: 20px 0;
}