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

/* ======= Main ======= */
body { 
font-size: 18px;
line-height: 1.25em;
/* font-family: Helvetica Neue, Helvetica, Arial; */
font-family: 'Lato', sans-serif;
background: #fdfdfd;
color: #333333;
/* padding-top: 140px; */
}

.logo {
height: 110px;
margin: 0px 20px;
}

a {
color: #1d8446;
text-decoration: none;
font-weight: bold;
}

a:hover {
text-decoration: underline;
}

/* ======== Desktop Nav ======== */

nav {
margin: 30px 0;
background-color: transparent;
}

/* Green rounded nav bar */
nav ul {
padding: 0;
margin: 0;
list-style: none;
display: inline-block;
border-radius: 12px;
overflow: visible;
position: relative;
}

/* Top-level items */
nav ul > li {
display: inline-block;
position: relative;
border-radius: 10px;
}

/* Top-level links */
nav ul > li > a {
/* display: block; */
padding: 10px;
font-size: 20px;
color: #232323;
text-decoration: none;
border-radius: 5px;
font-weight: initial;
display: inline-block;               /* required for transform */
transition: transform 0.3s ease;     /* smooth rotation */
}

/* Hover on Menu Items */
nav ul > li > a:hover {
background-color: #f2f2f2;
color: #232323;
text-decoration: none;
}

/* Dropdown wrapper */
nav ul ul {
display: none;
position: absolute;
top: 42px;
left: 0;
background-color: #fff;
border-radius: 5px;
/* padding: 10px 0; */
min-width: 300px;
border: 2px solid #070;
box-shadow: 0px 0px 5px 0px #484848;
}

/* Show dropdown */
nav ul li:hover > ul {
display: block;
}

/* Dropdown items */
nav ul ul li {
display: block;
width: 100%;
}

/* Dropdown links */
nav ul ul li a {
padding: 8px 14px;
line-height: 22px;
color: #313131;
border-radius: 5px;
}

/* Hover on Dropdown Links */
nav ul ul li a:hover {
background-color: #fff;
color: #222;
text-decoration: underline #10a54b;
transition: .5s;
}

/* Arrow indicators */
li > a:hover::after { 
transform: rotate(180deg);
}

li > a::after {
content: "\f13a";
font-family: "Font Awesome 7 Free";
font-weight: 900;
margin-left: 6px;
display: inline-block;
transition: transform 0.3s ease;
}

/* No Arrow indicators */
li > a:only-child:after { 
content: '';
}

/*  Resources Dropdown - 2 Columns  */
nav ul > li:nth-child(3) > ul {
column-count: 2;
column-gap: 25px;
width: 500px;
}

nav ul > li:nth-child(3) > ul li {
break-inside: avoid;
}

/* ======= Section ======= */
section {
margin: 0px auto;
max-width: 1200px;
position: relative;
padding: 20px;
/* padding-top: 100px; below fixed header */
z-index: 1;
}

h1 {
/*font-size: 1.3em;*/ /*commenting out to keep h1 at default size*/
color: #1d8446;
line-height: 1.15em;
margin: 10px 0;
}

p {
line-height: 1.45em;
margin-bottom: 20px;
}

.lined-title {
display: flex;
align-items: center;
justify-content: center;
gap: 15px; /* space between text and lines */
text-align: center;
font-size: 26px;
color: #1d8446;
position: relative;
margin: 30px auto;
}

.lined-title::before,
.lined-title::after {
content: "";
flex: 1;
height: 1px;
background: #919191;
}

.lined-title::before {
margin-right: 10px;
}

.lined-title::after {
margin-left: 10px;
}

/* info-section */

.info-section-image {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
height: 275px;
}


/* ======= Mobile Hamburger & Sliding Nav ======= */
.mobile-nav {
display: none;
}

.hamburger {
width: 30px;
height: 21px;
display: flex;
flex-direction: column;
justify-content: space-between;
cursor: pointer;
position: absolute;
right: 20px;
top: 28px;
z-index: 101;
}

.hamburger span {
display: block;
height: 3px;
background: #383838;
border-radius: 2px;
transition: all 0.3s ease;
}

/* Animate hamburger to X */
.hamburger.active span:nth-child(1) {
transform: rotate(45deg) translate(8px, 8px);
}
.hamburger.active span:nth-child(2) {
opacity: 0;
}
.hamburger.active span:nth-child(3) {
transform: rotate(-45deg) translate(5px, -5px);
}

