/* noto-sans-thai-regular - latin_thai */
@font-face {
    font-display: swap;
    font-family: 'Noto Sans Thai';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/noto-sans-thai-v29-latin_thai-regular.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* noto-sans-thai-500 - latin_thai */
@font-face {
    font-display: swap;
    font-family: 'Noto Sans Thai';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/noto-sans-thai-v29-latin_thai-500.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* noto-sans-thai-600 - latin_thai */
@font-face {
    font-display: swap;
    font-family: 'Noto Sans Thai';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/noto-sans-thai-v29-latin_thai-600.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* noto-sans-thai-700 - latin_thai */
@font-face {
    font-display: swap;
    font-family: 'Noto Sans Thai';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/noto-sans-thai-v29-latin_thai-700.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* noto-sans-thai-800 - latin_thai */
@font-face {
    font-display: swap;
    font-family: 'Noto Sans Thai';
    font-style: normal;
    font-weight: 800;
    src: url('../fonts/noto-sans-thai-v29-latin_thai-800.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* Defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

html {
    font-size: 10px;
    scroll-behavior: smooth;
    transition: all 0.5s ease-in-out;
}

@media screen and (max-width: 280px) {
    html {
        font-size: 6px;
    }
}

:root,
* {
    font-family: 'Noto Sans Thai', sans-serif;
}

.container-full,
.container-outer {
    width: 100%;
    float: left;
}

.container-inner {
    width: 100%;
    position: relative;
    height: 100%;
    max-width: 86%;
    margin: 0 auto;
}

.container-mobile {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.space-between {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.center {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.column {
    flex-direction: column;
}

.relative {
    position: relative;
}

.gap-2 {
    gap: 2rem;
}

/* Variables */
:root {
    --primary-color: rgba(249, 164, 48, 1);
    --male: rgba(0, 45, 104, 1);
    --blue: rgba(0, 64, 104, 1);
    --female: rgba(192, 50, 55, 1);
    --bg-color: rgba(252, 247, 241, 1);
    --details-bg: rgba(241, 243, 244, 1);
    --white: rgba(255, 255, 255, 1);
    --black: rgba(0, 0, 0, 1);
    --logo-color: rgba(255, 123, 18, 1);
    --default-text-color: rgba(103, 103, 103, 1);
    --default-text-size: 1.8rem;
}



/* Header */
header.main-header {
    height: 7rem;
    padding: 2.5rem 0;
    background-color: var(--primary-color);
    position: relative;
    z-index: 1001;
}

/* Hamburger Menu */
.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    transition: all 0.3s ease;
}

.hamburger-line {
    width: 100%;
    height: 0.3rem;
    background-color: var(--white);
    border-radius: 0.2rem;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(0.7rem, -0.7rem);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: -100vh;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    height: 100vh;
    background-color: var(--bg-color);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    overflow-y: auto;
}

.mobile-nav.active {
    top: 0;
    opacity: 1;
    visibility: visible;
}

.mobile-nav-header {
    background-color: var(--primary-color);
    padding: 2.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-logo {
    height: 2rem;
}

.mobile-nav-close {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 0;
    width: 2.4rem;
    height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-content {
    padding: 2rem;
}

.mobile-nav-list {
    list-style: none;
}

.mobile-nav-list li {
    margin-bottom: 0;
    border-bottom: 0.1rem solid rgba(249, 164, 48, 0.2);
}

.mobile-nav-list li:last-child {
    border-bottom: none;
}

.mobile-nav-list li.has-dropdown {
    display: block;
    padding: 0;
}

.dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    cursor: pointer;
}

.dropdown-toggle {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 600;
    flex: 1;
}

.sub-dropdown-toggle {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 600;
    flex: 1;
}

.mobile-nav-list a {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s ease;
    display: block;
    padding: 1.5rem 0;
    text-decoration: none;
}

.mobile-nav-list li:not(.has-dropdown) a:hover {
    color: var(--logo-color);
}

.dropdown-icon {
    color: var(--primary-color);
    margin-left: 1rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.dropdown-header.active .dropdown-icon {
    transform: rotate(180deg);
}

/* Dropdown Submenu */
.dropdown-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: transparent;
}

.dropdown-submenu.active {
    max-height: 50rem;
}

.dropdown-submenu li {
    border-bottom: 0.1rem solid rgba(249, 164, 48, 0.2);
    padding: 0;
    margin-left: 0;
    display: block;
    width: 100%;
}

.dropdown-submenu li:last-child {
    border-bottom: none;
}

.dropdown-submenu a {
    padding: 1.2rem 0;
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

.submenu-item {
    display: block;
    padding: 0;
    border-bottom: 0.1rem solid rgba(249, 164, 48, 0.2);
    width: 100%;
}

.submenu-item:last-child {
    border-bottom: none;
}

.submenu-item.male .sub-dropdown-toggle {
    color: rgba(0, 45, 104, 1);
}

.submenu-item.female .sub-dropdown-toggle {
    color: rgba(192, 50, 55, 1);
}


.submenu-item .sub-dropdown-toggle {
    flex: 1;
    padding: 0;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
}

.dropdown-submenu>li>a {
    display: block;
    padding: 0.8rem 2rem;
    font-size: 1.6rem;
    font-weight: 400;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.dropdown-submenu>li>a:hover {
    color: var(--primary-color);
}

.submenu-arrow {
    color: var(--primary-color);
    width: 1.2rem;
    height: 1.2rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

/* Sub-dropdown styles */
.has-sub-dropdown .sub-dropdown-header {
    display: flex;
    align-items: center;
    padding: 1.2rem 2rem;
    gap: 1rem;
    border-bottom: 0.1rem solid rgba(249, 164, 48, 0.2);
    cursor: pointer;
    position: relative;
    width: 100%;
    margin-left: 0;
}

.has-sub-dropdown .sub-dropdown-header.active .submenu-arrow {
    transform: rotate(180deg);
}

.sub-dropdown-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: transparent;
    margin-left: 0;
    padding-left: 0;
}

.sub-dropdown-submenu.active {
    max-height: 25rem;
    padding-top: 0.5rem;
}

.sub-dropdown-submenu .sub-menu-header {
    display: none;
}

.sub-dropdown-submenu li {
    border-bottom: none;
    margin-bottom: 0.3rem;
}

.sub-dropdown-submenu li:last-child {
    border-bottom: none;
}

.sub-dropdown-submenu a {
    display: block;
    padding: 0.6rem 0 0.6rem 4rem;
    font-size: 1.6rem;
    font-weight: 400;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    width: 100%;
}

.sub-dropdown-submenu a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.splash-page div.hero-content,
.male-homepage div.hero-content {
    height: 21rem;

}

.splash-page div.hero-content img,
.male-homepage div.hero-content img {
    min-width: 14rem;
    max-width: 16rem;
    width: 100%;
}

/* Hero Section */
.splash-page .hero-section.container-outer {
    background: linear-gradient(360deg, #FCF7F1 0%, #FBE7CB 100%);
}

/* Main Content */
.splash-page .main-content,
.splash-page .main-content-outer {
    padding: 2rem 0;
    flex-direction: column;
    gap: 2rem;
}

.splash-page .main-content-outer {
    background-color: var(--bg-color);
}

.splash-page .content-buttons {
    flex-direction: column;
    gap: 2.3rem;
}

.splash-page a.content-button {
    width: 26rem;
    height: 10rem;
    font-size: 4rem;
    line-height: 1.2;
    flex-direction: column;
    border-radius: 1.5rem;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    font-weight: 700;
}

.splash-page .content-male>a.content-button {
    background-color: var(--male);
    border-bottom: 0.6rem solid rgba(0, 32, 73, 1);
}

.splash-page .content-male>a.content-button:hover {
    filter: brightness(1.1);
    transform: translateY(-0.2rem);
    border-bottom-width: 0.8rem;
}

.splash-page .content-male>a.content-button:active {
    border-bottom-width: 0.3rem;
    filter: brightness(0.9);
    transform: translateY(0.3rem);
}

.splash-page .content-female>a.content-button {
    background-color: var(--female);
    border-bottom: 0.6rem solid rgba(158, 39, 44, 1);
}

.splash-page .content-female>a.content-button:hover {
    filter: brightness(1.1);
    transform: translateY(-0.2rem);
    border-bottom-width: 0.8rem;
}

.splash-page .content-female>a.content-button:active {
    border-bottom-width: 0.3rem;
    filter: brightness(0.9);
    transform: translateY(0.3rem);
}

.splash-page a>span.content-button-span {
    font-size: 1.7rem;
    font-weight: 400;
}

.splash-page .main-content-heading h2 {
    font-size: 2.4rem;
    line-height: 1.33;
    color: var(--logo-color);
    font-weight: 700;
}

.splash-page .main-content-slider {
    aspect-ratio: 1;
    width: 100%;
    border-radius: 2rem;
    overflow: hidden;
}

.splash-page .swiper {
    width: 100%;
    height: 100%;
}

.splash-page .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.splash-page .swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}

.splash-page .main-content-logo {
    margin-top: 1.5rem;
}

.splash-page .main-content-description {
    margin-top: 1.5rem;
}

.splash-page .main-content-description p {
    font-size: var(--default-text-size);
    color: var(--default-text-color);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* CTA Section */
.cta-section {
    padding: 3rem 0;
}

.splash-page .cta-section {
    background-color: var(--bg-color);
}

.cta-content {
    flex-direction: column;
}

.cta-buttons {
    flex-direction: column;
    gap: 2.3rem;
}

.cta-button {
    width: 26rem;
    height: 5.2rem;
    font-size: calc(var(--default-text-size) - 0.1rem);
    line-height: 1.2;
    border-radius: 1.5rem;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    background-color: var(--white);
    font-weight: 700;
    padding: 1rem 1.6rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.25);
}

.cta-button span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

.cta-button.line {
    background-color: rgb(58, 205, 1);
    border-bottom: 0.6rem solid rgba(0, 141, 58, 1);
}

.cta-button.phone {
    background-color: var(--white);
    color: rgba(0, 45, 120, 1);
    border-bottom: 0.6rem solid rgba(137, 137, 137, 1);
}

.cta-button.map {
    background-color: black;
    border-bottom: 0.3rem solid var(--white);
}

.cta-button.more-info {
    background: linear-gradient(91.55deg, #FAA734 1.83%, #FFDBA8 50%, #FAA734 98.17%);
    border-bottom: 0.6rem solid rgb(228, 138, 14);
    color: var(--black);
}

.cta-button:hover {
    filter: brightness(0.95);
    transform: translateY(-0.2rem);
    border-bottom-width: 0.8rem;
}

.cta-button:active {
    border-bottom-width: 0.3rem;
    filter: brightness(0.85);
    transform: translateY(0.3rem);
}

.cta-button img {
    width: 2.4rem;
    height: 2.4rem;
}

/* Social Icons */
.splash-page .social-icons {
    background-color: var(--bg-color);
}

.social-icons-buttons {
    gap: 2rem;
}

.social-icon svg path {
    transition: all 0.3s ease;
}

.social-icon:hover svg path {
    fill: var(--primary-color);
}

/* Footer */
.splash-page .footer {
    background: linear-gradient(180deg, #FCF7F1 0%, #FBE7CB 100%);
}

.footer-content {
    width: 100%;
    height: 20rem;
    gap: 2rem;
}

.footer-content a {
    font-size: 2rem;
    line-height: 1.5;
    font-weight: 700;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.splash-page .footer-content a {
    color: var(--black);
}

.footer-content a:hover {
    color: var(--primary-color);
}

.footer-content p.copyright {
    font-size: 1.4rem;
    color: var(--black);
    line-height: 1.5;
    font-weight: 500;
}

/************** Male Homepage  **************/
.male-homepage .hero-section.container-outer {
    /* Background image now set dynamically via ACF */
    background-position: 13%;
}

.male-homepage .medical-consultant-section {
    background-color: var(--male);
}

.male-homepage .medical-consultant-content {
    gap: 1.5rem;
}

.consultant-btns {
    width: 24rem;
    height: 5rem;
    color: var(--white);
    font-size: var(--default-text-size);
    font-weight: 600;
    line-height: 1.5;

}

.consultant-btns:nth-of-type(1) {
    background: url("../images/button-orange.webp") center/contain no-repeat;
}

.consultant-btns:nth-of-type(2) {
    background: url("../images/button-blue.webp") center/contain no-repeat;
}


/* CTA Section */
.male-homepage .cta-section,
.program-page .cta-section {
    background: var(--male);
}


/* Social Icons */
.male-homepage .social-icons,
.program-page .social-icons {
    background-color: var(--male);
}

/* Footer */
.male-homepage .footer,
.program-page .footer,
.single-post-page .footer {
    color: var(--white);
    background: var(--male);
}

.male-homepage .footer-content a,
.program-page .footer-content a,
.single-post-page .footer-content a {
    color: var(--white);
}

.male-homepage .footer-content a:hover,
.program-page .footer-content a:hover,
.single-post-page .footer-content a:hover {
    color: var(--primary-color);
}

.male-homepage .footer-content p.copyright,
.program-page .footer-content p.copyright,
.single-post-page .footer-content p.copyright {
    color: var(--white);
}

.male-homepage .medical-consultant-content h2 {
    font-size: 3rem;
    line-height: 1.167;
    color: var(--logo-color);
    font-weight: 700;
}

.medical-consultant-slider-outer {
    max-width: 40rem;
    width: 100%;
    aspect-ratio: 7/6;
    align-items: flex-start;
}

.male-homepage .medical-consultant-slider {
    width: calc(100% - 80px);
    height: calc(100% - 4rem);
    border-radius: 2rem;
    overflow: hidden;
}

.male-homepage .medical-consultant-slider .swiper-slide .top {
    width: 100%;
    height: calc(2 * 100% / 3);
    border-radius: 2rem 0;
    position: relative;
}

.male-homepage .medical-consultant-slider .swiper-slide .top .male-homepage-slider-content-top {
    position: absolute;
    top: 50%;
    right: 3%;
    transform: translateY(-50%);
    text-align: end;
}

.male-homepage .medical-consultant-slider .swiper-slide .top .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent 25%, black 70%);
}

.male-homepage .medical-consultant-slider .swiper-slide .top .male-homepage-slider-content-top h2 {
    font-size: 3.6rem;
    line-height: 1.11;
    color: var(--primary-color);
    font-weight: 700;
}

.male-homepage .medical-consultant-slider .swiper-slide .top .male-homepage-slider-content-top p {
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--white);
}


.male-homepage .medical-consultant-slider .swiper-slide .bottom {
    width: 100%;
    height: calc(1 * 100% / 3);
    border-radius: 0 0 2rem;
}

.male-homepage .medical-consultant-slider .swiper-slide .bottom.orange {
    background-color: var(--logo-color);
}

.male-homepage .medical-consultant-slider .swiper-slide .bottom.yellow {
    background-color: var(--primary-color);
}

.male-homepage .medical-consultant-slider .swiper-slide .bottom .male-homepage-slider-content-bottom h2 {
    font-size: 2rem;
    line-height: 1.5;
    color: var(--white);
    font-weight: 700;
}

.male-homepage .medical-consultant-slider .swiper-slide .bottom .male-homepage-slider-content-bottom p {
    font-size: 2rem;
    line-height: 1.5;
    color: var(--white);
}

.male-homepage .swiper {
    width: 100%;
    height: 100%;
}

.male-homepage .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.male-homepage .swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}

/* Hide default Swiper navigation arrows and show only custom images */
.swiper-button-next::after,
.swiper-button-prev::after {
    display: none;
}


.male-slider-button-next.swiper-button-next,
.male-slider-button-prev.swiper-button-prev {
    top: 40%;
}

.male-slider-button-next,
.male-slider-button-prev {
    width: auto;
    height: auto;
    margin-top: 0;
}

.male-slider-button-next img,
.male-slider-button-prev img {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

/* Medical Consultant Buttons */
.medical-consultant-buttons {
    background-color: var(--blue);
}

.male-homepage .medical-consultant-buttons {
    background-color: var(--male);
}

.medical-consultant-buttons-buttons {
    padding: 1.5rem 0 3rem;
    gap: 1rem;
}

.medical-consultant-buttons-buttons a {
    border-radius: 100px;
    padding: 1.5rem 0;
    gap: 1rem;
    font-size: 2rem;
    font-weight: 700;
}

.medical-consultant-buttons-buttons .cta-button.line img {
    position: relative;
    left: 1.2rem;
}

/* Medical Team Specialist */
.medical-team-specialist {
    background: linear-gradient(180deg, #FE7B12 0%, #FBB03D 32.69%, #FFFFFF 79.33%);
    padding: 3rem 0;
}

.medical-team-specialist-content-title h2 {
    font-size: 2.4rem;
    line-height: 1.33;
    color: var(--white);
    font-weight: 700;
}

.medical-team-specialist-content-slider {
    width: 35rem;
    height: auto;
    align-items: flex-start;
}

.male-homepage .medical-team-specialist-slider .swiper-slide {
    gap: 1.3rem;
}

.male-homepage .medical-team-specialist-slider .swiper-slide img {
    width: 25rem;
    object-fit: cover;
}

.male-homepage .medical-team-specialist-slider .swiper-slide .slide-description {
    padding: 1.6rem;
    border: 1px solid rgba(255, 255, 255, 1);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    gap: 1.25rem;
}

.male-homepage .medical-team-specialist-slider .swiper-slide .slide-description h3 {
    font-size: 1.6rem;
    font-weight: 600;
}

.male-homepage .medical-team-specialist-slider .swiper-slide .slide-description>div {
    align-items: flex-start;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

.male-homepage .medical-team-specialist-slider .swiper-slide .slide-description .left {
    width: 63%;
    padding-right: 1rem;
    border-right: 0.5px solid rgba(0, 0, 0, 1);
}

.male-homepage .medical-team-specialist-slider .swiper-slide .slide-description .right {
    width: 37%;
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.male-homepage .medical-team-specialist-slider .swiper-slide .slide-description ul {
    padding-left: 1.6rem;
}

.male-homepage .medical-team-specialist-slider .swiper-slide .slide-description li {
    list-style: disc;
}

.medical-team-specialist-button-next.swiper-button-next,
.medical-team-specialist-button-prev.swiper-button-prev {
    top: 33%;
}

.male-homepage .medical-team-specialist-content>.cta-button.more-info {
    margin-top: 2rem;
    border-radius: 100px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--black);
}

/* Recommended Programs */
.male-homepage .recommended-programs {
    background-color: var(--male);
    padding: 4rem 0;
}

.male-homepage .recommended-programs-content {
    gap: 2rem;
}

.male-homepage .recommended-programs-content-title h2>span:first-child {
    color: var(--primary-color);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.16;
}

.male-homepage .recommended-programs-content-title h2>span:last-child {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.5;
}

.male-homepage .recommended-programs-slider .swiper-slide {
    gap: 2rem;
}

.male-homepage .recommended-programs-slider .swiper-slide figure {
    width: calc(100% - 15rem);
    object-fit: cover;
}

.male-homepage .recommended-programs-slider .swiper-slide .slide-description {
    gap: 2rem;
}

.male-homepage .recommended-programs-slider .swiper-slide .slide-description h3 {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
    text-align: center;
}

.male-homepage .recommended-programs-slider .swiper-slide .slide-description p {
    font-size: 2rem;
    line-height: 1.5;
    color: var(--white);
    text-align: center;
}

.swiper-button-prev,
.swiper-rtl .swiper-button-next {
    left: 0;
}

.swiper-button-next,
.swiper-rtl .swiper-button-prev {
    right: 0;
}

/* Recommended Programs Pagination */
.male-homepage .recommended-programs-pagination {
    position: relative !important;
    bottom: auto !important;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.male-homepage .recommended-programs-pagination .swiper-pagination-bullet {
    background-color: rgba(128, 128, 128, 0.7);
    opacity: 1;
    width: 1rem;
    height: 1rem;
    margin: 0 0.5rem;
}

.male-homepage .recommended-programs-pagination .swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}

/* Navigation buttons for recommended programs */
.male-homepage .recommended-programs-button-next.swiper-button-next,
.male-homepage .recommended-programs-button-prev.swiper-button-prev {
    top: 30%;
}

@media screen and (max-width: 500px) {
    .male-homepage .recommended-programs-slider .swiper-slide figure {
        width: calc(100% - 10rem);
    }

    .male-homepage .recommended-programs-button-next.swiper-button-next,
    .male-homepage .recommended-programs-button-prev.swiper-button-prev {
        top: 25%;
    }
}

@media screen and (max-width: 400px) {

    .male-homepage .recommended-programs-button-next.swiper-button-next,
    .male-homepage .recommended-programs-button-prev.swiper-button-prev {
        top: 20%;
    }
}

.male-homepage .recommended-programs-button-next,
.male-homepage .recommended-programs-button-prev {
    width: auto;
    height: auto;
    margin-top: 0;
}

.male-homepage .recommended-programs-button-next img,
.male-homepage .recommended-programs-button-prev img {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

/* Medical Team Specialist Pagination */
.male-homepage .medical-team-specialist-pagination {
    position: relative !important;
    bottom: auto !important;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.male-homepage .medical-team-specialist-pagination .swiper-pagination-bullet {
    background-color: rgba(128, 128, 128, 0.7);
    opacity: 1;
    width: 1rem;
    height: 1rem;
    margin: 0 0.5rem;
}

.male-homepage .medical-team-specialist-pagination .swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}

/******************** Program Upsize ******************************/
/* Hero Section */
.program-page .hero-section {
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    aspect-ratio: 39 / 21;
}

.program-page .hero-section.program-upsize {
    background-image: linear-gradient(90deg, rgba(0, 45, 104, 0) 35%, rgb(1, 17, 39, 1) 60%),
        url('../images/program-upsize-hero.webp');
}



.program-page .hero-section .hero-content .program-heading {
    position: absolute;
    top: 50%;
    right: 0%;
    transform: translateY(-50%);
    text-align: right;
}

.program-page .hero-section .hero-content .program-heading .main-heading {
    font-size: 4rem;
    line-height: 1.2;
    color: var(--primary-color);
    font-weight: 700;
}

.program-page .hero-section .hero-content .program-heading .sub-heading {
    font-size: 1.8rem;
    line-height: 1.5;
    color: var(--white);
}

@media screen and (max-width: 450px) {
    .program-page .hero-section .hero-content .program-heading .main-heading {
        font-size: 3.5rem;
    }

    .program-page .hero-section .hero-content .program-heading .sub-heading {
        font-size: 1.6rem;
    }
}

/* Referal Program */
.program-page .referal-program {
    background-color: var(--blue);
    padding: 2rem 0;
}

.program-page .referal-program .referal-program-content {
    gap: 2rem;
}

.program-page .referal-program .referal-program-content li {
    list-style-type: disc;
    margin-left: 2rem;
}

.program-page .referal-program .referal-program-content .referal-program-heading {
    color: var(--primary-color);
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.5;
}

.program-page .referal-program .referal-program-content .referal-program-description {
    color: var(--white);
    font-size: 1.8rem;
    line-height: 1.67;
    font-weight: 400;
    gap: 2rem;
    align-items: flex-start;
}

/* Program Upsize Advantages */
.program-page .program-upsize-advantages {
    background-color: var(--blue);
    padding: 2rem 0;
}

.program-page .program-upsize-advantages-tabs {
    gap: 1.6rem;
}

.program-page .program-upsize-advantages-tabs .tab {
    width: 36rem;
    background-color: rgba(255, 249, 241, 1);
    border-radius: 10rem;
    padding: 1.4rem;
}

.program-page .program-upsize-advantages-tabs .tab .left {
    width: 25%;
}

.program-page .program-upsize-advantages-tabs .tab .left figure.tab-icon {
    width: 6.2rem;
    aspect-ratio: 1;
    background-color: var(--primary-color);
    border-radius: 10rem;
}

.program-page .program-upsize-advantages-tabs .tab .right {
    width: 75%;
}

.program-page .program-upsize-advantages-tabs .tab .right .advantage-heading {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--black);
}

.program-page .program-upsize-advantages-tabs .tab .right .advantage-description {
    font-size: 2rem;
    line-height: 1.5;
    font-weight: 400;
    color: var(--black);
}

/* medical-consultant-buttons */
.program-page .medical-consultant-buttons {
    padding: 3rem 0;
}

/* Upsize Promotion Slider */
.program-page .upsize-promotion {
    background-image: linear-gradient(to bottom, var(--blue), var(--male));
    padding: 1rem 0;
}

.program-page .upsize-promotion-slider-outer {
    width: 36rem;
    height: 36rem;
    align-items: flex-start;
}

.program-page .upsize-promotion-slider-outer .swiper {
    width: 100%;
    height: 100%;
}

.program-page .upsize-promotion-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Upsize Promotion Pagination */
.program-page .upsize-promotion-pagination {
    position: relative !important;
    bottom: auto !important;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.program-page .upsize-promotion-pagination .swiper-pagination-bullet {
    background-color: rgba(128, 128, 128, 0.7);
    opacity: 1;
    width: 1rem;
    height: 1rem;
    margin: 0 0.5rem;
}

.program-page .upsize-promotion-pagination .swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}

/* Navigation buttons for upsize promotion */
.program-page .upsize-promotion-button-next.swiper-button-next,
.program-page .upsize-promotion-button-prev.swiper-button-prev {
    top: 40%;
}

.program-page .upsize-promotion-button-next,
.program-page .upsize-promotion-button-prev {
    width: auto;
    height: auto;
    margin-top: 0;
}

.program-page .upsize-promotion-button-next img,
.program-page .upsize-promotion-button-prev img {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

/* Reserve First */
.program-page .reserve-first {
    background-color: var(--male);
    padding: 5rem 0 2rem;
}

.cta-button.more-info.btn-red {
    background-image: linear-gradient(90deg, #E80404 1.83%, #FF6B6B 50%, #E80404 98.17%);
    color: var(--white);
    border-bottom: 0.6rem solid rgb(181, 0, 0);
    border-radius: 10rem;
}

/* Customer Reviews */
.program-page .customer-reviews {
    background-color: var(--male);
    padding: 4rem 0;
}

.program-page .customer-reviews-content {
    gap: 2rem;
}

.program-page .customer-review-heading {
    gap: 1rem;
}

.program-page .customer-review-heading .main-heading {
    font-size: 3rem;
    line-height: 1.167;
    color: var(--primary-color);
    font-weight: 700;
}

.program-page .customer-review-heading .sub-heading {
    font-size: 1.8rem;
    line-height: 1.5;
    color: var(--white);
}

.program-page .customer-reviews-cards {
    gap: 2rem;
}

.program-page .customer-review-card figure {
    width: 36rem;
    height: 51rem;
}

.program-page .customer-review-card figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Program CTA */
.program-page .program-cta {
    background-color: var(--male);
    padding: 2rem 0;
}

.program-page .program-cta-buttons a {
    font-size: 3rem;
    line-height: 1.5;
    font-weight: 700;
}


.program-page .program-cta-buttons .cta-button.retrospective {
    background-color: transparent;
    border: 0.1rem solid var(--white);
}

.program-page .program-cta-buttons .cta-button.homepage {
    background-color: rgba(0, 95, 255, 1);
    border-bottom: 0.3rem solid var(--white);
}

/******************** Program Circumcision ******************************/

.program-page .hero-section.program-circumcision {
    background-image: linear-gradient(90deg, rgba(0, 45, 104, 0) 35%, rgb(1, 17, 39, 1) 60%),
        url('../images/program-circumcision-hero.webp');
}

.program-page .hero-section.program-circumcision .hero-content.program-content .program-heading {
    top: 70%;
}

/******************** Program Vasectomy ******************************/

.program-page .hero-section.program-vasectomy {
    background-image: linear-gradient(90deg, rgba(0, 45, 104, 0) 35%, rgb(1, 17, 39, 1) 60%),
        url('../images/program-vasectomy-hero.webp');
}

/******************** Program ErecTra Max ******************************/

.program-page .hero-section.program-erectra-max {
    background-image: linear-gradient(90deg, rgba(0, 45, 104, 0) 35%, rgb(1, 17, 39, 1) 60%),
        url('../images/program-erectra-max-hero.webp');
    background-position: 0 100%;
}

.program-page .hero-section.program-erectra-max .hero-content.program-content .program-heading {
    top: 70%;
}

.program-page .erectra-max-features {
    padding: 2rem 0;
    background-color: rgba(255, 249, 241, 1);
}

.program-page .erectra-max-features-content {
    gap: 2rem;
}

.program-page .erectra-max-features-content .row {
    gap: 4rem;
}

.program-page .erectra-max-features-content .row .feature-item {
    text-align: center;
    gap: 1.5rem;
    font-size: 1.4rem;
    line-height: 1.55;
}

.program-page .erectra-max-features-content .row .feature-item h3 {
    font-weight: 700;
    color: var(--primary-color);
}

.program-page .erectra-max-features-content .row .feature-item p {
    line-height: 1.55;
}

.program-page .erectra-max-features-content .row .feature-item img {
    width: 10rem;
    aspect-ratio: 1;
}

/*************************** Detail Upsize ***************************/
.details-page .medical-consultant-buttons {
    background-color: var(--male);
}

.details-page .medical-consultant-buttons-buttons {
    padding: 0;
}

.detail-upsize-page .hero-section.detail-upsize {
    background-image: linear-gradient(90deg, rgba(0, 45, 104, 0) 35%, rgb(1, 17, 39, 1) 60%),
        url('../images/detail-upsize-hero.webp');
    /* background-position: bottom; */
}

/* Details Section */
.details-section {
    padding: 2rem 0;
    background-color: var(--details-bg);
}

.details-section .details-main-content {
    gap: 2rem;
    font-size: var(--default-text-size);
    line-height: 1.67;
}

.details-section .details-main-content .details-heading {
    text-align: center;
    color: var(--logo-color);
    gap: 1rem;
}

.details-section .details-main-content .details-heading .main-heading {
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 700;
}

.details-section .details-main-content .details-heading .sub-heading {
    font-size: 2rem;
    line-height: 1.5;
}

.details-section .details-main-content ul {
    margin-left: 3rem;
}

.details-section .details-main-content ul li {
    list-style-type: disc;
    gap: 1rem;
}

/* Details Image */
.details-image {
    padding: 2rem 0 0;
}

.details-image .details-image-content {
    width: 100%;
    background-color: rgba(217, 217, 217, 1);
    aspect-ratio: 36 / 50.9;
}

.details-image .details-image-content img,
.details-video .details-video-content img:not(.play-button) {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Details Video */
.details-video .details-video-content {
    width: 100%;
    background-color: rgba(217, 217, 217, 1);
    aspect-ratio: 9 / 16;
}

.details-video .details-video-content video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.details-video .details-video-content .play-button {
    width: 10rem;
    aspect-ratio: 1;
    cursor: pointer;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);   
}

.details-inner-container .sub-heading {
    color: var(--logo-color);
}

/* Details Circumcision */
.detail-circumcision-page .hero-section.detail-circumcision {
    background-image: linear-gradient(90deg, rgba(0, 45, 104, 0) 35%, rgb(1, 17, 39, 1) 60%),
        url('../images/detail-circumcision-hero.webp');
}

/* Details Vasectomy */
.detail-vasectomy-page .hero-section.detail-vasectomy {
    background-image: linear-gradient(90deg, rgba(0, 45, 104, 0) 35%, rgb(1, 17, 39, 1) 60%),
        url('../images/detail-vasectomy-hero.webp');
}

/* Details Erectra */
.detail-erectra-page .hero-section.detail-erectra {
    background-image: linear-gradient(90deg, rgba(0, 45, 104, 0) 35%, rgb(1, 17, 39, 1) 60%),
        url('../images/detail-erectra-hero.webp');
}

.detail-erectra-page .hero-section.detail-erectra .hero-content.detail-erectra-content .program-heading {
    top: 70%;
}


.blue-bg {
    background-color: var(--male);
}

/* Single Post Page Styles */
.single-post-page {
    background-color: var(--bg-color);
}

.single-post-page .hero-section {
    padding: 4rem 0;
    color: var(--white);
    text-align: center;
}

.single-post-page .post-meta {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.single-post-page .post-date {
    font-size: 1.4rem;
    font-weight: 500;
    opacity: 0.9;
}

.single-post-page .post-categories a {
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    transition: all 0.3s ease;
}

.single-post-page .post-categories a:hover {
    background-color: var(--primary-color);
    color: var(--black);
}

.single-post-page .main-heading {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.single-post-page .sub-heading {
    font-size: 2rem;
    line-height: 1.4;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.single-post-page .post-featured-image {
    max-width: 80rem;
    margin: 0 auto;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.3);
}

.single-post-page .post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post Content Section */
.single-post-page .post-content-section {
    padding: 6rem 0;
    background-color: var(--white);
}

.single-post-page .post-content-wrapper {
    max-width: 80rem;
    margin: 0 auto;
}

.single-post-page .author-info {
    margin-bottom: 4rem;
    padding: 3rem;
    background-color: var(--bg-color);
    border-radius: 1.5rem;
    text-align: center;
}

.single-post-page .author-avatar {
    margin-bottom: 1.5rem;
}

.single-post-page .author-avatar img {
    border-radius: 50%;
    border: 0.3rem solid var(--primary-color);
}

.single-post-page .author-name {
    font-size: 2rem;
    font-weight: 600;
    color: var(--male);
    margin-bottom: 0.5rem;
}

.single-post-page .author-bio {
    font-size: 1.6rem;
    color: var(--default-text-color);
    font-style: italic;
}

/* Main Content Styling */
.single-post-page .post-main-content {
    line-height: 1.8;
}

.single-post-page .content-text {
    font-size: var(--default-text-size);
    color: var(--default-text-color);
    margin-bottom: 4rem;
}

.single-post-page .content-text h2 {
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--male);
    margin: 3rem 0 1.5rem 0;
    line-height: 1.3;
}

.single-post-page .content-text h3 {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--male);
    margin: 2.5rem 0 1.2rem 0;
    line-height: 1.3;
}

.single-post-page .content-text h4 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--male);
    margin: 2rem 0 1rem 0;
    line-height: 1.3;
}

.single-post-page .content-text p {
    margin-bottom: 2rem;
}

.single-post-page .content-text ul,
.single-post-page .content-text ol {
    margin: 2rem 0;
    padding-left: 3rem;
}

.single-post-page .content-text li {
    margin-bottom: 1rem;
    list-style: disc;
}

.single-post-page .content-text blockquote {
    background-color: var(--bg-color);
    border-left: 0.5rem solid var(--primary-color);
    padding: 2rem;
    margin: 3rem 0;
    font-style: italic;
    border-radius: 0 1rem 1rem 0;
}

.single-post-page .content-text img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    margin: 2rem 0;
}

/* Post Tags */
.single-post-page .post-tags {
    margin-bottom: 4rem;
    padding: 2rem 0;
    border-top: 0.1rem solid #eee;
}

.single-post-page .post-tags h4 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--male);
    margin-bottom: 1rem;
}

.single-post-page .tags-list a {
    display: inline-block;
    background-color: var(--bg-color);
    color: var(--default-text-color);
    padding: 0.8rem 1.5rem;
    margin: 0.5rem 0.5rem 0.5rem 0;
    border-radius: 2rem;
    font-size: 1.4rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.single-post-page .tags-list a:hover {
    background-color: var(--primary-color);
    color: var(--black);
}

/* Social Share */
.single-post-page .social-share {
    margin-bottom: 4rem;
    padding: 2rem 0;
    border-top: 0.1rem solid #eee;
}

.single-post-page .social-share h4 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--male);
    margin-bottom: 1.5rem;
}

.single-post-page .share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.single-post-page .share-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    border-radius: 0.8rem;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.single-post-page .share-btn.facebook {
    background-color: #1877f2;
    color: var(--white);
}

.single-post-page .share-btn.twitter {
    background-color: #1da1f2;
    color: var(--white);
}

.single-post-page .share-btn.line {
    background-color: #00c300;
    color: var(--white);
}

.single-post-page .share-btn:hover {
    transform: translateY(-0.2rem);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}

/* Related Posts */
.single-post-page .related-posts {
    padding: 6rem 0;
    background-color: var(--bg-color);
}

.single-post-page .related-posts-heading {
    text-align: center;
    margin-bottom: 4rem;
}

.single-post-page .related-posts-heading .main-heading {
    font-size: 3rem;
    font-weight: 700;
    color: var(--male);
    margin-bottom: 1rem;
}

.single-post-page .related-posts-heading .sub-heading {
    font-size: 1.8rem;
    color: var(--default-text-color);
}

.single-post-page .related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 3rem;
    max-width: 120rem;
    margin: 0 auto;
}

.single-post-page .related-post-card {
    background-color: var(--white);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.single-post-page .related-post-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.15);
}

.single-post-page .related-post-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.single-post-page .related-post-image {
    height: 20rem;
    overflow: hidden;
}

.single-post-page .related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.single-post-page .related-post-card:hover .related-post-image img {
    transform: scale(1.05);
}

.single-post-page .related-post-content {
    padding: 2rem;
}

.single-post-page .related-post-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--male);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.single-post-page .related-post-excerpt {
    font-size: 1.5rem;
    color: var(--default-text-color);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.single-post-page .related-post-date {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* Comments Section */
.single-post-page .comments-section {
    padding: 6rem 0;
    background-color: var(--white);
}

.single-post-page .comments-wrapper {
    max-width: 80rem;
    margin: 0 auto;
}

/* CTA Section */
.single-post-page .cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--male) 0%, var(--primary-color) 100%);
    color: var(--white);
    text-align: center;
}

.single-post-page .cta-heading h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.single-post-page .cta-heading p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* Social Icons */
.single-post-page .social-icons {
    background-color: var(--male);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .single-post-page .main-heading {
        font-size: 2.8rem;
    }
    
    .single-post-page .sub-heading {
        font-size: 1.6rem;
    }
    
    .single-post-page .post-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .single-post-page .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .single-post-page .share-buttons {
        flex-direction: column;
    }
    
    .single-post-page .content-text h2 {
        font-size: 2.4rem;
    }
    
    .single-post-page .content-text h3 {
        font-size: 2rem;
    }
}