* {
    padding: 0;
    margin: 0;
    box-sizing: border-box; /* Add this for consistent box model behavior */
}

/* --- Font Declarations --- */
/* For optimal performance and cross-browser compatibility, it's recommended to
   convert your fonts to WOFF2 and WOFF formats using a tool like Font Squirrel's
   Webfont Generator or Transfonter. This example assumes you've generated
   those formats alongside your TTF/OTF files. */

@font-face {
    font-family: 'customFont';
    src: url('BILLIONDREAMS_PERSONAL.eot'); /* IE9 Compat Modes */
    src: url('BILLIONDREAMS_PERSONAL.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('BILLIONDREAMS_PERSONAL.woff2') format('woff2'), /* Modern Browsers */
         url('BILLIONDREAMS_PERSONAL.woff') format('woff'), /* Older Modern Browsers */
         url('BILLIONDREAMS_PERSONAL.ttf') format('truetype'); /* Safari, Android, iOS */
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* Tells the browser how to display text while the font is loading. 'swap' is generally good for user experience. */
}

@font-face {
    font-family: 'customFont2';
    src: url('Beach Spring.eot');
    src: url('Beach Spring.eot?#iefix') format('embedded-opentype'),
         url('Beach Spring.woff2') format('woff2'),
         url('Beach Spring.woff') format('woff'),
         url('Beach Spring.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'customFont4';
    src: url('Little Moony.eot');
    src: url('Little Moony.eot?#iefix') format('embedded-opentype'),
         url('Little Moony.woff2') format('woff2'),
         url('Little Moony.woff') format('woff'),
         url('Little Moony.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* --- General Body Styles --- */
body {
    background-image: url("../image/BACK_FINAL2.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow-y: hidden;
    animation: fadeIn 2s ease forwards;
}

/* --- Utility Classes --- */
.link {
    color: rgb(112, 111, 111) !important;
    text-decoration: underline;
}

.backDark {
    background-color: rgba(6, 6, 6, 0.5);
}

/* --- Typography --- */
p {
    font-family: 'Roboto', sans-serif;
}

h2 {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    font-size: 25px;
    color: #ffffff;
    padding: 0;
    margin-bottom: 0;
}

h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: normal;
    font-size: 22px;
    color: #ffffff;
    padding: 0;
    margin-bottom: 0;
}

h4 {
    text-shadow: 3px 3px #000000;
    font-family: 'Roboto', sans-serif;
    font-size: 32px;
    font-weight: bold;
    color: #ffffff;
    padding: 0;
    margin-bottom: 0;
}

h5 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 300;
    color: #ffffff;
    padding: 0;
    margin-bottom: 0;
    justify-content: center;
    text-align: center;
    line-height: 1;
}

h6 {
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
    padding: 0;
    margin-bottom: 0;
    justify-content: center;
    text-align: left;
}

.h7 {
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
    padding: 0;
    margin-bottom: 0;
    justify-content: center;
    text-align: center;
}

/* --- Main Layout / Animations --- */
#circleWrapper {
    width: 500px;
    height: 500px;
    margin: auto;
    background-color: rgba(26, 26, 26, 0.5);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    opacity: 0.5;
    animation: fadeIn 2s ease forwards;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    position: relative;
}

/*.logoMain {
    background-image: url("../image/PHT_Logo_GIF.gif");
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    top: 53%;
    left: 59%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: fadeIn 2s ease forwards;
}

.content {
    position: absolute;
    width: inherit;
    height: auto;
    top: 97%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    color: #fff;
    font-size: 27px;
    opacity: 0;
    animation: fadeIn 2s ease forwards;
}*/
.logoMain {
    background-image: url("../image/PHT_Logo_GIF.gif");
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    top: 53%;
    left: 59%;
    transform: translate(-50%, -50%);
    opacity: 1; /* <-- Change this to 1 */

}

.content {
    position: absolute;
    width: inherit;
    height: auto;
    top: 97%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    color: #fff;
    font-size: 27px;
    opacity: 1; /* <-- Change this to 1 */

}

#backColor {
    background-color: rgba(26, 26, 26, 0.5);
}

#mainContainer {
    animation: fadeIn 2s ease forwards;
    overflow: hidden;
}

@keyframes transitionIn {
    from {
        opacity: 1;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: rotateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 1;
    }
    to {
        opacity: 1;
    }
}

