@import url('https://fonts.googleapis.com/css2?family=Audiowide&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

body,html {
    overflow-x: hidden;
}

/* Main content margin top */
.main-content {
    margin-top: 20px;
    padding: 0 15px; /* Added padding for better alignment on all screen sizes */
    padding-top: 70px;
}

/* Styling for post images */
.post-img {
    width: 100%; /* Ensure the image uses the full width for responsiveness */
    border-radius: 10px;
    margin-bottom: 20px; /* Space between image and content */
}

/* Styling for post meta */
.post-meta {
    margin: 10px 0;
    display: flex;
    align-items: center;
    font-size: 0.9em;
    color: #6c757d;
}

/* Styling for individual post meta items */
.post-meta span {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.post-meta i {
    margin-right: 5px;
    color: #5cb85c;
}

/* Post content heading */
.post-content h2 {
    font-family: "Outfit", sans-serif;
    font-weight: 700;
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 2.2rem;
    text-align: left; /* Aligning heading to the left */
}

/* Post content paragraph */
.post-content p {
    font-family: "Outfit", sans-serif;
    line-height: 1.8;
    color: #000000;
    margin-bottom: 15px; /* Space between paragraphs */
    text-align: justify; /* Ensuring paragraphs are properly aligned */
}

/* This only affects blogs loaded from the database */
#dynamic-shoulder-posts .post-content p {
    white-space: pre-line;
}

/* Dynamic blog styling fix */
#dynamic-shoulder-posts {
    width: 100%;
}

#dynamic-shoulder-posts .post-content {
    width: 50vw;
    padding: 0;           /* same as static */
}

#dynamic-shoulder-posts img,
#dynamic-shoulder-posts iframe {
    width: 100%;
    max-width: 100%;
    height: 70vh;
    display: block;
}

/* For Eblow */
#dynamic-elbow-posts .post-content p {
    white-space: pre-line;
}

/* Dynamic blog styling fix */
#dynamic-elbow-posts {
    width: 100%;
}

#dynamic-elbow-posts .post-content {
    width: 50vw;
    padding: 0;           /* same as static */
}

#dynamic-elbow-posts img,
#dynamic-elbow-posts iframe {
    width: 100%;
    max-width: 100%;
    height: 70vh;
    display: block;
}

/* For Hip */
#dynamic-hip-posts .post-content p {
    white-space: pre-line;
    word-wrap: break-word;
}

#dynamic-hip-posts {
    width: 100%;
}

#dynamic-hip-posts .post-content {
    width: 50vw;
    padding: 0;
}

#dynamic-hip-posts img,
#dynamic-hip-posts iframe {
    width: 100%;
    max-width: 100%;
    height: 70vh;
    display: block;
}

/* For Thigh */
#dynamic-thigh-posts .post-content p {
    white-space: pre-line;
    word-wrap: break-word;
}

#dynamic-thigh-posts {
    width: 100%;
}

#dynamic-thigh-posts .post-content {
    width: 50vw;
    padding: 0;
}

#dynamic-thigh-posts img,
#dynamic-thigh-posts iframe {
    width: 100%;
    max-width: 100%;
    height: 70vh;
    display: block;
}

/* For Knee */
#dynamic-knee-posts .post-content p {
    white-space: pre-line;
    word-wrap: break-word;
}

#dynamic-knee-posts {
    width: 100%;
}

#dynamic-knee-posts .post-content {
    width: 50vw;
    padding: 0;
}

#dynamic-knee-posts img,
#dynamic-knee-posts iframe {
    width: 100%;
    max-width: 100%;
    height: 70vh;
    display: block;
}

/* For Foot & Ankle */
#dynamic-foot-ankle-posts .post-content p {
    white-space: pre-line;
    word-wrap: break-word;
}

#dynamic-foot-ankle-posts {
    width: 100%;
}

#dynamic-foot-ankle-posts .post-content {
    width: 50vw;
    padding: 0;
}

#dynamic-foot-ankle-posts img,
#dynamic-foot-ankle-posts iframe {
    width: 100%;
    max-width: 100%;
    height: 70vh;
    display: block;
}

/* For Neck */
#dynamic-neck-posts .post-content p {
    white-space: pre-line;
    word-wrap: break-word;
}

#dynamic-neck-posts {
    width: 100%;
}

#dynamic-neck-posts .post-content {
    width: 50vw;
    padding: 0;
}

#dynamic-neck-posts img,
#dynamic-neck-posts iframe {
    width: 100%;
    max-width: 100%;
    height: 70vh;
    display: block;
}

/* For Arm */
#dynamic-arm-posts .post-content p {
    white-space: pre-line;
    word-wrap: break-word;
}

#dynamic-arm-posts {
    width: 100%;
}

