/* =====================================
   1. Health Panels Layout
===================================== */
.health-panels {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 30px;
    align-items: start;
}
@media(min-width:768px){
	#mega-menu-item-14296 .mega-sub-menu {
    width: 860px !important;
    min-width: -webkit-fill-available !important;
		left: unset !important;
	}}
/* Left Vertical Tabs */
.panels-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.panel-tab {
    background: #e6f5fd;
    padding: 14px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    color: #004b6b;
    transition: all 0.3s ease;
    font-weight: bold;
}
.panel-tab:hover {
    background: #d4eefc;
}
.panel-tab.active {
    background: #fff;
    border: 2px solid #b8e3f9;
    font-weight: bold;
}

/* Right Content Area */
.panels-content {
    width: 100%;
}
.panel-content {
    display: none;
}
.panel-content.active {
    display: block;
}
.panel-content img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}
.desktop-hide{
	display:none;
}
/* Inner Accordion */
.inner-accordion {
    margin-top: 10px;
}
.faq-item {
    border-bottom: 1px solid #eee;
    padding: 8px 0;
}
.faq-question {
    font-weight: 700;
    cursor: pointer;
    color: #00a1d6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}
.faq-question:hover {
    color: #007aa3;
}
.faq-answer {
    display: none;
    padding-top: 5px;
    color: #555;
    line-height: 1.5;
}
.faq-toggle {
    font-weight: bold;
    font-size: 18px;
    color: #00a1d6;
    transition: transform 0.3s ease;
}
.faq-question.active .faq-toggle {
    transform: rotate(180deg);
}

/* Responsive: Health Panels */
@media (max-width: 900px) {
    .health-panels {
        grid-template-columns: 1fr;
    }
    .panels-list {
        flex-wrap: wrap;
        gap: 8px;
    }
    .panel-tab {
        flex: 1 1 calc(50% - 8px);
        text-align: center;
    }
	.icon-box-2 .icon-box h3 {
    font-size: 17px !important;
	}
}

/* =====================================
   2. MJ Icon Boxes
===================================== */
.mj-icon-box .panel-grid-cell {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    padding: 40px 20px;
    align-items: center;
    border: 2px solid transparent;
    background-image: linear-gradient(#fff, #fff), linear-gradient(to top, #b9b9b9 50%, rgba(0, 184, 255, 0) 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    height: 300px;
}
.mj-icon-box .widget_text,
.mj-icon-box .icon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.mj-icon-box .icon-box h3 {
    color: #292865;
    font-family: inherit;
    font-weight: 700 !important;
}

/* Icon Box 2 */
.icon-box-2 .widget_media_image {
    width: 55px;
    margin-bottom: 0 !important;
    flex-shrink: 0;
}
.icon-box-2 .icon-box h3 {
    font-family: inherit;
    font-weight: 800 !important;
    color: #292865;
    font-size: 21px !important;
}
.icon-box-2 .icon-box .textwidget p {
    font-weight: 600 !important;
    color: #939393;
    text-align: left;
    margin: 0;
}
.icon-box-2 .icon-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}
.icon-box-2 .panel-grid-cell {
    display: flex;
    gap: 30px;
    align-items: center;
}

/* Icon Box Text */
.icon-box p {
    text-align: center;
    display: block;
    margin-top: 10px;
}

/* =====================================
   3. Background Sections
===================================== */
div#pg-18912-7,
div#pg-18912-8 {
    position: relative;
}
div#pg-18912-7 {
    padding: 60px 0;
}
div#pg-18912-7:after {
    content: "";
    background: #f4f4f4;
    position: absolute;
    width: 100vw;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: -1;
}
div#pg-18912-8:after {
    content: "";
    background: url(https://stage.dubailondonhospital.com/wp-content/uploads/2025/08/Longevity-page-source-photoshopsece.jpg);
    position: absolute;
    width: 100vw;
    height: 800px;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: -1;
}

/* =====================================
   4. MJ General Typography
===================================== */
.mj-css h2 {
    font-family: inherit;
    font-weight: 700 !important;
    color: #292865;
    font-size: 40px !important;
    text-transform: uppercase;
}
.mj-css h3 {
    font-family: inherit;
    font-weight: 700 !important;
    color: #292865;
    font-size: 30px !important;
}
.mj-css img {
    border-radius: 20px;
}
.mj-css .textwidget {
    display: flex;
    gap: 20px;
    flex-direction: column;
}
.mj-css .coumn-text .textwidget p {
    font-weight: 600 !important;
    color: #939393;
}

/* =====================================
   5. Banner
===================================== */
.main-banner {
    display: none;
}
.ban-box h1 {
    font-family: var(--entry-content--font-family);
    color: #575757;
    font-size: 42px !important;
    margin-bottom: 30px;
}
a.ban-bu {
    background: #00b5e2;
    color: #fff;
    padding: 12px 35px;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 4px;
    text-decoration: none;

    display: inline-block;
}
.dual-button{
	    margin-top: 25px;
	display: flex;
	 flex-wrap: nowrap;
    gap: 20px;
}

