/* blog.css */
/* Styles for MediTrip Landing Page */
:root {
    --main-color: #506899;
    --title-color: black;
    --header-color: color-mix(in srgb, var(--title-color) 70%, transparent);
    --light-background-color: #f5f7fa;
    --darkened-background-color: #e4e9f2;
    --dark-accent: #394867;

    --content-width: 80%;
    --max-content-width: 800px;
    --header-height: 80px;
}

/* Reset and base styles */
*, :before, :after{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", monospace;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}

*{
    background-color: transparent;
    color: var(--main-color);
}

/* Body and wrapper styles */
body{
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

#cookie-curtain{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 3;
    display: none;
}

#cookie-banner{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    z-index: 4;
    display: none;
    text-align: center;
}

.wrapper{
    width: 100%;
    display: flex;
    flex-direction: column;
}

.wrapper > section:first-of-type{
    min-height: calc(100vh - 120px - var(--header-height));
}

/* Alternating background colors for sections */
.wrapper > section:nth-child(even){
    background-color: var(--darkened-background-color);
}

.wrapper > section:nth-child(odd){
    background-color: var(--light-background-color);
}

/* Spacer to prevent content from being hidden behind the fixed header */
.spacer{
    height: var(--header-height);
}

/* Header styles */
.wrapper header{
    width: 100%;
    height: var(--header-height);
    display: flex;
    position: fixed;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1;
    background-color: #fff;
}

.wrapper header .site-title{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wrapper header .contact-us{
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Footer styles */
.wrapper footer{
    width: 100%;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

footer p{
    font-size: 14px;
    text-align: center;
    padding: 0;
    margin: 0;
}

/* Header and title styles */
h1{
    color: var(--header-color);
    transition: color 0.3s ease;
}

h1:hover{
    color: var(--dark-accent);
}

h2{
    font-size: 32px;
    font-weight: 600;
    color: var(--header-color);
    margin: 20px 0;
    text-align: center;
}

h3{
    font-size: 20px;
    font-weight: 500;
    color: var(--header-color);
    margin: 15px 0;
    text-align: center;
}

p{
    font-size: 16px;
    font-weight: 400;
    color: var(--main-color);
    padding-bottom: 20px;
    margin: auto;
    text-align: justify;
    line-height: 1.6;
    max-width: var(--max-content-width);
}

p span.highlight{
    font-weight: 600;
}

section p{
    padding-left: 30px;
    padding-right: 30px;
}

button, .button{
    display: block;
    margin: 10px auto;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.3s ease;
    text-decoration: none;
    width: 150px;
}

.button-primary{
    background-color: var(--main-color);
    color: #fff;
}

.button-primary:hover{
    background-color: var(--dark-accent);
}

.button-secondary{
    background-color: var(--darkened-background-color);
    color: var(--main-color);
}

.button-secondary:hover{
    color: var(--dark-accent);
}


/* Title section styles */
.title-text{
    padding: 20px 70px;
}

#title{
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--header-color);
    margin-bottom: 20px;
    text-align: left;
}

.site-title a{
    text-decoration: none;
}

.blog-posts{
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.blog-posts .blog-post{
    background-color: var(--darkened-background-color);
    border-radius: 10px;
    padding: 20px;
    width: 400px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.post-date{
    font-size: 12px;
    margin-bottom: 15px;
}


@media (min-width:320px) and (max-width:960px)  { /* smartphones, iPhone, portrait 480x320 phones */ 
    /* Header styles */
    .wrapper header{
        padding: 0 20px;
    }

    .wrapper header .logo img{
        height: 60px;
        width: auto;
        margin: 10px 0;
    }

    .wrapper header .site-title{
        padding: 5px 10px;
    }

    .wrapper header .site-title a h1{
        font-size: 16px;
        font-weight: 600;
    }

    .wrapper header .menu{
        display: none; /* Hide menu on small screens */
    }

    #cookie-banner{
        width: 100%;
    }

    .blog-posts{
        padding: 30px;
    }
}


@media (min-width:961px) { /* big landscape tablets, laptops, and desktops */
    /* Header styles */
    .wrapper header{
        padding: 0 50px;
    }

    .wrapper header .logo img{
        height: 70px;
        width: auto;
        margin: 5px 0;
    }

    .wrapper header .site-title{
        padding: 10px 20px;
    }

    .wrapper header .site-title a h1{
        font-size: 24px;
        font-weight: 700;
    }

    #cookie-banner{
        width: 400px;
    }

    .blog-posts{
        padding: 30px 70px;
    }
}
