.announcement-bar .highlight-red {
    font-weight: bold;
}

.hero-content .video-trigger,
.slide-2 .btn-watch {
    font-size: 22px;
    font-weight: normal;
    padding: 7px 25px;
}

.fellowship-desc,
.skills-list li,
.eligibility-box p,
.pg-desc,
.learning-list li,
.aesthetic-list li,
.expert-card-footer h3,
.expert-hover-info h3 {
    font-size: 1.2rem;
    /* line-height: inherit; */
    line-height: 1.8rem;
}

.fellowship-desc,
.skills-list li,
.eligibility-box p {
    color: #1a1a1a;
}

.skills-block h3,
.learning-areas h3 {
    font-size: 2rem;
}

.section-title,
.course-group-title {
    font-size: 2rem;
}

.accredited-box span,
.eligibility-box span,
.accreditation-small span {
    font-size: 1.3rem;
}

.logo-placeholder {
    width: 155px;
}

.course-info h3 {
    margin-bottom: 0.5rem;
    line-height: inherit;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    min-height: 2rem;
}

.course-info .fee {
    margin-bottom: 0.5rem;
}

.learn-card-red-footer h3 {
    font-size: 1.8rem;
    font-weight: 600;
}

.learn-card-red-footer h3:hover {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: max-content;
    text-overflow: ellipsis;
}

/* .learn-card-red-footer {
    min-height: 113px;
} */

.expert-hover-info p,
.expert-card-footer p {
    font-size: 1rem;
}

.expert-card-footer h3 {
    font-size: 1.8rem;
}

.banner-tagline,
.banner-tag,
.banner-headings h4 {
    font-size: 1.6rem;
    margin-bottom: 0;
}

.pg-meta-info,
.aesthetic-info-rows {
    margin-bottom: 0.5rem;
}

.pg-meta-info p,
.aesthetic-info-rows p,
.meta-info p {
    font-size: 1.3rem;
    margin-bottom: 0;
    font-weight: normal;
}

.btn-explore-pg,
.btn-aesthetic-explore {
    font-size: 1.4rem;
}

.mh-content.content_max,
.mh-content.footer_max {
    margin: 0 auto !important;
    padding: 0 2.5rem !important;
    max-width: var(--max-width-fluid);
}

.sub-footer .icons {
    padding-right: 34px;
    ;
}

.fellowship-right .btn-register {
    font-size: 1.4rem;
    display: inline-block;
    padding: 12px 2.5rem;
    border-radius: 1rem;
    font-weight: 700;
    text-decoration: none;
    width: auto;
}

.course-info .fee {
    font-size: 1.25rem;
}

@media (min-width: 1024px) {
    .slide-2 .hero-title {
        font-size: 3rem;
    }

    .slide-2 .hero-subtitle li {
        font-size: 1.25rem;
    }

    .slide-2 .hero-content {
        padding-right: 7rem;
    }
}




@media (min-width: 1024px) and (max-width: 1439px) {

    .hero-container {
        display: flex !important;
        flex-direction: column !important;

    }

    .hero-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .hero-content>.hero-title {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

/* About Us Page Styles */
.about-hero {
    height: 550px;
    min-height: 550px;
    background-image: url("/static/new_css/assets/images/aboutus/aboutus_bg.png");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    position: relative;
    padding: 0;
    overflow: hidden;
}

.about-hero .container-fluid {
    height: 100%;
}

.about-hero-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    height: 100%;
}

.about-hero-text {
    flex: 1;
    align-self: center;
}

.about-hero h1 {
    font-size: 4.875rem;
    font-weight: 800;
    color: var(--primary-red);
    margin: 0;
    line-height: 1.1;
}

.about-hero-image {
    flex: 1.5;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.about-hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 1200px) {
    .about-hero {
        height: 550px;
        min-height: 450px;
    }

    .about-hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 1024px) {
    .about-hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 900px) {
    .about-hero {
        height: 550px;
        padding: 5rem 0 0;
        min-height: auto;
    }

    .about-hero-flex {
        flex-direction: column;
        text-align: center;
    }

    .about-hero h1 {
        font-size: 3.5rem;
        margin-bottom: 2rem;
    }

    .about-hero-image {
        justify-content: center;
        width: 100%;
    }

    .about-hero-image img {
        max-width: 90%;
    }
    .accredited-logos-flex img{
        height: 120px;
        padding: 0;
    }
}
@media (max-width: 520px) {
    .course-info-right .action-btn.white-btn{padding: 0;}
    .course-info-right .action-btn.white-btn .btn-label{margin-right: 0;}
}

@media (max-width: 480px) {
    .about-hero {
        height: 350px;
        padding: 4rem 0 0;
    }

    .about-hero h1 {
        font-size: 2.1875rem;
    }

    .accredited-logos-flex img{
        height: 90px;
        padding: 0;
    }
}

.about-section {
    padding: 2rem 0;
    background-color: #f1f5f9;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.stand-for-new .about-grid {
    grid-template-columns: 0.8fr 1.2fr;
}

.about-content h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-black);
    margin-bottom: 0.6rem;
}

