.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    page-break-inside: avoid;
}
/* Cover Page Styling */
.cover {
    background-color: #007bff;
    color: white;
    height: 100vh; /* Full A4 page */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px;
    text-align: center;
    page-break-inside: avoid;
    border-radius: 15px;
}
.cover h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
}
.cover p {
    font-size: 1.5em;
    margin-bottom: 10px;
}
.info-block {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 10px;
}
.info-block p {
    font-size: 1.2em;
}
.section {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
    page-break-inside: avoid;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}
.section h2 {
    font-size: 1.5em;
    color: #343a40;
    margin-bottom: 15px;
}
.section p {
    font-size: 1.1em;
    color: #495057;
    line-height: 1.7;
}
.score-section {
    text-align: center;
    margin: 40px 0;
    font-size: 2em;
    font-weight: bold;
    color: #333;
}
.icon {
    display: inline-block;
    /* background-color: #007bff; */
    width: 30px;
    height: 30px;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    color: white;
    font-size: 0.7em;
    margin-right: 10px;
}
footer {
    text-align: center;
    background-color: #e9ecef;
    padding: 20px;
    font-size: 0.9em;
    color: #6c757d;
    border-radius: 10px;
    margin-top: 40px;
}
.page-break {
    page-break-before: always;
}
/* Closing Page Styling */
.closing-page {
    background-color: #e9ecef;
    height: 100vh;
    display: flex;
    page-break-inside: avoid;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 15px;
}
.closing-page h2 {
    font-size: 3em;
    color: #343a40;
}

/**********  adding new pdf style css **************/