#dynamic-arm-posts .post-content {
    width: 50vw;
    padding: 0;
}

#dynamic-arm-posts img,
#dynamic-arm-posts iframe {
    width: 100%;
    max-width: 100%;
    height: 70vh;
    display: block;
}

/* For Spine */
#dynamic-spine-posts .post-content p {
    white-space: pre-line;
    word-wrap: break-word;
}

#dynamic-spine-posts {
    width: 100%;
}

#dynamic-spine-posts .post-content {
    width: 50vw;
    padding: 0;
}

#dynamic-spine-posts img,
#dynamic-spine-posts iframe {
    width: 100%;
    max-width: 100%;
    height: 70vh;
    display: block;
}

/* For Forearm */
#dynamic-forearm-posts .post-content p {
    white-space: pre-line;
    word-wrap: break-word;
}

#dynamic-forearm-posts {
    width: 100%;
}

#dynamic-forearm-posts .post-content {
    width: 50vw;
    padding: 0;
}

#dynamic-forearm-posts img,
#dynamic-forearm-posts iframe {
    width: 100%;
    max-width: 100%;
    height: 70vh;
    display: block;
}

/* For Hand & Wrist */
#dynamic-hand-wrist-posts .post-content p {
    white-space: pre-line;
    word-wrap: break-word;
}

#dynamic-hand-wrist-posts {
    width: 100%;
}

#dynamic-hand-wrist-posts .post-content {
    width: 50vw;
    padding: 0;
}

#dynamic-hand-wrist-posts img,
#dynamic-hand-wrist-posts iframe {
    width: 100%;
    max-width: 100%;
    height: 70vh;
    display: block;
}

/* For Leg */
#dynamic-leg-posts .post-content p {
    white-space: pre-line;
    word-wrap: break-word;
}

#dynamic-leg-posts {
    width: 100%;
}

#dynamic-leg-posts .post-content {
    width: 50vw;
    padding: 0;
}

#dynamic-leg-posts img,
#dynamic-leg-posts iframe {
    width: 100%;
    max-width: 100%;
    height: 70vh;
    display: block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }
  

.read-more-btn {
    margin-top: 20px;
    padding: 10px 30px;
    background: linear-gradient(180deg, #C2D4FF 37.5%, #F0F4FF 100%);
    border: none;
    border-radius: 50px; /* Full rounded shape to create the bubble effect */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), inset 0 4px 8px rgba(255, 255, 255, 0.8);
    font-family: "Outfit", sans-serif;
    font-size: 1.2em;
    font-weight: 600;
    color: #4a5bfd;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
}

/* Hover effect for Read More button */
.read-more-btn:hover {
    background: linear-gradient(180deg, #4a5bfd 0%, #3a4ccf 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Appointment Card */
.appointment-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    top: 0;
    width: 500px !important; /* Set fixed width to prevent changes during scrolling */
    transition: top 0.3s ease;
    margin-top: 40px;
}

.appointment-card.sticky {
    position: fixed;
    top: 100px; /* Adjust this based on your header height */
    right: 20px;
    width: 350px; /* Set an appropriate width */
    z-index: 999; /* Ensure it stays above other content */
}

/* Hidden form class */
.appointment-card.hidden {
    display: none;
}

.appointment-card.stop {
    position: absolute;
}

/* Appointment Card Heading */
.appointment-card h4 {
    font-family: "Outfit", sans-serif;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #343a40;
}

/* Styling for the form elements */
.appointment-card .form-group {
    margin-bottom: 15px;
    text-align: left;
}

.appointment-card .form-group label {
    font-family: "Outfit", sans-serif;
    font-size: 1rem;
    color: #6c757d;
}

.appointment-card .form-control {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ced4da;
}

/* Submit button with more defined style */
.btn-submit-contain {
  display: flex;
  justify-content: center;
}

.btn-submit {
  font-weight: bold;
  width: auto;
  max-width: 250px;
  height: 45px;
  font-size: 1em;
  line-height: 1em;
  text-align: center;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2); /* Enhanced button shadow */
  background-color: white;
  color: #000000;
  border-radius: 50px;
  border: 2px solid #001F62;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-family: 'Outfit', sans-serif;
  transition: transform 0.3s ease-in-out;
}

/* Icon inside button */
.btn-submit i {
  margin-right: 10px;
  font-size: 1em;
  color: #315cfd;
  transition: color 0.3s ease-in-out;
}

/* Hover effect for submit button */
.btn-submit:hover {
  background-color: #021c7c;
  color: white;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  border-color: #021c7c;
  transform: scale(1.05); /* Adds a zoom effect on hover */
}

.btn-submit:hover i {
  color: white;
}