.about-content p {
    font-size: 1rem;
    line-height: 1.35;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.section-subtitle {
    font-size: 1rem;
    line-height: 1.5;
    color: #000000;
    font-weight: 400;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-image img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.about-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.3rem;
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.3;
    font-weight: 400;
}

.about-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--dark-black);
    font-weight: bold;
}

.stand-for-section {
    background-color: var(--light-gray);
    padding: 5rem 0;
}

.stand-for-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.stand-for-card {
    flex: 0 1 350px;
    /* Base width */
    max-width: 100%;
    background-color: var(--white);
    padding: 0;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-gray);
}

.stand-for-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    z-index: 0;
}

.stand-for-card:hover::before {
    opacity: 1;
    transform: scale(1.1);
}

/* Background Images for Pseudo-elements */
.card-foundations::before {
    background-image: url("/static/new_css/assets/images/all/foundations_bg.png");
}

.card-concepts::before {
    background-image: url("/static/new_css/assets/images/all/concepts_bg.png");
}

.card-practice::before {
    background-image: url("/static/new_css/assets/images/all/practice_bg.png");
}

.card-diagnostic::before {
    background-image: url("/static/new_css/assets/images/all/diagnostic_bg.png");
}

.card-communication::before {
    background-image: url("/static/new_css/assets/images/all/communication_bg.png");
}

.card-science::before {
    background-image: url("/static/new_css/assets/images/all/science_bg.png");
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    transition: all 0.5s ease;
    z-index: 1;
}

.stand-for-card:hover .card-overlay {
    background: linear-gradient(to bottom, rgba(239, 68, 68, 0.7), rgba(239, 68, 68, 0.9));
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.5s ease;
}

.stand-for-card:hover .card-content {
    transform: translateY(-10px);
}

.stand-for-card .icon-box {
    width: 65px;
    height: 65px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--primary-red);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stand-for-card:hover .icon-box {
    background: var(--primary-red);
    color: var(--white);
    transform: scale(1.1) rotate(10deg);
}

.stand-for-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: var(--dark-black);
    transition: all 0.5s ease;
}

.stand-for-card:hover h3 {
    color: var(--white);
    letter-spacing: 1px;
}

.stand-for-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    transition: all 0.5s ease;
}

.stand-for-card:hover p {
    color: rgba(255, 255, 255, 0.9);
}

.stand-for-card:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

@media (max-width: 900px) {
    .about-section {
        padding: 2rem 0;
    }

    .about-grid {
        display: flex;
        flex-direction: column-reverse;
        gap: 2.5rem;
    }

    /* For sections where image should be on top (like hero or first about section) */
    .about-section:not(.stand-for-new) .about-grid {
        flex-direction: column;
    }

    .about-content h2 {
        font-size: 22px;
        text-align: start;
        margin-bottom: 1.5rem;
        white-space: nowrap;
        letter-spacing: -0.5px;
    }
}