.a4-container {
    width: 210mm; /* A4 width in mm */
    height: 297mm; /* A4 height in mm */
    background-color: white;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: auto !important;
    
  }
  
  /* Section 1: Full-width Header Image */
  .header-section {
    width: 100%;
   /* height: 40%;  This will take 40% of the height */
  }
  
  .header-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* Section 2: Red and Yellow Columns */
  .content-section {
    display: flex;
    height: 30%; /* This will take 30% of the height */
  }
  
  .red-section {
    background-color: #E9443F; /* Red */
    width: 70%; /* 70% width */
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    color: white;
  }
  
  .red-section h2 {
    font-size: 32px;
    margin-bottom: 10px;
  }
  
  .red-section h4 {
    font-size: 24px;
  }
  
  .yellow-section {
    background-color: #F1C40F; /* Yellow */
    width: 30%; /* 30% width */
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .yellow-section .arrow-img {
    width: 80px; /* Adjust size as needed */
    height: auto;
  }
  
  /* Section 3: Blue Footer */
  .footer-section {
    background-color: #273444; /* Blue */
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 30%; /* This will take 30% of the height */
  }
  
  .footer-left {
    text-align: left;
    width: 50%;
  }
  
  .footer-right {
    text-align: right;
    width: 50%;
  }
  
  .footer-right img {
    width: 150px;
    margin-bottom: 10px;
  }

  
  .a4-container-section2 {
    width: 210mm; /* A4 width */
    height: 297mm; /* A4 height */
    background-color: white;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    box-sizing: border-box;
    margin: auto !important;
    margin-top: 10px !important;

    position: relative; /* Allow for the footer background to be positioned relative to the content */
  }
  
  #page-header-section2 {
    height: 110px;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
  }
  
  #header-image-section2 {
    height: 100%;
    width: auto;
    object-fit: contain;
    position: absolute;
    top: -20px;
    right: -20px;


  }

  #header-image-section2-2 {
    width: auto;
    object-fit: contain;
    position: absolute;
    width: 75px;
    height: 70px;
    top: 100px; 
    right: 30px;
  }
  
  /* Section 2: Blue box with name and description */
  #intro-section-section2 {
    padding: 0px 30px 20px 30px;
    text-align: left;
    height: 20%; /* Occupying 20% of the A4 height */
  }
  
  #blue-box-section2 {
    padding: 0px 20px;
    border-radius: 10px;
    color: white;
   
    position: relative;
    z-index: 2; /* Ensure the blue box is above the footer background */
  }
  
  #blue-box-section2 h1 {
    margin-bottom: 10px;
    font-size: 45px;
    color: #e74c3c; /* Red for "Hi Jhoon" */
    padding-bottom: 20px;
    position: relative;
  }
  #blue-box-section2 h1::after {
    content: '';
    width: 65px;
    height: 54px;
    background-color: blue;
    position: absolute;
    left: -71px;


  }
  #blue-box-section2 p {
    font-size: 18px;
    color: black;
    width: 90%;
  }
  
  /* Section 3: Results section with gauge and comment box */
  #results-section-section2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 25%; /* Occupying 20% of the A4 height */
    position: relative;
    z-index: 2; /* Ensure results section is above footer background */
    border: 1px solid #DAE0FF;
    margin: 0px 40px !important;
    border-radius: 20px;
  }
  
  #result-gauge-section2 {
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 210px;
    margin-top: 50px;
    margin-left: 10px;
  }
  
  #gauge-img-section2 {
    width: 100px; /* Placeholder size */
    height: auto;
  }
  
  #comment-box-section2 {
    width: 60%;
    padding: 30px;
   
  }
  
  #comment-box-section2 h3 {
    margin-bottom: 10px !important;
    font-size: 18px;
    font-weight: 700;
  }
  
  #comment-box-section2 p {
    font-size: 16px;
  }
  
  /* Section 4: Insights section */
  #insights-section-section2 {
    padding: 20px;
    margin: 20px;
    height: 30%; /* Occupying 30% of the A4 height */
    position: relative;
    z-index: 2; /* Ensure insights section is above footer background */
  }
  
  #insight-box-section2 {
    background-color: #E1F7FA;
    padding: 20px;
    border-radius: 10px;
    border: #E1F7FA;
    margin: 0px auto !important;
  
  }
  #insight-box-section2 h3{
    font-weight: normal;
    text-align: center;
    margin-bottom: 30px !important;
  }
  .insight-row-section2 {
    display: flex;
    width: 80%;
    align-items: center;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 10px auto !important;
    background: white;;
    
  }
  
  .insight-row-section2 i {
    font-size: 24px;
    margin-right: 15px;
    color: gray !important;
  }
  
  .insight-row-section2 p {
    flex: 1;
    font-size: 14px;
    color: rgb(95, 95, 95);
  }
  
  .progress-bar-section2 {
    background-color: #eee;
    border-radius: 5px;
    overflow: hidden;
    width: 100px;
    height: 10px;
    margin-right: 10px;
  }
  
  .progress-section2 {
    background-color: #27ae60;
    height: 100%;
  }
  
  .insight-row-section2 .fas.fa-smile {
    color: #27ae60 !important;
  }
  
  .insight-row-section2 .fas.fa-frown {
    color: #e74c3c !important;
  }
  
  /* Section 5: Footer with yellow background behind content */
  #footer-section-section2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px; /* This is adjustable, depending on how much yellow you want to show */
    z-index: 1;
  }
  
  #footer-background-section2 {
    background-color: #F1C40F;
    height: 100%;
    width: 100%;
    position: absolute;
    z-index: -1; /* Ensure footer background is behind everything else */
  }
  


  
  .a4-container-page3 {
    width: 210mm; /* A4 width */
    height: 297mm; /* A4 height */
    background-color: white;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 5px 20px 20px 20px;
    box-sizing: border-box;
    position: relative;
    margin: auto !important;
    margin-top: 2px !important;
  }
  
  /* Header Section with logo */
  #page3-header-section {
    display: flex;
    justify-content: flex-end;
    padding: 10px 0;
    height: 110px;
    position: relative;
  }
  
  #page3-logo {
    width: auto;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: -20px;
    right: -20px;

  }
  #page3-logo2 {
    width: auto;
    height: 70px;
    object-fit: contain;
    position: absolute;
    top: 65px;
    right: 141px;

  }
  
  #page3-title-section {
    margin-bottom: 20px;

  }
  
  #page3-title-section h2 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
    margin: 10px 40px !important;  
  }
  
  /* Section 2: Questions and Answers styling */
  #page3-qa-section {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Larger gap for better readability */
    position: relative;
    z-index: 2;
  }

  /* Section 2: Questions and Answers styling */
.page3-qa-section {
  display: flex;
  flex-wrap: wrap; /* Allows wrapping of items to multiple rows */
  gap: 20px; /* Larger gap for better readability */
  justify-content: space-between; /* Spreads the columns evenly */
}

.qa-box-page3 {
  display: flex;
  width: 48%; /* 48% width for each Q&A box to fit two per row */
  padding: 10px;
  background-color: #eaf4fc;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #d1e8f3; /* Subtle border for outline effect */
  margin-bottom: 10px;
}


