/*******************************
        WHOLE PAGE/BODY
****************************** */
:root {
  --text-size-xs: 0.56rem;
  --text-size-sm: 0.75rem;
  --text-size-md: 1rem;
  --text-size-lg: 1.33rem;
  --text-size-xl: 1.78rem;
  --text-size-2xl: 2.37rem;
  --text-size-3xl: 3.16rem;
  --text-size-4xl: 4.21rem;
  --text-size-5xl: 5.61rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

body {
    margin: 0;
    padding: 0;
    background-image: url(../images/AdobeStock_279748883.png);
    background-size: 40%;
}

main {
    margin: 0;
    padding: 0;
}




/*******************************
        TEXT
****************************** */
h2 {
    color: #990000;
    font-weight: 800;
}


/*******************************
        NAVIGATION
****************************** */
nav {
    background-color: #990000;
    position: sticky;
    top: 0;
    left: 0;    
    width: 100%;
    z-index: 1000;

}

.branding {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
    box-shadow: 2px 5px 5px rgba(0, 0, 0, 0.5);
}

.menu {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Mobile first approach */
.menu-item {
    padding: 1.0rem;
    display: none;
    color: #ffffff;
    text-decoration: none;
}

/* Mobile-specific styles */
@media (width < 768px) {
    .menu-item {
        width: 100%;
        text-align: end;
        border-bottom: #ff5050 solid 1px;
    }
}

/* Desktop styles */
@media (width >= 768px) {
    .menu {
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    .menu-item {
        border: none;
        width: auto;
        text-align: center;
    }
}

.menu :last-child{
    border-bottom: none;
}

.menu-item:hover {
    background-color: #f3f3f3;
    color: #990000;

}

.show {
    display: block;
}


.material-symbols-outlined {
    color: white;
  font-variation-settings:
  'FILL' 0,
  'wght' 450,
  'GRAD' 0,
  'opsz' 24
}

.menu-button:hover {
    color: rgb(57, 57, 255);
    cursor: pointer;
}

.logo {
    width: 20px;
}

.crossroadtext{
    font-family: "Tinos", serif;
    font-size: var(--text-size-xl);
    color: white;
    text-decoration: none;
    font-weight: 500;
}   




/*******************************
        HEADER    
****************************** */
.cover  {
    background: url(../images/crossroads.jpg) no-repeat center;
    background-size: cover;
    height: 600px;
    margin: 0;
    justify-content: center;
    font-family: 'Times New Roman', Times, serif;

}

.headertext {
    color: white;
    font-size: var(--text-size-3xl);
    padding-top: 2rem;
    text-align: center;
}

@media (width >= 768px) {
    .cover {
        justify-content: start;
    }

    .headertext {
        padding-top: 5rem;
        padding-left: 4rem;
        color: white;
        font:"Tinos";
        font-size: var(--text-size-5xl);
        text-align: left;
    }
}




/*******************************
    ARTICLE PREVIEW    
****************************** */
.container {
    display: flex;
    flex-flow: column wrap;
    align-items: center;
}

.preview {
    display: flex;
    flex-flow: column;
    align-items: center;
}


.preview-item {
    width: 80%;
    display: flex;
    margin-top: 2rem;
    align-items: center;
    flex-direction: column;
    background-color: #f0f0f0;
    padding: 1rem;
    border-radius: 5px;
    /* border: #3d99fc 3px solid; */
    /* box-shadow: 6px 2px 6px rgba(0, 0, 0, 0.1); */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 6px 20px rgba(0, 0, 0, 0.19);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.preview-item:hover {
    transform: scale(1.02);
}


.preview-item img{
    border-radius: 3px;
    width: 80%;
    margin-bottom: 1rem;
    border: #3d99fc solid 3px;
    
}

.preview-text {
    text-align: center;
}

.preview-item h3 {
    font-family: "Tinos", serif;
    font-size: var(--text-size-lg);
    color: #990000;
}

.preview-item p {
    color: #000000;
    line-height: 1.4;
}

.seeAll {
    text-align: center;
    width: 100%;
}

@media (width >= 768px) {
    .seeAll {
        text-align: start;
        /* border: hotpink solid 3px; */
        width: 80%;
        margin: 0 auto;
        margin-top: -6rem;
    }

    .seeAll a button {
        margin-top: 2rem;
        width: 20%;
        font-size: var(--text-size-lg);
    }
}

a button {
    width: 80%;
    background-color: #990000;
    border-radius: 8px;
    font-size: var(--text-size-xl);
    color: white;
    border: none;
    padding: .7rem;
    margin-top: 3rem;
    font-family: "tinos";
    font-weight: 600;
    letter-spacing: 2px;
}

a button:hover {
    color: #990000;
    background-color: white;
    outline: 3px solid #990000;
    cursor: pointer;
}

@media (width >= 768px) {
    .prev-container{
        /* border: hotpink 4px solid; */
        width: 80%;
        margin: 0 auto;
        margin-top: -2rem;

    }

    .preview-item {
        flex-flow: row;
        width: auto;
        margin-top: 0;
        /* border: rgb(0, 255, 38) 4px solid; */
        height: auto;
    }

    .preview {
        margin-top: 5rem;
        margin-bottom: 5rem;
        flex-flow: row nowrap;
        gap: 2rem;
        /* border: blue 4px solid; */
    }

    .preview-text {
        text-align: left;
        padding-left: 1rem;

    
    }

    .preview-item img {
        max-width: 120px;
        flex-shrink: 1;
    }

    .preview-item h3 {
        margin-bottom: -0.2rem;
    }
    

}



/*******************************
    ABOUT US / WHY    
****************************** */
.about {
    margin: 0 auto;
    width: 80%;
    margin-bottom: 5rem;
}

@media (width >= 768px) {
    .about {
    margin: 0 auto;
    width: 80%;
    margin-bottom: 5rem;
}
}

.about p {
    line-height: 1.5;
    font-weight: 300;
    font-size: var(--text-size-lg);
}

.why p {
    line-height: 1.5;
    font-weight: 300;
    font-size: var(--text-size-lg);

}

.why {
    margin: 0 auto;
    width: 80%;
    margin-bottom: 5rem;
}

h2 {
    color: #990000;
    font-weight: 600;
    font-size: var(--text-size-xl);
}

hr {
    margin-top: 3rem;
    margin-bottom: 6rem;
    width: 90%;
    border: 1.5px solid #990000;
}

@media (width >= 768px) {
    hr {
        margin-top: 5rem;
    }
}

span {
    color: #990000;
    font-weight: 700;
}




/*******************************
        A NOTICE    
****************************** */
.notice {
    width: 60%;
    display: flex;
    margin-top: 2rem;
    align-items: center;
    flex-direction: column;
    background-color: #f0f0f0;
    border-radius: 2px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 6px 20px rgba(0, 0, 0, 0.19);
    text-decoration: none;
    margin-bottom: 6rem;
    transition: all 0.2s ease-in-out;
}

.notice:hover {
    transform: scale(1.05);

    

}

.notice h2 {
    color: #3d99fc;
}

.notice p {
    text-align: center;
    margin-top: -.2rem;
    font-size: 18px;
    line-height: 1.4;
    padding: 0rem 2rem 1rem;
    font-family: "Tinos", serif;
}

footer {
    position: relative;
    width: 100%;
    background-color: #990000;
    bottom: 0;
    padding: 1rem 0; /* Add some padding for breathing room */
}

footer p {
    margin: 0;
    padding: 0;
    text-align: start;
    padding-left: 4rem;
    color: white;
}   


/*******************************
        ARTICLES    
****************************** */
.articles-header {
        margin: 0 auto;
        width: 80%;
        text-align: start;
        margin-top: 3rem;
        margin-bottom: rem;
        font-size: var(--text-size-lg);
        color: #990000;
        text-align: center;
    }

.articles {
    margin-bottom: 6rem;

}

@media (width >= 768px) {
    .articles {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: 3rem;
    }
    .articles .preview {
        justify-content: center;
        gap: 2rem;
        width: 100%;
        margin: 3rem 0;
    }

    .articles .preview-item {
        width: 600px;
        height: 14rem;
    }

    .articles-header {
        margin-bottom: -2rem;
        font-size: var(--text-size-md);
        text-align: left;
    }

    
}

/*******************************
        ARTICLE    
****************************** */
.articlePage {
    margin: 0 auto;
    width: 85%;
    margin-bottom: 5rem;
}


.articlePage p {
    line-height: 1.5;
    font-weight: 300;
    font-size: var(--text-size-);
    margin-top: 0;
}

@media (width >= 768px) {
    .articlePage {
        width: 40%;
    }

    .articlePage p {
        font-size: large;
    }
}

.articlePage h2 {
    margin-top: 5rem;

}

a {
    color: #3d99fc;
    font-size: var(--text-size-s);
}