/* Core Competencies Section - Central Doctor Layout */
.competencies-section {
    padding: 3rem 0 0;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.competencies-layout {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.comp-side {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.competency-card {
    background: #ffffff;
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-gray);
    transition: all 0.4s ease;
    width: 100%;
}

.side-left .competency-card {
    flex-direction: row;
    text-align: right;
}

.side-right .competency-card {
    flex-direction: row;
    text-align: left;
}

/* Ensure icon is always on the inner side of the side columns */
.side-left .competency-card {
    justify-content: flex-end;
}

.side-left .comp-icon {
    order: 2;
}

.side-left .comp-info {
    order: 1;
}

.side-right .comp-icon {
    order: 1;
}

.side-right .comp-info {
    order: 2;
}

.competency-card:hover {
    transform: scale(1.05);
    border-color: var(--primary-red);
    box-shadow: 0 15px 40px rgba(239, 68, 68, 0.1);
}

.comp-icon {
    width: 60px;
    height: 60px;
    background: #f1f5f9;
    color: #3b82f6;
    /* Blue icon like in image */
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.competency-card:hover .comp-icon {
    background: #3b82f6;
    color: var(--white);
}

.comp-icon svg {
    width: 28px;
    height: 28px;
}

.comp-info h3 {
    font-size: 1.25rem;
    color: #3b82f6;
    /* Blue title like in image */
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.comp-info p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0;
}

.comp-center {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    align-self: flex-end;
}

.doctor-img {
    max-width: 450px;
    height: auto;
    display: block;
    margin-bottom: 0;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

@media (max-width: 1200px) {
    .competencies-layout {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .comp-center {
        display: none;
        /* Hide image on smaller screens to save space */
    }
}

@media (max-width: 768px) {
    .competencies-layout {
        grid-template-columns: 1fr;
    }

    .side-left .competency-card {
        flex-direction: row;
        text-align: left;
        justify-content: flex-start;
    }

    .side-left .comp-icon {
        order: 1;
    }

    .side-left .comp-info {
        order: 2;
    }
}

/* Base Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Pop-in for Competencies */
.competencies-section .reveal {
    transform: scale(0.9) translateY(40px);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.competencies-section .reveal.active {
    transform: scale(1) translateY(0);
}

/* Stagger delays for cards */
.competency-card:nth-child(1) {
    transition-delay: 0.1s;
}

.competency-card:nth-child(2) {
    transition-delay: 0.2s;
}

.competency-card:nth-child(3) {
    transition-delay: 0.3s;
}

.competency-card:nth-child(4) {
    transition-delay: 0.4s;
}

.competency-card:nth-child(5) {
    transition-delay: 0.5s;
}

.competency-card:nth-child(6) {
    transition-delay: 0.6s;
}

/* Stagger delays for What We Stand For cards */
.stand-for-card:nth-child(1) {
    transition-delay: 0.1s;
}

.stand-for-card:nth-child(2) {
    transition-delay: 0.2s;
}

.stand-for-card:nth-child(3) {
    transition-delay: 0.3s;
}

.stand-for-card:nth-child(4) {
    transition-delay: 0.4s;
}

.stand-for-card:nth-child(5) {
    transition-delay: 0.5s;
}

.stand-for-card:nth-child(6) {
    transition-delay: 0.6s;
}

@media (max-width: 1024px) {
    .competencies-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .competency-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .comp-icon.icon-right {
        order: -1;
    }
}

/* Our Learning Approach Section */
.learning-approach-section {
    padding: 4rem 0;
    background-color: var(--white);
    overflow: hidden;
}

.approach-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.approach-intro {
    font-size: 1.3rem;
    color: var(--text-main);
    line-height: 1.6;
    margin-top: 1rem;
    font-weight: 500;
}

.list-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-black);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.approach-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.approach-list li {
    font-size: 1.05rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
}

.approach-list li i {
    color: var(--primary-red);
    width: 20px;
    height: 20px;
}

.approach-footer p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.approach-highlight {
    color: var(--dark-black) !important;
    font-weight: 700;
    border-left: 4px solid var(--primary-red);
    padding-left: 1.5rem;
    font-style: italic;
}

.approach-image-box {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.image-wrapper img {
    width: 100%;
    display: block;
    transition: transform 0.8s ease;
}

.approach-image-box:hover img {
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--primary-red);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 15px 30px rgba(239, 68, 68, 0.3);
    animation: float 3s ease-in-out infinite;
}

.experience-badge .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 1024px) {
    .approach-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .approach-image-box {
        order: -1;
    }
}

@media (max-width: 768px) {
    .approach-list {
        grid-template-columns: 1fr;
    }
}

/* Partnerships Section */
.partnerships-section {
    padding: 3rem 0;
    background-color: #f9fafb;
}

.partners-heading {
    text-align: center;
    font-size: 1.5rem;
    color: var(--dark-black);
    margin-bottom: 3rem;
    font-weight: 700;
}

.partners-slider-bar {
    /* background: #ef4444; */
    /* padding: 4rem 0; */
    width: 100vw;
    /* margin: 3rem 0; */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
}

.partners-swiper .swiper-wrapper {
    transition-timing-function: linear !important;
    /* Required for seamless loop */
}

.logo-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
}

.logo-slide img {
    height: 120px;
    width: auto;
    opacity: 1;
    transition: all 0.3s ease;
}

.logo-slide span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logo-slide:hover img {
    transform: scale(1.1);
    opacity: 1;
}

.partners-footer {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

/* MasterHealthPro Section */
.mhpro-section {
    padding: 4rem 0;
    background-color: #f8fafc;
    /* Light medical blue-gray */
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern */
.mhpro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--border-gray) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}

.mhpro-card {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2.5rem;
    align-items: center;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-gray);
}

.mhpro-logo-box {
    background: #f1f5f9;
    padding: 2rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-gray);
}

.mhpro-logo-box img {
    width: 100%;
    height: auto;
}

.mhpro-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-black);
}