.qa-number-page3 {
  width: 13px;
  height: 13px;
  background-color: #2c3e50;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 10px;
  margin-right: 5px;
}
.qa-content-page3 {
  flex: 1;
}

.qa-content-page3 p {
  margin-bottom: 10px;
  font-size: 10px;
  color: #2c3e50;
}

  .qa-content-page3 p strong {
    font-size: 10px;
    color: #2c3e50;
  }

  /* Section 4: Footer with yellow background behind content */
  #footer-section-page3 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px; /* This is adjustable, depending on how much yellow you want to show */
    z-index: 1;
  }

  #footer-background-page3 {
    background-color: #F1C40F;
    height: 100%;
    width: 100%;
    position: absolute;
    z-index: -1; /* Ensure footer background is behind everything else */
  }

  .a4-container-page4 {
    width: 210mm; /* A4 width */
    height: 297mm; /* A4 height */
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
    margin: auto !important;
    margin-top: 10px !important;
  }

  /* Blue background section */
  #page4-background-section {
    width: 100%;
    height: 100%;
    background-color: #273444; /* Blue background color */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
  }

  /* Centered content in the footer area */
  #page4-content {
    text-align: center;
    color: white;
    position: absolute;
    bottom: 30px;
    width: 100%;
  }

  #page4-logo {
    width: 150px;
    margin-bottom: 10px;
  }

  #page4-content p {
    margin-bottom: 5px;
    font-size: 16px;
  }

  .cover-container {
    width: 182mm;
    height: 257mm;
    margin: 0 auto;
    background-color: white;
    position: relative;
    border: 1px solid #ccc;
    display: flex;
    flex-direction: row;
}

.left {
    width: 40%;
    background-color: #ef3f37;
    position: relative;
}

.right {
    width: 60%;
    background-color: #002f44;
    color: white;
    padding: 40px;
    position: relative;
    text-align: right;
}

.logo {
    width: 280px;
    margin-bottom: 20px;
}
.text-middle {
    height: 100%;
    padding: 79% 0;
}


.report-info h1 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.report-info h2 {
    font-size: 18px;
    color: #ef9637;
    margin-bottom: 30px;
}

.contact-info p {
    font-size: 14px;
    margin-bottom: 10px;
    text-align: right;
}
.bottom-text {
    font-size: 12px;
    margin-top: 60px;
    position: absolute;
    bottom: 40px;
    text-align: right;;
    right: 40px;
}
.image-container {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(0%);
    width: 90%;
    z-index: 10;
}

.report-image {
    width: 100%;
    border-radius: 8px;
}
.qa-box {
  width: 48%;
  position: relative;
  /*border: 1px solid #ccc;*/
  word-wrap: break-word;
  overflow-wrap: break-word;
  padding: 10px 15px;  /* Added left and right padding */
  border-radius: 6px;
  font-size: 9px;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: flex-start;
  background-color: #f9f9f9;
}
.green {
  background-color: #e7f9ed;  /* Soft green */
}
.icon {
  /*position: absolute;*/
  /*top: 0px;*/
  /*left: 0px;*/
  /*font-size: 5px; !* Tiny icons *!*/
}
.inline {
  font-size: 10px !important;
}
.answer {
  color: black;
  font-weight: normal;
  /*display: block;  !* Force the answer to appear on a new line *!*/
  margin-top: 5px; /* Add some space above the answer */
  padding-top: 5px;
}
.over-question p {
  font-size: 9px;
  color: #333;
  line-height: 1.4;
}
strong {
  color: #333;
}
.green {
  background-color: #e7f9ed;  /* Soft green */
}

.yellow {
  background-color: #fffbe5;  /* Soft yellow */
}
.red {
  background-color: #fdecee;  /* Soft red */
}
.box-question{
  padding: 0px 15px;  /* Added left and right padding */
  width: 48%;
  border-radius: 6px;
  font-size: 9px;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: flex-start;
  background-color: #f9f9f9;
}
.icon {
  font-size: 7px;
  margin-right: 10px; /* Added more space between the icon and the text */
  flex-shrink: 0;
}

.icon.green {
  color: #28a745;
}

.icon.yellow {
  color: #ffc107;
}

.icon.red {
  color: #dc3545;
}
/*.qa-box .inline {*/
/*  display: flex;*/
/*  flex-direction: column;  !* Stack question and answer vertically *!*/
/*  align-items: flex-start;*/
/*}*/
/*}*/