.critic-resource-page * {
  font-family: 'Roboto' !important;
  hyphens: none !important;
  word-break: normal !important;
}

.critic-resource-page p {
  font-size: 16px;
  line-height: 1.4;
  margin-top: 20px;
  margin-bottom: 20px;
  color: #343741;
  font-weight: 400;
}

.critic-resource-header-wrapper {
  display: flex;
  justify-content: center;
  background-color: #004C97;
  margin-bottom: 3rem;
}

.critic-header {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 50px 100px 0 100px;
  max-width: 1400px !important;
  min-height: 300px;
  width: 100%;
}

.critic-header-left {
  text-align: left;
  min-width: 50%;
  display: flex;
  flex-direction: column;
}

.critic-header-header-image {
  width: 50%;
  text-align: right;
}

.critic-header-header-image img {
  max-width: 100%;
  height: auto;
}

.critic-header-term-link {
  font-size: 14px;
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase !important;
}

.critic-header-term-link:hover {
  text-decoration: none !important;
}

.critic-header-page-title {
  font-size: 36px;
  font-weight: 600;
  margin: 0.5rem 0;
  line-height: 150%;
  color: #fff !important;
  letter-spacing: 0 !important;
}

.critic-resource-content {
  padding: 10px 90px;
}


.critic-header-pdf-download {
  margin-top: 1rem;
}

.critic-header-pdf-button {
  background-color: transparent !important;
  color: white !important;
  padding: 8px 24px;
  border-radius: 8px;
  border: 1px solid #fff;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  line-height: 22px;
   margin-bottom:30px;
}

.pdf-button:hover {
  color: #fff !important;
}

/* Tab container for centering */
.critic-resource-tabs-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0 0;
}

/* Tab styling */
.critic-resource-tabs {
  display: flex;
  border-bottom: 1px solid #ddd;
}

.tab-button {
  padding: 12px 24px;
  background: #82a9d3; /* Lighter blue for inactive state */
  color: white;
  border: 1px solid #7399c0;
  border-radius: 5px 5px 0 0;
  margin-right: 8px;
  cursor: pointer;
  font-weight: 500;
  min-width: 190px;
  transition: background-color 0.3s ease;
  text-align: center;
}

.tab-button:hover {
  background: #6b96c2;
}

.tab-button.active {
  background: #004C97; /* Darker blue for active state */
  border: 1px solid #003a73;
  border-bottom: 1px solid #003a73;
  margin-bottom: -1px;
}

.tab-content-section {
  display: none;
  padding: 20px;
  border: 1px solid #ddd;
  border-top: none;
  background-color: #EFF3EA;
}

.tab-content-section.active {
  display: flex;
  justify-content: center;
}

/* PDF viewer styling */
.critic-resource-pdf-viewer {
  width: 70%;
  max-width: 1440px;
  height: 800px; /* Much taller PDF viewer */
}


.critic-resource-pdf-viewer .media.media--type-document.media--view-mode-default {
  height: 100%;
  flex: 1 1 auto; /* allows it to grow if using flex context */
}

.critic-resource-pdf-viewer > * {
  height: 100% !important; /* Much taller PDF viewer */
}

.critic-resource-pdf-viewer .field__item {
  height: 100% !important; 
}

.critic-resource-pdf-viewer .pdf {
  height: 100%; 
}

.critic-resource-pdf-viewer > *,
.critic-resource-pdf-viewer > * > *,
.critic-resource-pdf-viewer iframe {
  height: 100% !important;
}

.critic-resource-pdf-viewer .contextual-region {
  height: 100%;
}

.critic-resource-pdf-viewer .field {
  height: 100%;
}
.critic-resource-content .mktoHtmlText.mktoHasWidth{
color: #fff;
}
.critic-resource-content form{
    background-color: #004c97;
border-radius: 15px;
}
.critic-resource-content .mktoButton{
background-color: #18A0FB !important;
}
.critic-resource-content .mktoForm .mktoButtonRow{
margin-left: 71px;
    margin-bottom: 30px;
}
.critic-resource-content .mktoForm .mktoRadioList > label{
color:#fff;
padding-right: 5px;
}
.critic-resource-content .mktoForm .mktoRadioList{
display:flex;
}
.critic-resource-content input[type="radio"] {
appearance: auto;
}

.critic-resource-content .mktoForm input[type="radio"]:focus {
  outline: none;
  box-shadow: none;
}

.critic-resource-content input[type="radio"]:hover{
box-shadow:none;
}
.critic-resource-content .mktoForm .mktoCheckboxList > label{
color:#fff;
padding-right: 5px;
}
.critic-resource-content .mktoForm .mktoCheckboxList{
display:flex;
}
.critic-resource-content input[type="checkbox"] {
appearance: auto;
}

.critic-resource-content .mktoForm input[type="checkbox"]:focus {
  outline: none;
  box-shadow: none;
}

.critic-resource-content input[type="checkbox"]:hover{
box-shadow:none;
}
.view-content .global-image2{
opacity:0.15;
}
/* Media query for responsive design */
@media screen and (max-width: 768px) {
  .critic-header {
    flex-direction: column;
    padding: 40px 80px 0 80px;
    gap: 1rem;
  }
  
  .critic-header-left {
    min-width: 100%;
    width: 100%;
  }
  
  .critic-header-header-image {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
    padding-bottom: 0;
  }
  
  .critic-header-page-title {
    font-size: 28px;
  }
}

/* Responsive styles */
@media (max-width: 768px) {
  .critic-resource-tabs {
    flex-direction: row; /* Changed from column to row */
    width: 100%;
    border-bottom: none;
    justify-content: center;
  }

  .critic-resource-content {
    padding: 10px 30px;
  }
  
  
  .tab-button {
    width: calc(50% - 4px); /* 50% width minus half the gap */
    margin-right: 4px;
    margin-left: 4px;
    margin-bottom: 5px;
    border-radius: 5px;
    box-sizing: border-box; /* Include padding in width calculation */
  }
  
  .tab-button.active {
    margin-bottom: 5px;
  }
  
  .critic-resource-pdf-viewer {
    height: 500px; /* Shorter on mobile */
  }
  
  .pdfjs iframe {
    min-height: 500px !important;
  }
  
  .tab-content-section {
    padding: 15px 10px;
  }
}

/* Additional breakpoint for very small screens */
@media screen and (max-width: 480px) {
  .critic-header {
    min-height: auto;
    padding: 30px 20px 0 20px;
  }
  
  .critic-header-page-title {
    font-size: 24px;
  }
  
  .critic-resource-pdf-viewer {
    height: 400px;
  }
  
  .pdfjs iframe {
    min-height: 400px !important;
  }
  
  /* Keep the buttons side by side */
  .tab-button {
    width: calc(50% - 4px);
    font-size: 14px; /* Smaller font for very small screens */
    padding: 10px 12px; /* Slightly smaller padding */
  }
  .wp-block-column .mktoForm .mktoFormRow .mktoField {
        height: auto !important;
        box-shadow:none;
    }
.wp-block-column .mktoForm .mktoRadioList {
    width: 130px !important;
}
}