/* Styling for the Categories section */
.categories {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.category-item a {
    color: #000; /* Change the color to black or any other desired color */
    text-decoration: none; /* Remove underline */
    display: block; /* Make the entire category clickable */
    border-radius: 10px; /* Rounded corners */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition for hover */
}

.categories h4 {
    font-family: "Outfit", sans-serif;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #343a40;
}

.category-item {
    padding: 15px;
    margin-bottom: 10px;
    background-color: #ffffff;
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Outfit", sans-serif;
    font-size: 1.1em;
    font-weight: 500;
    color: #495057;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.category-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background-color: #eef1ff;
    color: #4a5bfd;
    border-color: #4a5bfd;
}

.arrow-icon {
    font-size: 1.2rem;
    color: #4a5bfd;
    transition: all 0.3s ease;
    position: absolute;
    right: -2px;
}

.arrow-icon1{
    font-size: 1.2rem;
    color: #4a5bfd;
    transition: all 0.3s ease;
    position: absolute;
    right: 22px;
}

.category-item:hover .arrow-icon {
    transform: translateX(5px);
}

/* Styling for the Recent Posts section */
.recent-posts {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 54px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.recent-posts h4 {
    font-family: "Outfit", sans-serif;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #343a40;
    position: relative;
}

.recent-posts h4:after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background-color: #00d084;
    margin-top: 10px;
}

.recent-post-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.recent-post-item img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    margin-right: 10px;
}

.recent-post-item .post-info a {
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    color: #343a40;
    display: block;
}

.recent-post-item .post-info a:hover {
    text-decoration: underline;
    color: #4a5bfd;
}

.recent-post-date {
    display: flex;
    align-items: center;
    font-size: 0.9em;
    color: #6c757d;
}

.recent-post-date i {
    color: #00d084;
    margin-right: 5px;
}

/* Toggle button for quiz */
.toggle-btn {
    cursor: pointer;
    font-size: 1.5rem;
    background-color: #eef1ff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.toggle-btn:hover {
    background-color: #4a5bfd;
    color: white;
}

@media only screen and (min-width: 1920px) {
    /* Your custom styles for 1920x1080 resolution */
    
    .main-content {
      padding-top: 50px; /* Example adjustment */
    }
  
    .appointment-card {
      width: 450px; /* Adjusting the width for a larger screen */
      margin-top: 80px;
    }
  
    /* Add any other styles specific to 1920x1080 resolution here */
  }


/* Fixing video overlap for mobile view */
@media (max-width: 767px) {
    .post-img iframe {
        width: 100%;  /* Ensure the video takes up the full width of the screen */
        height: auto;  /* Automatically adjust the height based on the width */
    }
    
    .main-content {
        padding-left: 10px;
        padding-right: 10px;
    }

    .appointment-card {
        width: 100% !important; /* Full width for mobile view */
        padding: 15px; /* Add padding for better appearance */
        margin: 20px 0; /* Add margin for spacing */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Softer shadow for mobile */
    }

    .submit-btn {
        width: 100%; /* Full width button for mobile */
    }

     #dynamic-shoulder-posts .post-content,
    #dynamic-elbow-posts .post-content,
    #dynamic-hip-posts .post-content,
    #dynamic-knee-posts .post-content,
    #dynamic-thigh-posts .post-content,
    #dynamic-neck-posts .post-content,
    #dynamic-arm-posts .post-content,
    #dynamic-spine-posts .post-content,
    #dynamic-forearm-posts .post-content,
    #dynamic-hand-wrist-posts .post-content,
    #dynamic-leg-posts .post-content,
    #dynamic-foot-ankle-posts .post-content {
        width: 100% !important;
        max-width: 100%;
    }

    #dynamic-shoulder-posts img,
    #dynamic-shoulder-posts iframe,
    #dynamic-elbow-posts img,
    #dynamic-elbow-posts iframe,
    #dynamic-hip-posts img,
    #dynamic-hip-posts iframe,
    #dynamic-knee-posts img,
    #dynamic-knee-posts iframe,
    #dynamic-thigh-posts img,
    #dynamic-thigh-posts iframe,
    #dynamic-neck-posts img,
    #dynamic-neck-posts iframe,
    #dynamic-arm-posts img,
    #dynamic-arm-posts iframe,
    #dynamic-spine-posts img,
    #dynamic-spine-posts iframe,
    #dynamic-forearm-posts img,
    #dynamic-forearm-posts iframe,
    #dynamic-hand-wrist-posts img,
    #dynamic-hand-wrist-posts iframe,
    #dynamic-leg-posts img,
    #dynamic-leg-posts iframe,
    #dynamic-foot-ankle-posts img,
    #dynamic-foot-ankle-posts iframe {
        width: 100% !important;
        height: 40vh !important;
    }
}