:root {
  --primary: #161CB7;
}
.no-translate-msg { color: var(--secondary); }
.txtOverlay a:visited { color: var(--white, #fff); }
a.dda-footer__section-link:link, a.dda-footer__section-link{ color: #3a3f57; }
body{ background-color: #f7f7f7; }
.home .serivces-tabs-row .wpb_wrapper .serviceItemx p {
	display: -webkit-box;
    margin: 0px;
  	-webkit-line-clamp: 2;   /* number of lines */
  	-webkit-box-orient: vertical;
    align-self: stretch;
    overflow: hidden;
    color: var(--surface-on-surface-variant, #40484F);
    text-overflow: ellipsis;
    
    font-size: var(--font-size-caption, 14px);
    letter-spacing: 0.14px;
}
.home .serivces-tabs-row .wpb_wrapper .serviceItemx p.serviceItem-title {
    -webkit-line-clamp: 1;
    color: var(--black, #000) !important;
	white-space: nowrap !important;
    font-size: var(--font-size-h6, 20px) !important;
    line-height: var(--line-height-h6, 28px) !important; /* 140% */
}

i.serviceItem-icon:before{ width: 56px; height: 56px; }
.home .newhome-slider{
	height: 960px !important;
}
.home .newhome-slider .carousel-cellx {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    background-image: url(https://stgportalnew.dm.gov.ae/wp-content/themes/dubaimunicipality/assets/images/banners/Banner-2024.jpg);
    background-size: cover;
    position: absolute;
    left: 0px;
    transform: translateX(0%);
}
.home .newhome-slider .carousel-cellx:before {
    content: "";
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
}
.newhome-slider .carousel-layersx{
    width: 100%;
    display: flex;
    z-index: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}
.home-slider h1{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    align-self: stretch;
    overflow: hidden;
   	color: var(--white, #FFF);
    text-align: center;
    text-overflow: ellipsis;
    line-height: 1.3;
    font-size: 45px;
    font-weight: 300;
    letter-spacing: -0.2px;
    margin: 0;
    margin-bottom: 12px;
}
.home-slider p{
	align-self: stretch;
    color: var(--white, #FFF);
    text-align: center;
    font-size: 24px;
    margin: 0;
    line-height: 32px;
    margin-bottom: 12px;
}
.custom-navigation {
    top: 60% !important;
    font-size: 10px;
    text-align: center;
}
.scroll-indicator {
    top: 63% !important;
}
.custom-navigation, .scroll-indicator { margin-top: 0; }
.custom-navigation button.pause-button { font-size: 10px; }
@media (max-width: 767px) {
/*.homeSearch{ top: 190px; }*/
}
/* Small devices (≥320px) */
@media (min-width: 0px) { .homeSearch{ top: 240px; } }
/* Small devices (≥576px) */
@media (min-width: 576px) { .homeSearch{top: 230px;} }

/* Medium devices (≥768px) */
@media (min-width: 768px) { .homeSearch{top: 360px;}  }

/* Large devices (≥992px) */
@media (min-width: 992px) { .homeSearch{top: 390px;}  }

/* Large devices (≥1100px) */
@media (min-width: 1100px) { .homeSearch{top: 410px;}  }


/* Ultra wide (≥1400px) */
@media (min-width: 1400px) { .homeSearch{top: 410px;}  }
@media (min-width: 1100px) {
    .home .carousel-layers {
        top: 310px;
    }
}
@media (min-width: 768px) {
	.home .home-slider {
        height: 800px !important;
     }
    .home .serivces-tabs-row > .vc_column_container {
        margin: -260px auto 0 !important;
    }
    .home .serivces-tabs-row .wpb_wrapper .vc_column-inner {
        padding: 2px;
    }
    .finesTabContainer .container button {
        min-width: 177px;
    }
    .dm-more-container figure:after {
    	min-height: 550px;
    }
    [dir=rtl] .news-events-list {
        margin-top: 0 !important;
    }
}
.serviceItemx i.fa-arrow-circle-right{
	margin-top: 10px;
	font-size: 20px;
    color: #40484F;
}
[dir="rtl"] .serviceItemx i.fa-arrow-circle-right {
    transform: scaleX(-1);
}
i.serviceItem-icon:before{
	margin-bottom: 0px;
}
.home .serivces-tabs-row .wpb_wrapper .serviceItemx a {
    position: relative;
    display: block;
    background: var(--white);
    padding: 20px 16px 12px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s linear;
}
.home .serivces-tabs-row .wpb_wrapper .serviceItemx a:hover {
    box-shadow: 0px 24px 48px -12px rgba(16, 24, 40, 0.18);
    transform: translateY(-40px); /* smoother, no reflow */
}
/*.home .serivces-tabs-row .wpb_wrapper .serviceItemx a:hover:before {
	content: " ";
    background-color: #fff;
    width: 20px;
    height: 20px;
    position: absolute;
    z-index: 0;
    bottom: -10px;
    transform: rotate(45deg);
    left: calc(50% - 15px);
    box-shadow: 0px 24px 48px -12px rgba(16, 24, 40, 0.1803921569);
}*/
.wpb-js-composer .vc_tta.vc_general.finesTab .vc_tta-tabs-list {
    display: flex;
    border: 0 !important;
    justify-content: center;
    align-items: flex-start;
    gap: 16px;
    align-self: stretch;
}
.wpb-js-composer .vc_tta.vc_general .vc_tta-tab {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}
.wpb-js-composer .vc_tta.vc_general.finesTab .vc_tta-tabs-list li.vc_tta-tab a {
    width: 135px;
    height: 42px;
    margin-top: 3px;
    margin-bottom: 3px;
    padding: 4px 12px !important;
    border-radius: 8px !important;
    border: 1px solid #CED1DE !important;
    background: #FFF !important;
    color:#272EC2;
    font-weight: normal;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.14px;
}
.wpb-js-composer .vc_tta.vc_general.finesTab .vc_tta-tabs-list li.vc_active a, .wpb-js-composer .vc_tta.vc_general.finesTab .vc_tta-tabs-list li.vc_tta-tab a:hover {    
    border: 1px solid #161CB7 !important;
    background: #E8F2FF !important;
}
.wpb-js-composer .vc_tta.vc_general li.vc_tta-tab a:focus-visible{ 
    outline: 2px solid var(--primary) !important;
    outline-offset: 2px !important;
    box-shadow: none;
}
.wpb-js-composer .vc_tta.vc_general .vc_tta-tab { width: auto; flex: unset;}
.wpb-js-composer .vc_tta.vc_general.finesTab .vc_tta-tabs-list li a, .tab-select .check-pay-selector, .finesTabContainer .container input, .finesTabContainer .container form input {
	color: var(--black, #000) !important;
}
.wpb-js-composer .vc_tta.vc_general.finesTab .vc_tta-tabs-list li.vc_active a::after, .wpb-js-composer .vc_tta.vc_general.finesTab .vc_tta-tabs-list li a:hover:after { display: none;}
.wpb-js-composer .vc_tta.vc_general.finesTab .vc_tta-panels .vc_tta-panel-body{ padding-top: 15px; }
.tab-content { padding-top: 0; }
.tab-select { margin-top: 0; height: 56px; width: 25%;  border: 1px solid #CED1DE; }
.home .finesTab { padding-top: 25px; padding-bottom: 25px; }
.finesTabContainer .container input, .finesTabContainer .container form input {
	height: 56px;
    border: 1px solid #CED1DE;
}
.tab-select .check-pay-selector {height: 55px;}
.finesTabContainer .vc_tta-container{ 
    margin-bottom: 0;
}
.finesTabContainer .show-home-result table{
	margin-top: 0 !important;
}
.home-section-title {
    color: var(--black, #000);
    font-size: 24px;
    font-weight: 300;
    line-height: 1.2;
    /* text-transform: capitalize; */
    margin: 0;
    margin-top: 25px;
}
.arrow-view-all-cat{  font-size: 16px; position: relative; margin-right: 15px; display: flex; align-items: center; }
[dir=rtl] .arrow-view-all-cat{  margin-right: 0; margin-left: 15px; }
.fa-arrow-title:before {
    width: 15px;
    height: 12px;
    /* margin-top: 2px !important; */
    /* top: 21px; */
    /* position: relative; */
}
.home-section-link {
    margin-right: 5px;
}

.dubai-more-box {
	min-height: 260px;
    border-radius: 16px;
    border: 1px solid #CED1DE;
    background: var(--white, #FFF);
    box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.04);
    justify-content: start;
    padding: 25px 18px;
}
.dubai-more-box h2.dubaimore-title {
    font-size: 20px;
    font-weight: 400;
    margin: 15px 0 10px;
    color: var(--black, #000);
}
.dubai-more-box:hover, a.dda-footer__section-link:hover, a.dda-footer__section-link:hover, .chat-popup__link:hover {
	text-decoration: none;
}
.dubai-more-box:hover h2.dubaimore-title, .dubai-more-box.active h2.dubaimore-title {
	color: var(--white, #fff);
}
.dubai-more-box img {
    height: 56px !important;
    width: 56px !important;
    border-radius: 100% !important;
    padding: 12px !important;
    background: #E6EFF7 !important;
    display: block !important;
}
.txtOverlay { 
	padding: 35px;  
    background: #000;
	background: linear-gradient(
        0deg, 
        rgba(0, 0, 0, 0.3) 0%,    /* 80% dark at bottom */
        rgba(0, 0, 0, 0) 100%  /* 20% faded at top */
    ); 
}
.txtOverlay .wpb_wrapper{ width: 60%; }
.txtOverlay a { font-weight: normal; }
.dm-more-container .txtoverlayImg{
	border-radius: 16px;
    max-height: 100%;
}
.dubai-more-cpt-img-container .wpb_single_image img{min-height: 530px;}
.dubaimore_content p { margin-top: 20px !important; }
.dm-more-container figure:before{ content: ""; }
.dm-more-container figure:after{
	height: 90%;
	background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.00) 2.31%, rgba(40, 42, 48, 0.40) 47.36%, #000 99.75%) !important;
}
.txtOverlay a:after { 
	content: "";
    background-size: contain;
    display: inline-block;
    background-repeat: no-repeat;
    background-image: url(../images/icon-arrowright-white.svg);
    width: 15px;
    height: 12px;
    margin: 0;
    margin-left: 8px;
    top: 2px;
}
.dm-numbers h2 { font-size: 24px; font-weight: 400; color: var(--black); }
.dm-numbers p { color: #40484F; width: 85%; }
#dm-numbers-slider:focus-visible { outline: none; }
.dm-numbers {
    padding-bottom: 30px;
}
.dm-numbers .wpb_content_element{ margin-bottom: 0; }
.investment-section:before{ 
    content: "";
    width: 100%;
    z-index: 1;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
	border-radius: 16px;
	/*background: linear-gradient(24deg, #000 -4.28%, rgba(31, 37, 46, 0.00) 71%);*/
    background: linear-gradient(
       	24deg,
        rgba(0, 0, 0, 0.9) 0%,         /* darker black start */
        rgba(31, 37, 46, 0.6) 40%,     /* softer mid tone */
        rgba(31, 37, 46, 0) 80%        /* fade to transparent */
    );
}
[dir="rtl"] .investment-section:before {
    background: linear-gradient(
        -24deg,
        rgba(0, 0, 0, 0.9) 0%,         /* darker black start */
        rgba(31, 37, 46, 0.6) 40%,     /* softer mid tone */
        rgba(31, 37, 46, 0) 80%        /* fade to transparent */
    );
}
.investment-section{ 
	color: #FFF !important;
	position: relative;
	display: flex;
  	flex-direction: column;
    justify-content: end;
	min-height: 210px;
    width: 100%;
    border-radius: 16px;
 	background: url(../images/home/investment-newbg.jpg) #000 top center no-repeat;
    background-size: cover;
    padding: 30px 45px;
  	text-decoration: none;
    /* transition for smooth shadow effect */
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* default subtle shadow */
}
.home-garden-section{ 
 	background: url('/wp-content/uploads/2025/12/farmers-souq-season-5-banner.jpg') #000 top center no-repeat;
    min-height: 100%;
    padding: 0;
    overflow: hidden;
    background-size: cover;
}
.home-garden-section:before{ content: none; }
.investment-section:hover {
  box-shadow: 0 12px 24px rgba(0,0,0,0.25); /* bigger shadow on hover */
  transform: translateY(-4px); /* optional "lift" effect */
  text-decoration: none;
}
.investment-section h2, .investment-section p{ color: #FFF !important; width: 30%; z-index: 2; font-weight: normal; margin: 0; }
.home-garden-section h2, .home-garden-section p{ width: 100%; }
.investmentopportunities .wpb_content_element{ margin-bottom: 0; }
.news-events-home .vc_column-inner { padding-top: 10px !important; }
.newshome-content{
    border-radius: 16px;
    border: 1px solid #C0C6CF;
    overflow:hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    flex: 1 0 0;
}
.newshome-item-image {
	align-self: stretch;
    border-radius: 0px;
    height: 270px;
}
.newshome-content p, .newshome-content .posts-link { padding: 0 16px; margin: 0; color: #40484F; align-self: stretch; max-height: auto; }
.newshome-content p{
 	line-height: 1.2;
	display: -webkit-box;
    -webkit-line-clamp: 2;     /* ðŸ‘ˆ Always clamp to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: unset;
    text-overflow: ellipsis;
    height: calc(1.2em * 2);   /* ðŸ‘ˆ keeps consistent height for 2 lines */
}
.newshome-content .posts-link{ padding-bottom: 20px; }
.newshome-content p.newshome-title {
    color: var(--black);
    font-size: 20px;
    line-height: 1.3;
    margin: 0;
    padding: 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;     /* ðŸ‘ˆ Always clamp to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: unset;
    text-overflow: ellipsis;
    height: calc(1.3em * 2);   /* ðŸ‘ˆ keeps consistent height for 2 lines */
}
.newshome-content .posts-link a:after { 
	content: "";
    background-size: contain;
    display: inline-block;
    background-repeat: no-repeat;
    background-image: url(../images/icon-arrowright-primary.svg);
    width: 15px;
    height: 12px;
    margin: 0;
    margin-left: 8px;
    top: 8px;
}
.newshome-content p.newshome-desc { max-height: 50px; }
[dir="rtl"] .dm-app-home .wpb_wrapper { padding-left: 0; }
.dm-app-home h2 {
    color: var(--black);
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    text-transform: capitalize;
    margin: 0;
    margin-top: 20px;
    max-width: 140%;
    margin-right: -150px;
}
.dm-app-home p {
	color: #40484F;
    max-width: 160%;
    margin-right: -140px;
}
[dir="rtl"] .dm-app-home h2 {
    margin-right: 0;
    margin-left: -150px;
}

[dir="rtl"] .dm-app-home p {
    margin-right: 0;
    margin-left: -140px;
}

.dm-app-home .list-post {
    height: auto;
}
.dm-app-home .list-post figure img {
    height: 100%;
    position: static; 
}
.dm_apps_container{display: flex; justify-content: center; align-items: center;}
.dm-app-home .app-links a img {
    max-width: 100%;
    box-shadow:unset;
}
.dm-app-home .app-links{
	display: flex;
    align-items: center;
    justify-content: start;
    gap: 10px;
}
.dm-app-home .app-links a {
    padding: 10px 16px;
    padding-bottom: 5px;
    border-radius: 6px;
    border: 1px solid #40484F;
    background: var(--black, #000);
    box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.04);
    transition: box-shadow 0.3s ease, transform 0.3s ease; /* smooth animation */
}

.dm-app-home .app-links a:hover {
    box-shadow: 0 8px 16px rgba(16, 24, 40, 0.15); /* stronger/larger shadow */
    transform: translateY(-2px); /* subtle lift effect */
}

.dm-app-home .app-links a img { margin-right: 0; }

.dm-app-home {
    padding: 20px 0 20px !important;
}

.dm-app-home .vc_column-inner{ padding-top: 0 !important; }

.lds-dual-ring {
	width: auto !important;
}

/*Mobile*/
@media (max-width: 768px) {
    .custom-navigation {
    	top: 55% !important;
    }
    .scroll-indicator {
        top: 60% !important;
    }
    .check-pay-content, .tab-select, .tab-content {
        width: 100%;
        border-radius: 8px;
        margin-bottom: 5px;
    }
    .wpb-js-composer .vc_tta.vc_general.finesTab .vc_tta-panel-title > a{
    	color: var(--black) !important;
    }
    .check-pay-content-child {
        display: block;
    }
    .finesTabContainer .container button {
        /* width: 290px; */
        margin: 0 auto;
        max-width: 290px;
    }
    .dm-more-container {
        display: block;
        padding: 0;
    }
    .dubaimore_content{
    	margin: 0 20px 15px;
    }
    .dubai-more-cpt-img-container .wpb_single_image img {
    	min-height: 400px;
    }
    .txtOverlay .wpb_wrapper, .investment-section h2, .investment-section p {
        width: 100%;
    }
    .dm-app-home h2, .dm-app-home p {
    	max-width: 100%;
    }
}

.newproactive-section{
	overflow: hidden;
    position:  relative;
    border-radius: 16px;
    padding: 0;
}
.proactive_text_overlay{
	background: url('/wp-content/themes/dubaimunicipality/assets/images/home/proactive-section-text-bg.svg') transparent;
    color: var(--white);
    background-size: cover;
    padding: 20px 35px
}
.proactive_text_overlay h2, .proactive_text_overlay .wpb_content_element { margin-bottom: 0 !important; }
.proactive_text_overlay p { margin-top: 10px; }
.proactive_text_overlay a { color: var(--white); display: inline-block; position: relative; margin: 20px 0; }
.proactive_text_overlay a:hover, .proactive_text_overlay a:visited  { color: var(--white) !important; }
.proactive_text_overlay a:after {
    content: "";
    background-size: contain;
    display: inline-block;
    background-repeat: no-repeat;
    background-image: url(../images/icon-arrowright-white.svg);
    width: 15px;
    height: 12px;
    margin: 0;
    margin-left: 8px;
    position: relative;
    top: 2px;
}
.newproactive-section .vc_column-inner{ padding-top: 0 !important; }
/** NEW SEARCH **/
.homeSearch .wpb_raw_html .search_helper{
  align-items:flex-start;         /* fix */
  justify-content:space-between;
  display: none;
}
.homeSearch #scrollable{
  display: none;
  max-height:100%; 
  max-width:100%; 
  overflow:unset; 
  margin:0 auto;
}
.homeSearch.is-modal #scrollable{ display:block; }
.homeSearch.is-modal .wpb_raw_html .search_helper{
   display:flex;
}

.homeSearch .wpb_raw_html .search_helper h2{
    font-weight: 300;
    color: var(--black);
    display: flex;
    gap: 10px;
    margin: 5px 0 10px;
    align-items: center;
}

#searchmaincontainer{ width:100%; }
#searchmaincontainer.expanded{ width:100%; }

#searchfield{
  border:1px solid #CED1DE;
  border-radius:8px;
}

.homeSearch.is-modal #searchfield{
  border: 1px solid var(--primary);
  box-shadow: 0 0 0 3px #E8F2FF;
}

/* ===== Default banner behavior (your existing rules) ===== */

/* ===== Overlay (hidden by default) ===== */
.homeSearch-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.6);
  z-index: 9998;
  opacity:0;
  visibility:hidden;
  transition:opacity .25s ease, visibility .25s ease;
  cursor:pointer;                 /* nice to have */
}
.homeSearch-overlay.active{
  opacity:1;
  visibility:visible;
}

/* ===== Modal state: promote the row to a viewport modal ===== */
.homeSearch{
 z-index: 9999 !important; 
}
.homeSearch.is-modal{
  position:fixed;                 /* escape banner container */
  inset:0;                        /* top/right/bottom/left: 0 */
  top:0 !important;               /* hard-override any banner top */
  margin:0;
  display:flex;
  pointer-events: none;       /* key: let clicks pass through */
  align-items:center;
  justify-content:center;
  z-index: 100001 !important;       /* ensure above overlay */
}

/* ===== Modal box (supports both with/without wrapper) ===== */
.homeSearch .hs-modal__box{
  width:min(92vw, 800px);
  /*max-height:min(86vh, 700px);*/
  overflow:auto;
  margin:0 auto;
   pointer-events: auto;       /* re-enable clicks here */
  border-radius:16px;
  padding:20px 28px;
  position:relative;
}

.homeSearch.is-modal .hs-modal__box{
  background:#fff;
  box-shadow:0 12px 30px rgba(0,0,0,.28);
  max-height:min(86vh, 700px);
}

/* Optional: lock page scroll when modal open */
body.modal-open{ overflow:hidden; }

/* Close button hover (optional) */
.search_close{ text-decoration:none; }
.search_close:hover{ opacity:.8; }

/* Small screens */
@media (max-width:480px){
  .homeSearch .hs-modal__box,
  .homeSearch .wpb_raw_html{
    padding:16px;
    width:94vw;
  }
}
#autocomplete .autocomplete-item {
    display: flex;
    align-items: start;
    justify-content: space-between;
    border-bottom: 1px solid #E4E2E6;
    padding: 10px 0;
}
#autocomplete .ac-title{ font-weight: 300; font-size: 18px; color: var(--black); }
#autocomplete .autocomplete-item:hover {
    background: #E8F2FF;
}
#autocomplete .addsearch-autocomplete ul {
    border: none;
    border-radius: none;
    margin: 10px 0;
    padding: 0;
    color: #40484F;
}
.ac-viewall{
	text-align: center;
    padding: 7px 0;
}
.ac-viewall-link{ position: static !important; display: inline-block; margin: 0 auto; color: var(--primary) !important;  }
.ac-viewall-link:after{
    content: "";
    background-size: contain;
    display: inline-block;
    background-repeat: no-repeat;
    background-image: url(../images/icon-arrowright-primary.svg);
    width: 15px;
    height: 12px;
    margin: 0;
    margin-left: 8px;
    top: 2px;
}
[dir=rtl] .ac-viewall-link:after{ transform: rotate(180deg); margin-right: 8px; margin-left: 0; }

/**announcement adjust**/
body.home .dda-header-container.announcement_added, body.home .dda-main-header.announcement_added{
    top: 43px;
}
body.home .dda-sub-header.announcement_added {
    top: 138px;
}
@media screen and (max-width: 1100px) {
    body.home .dda-sub-header.announcement_added {
        top: 40px;
    }
}
@media screen and (max-width: 768px) {
    body.home .dda-sub-header.announcement_added {
        top: 0;
    }
}