/* Generelle stiler */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
}

/* Navigasjon */
header {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
}

/* Hero-seksjon 
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('https://images.unsplash.com/photo-1555881400-74d7acaacd8b?auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}*/
/* Hero-seksjon */
.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                url('bilder/alhambra-granada-20044065-istock.jpg');
    background-size: cover;
    background-position: center  30%; /*Justert for å vise mer av fjellene */
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.btn {
    display: inline-block;
    background: #e67e22;
    color: white;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
}

/* Grid-oppsett for kort */
.info-section {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* Spesifikke stiler for fotturer */
.hiking-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.hiking-card {
    background: white;
    border-left: 5px solid #e67e22;
    padding: 25px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.hiking-card:hover {
    transform: translateX(10px);
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.adventure { background: #d5f5e3; color: #1e8449; }
.culture { background: #fef9e7; color: #b7950b; }
.alpine { background: #ebf5fb; color: #2874a6; }

.hiking-card ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
    margin-top: 15px;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* Responsivitet for lister */
@media (max-width: 600px) {
    .hiking-card ul {
        flex-direction: column;
        gap: 5px;
    }
}

.hiking-card.horizontal {
    display: flex;
    flex-direction: row;
    align-items: center;
    overflow: hidden;
    padding: 0; /* Fjerner padding for at bildet skal gå helt ut til kanten */
}

.hiking-image {
    flex: 1;
    max-width: 300px;
    height: 100%;
}

.hiking-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Sørger for at bildet fyller plassen uten å strekkes */
}

.hiking-content {
    flex: 2;
    padding: 25px;
}

/* Gjør bildet stablet på mobil */
@media (max-width: 768px) {
    .hiking-card.horizontal {
        flex-direction: column;
    }
    .hiking-image {
        max-width: 100%;
        height: 200px;
    }
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card-with-bg {
    height: 350px; /* Bestemmer høyden på kortene i rutenettet */
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    display: flex;
    align-items: flex-end; /* Teksten legger seg i bunnen */
    padding: 0; /* Fjerner standard padding for at bildet skal fylle alt */
    overflow: hidden;
    position: relative;
    border: none;
    transition: transform 0.3s ease;
}

.card-with-bg:hover {
    transform: scale(1.02); /* Forsiktig forstørrelse ved hover */
}

.card-content {
    padding: 20px;
    color: white;
    text-align: left;
    width: 100%;
}

.card-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Gjør teksten ekstra tydelig */
}

.card-content p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}
/* Styling for hele kort-lenken (Alternativ 1) */
.card-with-bg {
    text-decoration: none; /* Fjerner standard blå understreking */
    display: flex; /* Sørger for at layouten beholdes selv om det er en <a> tag */
}

/* Styling for knappen (Alternativ 2) */
.read-more-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #e67e22;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    transition: background 0.3s;
}

.read-more-btn:hover {
    background-color: #d35400;
}