/* DEBUG: see the boxes. Change 1px to 0 to hide them. */
* {
  outline: 0.5px solid red;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* ============================================
   Design direction
   Body font:     Georgia, serif
   Heading font:  Helvetica, sans-serif
   Text color:    #222222
   Background:    #fdfdfb
   Accent:        #1a5f9c
   Mood: quiet, editorial, plenty of white space
   ============================================ */

   /* --- Base and typography --- */

* {
  outline: 0px solid red;
}

*, *::before, *::after {
  box-sizing: border-box;
}

   body {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 100%;
  line-height: 1.6;
  color: #222222;
  background-color: #e7e3ed;
  margin: 0;
}


h1   { font-size: 1rem; }
h2   { font-size: 1.5rem; }
h3   { font-size: 1.25rem; }
h4   { font-size: 1rem; }

a { color: #1a5f9c; }
a:hover { color: #123f68; }

/* --- Wrapper --- */
.wrapper {
  width: 80%;
  margin: 0 auto;
  max-width: 1200px;
}

.wrapper {
  width: 800px;
  padding: 40px;
}

.wrapper {
  width: 80%;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
}

/* --- Header and nav --- */
.site-header{height: 170px;
padding: 25px 0px 50px 0px;
background-color: rgba(245, 241, 241, 0.5);
}

.nav-link { font-size: 1.4rem;
  padding: 8px 12px; 
text-decoration: none
border-radius: 6px;}

.nav-list {
    display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
    padding: 8px 12px;
    flex-wrap: wrap;
}

.nav-list li a{
  font-size: 14px;
}

.nav-link:hover {
  background-color: #e8eef5;
}

/* HEADER LAYOUT: logo left, nav right */
.site-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 2em;
  padding-bottom: 20px;
  padding-top: 20px;
    padding-left: 20px;
}

.logo img {
  height: 50px;
}

a.logo {
  text-decoration: none;
}

/* --- Hero --- */
.hero {
  position: relative;
}

.hero-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.hero-title {
  position: absolute;
  bottom: 25%;
  left: 5%;
}

.hero-text {
  position: absolute;
  bottom: 0%;
  left: 5%;
}

.hero-title,
.hero-text {
  background-color: rgba(0, 0, 0, 0.302);
  padding: 8px 16px;
}


.hero-title{ color:rgb(254, 254, 254);
font-size: 3rem;}
.hero-text{ color:rgb(251, 251, 251);
font-size: 2rem;}

/* --- Text blocks --- */

.image-inline-left {
   
  width: 80%;

}

.image-inline-right {

  width: 40%;
 
}


.text-block{display: flow-root;}

.section-title {
  margin: 0px 0px 20px 0px ;   /* top, left and right, bottom */
}

.text-block {
  margin-bottom: 40px;
}

.text-block {
  margin-bottom: 25px;
  padding:0px;
  font-size: 1rem;
}

.site-footer {
  margin-top: 60px;
  padding: 32px 0;
  background-color: #eeeeee;
}


/* --- flex --- */

/* FLEX CONTAINER: image + text side by side */
.flex-row {
  display: flex;
  gap: 25px;
  margin-bottom: 35px;
  background-color: rgb(255, 198, 198);
  padding:20px
  align-items: center;
}
.flex-media {
  width: 40%;
}
.flex-text 
{}

  /* --- grid --- */


/* GRID CONTAINER: image + text cards */

.card-grid {
 display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5em;
}


   .card-image {
  width: 100%;
  height: 100px;
  object-fit: contain;
}


.card {
  padding: 20px;
  background-color: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 6px;
}

.card-title {
  margin: 10px;
  color: red;
}

/* HAMBURGER: hidden on wide screens */
#nav-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  background-color: #222222;
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* HAMBURGER: the X when the menu is open */
#nav-toggle:checked + .hamburger span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

#nav-toggle:checked + .hamburger span:nth-child(2) {
  opacity: 0;
}

#nav-toggle:checked + .hamburger span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* MOBILE: 768px and narrower */
@media (max-width: 768px) {

  /* Logo left, hamburger right, and let the nav drop to its own line */
  .site-header {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  /* Show the hamburger */
  .hamburger {
    display: flex;
  }

  /* Hide the nav, and make it a full line when it opens */
  .site-nav {
    display: none;
    flex-basis: 100%;
  }

  /* Show the nav when the checkbox is checked */
  #nav-toggle:checked ~ .site-nav {
    display: block;
  }

  /* Stack the links */
  .nav-list {
    flex-direction: column;
    border:#1a5f9c
  }

  .flex-row {
  flex-direction: column;
}

.flex-media {
  width: 100%;
}

.site-nav  {background-color: #222222;

  }.nav-link {border:#fa5f5f;
  background-color: #222222;
  color:#ffffff
  }
  
  .hero-title{
    font-size: 2rem;}

  }