html, body {
    margin: 0;
    padding: 0;
    /*width: 100%;
    /*height: 100%; /* Ensure body takes full height of the viewport */
    /*overflow-x: hidden; /* Prevent horizontal scrolling */
    /*overflow-y: hidden; /* Prevent vertical scrolling */
}

body {
    font-family: 'Garamond',serif;
    line-height: 1.4;
    background-color:white;
    /*margin-top: 50px;
    margin-bottom: 0px;*/
    overflow-x: hidden; /* Prevent y-axis scrolling */
}

/* Upper ribbon */
.upper-ribbon {
    position: fixed;
    top: 0;
    width: 100vw;
    background-color: #fff;
    z-index: 1002;
    box-shadow: 0 -1px 1px rgba(0, 0, 0, 0.08),
                0 1px 1px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100px; /* Adjust the height */
    transition: all 0.3s ease;
}


.h1-hidden {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


.seo-hidden {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


/* FAQ Section Styling */
.faq-section {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: 'Garamond', serif;
  font-size: 18px;
  line-height: 1.7;
  color: #333;
}

.faq-section h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
  color: #8c0017;
}

.faq-item {
  margin-bottom: 30px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 20px;
}

.faq-item h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #8c0017;
}

.faq-item p {
  font-size: 18px;
  color: #333;
}


/* First row: CREDIT SIMULATOR text */
.credit-text {
    text-align: left;
    font-size: 12px;
    font-weight: bold;
    padding: 8px;
	margin-top:20px;
    color: #fff;
}

/* Second row: Menu row (logo and sections) */
.menu-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    background-color: #8c0017;
}

/* Logo styling */
.logo {
    padding: 10px;
    margin-left: 10px;
    height: 24px;
    width: 24px;
    border-radius: 20px;
}

/* Sections in the menu */
.menu-section {
    padding: 10px;
    font-size: 18px;
    color: #fff;
    text-align: center;
    cursor: pointer;
    transition: color 0.3s;
    position: relative;
    margin-left: 5%;
    margin-right: 5%;
	font-weight:bold;
}

.menu-section:hover {
    color: #ffb012;
}

/* Section styles */
.section {
    position: relative;
    cursor: pointer;
}

/* Dropdown list styles */
.section-list {
    display: none;
    position: absolute;
    top: 100%;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
    left: 50%;
    transform: translateX(-50%);
    list-style-type: none;
    margin: 0;
    min-width: 250px;
    z-index: 1000;
}

.menu-section:hover .section-list {
    display: block;
}

.section-list li {
    padding: 8px 10px;
    color: #333;
}

.section-list li:hover {
    background-color: #f0f0f0;
    cursor: pointer;
}

.section-list li a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
}

.section-list li a:hover {
    color: #ffb012;
}

/* Main page content*/

.mainpage {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
	margin-top:130px;

}

.cards-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 85%;
	min-height: 500px;
    max-width: 1800px;
    gap: 80px;
	
}

.section {
    flex: 1;
    padding: 10px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
	min-height:540px;
	width:300px;
	border: 3px solid #80011f;
}

.section h2 {
	padding:12px;
    text-align: center;
    font-size: 24px;
    margin-bottom: 8px;
    color: #333;
	font:'Garamond';
	font-weight:bold;
}

.section.loan-simulator {
	width:240px;
}

.rows {
    display: flex;
    flex-direction: column;
    gap: 15px;
	align-items:center;
}

.col {
    display: flex;
    align-items: left;
    gap: 20px;
    border: 1px solid #78020a;
    border-radius: 10px;
    padding: 10px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
	min-width:20vw;
}

.col:hover {
    border-color: #c90018;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.header {
    min-width: 14vw;
    width: 100%; /* Ensures it takes full column width */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px;
}

.header img {
    flex-shrink: 0;
}

.header span {
	flex-grow:1;
    font-size: 16px;
    text-align: left;
    line-height: 1.4;
	padding:10px;
	margin-left:20px;
	letter-spacing: 3px;
}

.header-link {
    text-decoration: none; /* Remove underline */
    color: inherit; /* Inherit color from the parent for the text */
    display: inline-block; /* Ensure the link wraps the entire header */
}

.header-link .header {
    cursor: pointer; /* Shows pointer on hover to indicate a link */
}

footer {
      text-align: center;
      padding: 20px;
      margin-top: 40px;
      background-color: #f0f0f0;
      color: #777;
    }
	



/* Mobile adopted */


@media screen and (max-width: 720px) {
  .upper-ribbon {
    height: auto;
    padding: 0px 0;
  }

  .credit-text {
    font-size: 12px;
    margin-top: 10px;
    padding: 0px;
    text-align: center;
  }
  
  
.faq-section {
    font-size: 16px;
    padding: 0 10px;
  }

  .faq-section h2 {
    font-size: 20px;
  }

  .faq-item h3 {
    font-size: 18px;
  }

  .faq-item p {
    font-size: 16px;
  }


  .menu-row {
    flex-direction: column;
    align-items: center;
    padding: 5px;
	display: none;
  }

  .logo {
    margin: 0;
    padding: 0px;
    height: 16px;
    width: 16px;
	display: none;
  }

  /*.menu-section {
    margin: 5px 0;
    font-size: 18px;
    padding: 4px;
  }

  .section-list {
    min-width: 240px;
    font-size: 16px;
  }
*/
  .mainpage {
    flex-direction: column;
    padding: 3px;
    margin-top: 0cv;
  }

  .cards-container {
    flex-direction: column;
    width: 90%;
    margin-left: 5%;
    padding: 0 0px;
  }

  .section {
    width: 100%;
    min-height: auto;
    padding: 10px;
  }

.section.loan-simulator, .section.investments {
	margin: 10px;
	width:80%;
}

  .section h2 {
    font-size: 20px;
    padding: 10px;
  }

  .rows {
    gap: 10px;
  }

  .col {
    flex-direction: column;
    align-items: center;
    min-width: 100%;
    gap: 10px;
    padding: 0px;
	margin-top: 10px;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
    min-width: 100%;
    padding: 5px;
  }

  .header span {
    font-size: 14px;
    margin-left: 0;
    padding: 5px 0;
    letter-spacing: 1px;
    text-align: left;
  }

  footer {
    font-size: 12px;
    padding: 10px;
    margin-top: 20px;
  }
}
