* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


:root {
  --primary: #4d7c0f;
  --primary-light: #65a30d;
  --text: #1f2937;
  --text-light: #4b5563;
  --bg: #f0f2c4;
  --bg-accent: #ffffff;
  --border: #e5e7eb;
}

:root {
  --border: #ccc;
  --bg-accent: #f8f8f8;
  --text-light: #333;
}


html,
body {
  background: #f0f2c4;
  font-size: 16px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
  padding: 0;
  background-color: var(--bg);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
  padding: 0;
  background-color: var(--bg);
}

/* Layout containers */

.container,
.main-content,
.navbar-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.main-content { 
  padding: 3rem 2rem; 

}

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.sub-nav {
  margin: 1rem 0;
}

/* Navbar */
.navbar {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 2rem;
}

.logo-image {
  height: 80px;
}

/* Content elements */

article {
  padding: 2rem;
  margin-bottom: 2rem;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

article>header {
  padding-bottom: 10px;
  margin-bottom: 2rem;
}


article>header h1 {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 700;
  border-bottom: none;
  padding-bottom: 5px;
  letter-spacing: -0.025em;
}

p {
  margin-bottom: 20px;
  text-align: justify;
}

ul {
  padding: 0px 0px 0px 20px;
  margin: 10px 0px 20px 20px;
  ;
}

ul li {
  margin-bottom: 5px;
  text-align: justify;
}

main a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  color: #175892;
  font-weight: 600;
  text-decoration-thickness: max(1px, 0.0625rem);
}

main a:hover {
  text-decoration: underline;
  color: #003078;
  text-decoration-thickness: max(2px, 0.1875rem, 0.12em);
  -webkit-text-decoration-skip-ink: none;
  text-decoration-skip-ink: none;
  -webkit-text-decoration-skip: none;
  text-decoration-skip: none;
}

i {
  display: inline-block;
  font-style: normal;
  position: relative;
}

i.arrow {
    width: 0.6em;
    height: 0.6em;
    border-right: 0.2em solid black;
    border-top: 0.2em solid black;
    transform: rotate(-135deg);
    margin-right: 0.5em;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* Figures */
figure {
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  overflow: hidden;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

figcaption {
  font-style: italic;
  font-size: .9rem;
  line-height: 1.4;
  padding: .75rem 1rem;
  background-color: var(--bg-accent);
  color: var(--text-light);
}


blockquote {
  font-style: italic;
  border-left: 4px solid var(--primary-light);
  padding: 1rem 4rem;
  margin: 1.5rem 0;
  background-color: rgba(101, 163, 13, 0.05);
  color: var(--text);
  display: flow-root;
  position: relative;
}

blockquote::before {
  content: '"';
  position: absolute;
  top: 0.1rem;
  left: 0.5rem;
  font-size: 4rem;
  color: rgba(101, 163, 13, 0.2);
  line-height: 1;
  font-family: Georgia, serif;
}

.break-after-floats,
.clear-floats {
  clear: both;
  /* forces the element onto a new line */
}

.section {
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
}

.section:last-child {
  border-bottom: none;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  clear: both;
  margin: 2rem 0;
}

@media (max-width: 768px) {

  figure.figure1,
  figure.figure2 {
    float: none;
    margin: 0 auto 20px;
    width: 100%;
    max-width: 400px;
  }
}

.article img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  display: inline-block;
}

/* Grid Layout Images */
.grid-wrapper>div {
  display: flex;
}

.grid-wrapper>a {
  width: 100%;
}

.grid-wrapper>div>a>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  position: relative;
}

.grid-wrapper {
  display: grid;
  grid-gap: 10px;
  grid-template-columns: 1fr;
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
}

.grid-wrapper>div>a {
  position: relative;
  width: 100%;
}

.grid-wrapper>div::hover>a>img {
  opacity: 0.5;
}

.grid-wrapper>div:hover>a>.overlay-text {
  opacity: 1;
}

.overlay-text {
  position: absolute;
  bottom: 0;
  color: #ffffff;
  background-color: rgba(76, 101, 33, 0.8);
  padding: 10px;
  font-size: 20px;
  width: 100%;

}

/* Media Queries */
@media (min-width: 768px) {

  .logo-image {
    height: 100px;
  }

  article>header h1 {
    color: var(--primary);
    font-size: 2.5rem;
    font-weight: 700;
    border-bottom: none;
    padding-bottom: 5px;
    letter-spacing: -0.025em;
  }

  .grid-wrapper {
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
  }

  .grid-wrapper .square {
    grid-column: span 1;
    grid-row: span 1;
  }
  
  .grid-wrapper .wide {
    grid-column: span 2;
  }
  
  .grid-wrapper .tall {
    grid-row: span 2;
  }
  
  .grid-wrapper .big {
    grid-column: span 2;
    grid-row: span 2;
  }

  .grid-wrapper .overlay-text {
    font-size: 18px;
  }

  .full-width {
    width: 100%;
  }
  
  .align-left {
    float: left;
    max-width: 45%;
    margin-right: 1.5rem;
  }
  
  .align-right {
    float: right;
    max-width: 45%;
    margin-left: 1.5rem;
  }
  
  .fixed-height {
    max-height: 500px;
  }
  
  .portrait {
    max-width: 30%;
  }
  
  .landscape {
    max-width: 60%;
  }
  

}