html, body{
    background-color: #f8f9fa;
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
}

p {
    text-align: justify;
}

#toolbar-administration {
    z-index: 1084;
  }
  

header {
    z-index: 1050 !important;
  }
  
.fs-7{
    font-size: 0.875rem !important;
}
  
img, svg {
    border-radius: 16px;
}

a{color:#2a70b8;}

.dropdown:hover > .dropdown-menu {
    display: block;
 }

 ul.dropdown-menu.level-2 {
    margin-top: -40px;
    margin-left: 216px;
}

.bg-title-band {
    /* background: #7d0101 !important; */
    /* background: #1c1c1c !important; */
    /* background: url(/mpaweb/sites/default/files/2025-02/bg-lines.svg) no-repeat center center; */
    /* background-size: cover; */
    /* color: white; Ensure text contrast */
    /* padding: 1rem!important; */
    padding: 5rem 0rem 2rem 0 !important;
    /* text-align: center; */
    background: rgb(28,28,28);
    background: linear-gradient(90deg, #453859 2%, #1c1c1c 44%, #184470 85%, #83141d 105%);
}

.bg-title-band::after {
    content: "";
    position: absolute;
    top: 121px;
    right: 15%;
    width: 242px;
    height: 250px;
    background: url(/sites/default/files/default_images/motif.png) no-repeat right center;
    background-size: cover;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

.page-node-type-landing-page .bg-title-band {
    display: none;
}


.carousel-caption h1, .carousel-caption h3, .carousel-caption p {
    text-shadow: 0px 2px 8px #000000cc;
}

.breadcrumb-item + .breadcrumb-item::before, .breadcrumb-item a{color:#fff;}

.bg-title-band:has(ol.breadcrumb) {
    padding: 1rem !important;
}

h4.card-title {color: #45385a!important;}

.user-login-form {
    width: 60%!important;
    margin: 0 auto!important;
}

.page-node-type-article .node__content {
    margin-top: 5em;
}

.btn-mpa-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #45385a;
    --bs-btn-border-color: #45385a;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #2a70b8;
    --bs-btn-hover-border-color: #2a70b8;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #2a70b8;
    --bs-btn-active-border-color: #2a70b8;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #45385a;
    --bs-btn-disabled-border-color: #45385a;
  }
  
  .btn-mpa-secondary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #86171A;
    --bs-btn-border-color: #86171A;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #ad4347;
    --bs-btn-hover-border-color: #ad4347;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #ad4347;
    --bs-btn-active-border-color: #ad4347;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #86171A;
    --bs-btn-disabled-border-color: #86171A;
  }

  .text-mpa-primary {
    color: #453859!important;
}

.text-mpa-primary-2 {
    color: #62489a !important;
}

.navbar-brand .site-title {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing:0px;
    text-transform: none!important;
}

.page-header{
    background-color: #1D0C3d;
}

.navbar-brand a.site-title:hover {
    color: #fff;
    text-decoration: none;
}

.navbar-nav.nav-level-0 > .nav-item:first-child {
    margin-left: -1.3em;
}

.block-language li {
    display: inline-block;
    padding: 5px;
}

.navbar-brand a.site-title{
    color: #fff;
    /* color: #131443; */
}
.navbar-dark {
    background-color: #644A9E;
    /* border-bottom: 8px solid; */
    /* border-image: linear-gradient(115deg, #45385a 0%, rgba(134, 89, 137, 1) 65%, rgba(211, 130, 60, 1) 65%, rgba(244, 147, 28, 1) 100%) 1; */
    /* border-image: linear-gradient(115deg, #7d0101 0%, #7d01017d 65%, #be121d69 65%, #be121d80 100%) 1; */
    /* border-image: linear-gradient(115deg, #43017d 0%, #01667d7d 65%, #124dbe69 80%, #12beb680 100%) 1; */
    box-shadow: 0px 10px 8px 0px #00000069 !important;
    z-index: 1;
    position: relative;
}


.navbar-dark::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 7px;
    width: 100%;
    /*background: linear-gradient(115deg, #43017d, #01667d7d, #124dbe69, #12beb680);*/
    background: linear-gradient(115deg, #453859, #01667d7d, #8412be69, #be121280);
    background-size: 300% 100%;
    animation: borderGradientMove 6s ease infinite;
    z-index: -1; /* So it sits under the navbar content */
}

@keyframes borderGradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

ul.dropdown-menu.level-1 {
    border-left: 6px solid #644A9E;
}

.nav-item {
    padding: 0px 15px;
}

/* .nav-item.top-level:hover {
    background-color: #00000088;
    border-radius: 12px;
} */


.search-block-form {float: right;}

main{
    min-height: 80vh;
}

.bg-mpa-primary {
    background-color: #45385a;
}

.bg-mpa-primary-2 {
	background-color: #64499c!important;	
}

.bg-mpa {
    background-color: #1e1515e6;
}

.badge.p-2.bg-mpa-primary {
    border-left: 8px solid #dc3545!important;
}

.training-hub-block {
    display: flex;
    align-items: center;
    gap: 20px; /* Adjust spacing */
  }
  
  .training-hub-image img {
    max-width: 100%; /* Ensure the image scales properly */
    height: auto;
    border-radius: 5px;
  }
  
  .training-hub-text {
    flex-grow: 1;
  }
  
.page-node-type-training .field--type-image img {
    border: 1px solid #eee;
}

.field--name-field-article-type {
    border: 1px solid;
    display: inline-block;
    padding: 10px 20px;
    border-radius: 20px;
    background-color: #45385a;
    color: #fff;
}

.field--name-field-profile-picture img{
    border-radius: 50%;
    box-shadow: 0px 4px 0px 1px #86171a;
    margin-bottom: 20px;
    /* -webkit-transform: scaleX(-1);
    -moz-transform: scaleX(-1);
    -o-transform: scaleX(-1);
    transform: scaleX(-1); */
}

.field--name-field-role-and-divisional-unit {
    display: none;
}

.field--name-field-tenure-start{
    margin-bottom: 10px;
}

.node--type-page, .node--type-executive-bio {
    margin-top: 3em;
}


.node--type-executive-bio .field--name-title, .node__submitted,
.node--type-executive-bio h2 a
{display: none;}

.block-views-blocktender-notices-block-1 img {
    width: 300px!important;
}

.block-views-blocktender-notices-block-1 .list-group-item{
background-color: transparent;
    border: none;
}

.field--name-field-start-date, 
.field--name-field-end-date, 
.field--name-field-application-deadline, 
.field--name-field-training-tags,
.field--name-field-training-locale,
.block-field-blocknodetrainingfield-training-summary,
.field--name-field-tenure-start,
.field--name-field-tenure-end,
.field--name-field-submission-deadline {
    border: 1px solid #eee;
    background-color: white;
    padding: 10px;
    margin-top: 1em;
    border-radius: 8px;
}

.field--name-field-submission-deadline {
    background-color: #644a9e;
    color: #fff;
    border-left: 16px solid #dc3545;
}

.block-field-blocknodetrainingfield-training-summary{
    margin: 0px 0px 1em!important;
    padding: 1em!important;
}

.field--name-field-training-tags .field__item {
    border: 1px solid;
    background-color: #5f6368;
    margin: 10px;
    padding: 10px;
    border-radius: 12px;
}
.field--name-field-training-tags .field__item a {
    color: #fff;
    text-decoration: none;
}

.field--name-field-tags .field__item {
    border: 1px solid;
    display: inline-grid;
    margin: 16px 16px 16px 0px;
    padding: 12px;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0px 3px 3px 0px #7a7a7a;
}


footer .block-system-branding-block {
    padding-top: 10px;
}

.socials-header a {
    color: #fff!important;
    font-size: 18px;
    text-decoration: none;
}

.socials-footer a {
    font-size: 2em;
    text-decoration: none;
}

.statements-footer a {
    font-size: medium!important;
    padding: 0px 20px;
}

.mpa-border-right {
    border-right: 2px solid #644A9E;
}


.copyright {
    padding-bottom: 3em;
}

/* .mpa-footer h5{
    color: #ffaeb2;
} */

.offcanvas.bg-dark{
    background-color: #644A9E!important;
}

body:has(main div article .bg-mpa-welearntt) .footer-dark {
    margin-top: 0 !important;
}

.footer-dark {
    margin-top: 5em !important;
    /* height: 200px; */
    background: #1c1c1c;
    /* border-top: 12px solid; */
    /* border-image: linear-gradient(225deg, rgba(123, 83, 148, 1) 0%, rgba(134, 89, 137, 1) 65%, rgba(211, 130, 60, 1) 65%, rgba(244, 147, 28, 1) 100%) 1; */
    /* border-image: linear-gradient(115deg, #7d0101 0%, #7d01017d 65%, #be121d69 65%, #be121d 100%) 1; */
    /* border-image: linear-gradient(115deg, #7d0101 0%, #7d0101 57%, #be121dd1 58%, #be121d 100%) 1; */
    /* border-image: linear-gradient(115deg, #43017d 0%, #01667d7d 65%, #124dbe69 65%, #12beb680 100%) 1; */
    /* position: sticky;
    bottom: 0;
    width: 100%; */
    z-index: 1;
    position: relative;
}

.footer-dark::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 12px;
    width: 100%;
    /*background: linear-gradient(115deg, #43017d, #01667d7d, #124dbe69, #12beb680);*/
    background:linear-gradient(115deg,#453859,#01667d7d,#8412be69,#be121280);
    background-size: 300% 100%;
    animation: footerGradientMove 6s ease infinite;
    z-index: 2; /* Above background but under content */
}

@keyframes footerGradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.footer-dark a:hover {
    color: #b49bd9!important;
}

.footer-second {
    /* height: 40px;
    background-color: #292451; */

}

.card-img-wrapper {
    overflow: hidden; /* Prevents image overflow */
}

.card-img-top {
    transition: transform 0.3s ease-in-out;
}

.card:hover .card-img-top {
    transform: scale(1.2); /* Zoom in on hover */
}



.w-80{
    width: 80%!important;
}


/* Training View specific styling */
.training-course {
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 8px;
    overflow: hidden;
  }
  .training-course:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
  }
  .card-title {
    font-size: 1.25rem;
  }
  .card-title a {
    /* color: #2c3e50; */
    font-weight: 600;
  }
  .card-title a:hover {
    /* color: #3498db; */
  }
  .training-dates {
    font-size: 0.9rem;
    color: #555;
  }
  .filter-section {
    background-color: #f8f9fa;
  }

  .block.block-layout-builder:has(.publications-sidenav) {
    position: sticky;
    top: 130px;
}

.publications-sidenav a {
    text-decoration: none;
}

nav.publications-sidenav {
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

nav.publications-sidenav li {
    padding: 1em;
    list-style: none;
}

  .filter-section.sticky-top {
    top: 130px !important;
  }
  .filter-title, #annual-reports, #general-reports, #policies, #foia-statements, #speeches, #egazettes {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-weight: 600;
  }
  .filter-title:after, #annual-reports:after, #general-reports:after, #policies:after, #foia-statements:after, #speeches::after,
	#egazettes::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #45385a;
  }
  .deadline {
    text-align: center;
  }
  .deadline i{ 
    font-size: 0.7rem;
    color: #45385a;
  }
  .badge-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #45385a;
    margin-bottom: 8px;
  }
  
  
  .deadline-date {
    font-weight: 700;
    font-size: 1rem;
    color: #45385a;
  }

  .accordion-button:not(.collapsed) {
    background-color: #dee2e7!important;
  }