/* Sliding Mobile Nav */
.nav {
position: fixed;
top: 0;
right: -250px;
height: 100vh;
width: 250px;
background: #fff;
border-left: 3px solid #10a54b;
box-shadow: -3px 0 10px rgba(0,0,0,0.1);
transition: right 0.3s ease-in-out;
z-index: 100;
padding-top: 80px;
}

.nav.active {
right: 0;
}

.nav ul {
list-style: none;
padding: 0;
margin: 0;
}

.nav ul li {
text-align: center;
padding: 15px 0;
}

.nav ul li a {
color: #333;
text-decoration: none;
font-weight: bold;
display: block;
transition: background 0.2s ease;
}

.nav ul li a:hover {
background: #f0f0f0;
text-decoration: none;
}

/* ======= Info Row Layout ======= */

.action-button {
background-color: #10a54b;
color: #282725;
border-radius: 5px;
box-shadow: 1px 1px 1px #4f4f4f;
display: inline-flex;
align-items: center;
justify-content: center;
line-height: 1;
padding: 5px 10px;
}

.action-button:hover {
box-shadow: 2px 2px 2px #4f4f4f;
transition: .25s;
cursor: pointer;
}

.info-row {
display: inline-block;
margin-bottom: 20px;
}

.info-row-image {
width: 250px;
float: left;
margin: 0px 20px;
}

.info-row h3 {
color: #29a34a;
font-size: 24px;
margin: 10px auto 15px;
}

.button-row {
display: flex;
gap: 7px;
}

.info-row-button {
background-color: #10a54b;
color: #282725;
padding: 5px;
border-radius: 5px;
box-shadow: 1px 1px 1px #4f4f4f;
width: fit-content;
margin-bottom: 10px;
}

.info-row-button:hover {
box-shadow: 2px 2px 2px #4f4f4f;
/*transition: .25s;*/
cursor: pointer;
}

.info-row-button a {
  color: #282825;
  font-weight: normal;
}

.info-row-button a:hover {
  text-decoration: none;
}

.indent {
 margin-left: 15px;
}

/* Button Colors */

.blue {
background-color: #60c8d4;
}

.yellow {
background-color: #fed600;
}

.red {
background-color: #f05158;
color: #201f1e;
}

.green {
background-color: #10a54b;
}


/* ======= 50-50 Column ======= */

.col-50-50-container {
display: flex;
flex-wrap: wrap;
gap: 70px;
}

.col-50-50-container .col-50 {
flex: 1;          /* each takes 50% */
padding: 10px;    /* optional */
}

/* ======= 60-40 Column ======= */
.col-60-40-container {
display: flex;
flex-wrap: wrap;
gap: 15px;
}

.col-60 {
flex: 60%;
}

.col-40 {
border: 5px solid #10a54b;
padding: 10px;
margin: 0px auto;
}

.img-60-40 {
float: left;
display: block;
height: 230px;
margin-right: 20px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.img-box-shadow {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}


.entry-60 {
margin: 25px auto 20px;
min-height: 240px;
}

.entry-60:nth-of-type(1) {
margin-top: 0px;
}

.news-title {
margin-bottom: 10px;
color: #1d8446
}


/* ======= Learning Opportunities Entries ======= */

.learning-entry {
margin: 10px auto;
}

.learning-entry-date {
font-weight: bold;
font-size: 14px;
}

.learning-entry-title  {
margin-left: 10px;
}

.learning-entry-facilitor {
margin-left: 10px;
font-size: 14px;
}

.learning-entry-reg-close {
margin-left: 10px;
font-size: 14px;
}

.learning-button {
background-color: #10a54b;
color: #282725;
padding: 3px 5px;
border-radius: 3px;
box-shadow: 1px 1px 1px #4f4f4f;
display: block;
width: fit-content;
font-size: 14px;
margin: 5px 0px 0px 10px;
}

.learning-button:hover {
box-shadow: 2px 2px 2px #4f4f4f;
transition: .25s;
cursor: pointer;
}

/* ======= 25 Column ======= */

.col-25-container {
display: flex;
flex-wrap: wrap;
gap: 15px;
}

.col-25 {
flex: 1;
min-width: 250px; /* adjust as needed */
}

.entry-25 {
border-left: 1px solid #919191;
min-height: 350px;
padding: 0px 5px;
}

.col-25:nth-child(1) .entry-25 {
border-left: none;
}

.entry-25 h3 {
text-align: center;
}

.img-25 {
height: 130px;
margin: auto;
display: block;
margin-bottom: 20px;
}

.entry-25 > .action-button {
margin: 0 auto;
display: block;
width: fit-content;
}


/* ======= Header ======= */
header {
background: #29a34a;
width: 100%;
height: 110px;
position: fixed;
top: 0;
left: 0;
border-bottom: 6px solid #487737;
z-index: 100;
box-shadow: 0px 0px 16px 8px #578048;
}

#logo {
float: left;
display: block;
}