.mhpro-content p {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.mhpro-highlight {
    font-size: 1.25rem !important;
    font-weight: 600;
    color: var(--primary-red) !important;
    border-left: 5px solid var(--primary-red);
    padding-left: 2rem;
    background: #fff5f5;
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    border-radius: 0 1rem 1rem 0;
}

@media (max-width: 1024px) {
    .mhpro-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 3rem 2rem;
    }

    .mhpro-logo-box {
        max-width: 200px;
        margin: 0 auto;
    }

    .mhpro-highlight {
        padding: 1.5rem;
        border-left: none;
        border-top: 3px solid var(--primary-red);
        border-radius: 1rem;
    }
}

@media (max-width: 768px) {
    .logo-strip {
        gap: 2rem;
    }

    .logo-box img {
        height: 45px;
    }
}

/* Core Competencies Section - New Grid Layout */
.competencies-new-section {
    padding: 2rem 0;
    background-color: #f8fafc;
}

.competencies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.competency-card-new {
    background: #f6f6f6;
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.competency-card-new:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.competency-card-new img {
    height: 80px;
    width: auto;
    margin-bottom: 1.5rem;
}

.competency-card-new h3 {
    font-size: 1.5625rem;
    font-weight: 700;
    color: var(--dark-black);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.competency-card-new p {
    font-size: 1rem;
    color: #000000;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

@media (max-width: 1024px) {
    .competencies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .competencies-grid {
        grid-template-columns: 1fr;
    }
}

/* Knowledge Partnerships Section - Grid Design */
.partnerships-section-new {
    padding: 4rem 0;
    background-color: #ffffff;
}

.partners-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.partner-card {
    background-color: #f1f5f9;
    border-radius: 1rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    /* Increased height */
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.partner-card:hover {
    background-color: #e8eef5;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.partner-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .partners-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .partner-card {
        padding: 1rem;
    }
}

/* MasterHealthPro New Section Styles */
.mhpro-highlight-red {
    color: var(--primary-red) !important;
    font-weight: 700;
    font-size: 1.35rem;
    line-height: 1.3;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .mhpro-highlight-red {
        font-size: 1.1rem;
        text-align: center;
    }
}

/* Cosmetic Gynecology & Sexology Masters Section */
.cosmetic-gynecology-section {
    padding: 1rem 0 0 0;
    background-color: #ffffff;
    font-family: 'Montserrat', sans-serif;
}

.cosmetic-wrapper {
    max-width: var(--max-width-fluid);
    margin: 0 auto;
}

.cosmetic-main-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 5rem;
    align-items: center;
}

.cosmetic-left-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cosmetic-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.25;
    color: #000000;
}

.cosmetic-title .highlight-red {
    color: var(--primary-red);
}

.cosmetic-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
    font-weight: 600;
}

.cosmetic-right-col {
    display: flex;
    justify-content: flex-end;
}

.cosmetic-video-card {
    position: relative;
    width: 100%;
    max-width: 550px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    aspect-ratio: 16 / 9;
}

.cosmetic-video-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cosmetic-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65px;
    height: 65px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cosmetic-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.cosmetic-play-btn svg {
    color: var(--primary-red);
    fill: var(--primary-red);
    width: 24px;
    height: 24px;
    margin-left: 3px;
}