/* Executive Team styles*/
.executive-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
 .executive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .executive-card img {
    border-radius: 50%;
    box-shadow: 0px 2px 0px 1px #86171a;
    max-width: 128px!important;
    height: 128px!important;
    object-fit: cover;
    margin-bottom: 15px;
  }
  
  .executive-card .text-start {
    font-size: 0.9rem;
}

.media-releases .card-img-container img {
    height: 200px!important;
    width: 90%;
    border: 1px solid #eee;
}

.hero-slide-bg {
     /*background-color: #45385a!important; */
    /*background: linear-gradient(120deg, #6B5B95 50%, #E8A87C 50%, #A8E6CF 80%) !important;*/
}


/* Publications styles*/

.view-header {
    margin-top: 3em;
}

.publications-accordion .accordion-body {
    background: #f8f9fa;
}

.publications-accordion .card, .tender-card, .media-releases .card, 
.job-vacancy, .latest-news .card, .training-cards .card, .accesstt-centres .card, .our-divisions .card, .galleries .card, 
.latest-events .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* .publications-accordion .accordion-button::after {
    content: "+";
    font-size: 1.25rem;
    font-weight: bold;
    transition: transform 0.2s ease-in-out;
    background-image: none !important; 
}

.accordion-button:not(.collapsed)::after {
    content: "-";
} */