@media (max-width: 900px) {
	.mobile-hide{
		display:none;
	}
	.desktop-hide{
		display:block;
	}
	.dual-button{
	display: flex;
	 flex-wrap: wrap;
    gap: 20px;
}
	.ban-box h1 {
		font-size: 25px !important;
		margin-bottom: 0;
		}
	.mj-css h2 {
    font-size: 20px !important;
  
	}
	.mj-css h3{
    font-size: 17px !important;
	}
	.mj-icon-box .panel-grid-cell {
    height: unset;
    padding: 30px !important;
}
}
/* =====================================
   6. Custom Header
===================================== */
.custom-header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}
.header-container {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: end;
    gap: 20px;
}
.header-left {
    padding-block: 17px;
}
.logo-group {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-inline-start: 15px;
}
.logo-item img {
    max-height: 60px;
    height: auto;
    width: auto;
}
.header-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Header Top Row */
.top-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    background: #e9e9e9;
    padding: 4px;
}
.btn-appointment {
     background: #00b5e2;
    color: #fff;
    padding: 6px 10px;
    text-transform: uppercase;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
}
.btn-emergency {
    background: #e30613;
    color: #fff;
    padding: 6px 15px;
    text-transform: uppercase;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
	font-size:12px
}
.lang-switcher {
    display: flex;
    gap: 5px;
}
.lang-switcher a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

/* Header Bottom Row */
.bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding-block: 10px;
    padding-inline: 0px;
}
.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}
.primary-menu a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 8px 0;
}
.primary-menu a:hover {
    color: #00b5e2;
}
.service-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}
.service-icon img {
    height: 50px;
    width: auto;
    display: block;
}
.wpml-ls-legacy-list-horizontal {
    padding: 0!important;
}
.wpml-ls-legacy-list-horizontal a {
    font-size: 12px;
}
/* Mobile Menu Hidden by Default */
.mobile-menu {
    display: none;
}

/* Mobile Service Icons - Hidden by default on desktop */
.mobile-service-icons {
    display: none;
}

/* Responsive: Header */
@media (max-width: 900px) {
    .header-container {
        grid-template-columns: 1fr;
        gap: 0;
    }
	.header-left{
		width:100vw
	}
    .logo-group {
        padding: 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        width: 100%;
    }
	.logo-item{
		width: auto;
		max-width: 45%;
		flex-shrink: 0;
	}
	.logo-item img{
		width: 100%;
		max-height: 50px;
	}
    /* Show mobile service icons on mobile */
    .mobile-service-icons {
        display: flex !important;
        gap: 10px;
        align-items: center;
        flex-shrink: 0;
        visibility: visible !important;
        opacity: 1 !important;
    }
    .mobile-service-icons .service-icon {
        display: flex;
        align-items: center;
    }
    .mobile-service-icons .service-icon img {
        height: 45px;
        width: auto;
        display: block;
        max-width: none;
    }
    .top-row {
        justify-content: space-between;
        flex-wrap: wrap;
		width:100vw;
    }
    .btn-appointment,
    .btn-emergency {
        display: none;
    }
    .bottom-row {
        display: none;
    }
    .mobile-menu {
        display: block;
    }
    .primary-menu {
        flex-direction: column;
        gap: 10px;
    }
}

/* Additional mobile breakpoint to match main style.css */
@media (max-width: 980px) {
    .mobile-service-icons {
        display: flex !important;
        gap: 10px;
        align-items: center;
        flex-shrink: 0;
        visibility: visible !important;
        opacity: 1 !important;
    }
    .mobile-service-icons .service-icon {
        display: flex;
        align-items: center;
    }
    .mobile-service-icons .service-icon img {
        height: 45px;
        width: auto;
        display: block;
        max-width: none;
    }
    .logo-group {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        width: 100%;
    }
    .logo-item {
        width: auto;
        max-width: 45%;
        flex-shrink: 0;
    }
    .logo-item img {
        max-height: 50px;
    }
}


#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
    padding: 15px 5px!important;
     font-size: 12px!important;
 
}

.hospital-card {
    display: flex;
    border: 1px solid #dadada;
    border-radius: 1rem;
    overflow: hidden;
}

.hospital-card-image {
    max-width: 40%;
}

.hospital-card-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 30px;
    justify-content: center;
    align-content: flex-start;
    align-items: flex-start;
    width: 100%;
}

h3.hospital-title {
    font-size: 1.8rem;
}

a.map-btn {
    background: #00b5e2;
    display: inline-flex;
    padding: 10px 20px;
    border-radius: 7px;
    color: #fff;
    font-weight: 600;
    align-self: flex-end;
}

.hospital-locations-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
@media(max-width:768px){

.hospital-card {
flex-direction:column
}
    .hospital-card-image {
    max-width: 100%;
}
    .hospital-card-content {
    padding: 20px;
 
}
    h3.hospital-title {
    font-size: 1.2rem;
}
}