* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #fff;
    font-family: 'Open Sans', sans-serif;
    margin: 0;
}

header {
    background-color: #151515;
    padding: 0.1rem 1rem;
    min-height: 180px;
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    width: 500px;
    max-width: 100%;
    height: 200px;
    max-height: 100%;
    object-fit: contain;
}

nav {
    align-self: flex-end;
    padding-bottom: 0px;
    margin-bottom: -16px;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: stretch;
}

nav ul li {
    position: relative;
    text-align: center;
    font-family: Arial;
    flex: 1;
    font-size: large;
    line-height: normal;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    display: flex;              /* Make the anchor a flex container */
    align-items: center;        /* Vertically center the text */
    justify-content: center;    /* Horizontally center the text */
    height: 80px;               /* Keep your height */
    padding-top: 0;
    padding-right: 3.9rem;
    padding-left: 3.9rem;
    padding-bottom: 0;
}

nav ul li:hover {
    background-color: #2a2a2a;
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #434343;
    flex-direction: column;
    font-family: Arial;
    max-width: 100%;
    font-size: medium;
}

.submenu.open {
    display: block;
}

.submenu li a {
    display: flex;
    white-space: nowrap;
    justify-content: center;
}

hero {
  width: 100%;
  display: block;
}

.hero img {
  width: 100%;
  height: auto; /* Keeps image responsive */
  object-fit: cover; /* Ensures no distortion */
  display: block; /* Removes white space between hero and article*/
}

article h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-top: 0rem;
}

#article1 {
	background-color: #f0f0f0;
    margin-bottom: 2rem;
    padding: 3rem 1rem 5rem 1rem;
    border-radius: 8px;
    text-align: center;
}

#article1 p {
	font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    max-width: 50%;
    text-align: center;
    margin: 0 auto 1.5rem auto;
    line-height: 1.8rem;
}

.image-wrapper {
    text-align: center;
	transition: transform 0.3s ease; /*smooth animation*/
}

.image-wrapper img:hover {
  transform: scale(1.05); /* Slightly enlarge the image */
}
.article-section {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s ease forwards;
}
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

footer {
  background-color: #151515;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
}

main {
    margin-bottom: -2rem;
}

	
/* Responsive Breakpoints */
@media (max-width : 769px ){
	
html,body{
    overflow-x: hidden; /* Prevent horizontal scroll */
}
	
header {
    display: flex;
    flex-direction: column; /* Stack logo and nav vertically */
    align-items: center;
    padding: 0.5rem;
	padding-bottom: 0;
    box-sizing: border-box;
	position: relative;
}
	
.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;              /* prevent flex shrinking */
    position: relative;
    z-index: 2;                  /* sit above nav if nav overlaps */
    order: 0;
}
	
.logo img {
    display: block;
    width: clamp(120px, 40vw, 220px); /* Smaller minimum */
    height: auto;
    max-width: 100%;
}
	
nav {
    background-color: rgba(21,21,21,1.00);
    width: 100%;
	z-index: 1;
	order: 1;
	margin-bottom: 0;
}
	
nav ul {
    flex-direction: column; /* Vertical nav */
    gap: 0.5rem;
    margin: 0;
}
	
nav ul li{
	position: relative;
}
	
nav ul li:hover > .submenu {
    display: flex;
}
	
nav ul li.active > a {
    background-color: #2a2a2a;   /* <- pick the highlight color you want */
    color: #ffffff;
}
	
nav ul li.submenu.open > a {
    background-color: var(tab-active);
}
	
nav ul li a {
    padding: 0.5rem 3.2rem; /* Reduce padding for mobile */
    height: auto;
    font-size: 1rem;
	position:relative; /* Anchor for submenu */
}
 
.submenu {
    display: none; /*Hide by defult(No hover)*/
    position: relative; /* Keep it in flow so it stacks below */
    width: 100%;
    flex-direction: column;
    z-index: 999;
    background: #151515;
    max-height: 0; /* Start collapsed */
    overflow: hidden; /* Hide content when collapsed */
    transition: max-height 280ms ease; /* Smooth slide */
    background-color: #434343;
    pointer-events: none;
}
	
.submenu li a {
}
	
.submenu.open {
    max-height: 500px; /* Enough to fit submenu items */
    display: flex;
    pointer-events: auto;
}

	#article1 p {
    max-width: 90%;
    font-size: 1rem;
  }

  #article2 p {
    max-width: 100%;
    font-size: 1rem;
  }

  .article-images {
    max-width: 80px;
  }

}

  


@media (min-width: 769px)  {
	
header {
    height: auto; /* Let height adjust naturally */
	display: flex;
    padding: 1rem 2rem; /* Add horizontal padding for large screens */
    flex-wrap:nowrap!important;/* Avoid wrapping unless needed */
 }
	
nav{
}
    
.logo img {
    width: clamp(200px, 25vw, 500px); /* Responsive scaling */
    height: auto;
    max-width: 100%; /* Prevent overflow */
    margin-left: 0; /* Avoid negative positioning */
}

nav ul li a {
    padding: 0 3.5em; /* padding responds to txt size change*, use clamp if you want it based on vw (view point) */
    font-size: clamp(.5rem, 1.5vw, 1.5rem); /* Responsive font size */
}
	
 /* Base: hidden by default */
nav .submenu { display: none; }

  /* Hover and pinned-open states */
nav li:hover > .submenu {
    display: block;
}
  	
submenu {
    background-color: #434343; /* ensure background applies on desktop */
    z-index: 1001;             /* in case it tucks under header */
}
	}