.project-card img {
    height: 200px !important;
}

.publications-accordion .card-img-container, .latest-news .card-img-container, .accesstt-centres .card, .our-divisions .card,
 .galleries .card, .latest-events .card{
    overflow: hidden;
    position: relative;
}
.publications-accordion .card-img-container img, .latest-news img, .our-divisions img, .galleries img {
    transition: transform 0.3s ease-in-out;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.latest-news img{
    height: 200px!important;
}

.latest-events img {
    height: 280px !important;
}

.accesstt-centres .card-body {
    background-color: #212529;
    color: #fff!important;
    border-bottom: 8px solid;
    border-image: linear-gradient(115deg, #43017d 0%, #01667d7d 65%, #124dbe69 80%, #12beb680 100%) 1;
}

.our-divisions .card-body {
    background-color: #212529;
    margin-top: -5em;
    border-bottom: 8px solid;
    border-image: linear-gradient(115deg, #43017d 0%, #01667d7d 65%, #124dbe69 80%, #12beb680 100%) 1;
}

.our-divisions img {
    border-radius: 0;
}

.accesstt-centres a, .our-divisions a {
    text-decoration: none;
    color: #fff;
}

.accesstt-centres h2, .our-divisions h2, .projects h2.m-0, .learning-opp h2.m-0, .latest-events h2.m-0, .affiliated-agencies h2.m-0 {
    font-size: xxx-large;
}

.svg-top-border {
    height: 300px !important;
    pointer-events: none;
    margin-top: -20%;
}

.our-divisions .card-title {
    position: relative;
}

.latest-news img,  .latest-events .card{
    object-fit: fill!important;
}

.publications-accordion .card:hover .latest-news .card:hover, .accesstt-centres .card:hover, .our-divisions .card:hover, .galleries .card:hover, 
.latest-events .card:hover {
    transform: scale(1.1); /* Zoom effect on hover */
}

.publications-accordion .card:hover, .tender-card:hover, .media-releases .card:hover, 
.job-vacancy:hover, .latest-news .card:hover, .training-cards .card:hover, 
.accesstt-centres .card:hover, .our-divisions .card:hover, .galleries .card:hover, .latest-events .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

.latest-news img {
    border-radius: 4px;
}
.latest-news .card:hover .img-fluid {
    transform: scale(1.2);
}

.latest-news, .latest-events{
    background-color: #212529;
    /* border-bottom-left-radius: 50% 15%;
    border-bottom-right-radius: 50% 15%; */
}

.latest-news .card-body {
    margin-top: -2em;
    z-index: 1;
}

.accesstt-centres .card, .our-divisions .card, .latest-news h2 span, .project-initiatives h2 span,
.latest-events h2 span, .bg-band-ttwifi h2 span {
    border-radius: 20px 0px;
}

.border-bottom-light-blue{
border-bottom:5px solid #4c99e4!important;
}

.border-bottom-green{
border-bottom:5px solid #19a61a!important;
}

.border-bottom-yellow {
    border-bottom: 5px solid #a69200!important;
}

.border-bottom-blue{
border-bottom:5px solid #0156a9!important;
}

.border-bottom-red{
	border-bottom: 5px solid #a90101!important;
}

.bg-band-ttwifi {
    background: linear-gradient(to right, #2a3c89, #318fca);
}


.field--name-field-tags .field__item a, .latest-news a, .galleries a, .latest-events a {
    text-decoration: none;
}

.latest-news h5 {
    height: 100px;
}


.galleries .card-title, .latest-events .card-title {
    min-height: 4em!important;
}

.view-minister-of-public-administration .view-header{
    margin-top: 0em;
    margin-bottom: 2em;
    text-align: center;
}

.view-minister-of-public-administration .views-view-responsive-grid__item a {
    border: 1px solid #eee;
    background-color: white;
    padding: 10px;
    border-radius: 8px;
}

.view-minister-of-public-administration .views-view-responsive-grid__item a:hover {
    background-color: #6c757d !important;
    color: #fff;
}
.view-minister-of-public-administration .views-view-responsive-grid__item a {
    text-decoration: none;
}


.bg-mpa-welearntt {
    margin-top: 3em;
    background-color: #675286;
    padding: 2em;
    color: #fff;
}



.fade-up,
.fade-left,
.fade-right {
  opacity: 0;
  /* transition: all 0.6s ease-out; */
  transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fade-up {
    transform: translateY(40px); 
}

.fade-left {
    transform: translateX(-30px);
}

.fade-right {
    transform: translateX(30px);
}

.visible {
    opacity: 1;
    transform: translate(0, 0);
}


.ict-centres .card {
    border-bottom: 4px solid #675288;
    background-color: #2a23671c;
}

.ict-centres .card-footer {
    background-color: #f3ebff82;
}

.partners .list-unstyled li {
    border-bottom: 1px solid #eee!important;
    margin-bottom: 1em!important;
}

.project-initiatives {
    background-color: #212529;
}

.project-initiatives .ghost-text, .latest-events .ghost-text{
    color: #a1a1a126!important;
}


.projects .row {
    background: #f8f9fa;
    padding: 1em;
    border-radius: 50px 0;
    color: #000;
}

.projects li {
    border-left: 8px solid #45385a;
    margin-bottom: 1em;
    margin-left: -10px;
    list-style: none;
    text-indent: 1em;
}

.grayscale-logo {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease-in-out;
  }
  
  .grayscale-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
    transition: transform 0.3s ease;
  }  

  .affiliated-agencies img {
    height: 60px;
}


.ghost-text {
    font-size: 6rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.05); /* Light grey overlay, adjust as needed */
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    margin-top: -24px;
  }


  .bg-light {
    background-color: #ededed !important;
}


#campaign-overview {
    border-top: 5px solid #880308;
}

.text-underline-accent {
    position: relative;
    display: inline-block;
  }
  
  .text-underline-accent::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80%;
    height: 6px;
    background-color: #8d0009;
    transform: translateY(6px);
  }
  
  .ministry-cluster .btn-outline-secondary {
    border-bottom: 3px solid #8d0009;
}

  .cluster .accordion-body {
    min-height: 440px;
}

  .modal-body iframe {
    width: 100%!important;
    min-height: 450px!important;
}

main:has(.latest-events) + footer {
    margin-top: 0 !important;
}


.centre-body {
    height: 80px!important;
}

.card-a{
    background-color: #fccc6070;
}

.card-b{
    background-color: #fb727970;
}

.card-c{
    background-color: #55b9b370;
}

.card-d{
    background-color: #6b9abb70;
}

  @media (max-width: 768px) {

    .col-md-4.bg-light {
        border-radius: 0 0 8px 8px !important;
      }

    .ghost-text {
      font-size: 3rem;
    }
  }



/* Custom CSS for responsive h1 font size */
.responsive-h1 {
  font-size: 3.5rem; /* Default font size for larger screens */
}

  .mobile-padding-top{
	  padding-top:8em;
  }


/* Adjust font size for medium screens */
@media (max-width: 991px) {
  .responsive-h1 {
    font-size: 3rem;
  }
    .mobile-padding-top{
	  padding-top:5em;
  }
}

/* Adjust font size for small screens */
@media (max-width: 767px) {
  .responsive-h1 {
    font-size: 2.5rem;
  }
    .mobile-padding-top{
	  padding-top:5em;
  }
}

/* Adjust font size for extra small screens (mobile devices) */
@media (max-width: 575px) {
  .responsive-h1 {
    font-size: 1.5rem;
  }
  
  .mobile-padding-top{
	  padding-top:0em;
  }
  
}


/* Video List Support */
.video-list .list-group-item {
    cursor: pointer;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