.slide-out {
    animation: slideOut 0.5s forwards;
}

@keyframes slideOut {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* --- Dashboard --- */
#horizontal-line {
    width: 100%;
    height: 4px;
    background-color: white;
    position: relative;
}

#mainRow {
    border-top: 3px solid rgb(255, 255, 255);
    margin-top: 150px;
}

#hair {
    position: absolute;
    transform: translate(0%, -45%);
    text-align: center;
    align-items: center;
}

#hair img {
    width: 100%;
    width: 115px;
    height: 115px;
    max-width: 125px;
    max-height: 125px;
    height: auto;
    transition: width 0.2s, max-width 0.2s, max-height 0.2s;
}

.container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
}

#mainText {
    text-align: center;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    color: white;
    font-size: 15px;
    position: fixed;
    top: calc(50% + 80px);
    left: -45px;
    right: 0;
    transform: translateY(-50%);
    transition: font-size 0.2s;
}

#hair img:hover {
    width: 125px;
    max-height: 125px;
}

#hair img:hover #mainText {
    font-size: large;
}

#header {
    font-family: 'customFont', sans-serif;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80%;
    margin: 0 auto;
    font-size: 180px;
    font-weight: normal;
    color: #ffffff;
}

#headermobile {
    font-family: 'customFont', sans-serif;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50vh;
    font-size: 19vw;
    font-weight: normal;
    color: #ffffff;
}

.homeText {
    position: relative;
    top: -50px;
}

.homeTextmobile {
    position: relative;
    margin-top: -5rem;
    padding: 0 1rem;
    font-size: 4vw;
    color: #ffffff;
    text-align: center;
    line-height: 1.6;
}

.homeTextmobile h5 {
    font-size: 12px;
    padding: 15px;
}

.border-white {
    border: 1px solid white;
}

.row {
    border: 0;
    padding: 0;
}

.col {
    border: 0;
    padding: 0;
}

/* --- About Section --- */
#team_heading {
    font-size: 22px;
    font-weight: bold;
}

#p_about {
    font-size: 16px !important;
}

#activeTab {
    text-decoration: underline;
    color: white !important;
}

.no-padding {
    padding: 0 !important;
}

.padding {
    padding-bottom: 30px !important;
}

.fit-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clinic-image {
    width: 100%;
    height: 100%;
    object-fit: none;
}

#aboutHeading h2 {
    display: inline-block;
    border: 3px solid rgb(255, 255, 255);
    padding: 5px 10px;
    margin-top: 20px;
}

#aboutHeading p {
    padding: 30px;
    padding-top: 10px;
    color: white !important;
}

#aboutHeading h3 {
    padding: 18px;
    font-weight: bold;
    color: white !important;
}

#aboutHeader {
    text-align: center;
    border: 4px solid rgb(255, 255, 255);
    padding: 0; /* Changed from none */
    margin: 0 auto;
    max-width: 200px;
    color: white;
    font-size: 25px;
    font-weight: bold;
}

#ourMission {
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
    text-align: right;
    font-weight: bold;
    font-size: 15px;
}

#ourExpertise {
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
    text-align: center;
    font-weight: bold;
    font-size: 15px;
}

#theExpert {
    font-family: 'Roboto', sans-serif;
    text-align: left;
    font-weight: bold;
    font-size: 15px;
    color: #ffffff;
}

#ourMission a,
#ourExpertise a,
#theExpert a {
    color: #ffffff !important;
}

.aciveLink {
    text-decoration: underline;
}

.square {
    background-size: cover;
    background-position: center;
}

.centered-text {
    position: absolute;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    font-size: 45px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    text-align: center;
    color: white;
    text-shadow: 3px 1px #000000;
}

#ourMissionText p {
    color: white !important;
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    padding-left: 10%;
    padding-right: 10%;
}

.fixed-container {
    position: fixed;
    top: -166.5px;
    right: 0;
    width: 140px;
    height: 300px;
    background-color: rgb(255, 255, 255);
    border: 0px solid #ccc;
    z-index: 999;
    padding-top: 10px;
    margin-right: 20px;
    border-bottom-left-radius: 95px;
    border-bottom-right-radius: 95px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: top 0.3s ease;
}

.fixed-container a {
    color: rgb(4, 4, 4) !important;
    font-family: 'Roboto', sans-serif;
    font-size: 15.5px;
}

