body {
  max-width: 1050px;
  margin-left: auto;  /* Pushes from the left */
  margin-right: auto; /* Pushes from the right */
  width: 90%;         /* Ensures some padding on small mobile screens */ 
  font-family: lato;
  font-size: 1.1em;
  
}

h1, h2, h3, h4 {
}

h2 {
  margin-bottom: 15px;
  color: #333;
}

p, ul {
  line-height: 1.6;
  color: #000;
}

 a {
  line-height: 1.6;
  color: blue;
  text-decoration: underline;
  }

a:hover {
  color: purple;
}

.main {}

.site_content {}

.container {
  margin: 40px auto;
  padding: 0 20px;
}

.content-block {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 10px;
}

/* The magic for alternating layouts */
.content-block.reverse {
  flex-direction: row-reverse;
}

.block-image-20 {
  flex: 1 1 20%;
  justify-content: center;
  align-items: center;
}

.block-image-40 {
  flex: 1 1 40%; 
}

.block-text-80 {
  flex: 1 1 80%;
}

.block-text-60 {
  flex: 1 1 60%;
}

.block-image-20 img, .block-image-40 img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* GRID LAYOUTS =============================================================================*/
/* Grid Container */
.responsive-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Exactly 2 columns */
  gap: 30px; /* Space between items */
  max-width: 1050px;
  margin: 40px auto;
  padding: 0 20px;
}

.responsive-grid-4col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px; /* Space between items */
  max-width: 1050px;
  margin: 40px auto;
  padding: 0 20px;
}

/* 2. Grid Item - Using Flex to handle vertical alignment */
.grid-item {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  justify-content: center;
  align-items: center;
  border: 1px solid #eee;
}

.item-title-bar {
  width: 100%;
  background-color: red;
  color: white;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.left-padding {
	padding-left: 20px;
}

.item-image {
  display: flex;
  padding: 20px;
}

/* 3. Image Handling */
.item-image img {
  width: 100%;
  object-fit: cover; /* Ensures image isn't distorted */
  display: block;
}

/* 4. Text Content */
.item-text {
  padding: 0 25px;
  flex-grow: 0.7; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.item-text h3 {
  margin-top: 0;
  color: #333;
}

	.ribbon {
		float: left;
		position: relative;
		height: 160px;
		width: 160px;
		color: #fff;
		display: inline-block;
		margin: 15px 15px 15px 0;
		overflow: hidden;
	} 
	
	.ribbon p {
		display: inline;	
	}
	
	.ribbon a {
		color: white;	
	}
	
.ribbon_reserved {
	position: absolute;
	display: inline-block;
	text-align: center;
	background: rgb(0, 0, 255);
	background: rgba(0, 0, 255, 0.4);
	top: 122px;
	right: 0px;
	width: 150px;
} 

/* PAGE FOOTER =============================================================================*/

.footer {
  width: 100%;
  background: #f4f4f4;
  padding: 8px 0;
  display: block;
  text-align: center;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}



/* Mobile Responsive ========================================================= */
@media (max-width: 768px) {
/* flex box */
  .content-block, 
  .content-block.reverse {
    flex-direction: column; /* Stacks image on top of text */
    gap: 30px;
    margin-bottom: 50px;
  }

  .block-text {
    text-align: center; /* Optional: Centers text on mobile */
  }
  
/* grid */
  .responsive-grid-2col {
    grid-template-columns: 1fr; /* Switch to 1 column */
    gap: 20px;
  }
}

