/* Global CSS for Viking Queen Website - Optimized for Page Speed and Responsive Design */

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Font and Colors */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #fff;
    background-color: #000;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header and Navigation */
.top-header {
    background-color: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    text-align: center;
}

@media (min-width: 768px) {
    .top-header {
        flex-direction: row;
        justify-content: space-between;
    }
}

.logo img {
    height: 180px;
    width: auto;
    max-width: 100%;
    aspect-ratio: auto;
}

/* General Menu Styling */
.menu {
    background-color: #000;
    padding: 10px 0;
}

.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Menu Toggle Button (For Mobile) */
.menu-toggle {
    display: none;
    background-color: #000;
    color: #fff;
    padding: 10px;
    font-size: 1.5em;
    cursor: pointer;
    text-align: center;
}

/* Styling for Menu Links */
.menu ul li {
    margin: 10px 0;
    position: relative;
}

.menu ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease;
}

.menu ul li a:hover {
    color: #ccc;
}

/* Dropdown Menu */
.menu ul li ul.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #000;
    padding: 10px;
    list-style: none;
    min-width: 150px;
    z-index: 1000;
}

.menu ul li:hover ul.dropdown {
    display: block;
}

.menu ul li ul.dropdown li {
    margin: 5px 0;
}

.menu ul li ul.dropdown li a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9em;
}

.menu ul li ul.dropdown li a:hover {
    color: #ccc;
}

/* Media Query for Larger Screens (PC) */
@media (min-width: 768px) {
    .menu {
        display: flex; /* Ensures the menu is displayed horizontally on larger screens */
        flex-direction: row;
        justify-content: center;
    }

    .menu-toggle {
        display: none; /* Hide the hamburger button on larger screens */
    }

    .menu ul {
        flex-direction: row; /* Align menu items in a row */
    }

    .menu ul li {
        margin: 0 20px;
    }
}

/* Media Query for Mobile Screens */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Show the menu toggle button on mobile */
    }

    .menu {
        display: none; /* Hide the menu by default on mobile */
        flex-direction: column;
        align-items: center;
    }

    .menu.active {
        display: flex; /* Show the menu when the toggle button is clicked */
    }

    .menu ul {
        flex-direction: column;
        justify-content: center;
    }

    .menu ul li {
        margin: 15px 0;
    }
}

.read-more-btn {
    background-color: #0066cc; /* Farge på knappen */
    color: #fff; /* Tekstfarge */
    border: none; /* Ingen kantlinje */
    border-radius: 5px; /* Runde hjørner */
    padding: 10px 20px; /* Polstring for bedre klikkflate */
    font-size: 16px; /* Størrelse på tekst */
    font-weight: bold; /* Fet skrift */
    text-transform: uppercase; /* Store bokstaver */
    cursor: pointer; /* Gir pekeren en hånd når den holdes over knappen */
    transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth animasjon ved hover */
}

.read-more-btn:hover {
    background-color: #005bb5; /* Endrer farge ved hover */
    transform: translateY(-3px); /* Løfter knappen litt ved hover */
}

.read-more-btn:active {
    transform: translateY(1px); /* Trykkeffekt når knappen klikkes */
}

.blog-text {
    font-size: 1.1em;  /* Gjør skriften litt større for lesekomfort */
    line-height: 1.8;  /* Øker linjehøyden for bedre lesbarhet */
    margin-bottom: 20px;  /* Litt avstand mellom avsnitt */
}

.slogan {
    font-size: 1.5em;  /* Gjør skriften litt større for lesekomfort */
    margin-bottom: 20px;  /* Litt avstand mellom avsnitt */
}


/* Hero Section */
.hero {
    position: relative;
    margin-bottom: 30px;
}

.hero img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    font-size: 2.5em;
    font-weight: bold;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .hero-content {
        font-size: 3.5em;
    }
}

/* Sections */
section {
    padding: 20px;
    margin-bottom: 20px;
    background-color: #333;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    section {
        padding: 50px;
    }
}

.two-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

@media (min-width: 768px) {
    .two-column {
        flex-direction: row;
        align-items: flex-start;
    }
}

.section-image {
    flex: 1;
    max-width: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.section-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.section-image img:hover {
    transform: scale(1.05);
}

.section-content {
    flex: 1;
    max-width: 100%;
}

/* Button Styling */
.button {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 15px 30px;
    text-align: center;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.2em;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-top: 20px;
}

.button:hover {
    background-color: #444;
    transform: scale(1.05);
}

/* Footer */
footer {
    background-color: #000;
    color: #fff;
    padding: 20px;
    text-align: center;
    margin-top: 30px;
}

footer p {
    margin: 0;
}

.social-media {
    margin-top: 10px;
}

.social-media a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: #ccc;
}

/* Responsive Form */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 100%;
    margin: 0 auto;
    padding: 10px;
    background-color: #333;
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    form {
        max-width: 500px;
    }
}

form label {
    font-size: 1em;
}

form input, form textarea, form button {
    padding: 10px;
    font-size: 1em;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #222;
    color: #fff;
}

form button {
    background-color: #000;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #444;
}