.logo {
    margin-left: 5px;
    margin-top: auto;
}

.logo img {
    max-width: 95%;
    max-height: 95%;
}

/* --- About/Expert --- */
.square1 {
    height: 42%;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.square2 {
    height: 58%;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.square {
    height: 100%;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.image-link {
    display: block;
    width: 100%;
    height: 100%;
}

/* The centered-text rule was duplicated, keeping the more complete one above. */

#expert {
    color: white !important;
    font-family: 'Roboto', sans-serif;
    font-size: 17px;
    padding-left: 10%;
    padding-right: 10%;
}

#linkParagraph {
    color: rgb(138, 138, 138);
    text-decoration: underline;
    padding-left: 10%;
    padding-right: 10%;
    padding-bottom: 10%;
}

.centered {
    position: absolute;
    top: 71%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    color: white;
}

/* --- Expertise --- */
.squareExpertise {
    height: 50vh;
    background-position: center;
}

#expertise-image {
    background-image: url('../image/about/ISHRS.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 55% 65%;
    margin-top: 30px;
}

#expertise-image2 {
    background-image: url('../image/about/ISHRS2.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 320px 200px;
    margin-top: -170px;
}

#expertise-image3 {
    background-image: url('../image/about/certificate2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 320px 200px;
    margin-top: -170px;
}

/* --- Contact Us --- */
#contactHeader {
    text-align: center;
    border: 4px solid rgb(255, 255, 255);
    padding: 0; /* Changed from none */
    margin: 0 auto;
    max-width: 200px;
    color: white;
    font-size: 25px;
    font-weight: bold;
}

#contactText {
    color: white !important;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    padding-left: 10%;
    padding-right: 10%;
}

#contactText #boldText {
    font-weight: bold;
    font-size: 18px;
    padding: 0; /* Changed from none */
}

/* --- FAQ --- */
#faqHeader {
    text-align: center;
    border: 4px solid rgb(255, 255, 255);
    padding: 0; /* Changed from none */
    margin: 0 auto;
    max-width: 440px;
    color: white;
    font-size: 25px;
    font-weight: bold;
}

#faqText {
    color: white !important;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    padding-left: 13%;
    padding-right: 10%;
    padding-top: 7%;
}

#faqText #boldText {
    font-weight: bold;
    font-size: 20px;
    padding-bottom: 10px;
    padding-top: 10px;
}

/* --- Gallery --- */
#galleryHeader {
    text-align: center;
    border: 4px solid rgb(255, 255, 255);
    padding: 0; /* Changed from none */
    margin: 0 auto;
    max-width: 200px;
    color: white;
    font-size: 25px;
    font-weight: bold;
}

.carousel-container {
    margin-top: 20vh !important;
    height: 340px;
    width: 510px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    border: 0px solid rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

.carousel-inner {
    height: 100%;
}

.carousel-item {
    height: 100%;
}

.carousel-item img {
    object-fit: fill;
    height: 100%;
    width: 100%;
}

.bordered-carousel {
    border: 20px solid #000;
    border-radius: 0px;
    overflow: hidden;
}

#carouselExampleControls {
    margin: 0;
    padding: 0;
}

/* --- Testimony --- */
#testimonyHeader {
    text-align: center;
    border: 4px solid rgb(255, 255, 255);
    padding: 0; /* Changed from none */
    margin: 0 auto;
    max-width: 200px;
    color: white;
    font-size: 25px;
    font-weight: bold;
}

#testimonyText {
    max-height: 90vh;
    color: white !important;
    overflow-y: auto;
    font-size: 15px;
    font-weight: lighter;
    padding-left: 13%;
    padding-right: 10%;
    padding-top: 7%;
    display: flex;
    flex-direction: column;
}

#testimonyText::-webkit-scrollbar {
    display: none;
}

#testimonyText #boldText {
    font-weight: bold;
    font-size: 20px;
    padding-bottom: 10px;
    padding-top: 10px;
}

#testimonyText span {
    font-weight: normal;
}

.container #mobileView {
    padding-bottom: 30px !important;
}

/* --- Technique --- */
.techniqueTab {
    font-family: 'Roboto', sans-serif;
    color: #ffffff !important;
    text-align: right;
    font-weight: bold;
    font-size: 15px;
}

.futfue {
    font-family: 'Roboto', sans-serif;
    color: #ffffff !important;
    text-align: right;
    font-weight: bold;
    font-size: 15px;
}