/* ======= hero ======= */

.hero-container {
position: relative;
width: 100%;       
height: 420px;      
overflow: hidden;
box-shadow: 0px 8px 16px #00000073;
}

.hero-image {
width: 100%;      
height: 100%;
object-fit: cover;
object-position: right 10%; /* focus on her head */
display: block;
border-bottom: 5px solid #487737;
}

.hero-text {
position: absolute;
top: 62%;
left: 150px; 
transform: translateY(-50%);
background: #FBF5F3BA;
padding: 15px;
border-radius: 8px;
max-width: 550px;
}

.hero-text > .action-button {
margin-top: 10px;
}

.hero-text > h3 {
margin-bottom: 10px;
}


/* ======= hr ======= */
hr {
border: 0;
height: 1px;
background: #919191;
margin: 1rem 0;
}

.hr-icon {
display: flex;
align-items: center;
text-align: center;
margin: 20px 0;
}

.hr-icon::before,
.hr-icon::after {
content: "";
flex: 1;
border-bottom: 1px solid #ccc;
}

.hr-icon::before {
margin-right: 10px;
}

.hr-icon::after {
margin-left: 10px;
}

.hr-icon i {
color: #666;
font-size: 1.2rem;
}


/* ======= Footer ======= */

footer {
background-color: #29a34a;
color: #232323;
padding-top: 30px;
border-top: 6px solid #487737;
}

.mobile-footer {
display: none;
}

.desktop-footer {
display: flex;
flex-wrap: wrap;
justify-content: space-evenly;
}

.larger {
font-weight: bold;
font-size: 16px;
}

.footer-section p {
font-size: 14px;
}

.footer-section i {
font-size: 36px;
}

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

.mobile-hero {
display: none;
}

footer a {
font-weight: initial;
}

footer i {
color: #3a3a3a;
}


/* ======= Media Queries (under 900px)======= */

@media (max-width: 900px) {

body {
padding-top: 0;
}

/* Hero Images */
.mobile-hero {
display: block;
height: 100%;
}

.hero-image {
display: none;
}

.hero-text {
min-width: 100%;
left: 0;
top: 70%;
border-radius: 0px;
display: block;
min-height: 90%;
}

.hero-text > h3 {
margin-top: 10px;
}

/* 25 Columns */
.col-25 {
flex: 1 1 100%;
}

.entry-25 {
border-left: none; 
border-top: 1px solid #919191;
padding-top: 15px;
}

/* Remove top border from first item */
.col-25:first-child .entry-25 {
border-top: none;
}

/* Footer switch */
.desktop-footer {
display: none;
}

.mobile-footer {
display: block;
text-align: center;
font-size: 14px;
}

.mobile-footer-contact a {
color: #e8e8e8; 
text-decoration: underline;
}

.mobile-footer-social-media-icons {
font-size: 30px;
}

/* Mobile nav */
header {
position: absolute;
}

.main-nav {
display: none;
}

.mobile-nav {
display: block;
}

.nav {
top: -30px;
}

/* Make nav vertical */
nav ul {
display: flex;
flex-direction: column;   /* stack vertically */
justify-content: flex-start;
align-items: flex-start;  /* left-align text */
/* gap: 10px; */
width: 100%;
}

nav ul li {
width: 100%;              /* each item takes full width */
padding: 0px !important;
}

nav ul li a {
display: block;
width: 100%;
padding: 12px 0;
}

/* Info Row */

.info-row-image {
margin: 0 auto;
display: block;
float: none;
height: 175px;
}

.news-title {
text-align: center;
font-size: 20px;
margin-top: 10px;
}

.info-row h3 {
text-align: center;
}

.info-row > .action-button {
margin: 0px auto;
display: block;
width: fit-content;
}

/* Button Row */
.button-row {
flex-wrap: wrap;
justify-content: center;
}

.action-button {
white-space: nowrap;
}

}