/* Bottom Stats Container */
.cosmetic-stats-container {
    margin-top: 5rem;
    margin-bottom: -6.5rem;
    position: relative;
    z-index: 10;
    background: #ffffff;
    border-radius: 1rem;
    padding: 3rem 2.5rem;
    border: 1px solid #f0f0f0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
}

.cosmetic-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.cosmetic-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    min-height: 200px;
}

.cosmetic-stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(239, 68, 68, 0.2);
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.06);
}

.cosmetic-stat-icon-wrapper {
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.cosmetic-stat-icon-wrapper img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.cosmetic-stat-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .cosmetic-gynecology-section {
        padding: 1rem 0 0 0;
    }

    .cosmetic-main-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .cosmetic-title {
        font-size: 2.25rem;
        text-align: center;
    }

    .cosmetic-desc {
        text-align: justify;
    }

    .cosmetic-right-col {
        justify-content: center;
    }

    .cosmetic-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .cosmetic-stats-container {
        padding: 2rem 1.5rem;
        margin-top: 3.5rem;
        margin-bottom: -8.5rem;
    }
}

@media (max-width: 640px) {
    .cosmetic-stats-container {
        margin-bottom: -13.5rem;
    }

    .cosmetic-stats-row {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .cosmetic-title {
        font-size: 1.85rem;
    }

    .cosmetic-stat-card {
        padding: 2rem 1rem;
        min-height: 170px;
    }
}

/* Course Information Section Styles */
.course-info-section {
    padding: 9.5rem 0 3rem 0;
    background-color: #000000;
    /* Section has black background */
    font-family: 'Montserrat', sans-serif;
    transition: padding 0.3s ease;
}

@media (max-width: 1024px) {
    .course-info-section {
        padding-top: 11.5rem;
    }
}

@media (max-width: 640px) {
    .course-info-section {
        padding-top: 16.5rem;
    }
}

.course-info-wrapper {
    max-width: var(--max-width-fluid);
    margin: 0 auto;
}

.course-info-card {
    background-color: #ffffff;
    /* Card has white background */
    border-radius: 1rem;
    padding: 2rem 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1.5px solid rgba(239, 68, 68, 0.3);
    /* Subtle red border like in screen */
}

.section-main-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 1.5rem;
}

.course-info-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 2.5rem;
    align-items: start;
}

