/*------------------------------------------------------- Header --------------------------------------------------------*/

/* Dark blue header bar at the top of every pag*/
.top-header {
    background-color: #0b1f3a;
    color: white;
    padding: 20px 0;
}
/* Links inside the header */
.top-header a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}
/* Link color changes to red on hover */
.top-header a:hover {
    color: #d62828;
}
/* Red navigation bar below the header */
.main-nav {
    background-color: #d62828; 
    padding: 15px 0;
}
/* Navigation links styled white and bold */
.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}
/* Underline appears on hover */
.main-nav a:hover {
    text-decoration: underline;
}

/*---------------------------------------------------- Hero section Home Page  -----------------------------------------*/

/* Hero section container*/
.hero {
    width: 100%;
    position: relative;
}
/* Hero image*/
.hero img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}
/* Text positioned on top of hero image*/
.hero-text-left {
    position: absolute;
    top: 30%;
    left: 80px;
    transform: translateY(-50%);
    color: white;
}
/* Large bold heading on hero image */
.hero-text-left h1 {
    font-size: 48px;
    font-weight: bold;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.6);
}
/* Subtitle text below the heading on hero image */
.hero-subtitle {
    color: white;
    font-size: 18px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
    margin-top: 10px;
    max-width: 400px;
}

/*---------------------------------------------------- HOME PAGE: EVENTS + DINING ------------------------------------------------------*/

/* Home page event cards */
.event-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
/* Event card image*/
.event-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.event-card-body {
    padding: 20px;
}
/* Event date shown in red above the title */
.event-date {
    font-size: 14px;
    font-weight: bold;
    color: #d62828;
    margin-bottom: 10px;
}
/* Event title styling */
.event-card-body h3 {
    font-size: 22px;
    color: #0b1f3a;
    margin-bottom: 10px;
}
/* Location text shown in gray at the bottom of the card */
.event-info {
    font-size: 14px;
    color: gray;
}
/* Dark blue background for events section */
.events-background {
    background-color: #0b1f3a;
}
/* White info card + shadow */
.info-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    min-height: 180px;
}

.info-card h3 {
    color: #0b1f3a;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.info-card p {
    font-size: 18px;
    color: #0b1f3a;
}

.event-link {
    text-decoration: none;
    color: inherit;
}

.event-card:hover {
    transform: translateY(-3px);
    transition: transform 0.2s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Home page Dining section */
.dining-section {
    padding: 40px 20px;
}

.dining-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #1a2a44;
}

.dining-card {
    display: flex;
    border-radius: 15px;
    overflow: hidden;
    background: #f8f8f8;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 1200px;
    margin: 0 auto;
}

.dining-left {
    background: #0d2a4a;
    color: white;
    padding: 40px;
    width: 40%;
}

.dining-right {
    padding: 40px;
    width: 60%;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.menu-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0; 
}

.menu-icon.red { background: #e74c3c; }
.menu-icon.blue { background: #3498db; }
.menu-icon.green { background: #2ecc71; }

/*---------------------------------------------------------- Event Page ---------------------------------*/
.event-hero {
    position: relative;
}

.event-hero img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

/* Text on hero image */
.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 48px;
    font-weight: bold;
}

/* Event page title section */
.events-section {
    text-align: center;
    margin-top: 50px;
}

.events-section h2 {
    font-size: 48px;
    color: #0b1f3a;
    font-weight: bold;
}

.event-img {
    width: 80%;   
    border-radius: 10px;
}

.event-text {
    margin-top: 50px;
}

/* ---------------------------------------------------- Footer ----------------------------------------------*/



.footer-blue {
    background: #0b1f3a;
    padding: 30px 40px;
}

.footer-title {
    color: white;
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-divider {
    border-color: rgba(255,255,255,0.2);
    margin: 20px 0;
}

.footer-copy {
    color: #aaa;
    text-align: center;
    font-size: 13px;
}

/*-------------------------------------------------- Dining --------------------------------------------*/
.dining-header {
    background-color: #0b1f3a;
    color: white;
    padding: 20px;
    border-radius: 10px 10px 0 0;
}

.dining-menu {
    background-color: white;
    color: #0b1f3a;
    padding: 20px;
    border-radius: 0 0 10px 10px;
}

.food-img {
    height: 500px;
    width: 100%;
    object-fit: cover; 
}

.menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.menu-icon.red    { background: #e74c3c; }
.menu-icon.blue   { background: #3498db; }
.menu-icon.green  { background: #2ecc71; }
.menu-icon.yellow { background: #f39c12; }

.menu-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.dining-menu {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 0 0 12px 12px;
    padding: 20px;
}

.dining-header {
    background: #0d2a4a;
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
}

.dining-header p {
    margin: 0;
    color: white;
}

.dining-menu {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 0 0 12px 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/*----------------------------------------------- Map -------------------------------*/
.map-layout {
    display: flex;
    gap: 20px;
    padding: 20px 40px;
    height: 520px;
}

.map-sidebar {
    width: 260px;
    flex-shrink: 0;
    overflow-y: auto;
}

.map-location-card {
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    background: #0b1f3a;
    text-align: center;
}

.map-location-name {
    font-weight: bold;
    color: white;
    margin: 0;
    font-size: 14px;
}

.map-container {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
}

.campus-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    background: #0b1f3a;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
}

.campus-btn:hover {
    background: #cc2936;
}

/*-----------------------------------------------Weather ---------------------------------*/

.weather-card {
    background-color: #f8f9fb;
    border-radius: 15px;
    padding: 30px;
    max-width: 400px;
    margin: 40px auto;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.weather-title {
    font-size: 20px;
    color: #0b1f3a;
    font-weight: bold;
    margin-bottom: 20px;
}

.weather-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.weather-icon {
    font-size: 40px;
}

.weather-temp {
    font-size: 40px;
    font-weight: bold;
    color: #0b1f3a;
}

.weather-location {
    color: gray;
    margin-top: 5px;
}

.weather-bottom {
    margin-top: 15px;
}

.weather-label {
    color: gray;
    font-size: 14px;
}
/*----------------------------------------------- Media Queries - Mobile -------------------------------*/
@media (max-width: 768px) {

    /* Map - stapla sidebar ovanpå kartan */
    .map-layout {
        flex-direction: column;
        height: auto;
        padding: 20px;
    }

    .map-sidebar {
        width: 100%;
    }

    .map-container {
        height: 400px;
        min-height: 400px;
    }

    #map {
        height: 400px; 
    }

}