.text-primary{
    color:#180a82!important;
}
/* Add padding to the body to prevent content from being hidden by the fixed navbar */
body {
    padding-top: 56px; /* Height of the navbar */
}

/* --- Force Fixed Navbar on All Screens --- */
.navbar.fixed-top {
    position: fixed !important;
}

.hero-section {
    /*
      IMPORTANT: Replace this placeholder URL with a real, high-quality image.
      You can find professional medical images on sites like Unsplash or Pexels.
    */
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/image/hero05.webp');

    height: 90vh; /* Takes up 90% of the viewport height */
    background-size: cover;
    background-position: center;

    /* This centers the content vertically and horizontally */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section h1 {
    font-weight: 700; /* Bolder text for the headline */
}

/* Initial state for the animation */
.hero-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Final state for the animation */
.hero-content.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.page-section {
    padding: 30px 0;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.service-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 4rem; /* Makes the icon large */
    color: #0d6efd; /* Bootstrap primary color */
}

/* --- Animation Classes --- */

/* The initial state of the element before it animates */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* The state to apply when the element becomes visible */
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Image Hover Effect --- */

.image-hover-container {
    position: relative; /* This is the anchor for the absolute overlay */
    overflow: hidden;   /* This hides the overlay when it's slid down */
    border-radius: 8px; /* Optional: adds rounded corners */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.image-hover-container .img-fluid {
    display: block; /* Removes any extra space below the image */
    width: 100%;
}

.image-hover-container .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent); /* Dark gradient from bottom */

    /* Initially, slide it down out of view */
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;

    /* For styling the text inside */
    color: white;
    padding: 40px 20px 20px 20px;
}

/* When you hover the CONTAINER, the OVERLAY inside it slides up */
.image-hover-container:hover .overlay {
    transform: translateY(0);
}

.overlay-text h3 {
    font-weight: 700;
}

/* --- Parallax Section --- */

.parallax-section {
    /*
      IMPORTANT: This is the background image that will be seen through the "window".
      Choose a high-quality, relevant image.
    */
    background-image: url('/image/red-blood-cells-isolated-on-a-transparent-background-free-png.webp');

    /* The magic: The background is fixed, creating the parallax effect. */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    /* Set a specific height for the "window". Adjust as needed. */
    min-height: 400px;

    /* Adds a dark overlay for text readability */
    position: relative;
    color: white;
}

/* Adds a dark overlay so the white text is readable */
.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Style for the text content inside the parallax section */
.parallax-content {
    /* This ensures the text is on top of the overlay */
    position: relative;

    /* Centering the content vertically and horizontally */
    height: 400px; /* Must match min-height above */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* --- Procedure Card Styling --- */

.procedure-card {
    border: 1px solid #dee2e6; /* Light grey border */
    border-radius: 8px;
    overflow: hidden; /* Ensures the image corners are rounded */
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%; /* Makes all cards in a row the same height */
    display: flex;
    flex-direction: column;
}

.procedure-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.procedure-card .card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows the body to fill available space */
}

.procedure-card .card-title {
    font-weight: 700;
    margin-bottom: 15px;
}

.procedure-card .card-text {
    flex-grow: 1; /* Pushes the button to the bottom */
    margin-bottom: 20px;
}

#appointment form {
    max-width: 800px; /* Prevents form from becoming too wide on large desktops */
    margin: 0 auto;   /* Centers the form in its container */
}

/* --- Parallax Form Section --- */

.parallax-form-section {
    /* IMPORTANT: Choose a different, subtle background image for this section */
    background-image: url('/image/2ndParallax.webp'); /* Using the same image for now, but you can change it */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    padding: 80px 0; /* Gives top and bottom spacing */
}

/* This is the white box that holds the form */
.form-container {
    background-color: rgba(255, 255, 255, 0.8); /* Mostly opaque white */
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    max-width: 800px;
    margin: 0 auto; /* Center the container */
}

/* --- Site Footer Styling --- */
.site-footer {
    background-color: #212529; /* A dark background, same as the navbar */
    color: #ffffff;
    padding: 30px 0 10px 0;
    font-size: 0.9rem;
}

.site-footer h5 {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.site-footer .footer-link {
    color: #adb5bd; /* A lighter grey for links */
    text-decoration: none;
    transition: color 0.3s;
}

.site-footer .footer-link:hover {
    color: #ffffff; /* White on hover */
}

.site-footer .list-unstyled li {
    margin-bottom: 10px;
}

/* Color for the icons */
.site-footer .bi {
    color: #0d6efd; /* Bootstrap primary blue */
}

#logoUTS{
    text-align: right;
    margin-top: -50px;
}

/* --- Responsive Adjustments for Mobile --- */

@media (max-width: 992px) {

    /* Make the hero section shorter on mobile */
    .hero-section {
        height: 70vh; /* Reduced from 90vh - you can adjust this value */
    }

    /* Make the text smaller to fit the reduced height */
    .hero-section h1 {
        font-size: 2.5rem; /* Smaller than the original display-4 */
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    /* Add more space above and below other sections */
    .page-section {
        padding: 60px 0;
    }

    #logoUTS{
        text-align: center;
        margin-top: unset;
    }

}

/* --- Heart Animation Alignment --- */
.heart-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px; /* Adjust as needed to ensure proper vertical alignment */
}

.heart-animation img {
    max-width: 100%; /* Ensure image is responsive */
    height: auto;
}

/* --- Investigation Item Styling --- */
.investigation-item h3 {
    font-weight: 700;
    color: #343a40; /* A dark grey for strong headlines */
    margin-bottom: 15px;
}

/* --- Client-Side Validation Styling --- */
.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

/* --- Semi-Transparent Navbar Styling --- */
.navbar.bg-dark {
    /*
      This changes the background from a solid color to a semi-transparent one.
      The original color is rgb(33, 37, 41).
      The '0.75' sets the opacity to 75% (0.0 is fully transparent, 1.0 is fully opaque).
    */
    background-color: rgba(33, 37, 41, 0.75) !important;

    /*
      RECOMMENDED: This "frosted glass" effect blurs the content scrolling behind the menu.
      It dramatically improves the readability of the menu links.
    */
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

/* --- Video Card Styling --- */
.video-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    transition: box-shadow 0.3s;
}
.video-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.video-thumbnail {
    position: relative;
    display: block;
}
.video-thumbnail .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.9);
    transition: transform 0.3s, color 0.3s;
}
.video-thumbnail:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    color: #fff;
}
.video-card-body {
    padding: 20px;
}
/* --- Alternating Video Row Styling --- */
.video-description h3 {
    font-weight: 700;
    margin-bottom: 15px;
}


.page-section figure {
    display: grid;
    justify-content: center;
}

/* Add a bit of space on mobile where rows stack */
@media (max-width: 991px) {
    .video-thumbnail {
        margin-bottom: 20px;
    }
}