.course-info-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-block {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-subtitle {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-red);
    /* Subtitles are red */
    margin: 0;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.list-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.list-icon svg {
    width: 20px;
    height: 20px;
}

.list-icon img {
    width: 18px;
    height: auto;
    display: block;
    object-fit: contain;
}


.list-text {
    font-size: 1.1rem;
    line-height: 1.35;
    color: #1f2937;
    font-weight: 600;
}

/* Right Column: Actions and Director */
.course-info-right {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Action Panel */
.action-panel {
    background-color: #f3f4f6;
    /* Light gray panel */
    border-radius: 1rem;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.action-btn.white-btn {
    background-color: #ffffff;
    color: var(--primary-red);
    border: 1.5px solid rgba(239, 68, 68, 0.4);
    justify-content: space-between;
    padding: 0 0 0 1.5rem;
    height: 58px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.action-btn.white-btn:hover {
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(239, 68, 68, 0.08);
}

.btn-label {
    flex: 1;
    text-align: center;
    margin-right: -40px;
    /* Offset to keep label centered */
}

.btn-badge-icon {
    width: 58px;
    height: 100%;
    background-color: var(--primary-red);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0.5rem 0.5rem 0;
}

.btn-badge-icon svg {
    width: 22px;
    height: 22px;
}

.btn-badge-icon img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}


.share-text {
    font-size: 0.95rem;
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
}

.linkedin-icon {
    width: 20px;
    height: 20px;
    color: #0077b5;
    /* LinkedIn Blue */
    display: flex;
    align-items: center;
}

.linkedin-icon svg {
    width: 100%;
    height: 100%;
}

.action-btn.red-btn {
    background-color: var(--primary-red);
    color: #ffffff;
    height: 58px;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2);
}

.action-btn.red-btn:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(239, 68, 68, 0.3);
}

/* Director block */
.director-block {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.director-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.director-card {
    background-color: #ffffff;
    border: 1.5px solid rgba(239, 68, 68, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

.director-photo {
    width: 80px;
    height: 80px;
    border-radius: 1rem;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
}

.director-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.director-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.director-info h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.director-info p {
    font-size: 0.95rem;
    color: #4b5563;
    margin: 0;
    line-height: 1.4;
    font-weight: 500;
}

/* Responsive Course Info */
@media (max-width: 1024px) {
    .course-info-card {
        padding: 2.5rem;
    }

    .course-info-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .section-main-title {
        font-size: 2.25rem;
        text-align: center;
        margin-bottom: 2rem;
    }
}

@media (max-width: 640px) {
    .course-info-card {
        padding: 1.75rem 1.25rem;
    }

    .info-subtitle {
        font-size: 1.5rem;
    }

    .list-text {
        font-size: 1rem;
    }

    .director-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }
}

/* Course Timeline & Branched Tree Styles */
.course-content-tree {
    position: relative;
    padding-left: 50px;
    margin-top: 1.5rem;
}

.course-content-tree::before {
    display: none;
}

.tree-node {
    position: relative;
    margin-bottom: 1.25rem;
    background-color: #ffffff;
    border: 1.5px solid rgba(239, 68, 68, 0.4);
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.tree-node:hover {
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

.tree-node::before {
    content: '';
    position: absolute;
    top: 28px;
    left: -43px;
    /* Center of the square node aligns with left: 15px vertical line */
    width: 16px;
    height: 16px;
    background-color: var(--primary-red);
    border-radius: 1rem;
    z-index: 2;
}

.tree-node::after {
    content: '';
    position: absolute;
    top: 35px;
    left: -35px;
    width: 35px;
    /* Horizontal branch connecting line to card */
    height: 2px;
    background-color: var(--border-gray);
    z-index: 1;
}

.tree-node:not(:last-child)::after {
    top: 35px;
    height: calc(100% + 1.25rem);
    background: linear-gradient(to right, var(--border-gray) 2px, transparent 2px),
        linear-gradient(to bottom, var(--border-gray) 2px, transparent 2px);
    background-color: transparent;
}

.tree-node .info-subtitle {
    margin-bottom: 0.75rem;
}

/* Nested Bullet Lists */
.list-text-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.nested-list {
    list-style: none;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.nested-list li {
    font-size: 1.05rem;
    color: #4b5563;
    font-weight: 600;
    line-height: 1.25;
}

/* Profile Group Card */
.profile-group-card {
    background-color: #ffffff;
    border: 1.5px solid rgba(239, 68, 68, 0.3);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.profile-group-item {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.profile-group-item:not(:last-child) {
    border-bottom: 1px solid rgba(239, 68, 68, 0.15);
}

.profile-photo {
    width: 80px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid gray;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.profile-info h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.profile-info p {
    font-size: 0.95rem;
    color: #4b5563;
    margin: 0;
    line-height: 1.4;
    font-weight: 600;
}

/* Margin utilities for blocks */
.info-block-audience {
    margin-top: 1.5rem;
    border-top: 1px solid #f3f4f6;
    padding-top: 1.5rem;
}

.course-content-section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #000000;
    margin: 2.5rem 0 1rem 0;
}

/* Responsive adjustments for Course Timeline & Groups */
@media (max-width: 768px) {
    .course-content-tree {
        padding-left: 30px;
    }

    .course-content-tree::before {
        display: none;
    }

    .tree-node::before {
        left: -33px;
        width: 12px;
        height: 12px;
        top: 24px;
    }

    .tree-node::after {
        left: -27px;
        width: 27px;
        top: 29px;
    }

    .tree-node:not(:last-child)::after {
        top: 29px;
        height: calc(100% + 1.25rem);
        background: linear-gradient(to right, var(--border-gray) 2px, transparent 2px),
            linear-gradient(to bottom, var(--border-gray) 2px, transparent 2px);
        background-color: transparent;
    }

    .tree-node {
        padding: 1.25rem 1.5rem;
    }

    .profile-group-item {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }
}

/* PDF Modal Styles */
.pdf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.pdf-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.pdf-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.pdf-modal-container {
    position: relative;
    z-index: 2;
    background-color: #ffffff;
    width: 90%;
    max-width: 1000px;
    height: 85%;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.pdf-modal.active .pdf-modal-container {
    transform: translateY(0);
}

.pdf-modal-header {
    padding: 1.25rem 2rem;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pdf-modal-header h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark-black);
    font-family: 'Montserrat', sans-serif;
}

.pdf-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.pdf-modal-close:hover {
    background-color: #f3f4f6;
    color: var(--primary-red);
}

.pdf-modal-close svg {
    width: 24px;
    height: 24px;
}

.pdf-modal-body {
    flex-grow: 1;
    position: relative;
    background-color: #f3f4f6;
}

.pdf-modal-body iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.review-modal input{
    width: 100%;
    border: 1.5px solid #e5e7eb;
    border-radius: 1rem;
    padding: 14px;
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    color: var(--text-main);
    resize: none;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
/* Modal Body Scroll Lock */
body.modal-open {
    overflow: hidden !important;
}

@media (max-width: 768px) {
    .pdf-modal-container {
        width: 95%;
        height: 90%;
        border-radius: 1rem;
    }

    .pdf-modal-header {
        padding: 1rem 1.5rem;
    }
}

/* Hero Banner Buttons Override */
.hero-buttons-row {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin-bottom: 2.5rem !important;
    flex-wrap: wrap !important;
}

@media (min-width: 1025px) {
    .hero-buttons-row {
        flex-wrap: nowrap !important;
    }
}

.hero-buttons-row .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 46px !important;
    padding: 0 24px !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    border-radius: 0.5rem !important;
    font-family: "Montserrat", sans-serif !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
    border: 2px solid transparent !important;
    margin: 0 !important;
}

/* Specific watch video trigger size reset */
.hero-content .video-trigger.btn {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    padding: 0 24px !important;
}

.hero-buttons-row .btn-watch {
    background-color: var(--primary-red) !important;
    color: #ffffff !important;
    border-color: var(--primary-red) !important;
}

.hero-buttons-row .btn-watch:hover {
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(220, 38, 38, 0.25) !important;
}

.hero-buttons-row .btn-sample {
    background-color: #ffffff !important;
    color: var(--primary-red) !important;
    border-color: var(--primary-red) !important;
}

.hero-buttons-row .btn-sample:hover {
    background-color: var(--primary-red) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(239, 68, 68, 0.2) !important;
}

.hero-buttons-row .btn-buy {
    background-color: var(--primary-red) !important;
    color: #ffffff !important;
    border-color: var(--primary-red) !important;
}

.hero-buttons-row .btn-buy:hover {
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(220, 38, 38, 0.25) !important;
}

/* Accredited By Title Override */
.accredited-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #000000 !important;
    margin-bottom: 1rem !important;
    text-transform: none !important;
    /* Standard casing */
    letter-spacing: normal !important;
}

/* Slide 1 Doctor Image Override */
@media (min-width: 1025px) {
    .slide-1 .hero-container {
        position: relative;
        margin: 0 auto;
        padding: 0 2.5rem;        
        width: 100% !important;
    }

    .slide-1 .hero-image {
        position: absolute !important;
        right: 0 !important;
        bottom: 0 !important;
        height: 100% !important;
        width: auto !important;
        display: flex !important;
        align-items: flex-end !important;
        justify-content: flex-end !important;
        z-index: 1 !important;
    }

    .slide-1 .hero-image img {
        height: 100% !important;
        max-height: 620px !important;
        width: auto !important;
        border-radius: 0 !important;
        display: block !important;
    }

    .slide-1 .hero-content {
        position: relative !important;
        z-index: 2 !important;
        max-width: 60% !important;
        padding-bottom: 0rem !important;
        padding-top: 6rem !important;
    }
}

/* Adjustments for smaller desktops to prevent text-image overlap */
@media (min-width: 1025px) and (max-width: 1366px) {
    .hero-title-slide1 {
        font-size: 2.1rem !important;
    }

    .hero-title-slide1 .text-black {
        font-size: 1.35rem !important;
    }

    .slide-1 .hero-content {
        max-width: 65% !important;
    }

    .slide-1 .hero-image img {
        max-height: 520px !important;
    }
}

/* Ensure no border-radius on mobile/tablet for slide 1 doctor image */
.slide-1 .hero-image img {
    border-radius: 0 !important;
}
