:root {
     --primary-color: #256b4e;
    --secondary-color: #FFDE59;
    --accent1-color: #f8f9fc;
    --accent2-color: hsl(291, 30%, 5%);
    --heading-font: "Montserrat", sans-serif;
    --body-font: "Fira Sans Condensed", sans-serif;
}

 header {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center; 
    background-color: var(--primary-color);
    color: var(--accent2-color);
    padding: 0 20px;
    width: 100%;
    max-width: 840px;
    margin: 0 auto;
        
          
} 

.logo {
    margin-left: 30px;    
}

.rcet_logo {
    width: 150px;
    height: 150px;
}
 
nav {
    justify-self: end;
    display: flex;
    gap: 5px;
    padding: 10px 30px;
    margin-right: 0;
   
}

nav a {
    color: var(--accent1-color);
    text-decoration: none;
    font-weight: normal;
    padding: 12px 24px;
     border: 1px solid var(--accent1-color);
    border-radius: 6px;

}


h2 {
  text-align: center;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--accent1-color); /* or any light default */
    color: var(--accent1-color);
    font-family: var(--body-font);
    margin: 0;
    padding: 0;
}


header, main, footer {
    max-width: 840px;
    margin: 0 auto;
}

.middle-image {
    text-align: center;
    margin: 20px 0;
}

.middle-image img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
}


h1, h2 {
    font-family: var(--heading-font);
    color: var(--secondary-color);  
}


.socialmedia a {
    text-decoration: none;
}

.hero {
    position: relative;
    display: grid;  
}


.hero img {
    position: relative;
    width: 100%;
    height: auto;    
    transform: translateX(-30px);
}



h1 {
    position: absolute;
    top: 10px;
    width: 100%;
    padding: 16px;
    text-align: center;
    color: var(--primary-color)   
    
}

article {
    
    display: grid;
    position: absolute;
    border: 2px solid var(--primary-color);
    color: var(--primary-color)
}

article >h2 {
     position: absolute;
    left: 10px; /* moving to right a little bit*/
    top: 30%;
    transform: translateY(-50%);
    margin: 0;
    padding: 20px;
    color: var(--accent2-color);
    font-family: Arial, sans-serif;
    font-size: 24px;
    }

    article >h2 {
    display: flex;
    align-self: last baseline;
}

section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 90vh;
    
  
}

section > h2 {
    flex-basis: 100%;
    margin-top: -20px;
    margin-bottom: 8px;
    color: var(--primary-color);
    }



section >p,
section > .middle-image {
    flex: 1 1 0;
    min-width: 150px;
    color: var(--primary-color);
}

.middle-image {
    text-align: center;
    height: auto;
}


.adventure-gallery {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.adventure-gallery figure {
    margin: 0;
    text-align: center;
    width: 130px;
}

.adventure-gallery img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.adventure-gallery figcaption {
    margin-top: 8px;
    font-size: 0.9rem;
    color:  var(--primary-color);
}


footer {
    min-height: 100px; /* height of footer*/
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 1px; 
    border: 1px solid var(--primary-color);
    background-color: var(--primary-color);
}

.logo {
    margin-left: 30px;    
}
 
nav {
    justify-self: end;
    display: flex;
    gap: 5px;
    padding: 10px 30px;
    margin-right: 20px;
}




nav a:hover {
    color: var(--secondary-color);
    font-weight: 700;
    transform: scale(1.1);
    filter: brightness(1.1);  
}

h2 {
  text-align: center;
  
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    color: var(--accent1-color);
}

header, main, footer {
    width: 840px;
    margin: 0 auto;
}

.middle-image {
    text-align: center;
    margin: 20px 0;
}

h1, h2 {
    font-family: var(--heading-font);
    color: var(--primary-color);  
}

nav, p, section, article {
    margin: 16px;
    padding: 8px;
}


.hero {
    position: relative;
    display: grid; 
    height: 28vh; 
}

.hero > img:first-of-type {
    visibility: hidden;
} 

.hero img {
    display: flex;
    width: 100%;
    align-items: center ;
    height: auto;    
}

article {
    display: flex;
    margin-top: 70px;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 20px;
    position: relative;
    top: 10px;
    color: var(--accent1-color)
}

article h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

article p{
    font-size: 1rem;
    max-width: 50%;
    margin-top: 80px;
}


.hero article {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row-reverse;
    align-items: center;
    text-align: left;


}

.hero article img {
    float: right;
    width: 300px;
    max-width: 100%;  
    margin: 20px;
   
}

section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  
}

section > h2 {
    flex-basis: 100%;
    margin-top: 10px;
    margin-bottom: 1px;
}

.equipment > h2 {
    margin-bottom: 20px; /* Better for spacing below headings */
    position: relative;
    top: -40px; /* Adjust as needed, or remove if unnecessary */
}



section >p,
section > .middle-image {
    flex: 1 1 0;
    min-width: 150px;
    text-align: justify;
}

.middle-image {
    text-align: center;
    height: auto;
    
}
.middle-image img {
    width: 500px;        /* Set fixed width */
    max-width: 100%;     /* Responsive so it won't overflow on small screens */
    height: auto;        /* Maintain aspect ratio */
    border-radius: 8px;  /* Rounded corners */
    display: block;
    margin-left: -10px;
}





.adventure-gallery {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.adventure-gallery figure {
    margin: 0;
    text-align: center;
    width: 130px;
}

.adventure-gallery img {
    margin-top: 20px;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.adventure-gallery figcaption {
    margin-top: 8px;
    font-size: 0.9rem;
    color:  var(--primary-color); /* change the font color of figcaption*/
}


.cta img {
    padding-top: 10px;
    padding-bottom: 10px;
width: 840px;
height: auato;
}

footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 1px; 
    border: 1px solid var(--primary-color);
    background-color: var(--primary-color);
}
/* social media logo settings */
    footer .socialmedia {
    display: flex;
    margin-right: 10px;
    
}

footer p{ /* footer p settings */
    margin: 0;
    text-align: left;
    flex: 1;
}

/* Social media link container */
.socialmedia a {
    text-decoration: none;
    display: inline-block;
    margin: 0 6px; /* space between icons */
    transition: 0.3s ease, filter 0.3s ease;
    
}

/* Social media icons (inside footer) */
footer .socialmedia img {
    width: 24px;
    height: 24px;   
    border: 1px solid var(--secondary-color);
    padding: 15px;
    border-radius: 10%; /* circular shape */    
    box-sizing: content-box; /* ensures padding doesn't shrink image */
    }

/* Hover effect for icons */
.socialmedia a:hover img {
    transform: scale(1.5);
    filter: brightness(1.5);
}


header, footer {
    border: 1px solid var(--secondary-color);
}

div.hero {
    width: 840px;
    height: 300px;
    margin-top: 5px;
    max-width: 100%;
    margin-bottom: 5px;

}

section {
    margin: auto;
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 5px;
}

body {
    background-color: #f0f0f0; /* Light gray or white background outside */
    margin: 0;
    padding: 0;
}

.main-black {
    width: 840px;
    margin: 0 auto;
    background-color: var(--accent1-color);
   
}

/* Optional: make all text inside main readable on black */
.main-black * {
    color: var(--secondary-color);
    color: var(--primary-color); /* changing color in history paragraph */
}



.main-black h1,
.main-black h2 {
    color: var(--primary-color); /* header font color */
}

.main-black h2 {
    top: 60px;
}