.donorHarvesting {
    font-family: 'Roboto', sans-serif;
    color: #ffffff !important;
    text-align: right;
    font-weight: bold;
    font-size: 15px;
}

.container-rounded-circle {
    position: relative;
}

.black-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 101%;
    height: 101%;
    background-color: rgba(0, 0, 0, 0.8);
    border: 8px solid black;
    border-radius: 50%;
    padding: 10px;
    z-index: 1;
    animation: fadeIn 2s ease forwards;
}
.black-bg2 {
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 101%;
    height: 96%;
    background-color: rgba(0, 0, 0, 0.8); /* Black color with 50% opacity */
    border: 8px solid black;
    border-radius: 50%; /* Ensure the background is also rounded */
    padding: 10px;
    z-index: 1; /* Ensure the black background stays above the image */
    animation: fadeIn 2s ease forwards;
}
.technique-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 3;
    width: 100%;
    white-space: normal;
    word-wrap: break-word;
    overflow: hidden;
    padding: 0 10px;
}

.rounded-circle {
    border-radius: 50%;
    height: 80vh;
    width: 85vh;
    border: 5px solid white;
    display: block;
    margin-top: 28px;
}

#text-overlay {
    display: inline;
    font-family: 'Roboto', sans-serif;
    color: #ffffff !important;
    text-align: center;
    font-weight: normal;
    font-size: 16px;
    animation: fadeIn 2s ease forwards;
}

.circle-container {
    position: relative;
}

.text-white {
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 5, 10);
}

.textInsideCircle {
    display: block;
}

.textInsideCircle h3 {
    font-family: 'Roboto', sans-serif;
    color: #ffffff !important;
    text-align: right;
    font-weight: bold;
    font-size: 35px;
    animation: fadeIn 2s ease forwards;
}

.textInsideCircle h5 {
    font-family: 'Roboto', sans-serif;
    color: #ffffff !important;
    text-align: center;
    font-weight: normal;
    font-size: 15px;
    animation: fadeIn 2s ease forwards;
}

/* --- Media Queries --- */
@media only screen and (max-width: 768px) {
    h4 {
        font-size: 24px;
    }
    #circleWrapper {
        width: 400px;
        height: 400px;
    }
    #faqHeader {
        max-width: 250px;
        font-size: 15px;
    }
    .carousel-container {
        height: 60vh;
        width: 70vw;
        border: 10px solid rgba(0, 0, 0, 0.5);
    }
    .textInsideCircle h3 {
        font-size: 20px;
    }
    .textInsideCircle h5 {
        font-size: 10px;
    }
}

@media only screen and (max-width: 600px) {
    h4 {
        font-size: 20px;
    }
    #circleWrapper {
        width: 230px;
        height: 230px;
    }
    #hair {
        height: 120px;
        width: 120px;
        position: absolute;
        text-align: center;
        align-items: center;
    }
    #mainText {
        font-size: 12px;
    }
    #faqheader { /* Corrected from #faqHeader to match ID */
        font-size: 15px;
    }
    .carousel-container {
        margin-top: 120px !important;
        height: 50vh;
        width: 70vw;
    }
    .carousel-inner, .carousel-item {
        height: 300px;
    }
    .carousel-item img {
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
    }
    .textInsideCircle h3 {
        font-size: 20px;
    }
    .textInsideCircle h5 {
        font-size: 10px;
    }
}

@media only screen and (max-width: 576px) {
    .container {
        overflow-y: auto;
        height: 100vh;
    }
    #circleWrapper {
        height: 400px;
        width: 90%;
        font-size: 10px;
    }
    .carousel-container {
        margin-top: 40px !important;
        height: 65vh;
        width: 70vw;
        display: flex;
        justify-content: center;
        align-items: center;
        border: 0px solid rgba(0, 0, 0, 0.5);
        box-sizing: border-box;
        overflow: hidden;
    }
    .carousel-inner, .carousel-item {
        height: 300px;
    }
    .carousel-item img {
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
    }
    .rounded-circle {
        height: 320px;
        width: 98%;
        margin: 0 auto;
        display: block;
    }
    .textInsideCircle h3 {
        font-size: 20px;
    }
    .textInsideCircle h5 {
        font-size: 10px;
    }
    .text-overlay h5 {
        font-size: 10px;
    }
}