@media print {

  .page-node-type-m49-country-master * {
    -webkit-print-color-adjust: exact !important; /* For Chrome */
    print-color-adjust: exact !important;         /* Standard */
  }
 
  header {
    padding: 0px 30px;
    /*position: fixed;*/
    width: 100%;
    z-index: 1000;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: static !important;
    display: block;
  }
  header .logo {
    width: 255px;
    max-width: 50%;
    background: url(../images/updated-header-logo.svg) no-repeat center / 100%;
    height: 60px;
    float: left;
    -webkit-print-color-adjust: exact; /* For Chrome/Safari */
    print-color-adjust: exact;         /* For Firefox */
  }
  main {
    margin-top: 0px;
  }
  #block-wpp-new-theme-countryprofiles {
    display: none;
  }
  h2.basic-page-title {
    color: #fff;
    margin: 0px;
    text-align: left !important;
    font-weight: 600;
    text-transform: initial;
  }
  /*.banner-overlay {
    position: absolute;
    padding: 0px !important;
    top: 50%;
    left: 10%;
    color: #fff;
    width: 80%;
    max-width: 80%;
    min-width: 350px;
    font-size: 15px;
    transform: translate(0%, -50%);
  }*/
  .basic-page-title .banner-overlay {
    position: static;
    color: #5C5C5C;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    text-align: center;
    color: #fff;
    background: linear-gradient(90deg, rgb(78, 144, 181) 0%, rgb(130, 199, 147) 70%, rgb(130, 199, 147) 100%);
  }
  /*.basic-page-title .banner-overlay h1 {
    margin-bottom: 0;
    font-size: 30px;
    font-weight: 700;
    text-transform: uppercase;
    color: #4e90b5 !important;
  }*/
  .page-node-type-m49-country-master .container.country-detail-container {
    padding: 10px 15px;
    background: linear-gradient(180deg, rgb(232, 244, 249) 0%, rgba(255, 255, 255, 0) 20%);
    width: 100% !important;
    margin: 0 !important;
    max-width: 100%;
  }
  .page-node-type-m49-country-master .select-country-container {
    padding-left: 0;
    padding-right: 0;
    width: 1050px;
    max-width: 1050px;
    margin: auto;
  }
  .page-node-type-m49-country-master .select-country-container .country-name {
    color: #00A6DB;
    font-size: 40px;
    font-weight: bold;
    font-weight: bold;
    line-height: 2;
  }
  .blue-reverse-button {
    background-color: transparent;
    color: #00A6DB;
    cursor: pointer;
    padding: 10px 30px;
    border-radius: 8px;
    border: 2px solid #00A6DB !important;
    width: fit-content;
    font-size: 13px;
    font-weight: 700;
    position: relative;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    display: none !important;
  }
  .page-node-type-m49-country-master .select-country-container span {
    margin-right: 10px;
  }
  .page-node-type-m49-country-master .profile-download-btn span.fa.fa-download {
    position: relative;
  }
  .page-node-type-m49-country-master .profile-download-btn .fa-download::before {
    content: " ";
    width: 14px;
    height: 20px;
    color: transparent;
    background-image: url(../images/blue-download.png);
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    left: -10px;
    top: -5px;
    -webkit-print-color-adjust: exact; /* For Chrome/Safari */
    print-color-adjust: exact;         /* For Firefox */
  }
  .page-node-type-m49-country-master .local-government-container {
    margin-left: 0px;
    margin-right: 0px;
    width: 1050px;
    max-width: 1050px;
    margin: auto;
    padding: 15px 0;
  }
  .page-node-type-m49-country-master .local-government-container .country-sub-heading {
    font-size: 34px;
    margin: 10px 0;
    font-weight: bold;
    color: #5C5C5C;
    display: flex;
    align-items: center;
  }
  .page-node-type-m49-country-master .local-government-details {
    display: flex;
    align-items: stretch;
  }
  .page-node-type-m49-country-master .local-government-details .col-md-3 {
    flex: 0 0 auto;
    width: 25%;
  }
  .page-node-type-m49-country-master .local-government-details .left-sidebar {
    width: 100%;
    background: #fff;
    border: 1px solid #eee;
    position: relative;
    border-radius: 8px;
    box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: center;
    padding: 25px 15px;
  }
  .page-node-type-m49-country-master .local-government-details .left-sidebar .country-women-elected-percent {
    width: 80px;
    height: 80px;
    margin: auto;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: bold;
    color: #D26CA9;
    position: absolute;
    top: 45px;
    left: auto;
    z-index: 1;
  }
  .pie-chart--wrapper {
    text-align: center;
  }
  .page-node-type-m49-country-master .women-empower-detail, 
  .page-node-type-m49-country-master .chart-title, 
  .page-node-type-m49-country-master .no-data-chart-title {
    padding: 10px;
  }
  .page-node-type-m49-country-master .local-government-details .women-empower-detail div, 
  .page-node-type-m49-country-master .local-government-details .women-empower-detail strong, 
  .page-node-type-m49-country-master .pie-chart--wrapper .local-level, 
  .page-node-type-m49-country-master .pie-chart--wrapper .no-data-local-level {
    font-size: 16px !important;
    font-weight: 400 !important;
    text-align: center;
  }
  .page-node-type-m49-country-master .local-government-details .left-sidebar .head-government-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #D26CA9 url(../images/country-card-icon1.png) no-repeat center / 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-print-color-adjust: exact; /* For Chrome/Safari */
    print-color-adjust: exact;         /* For Firefox */
  }
  .head-gov .left-sidebar .women-empower-detail div:first-child {
    padding: 10px;
  }

  #block-wpp-new-theme-content {
    background: linear-gradient(180deg, rgb(232, 244, 249) 0%, rgba(255, 255, 255, 0) 20%);
  }
  #block-wpp-new-theme-content .node--type-m49-country-master {
    background-color: unset;
  }
  #fieldset-government-organization {
    padding-left: 16px !important;
  }
  .node--type-m49-country-master #fieldset-government-organization {
    padding: 30px 0px;
    max-width: 1050px;
    margin: auto;
  }
  #fieldset-government-organization h2 {
    font-size: 35px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #5C5C5C;
  }
  .page-node-type-m49-country-master .country-sub-heading {
    font-size: 28px !important;
    margin-bottom: 20px;
    font-weight: 300 !important;
    color: #5C5C5C !important;
    display: flex;
    align-items: center;
  }
  .node--type-m49-country-master .field--name-field-government-figure {
    width: 100%;
    max-width: 100%;
    margin: 20px 0px;
  }
  .node--type-m49-country-master .field--name-field-government-figure img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
  }
  .node--type-m49-country-master .field--type-entity-reference-revisions {
    display: inline-block;
    width: 100%;
    clear: both;
    margin-bottom: 30px;
  }
  .country-sub-details {
    display: inline-block;
    width: 100%;
  }
  .paragraph--type--country-accordion {
    min-width: 250px;
    max-width: 100%;
    margin-bottom: 16px;
    margin: 10px 0px;
    box-shadow: rgba(58, 144, 192, 0.32) 0px 0px 8px 0px;
    border-radius: 8px;
  }
  .node--type-m49-country-master .paragraph--type--country-accordion {
    min-width: 250px;
    max-width: 100%;
    margin-bottom: 0;
  }
  .node--type-m49-country-master .paragraph--type--country-accordion .field--name-field-title {
    padding: 32px 32px;
    color: #5C5C5C !important;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    box-shadow: none;
    border-radius: 8px;
    line-height: 20px;
    display: flex;
    align-items: center;
  }
  .country-sub-details .field__item .paragraph--type--country-accordion .field--name-field-title {
    padding-left: 20px;
  }
  .field--name-field-title:after {
    right: 25px !important;
  }
  .field--name-field-title:after {
    content: " " !important;
    background-image: url(../images/plus.png);
    background-size: contain;
    background-repeat: no-repeat;
    width: 21px;
    height: 21px;
    top: auto !important;
    transition: 0.5s ease-in-out;
    -webkit-print-color-adjust: exact; /* For Chrome/Safari */
    print-color-adjust: exact;         /* For Firefox */
  }
  .page-node-type-m49-country-master .paragraph--type--country-accordion .field--name-field-title:after {
    padding: 4px 4px !important;
  }
  .node--type-m49-country-master .paragraph--type--country-accordion .field--name-field-title:after {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 10px;
    color: #5C5C5C;
    font-size: 20px;
    padding: 7px 4px;
    content: "\f067";
  }
  .field--name-field-content {
    padding: 0px 40px 22px 20px !important;
  }
  .page-node-type-m49-country-master .country-detail .field--name-field-content {
    font-size: 14px;
    font-style: normal;
  }
  .node--type-m49-country-master .paragraph--type--country-accordion .field--name-field-content {
    padding: 0px 20px 22px;
    display: block !important;
  }
  .page-node-type-m49-country-master .paragraph--type--country-accordion .field--name-field-content ul {
    padding: 0 20px;
  }
  .node--type-m49-country-master .overview-of-local-government {
    background-color: #fff;
    padding: 30px 0;
    max-width: 1050px;
    margin: auto;    
    page-break-before: always;
    break-before: page;
  }
  .node--type-m49-country-master .overview-of-local-government h2 {
    margin-bottom: 30px;
    color: #0397d6;
  }
  .page-node-type-m49-country-master .country-sub-heading, .page-node-type-m49-country-master span.fieldset-legend {
    font-size: 35px !important;
    margin-bottom: 20px;
    font-weight: bold !important;
    color: #5C5C5C;
  }
  .page-node-type-m49-country-master .country-sub-heading {
    font-size: 28px !important;
    margin-bottom: 20px;
    font-weight: 300 !important;
    color: #5C5C5C !important;
    display: flex;
    align-items: center;
  }
  .page-node-type-m49-country-master .overview-of-local-government .country-sub-heading:before, .page-node-type-m49-country-master #fieldset-government-organization .country-sub-heading:before {
    content: "";
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
  }
  .page-node-type-m49-country-master #fieldset-government-organization .country-sub-heading:before {
    background: #D26CA9 url(../images/country-detail-icon1.png) no-repeat center / 55%;
    width: 100px;
    height: 100px;
    -webkit-print-color-adjust: exact; /* For Chrome/Safari */
    print-color-adjust: exact;         /* For Firefox */
  }
  .page-node-type-m49-country-master .overview-of-local-government .field--name-field-local-government-compositi .country-sub-heading:before {
    background: #D26CA9 url(../images/country-detail-icon2.png) no-repeat center / 55%;
    width: 100px;
    height: 100px;
    -webkit-print-color-adjust: exact; /* For Chrome/Safari */
    print-color-adjust: exact;         /* For Firefox */
  }
  .page-node-type-m49-country-master .overview-of-local-government .field--name-field-local-government-elections .country-sub-heading:before {
    background: #D26CA9 url(../images/country-detail-icon3.png) no-repeat center / 55%;
    width: 100px;
    height: 100px;
    -webkit-print-color-adjust: exact; /* For Chrome/Safari */
    print-color-adjust: exact;         /* For Firefox */
  }
  .page-node-type-m49-country-master .overview-of-local-government .field--name-field-national-legal-framework .country-sub-heading:before {
    background: #D26CA9 url(../images/country-detail-icon4.png) no-repeat center / 55%;
    width: 100px;
    height: 100px;
    -webkit-print-color-adjust: exact; /* For Chrome/Safari */
    print-color-adjust: exact;         /* For Firefox */
  }
  .country-sub-details {
    display: inline-block;
    width: 100%;
  }
  .page-node-type-m49-country-master .country-detail {
    margin-left: 0 !important;
  }
  .node--type-m49-country-master .country-detail {
    float: none;
    margin-left: 20px;
    width: 100%;
  }
  .page-node-type-m49-country-master .pdf-container {
    background-color: #EDF8FD !important;
    display: flex;
    justify-content: center;
    max-width: 100% !important;
  }
  .node--type-m49-country-master .pdf-container {
    background-color: #fff;
    padding: 5px 10px;
    max-width: 1000px;
    margin: auto;
  }
  .page-node-type-m49-country-master .pdf-container .country-sub-details {
    display: inline-block;
    width: 100%;
    padding: 30px 0px;
    width: 1050px;
    max-width: 1050px;
  }
  .page-node-type-m49-country-master .pdf-container .country-sub-details .note {
    color: #5C5C5C !important;
    font-size: unset !important;
    font-style: normal !important;
    padding-bottom: 0 !important;
  }
  .page-node-type-m49-country-master .country-sub-details .note p {
    margin: 0;
  }
  .page-node-type-m49-country-master .note p:first-child {
    font-size: 28px;
    font-weight: 300;
    padding-bottom: 10px;
  }
  .feedback {
    text-align: center;
    margin: 50px 0;
    font-size: 16px;
    display: none;
  }
  .feedback a {
    color: #D26CA9;
    text-decoration: none;
    font-weight: bold;
  }
  .local-government-details .left-sidebar .women-empower-no-data, .local-government-details .left-sidebar .chart-no-data, .local-government-details .left-sidebar .charts-no-data {
    width: 80px;
    height: 80px;
    margin: -75px auto;
    border-radius: 50%;
    background: #f15c22;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    position: relative;
    top: auto;
    left: auto;
  }
  .page-node-type-m49-country-master .local-government-details .left-sidebar .head-government-no-data, 
  .page-node-type-m49-country-master .local-government-details .left-sidebar .women-empower-no-data, 
  .page-node-type-m49-country-master .local-government-details .left-sidebar .chart-no-data, 
  .page-node-type-m49-country-master .local-government-details .left-sidebar .charts-no-data {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #D26CA9 url(../images/empower-woman-icon.png) no-repeat center / 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: unset !important;
    -webkit-print-color-adjust: exact; /* For Chrome/Safari */
    print-color-adjust: exact;         /* For Firefox */
  }

  footer {
    background-color: #00A6DB;
    margin-top: 40px !important;
    padding: 7px 0 0 !important;
    display: none !important;
  }
  footer .region-footer-left .field--name-body {
    margin: 0px;
    padding: 0px;
    max-width: 100%;
  }
  footer .footer-logo {
    float: left;
  }
  footer .footer-logo .footer-d-logo {
    margin-top: 5px;
    margin-right: 50px;
  }
  footer .region-footer-left .field--name-body img {
    max-width: 180px;
  }
  footer .region-footer-left .field--name-body img {
    margin-top: 0px;
  }

  /* General reset */
  body, html {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }


  /* Accordion and paragraph cleanup */
  .accordion-container,
  .paragraph {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  /* Avoid large blank spaces by allowing flexible breaks */
  p,
  ul,
  li {
    page-break-inside: auto !important;
    orphans: 2;
    widows: 2;
  }

  /* Image scaling and spacing */
  img {
    max-width: 100% !important;
    height: auto !important;
    page-break-inside: avoid;
  }

  /* Remove hidden or unnecessary content */
  .accordian-content,
  .feedback,
  .note,
  .orange-link,
  .js-form-item,
  .js-form-wrapper {
    page-break-after: avoid !important;
    page-break-inside: avoid !important;
  }

  /* Clean headings */
  h1, h2, h3, h4 {
    page-break-after: avoid !important;
    page-break-inside: avoid !important;
  }

  .accordion.custom-accordion .accordion-item .collapse:not(.show) {
    display: block;
  }
  #about_accordion .accordion-header button span.icon img, 
  #country_accordion .accordion-header button span.icon img {
    transform: rotate(45deg);
    display: none;
  }
}

