/*** Global Overflow Fixes ***/
html {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
}

/*** Loader Start ***/
.loader-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    z-index: 99;
}

/*** Contact Information Section ***/
.contact-info {
    background-color: #333;
    color: #f8f9fa;
    padding-top: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #444;
    position: relative;
    z-index: 1000;
    overflow-x: hidden;
    width: 100%;
}

.contact-info .container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.contact-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    color: #f8f9fa;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 8px 15px;
    transition: color 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    border-radius: 5px;
}

.contact-item:hover {
    color: #fff;
    background-color: #007bff;
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 1.4rem;
}

@media (max-width: 768px) {
    .contact-info {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .contact-item {
        font-size: 1rem;
        padding: 5px 10px;
    }

    .contact-links {
        gap: 20px;
    }
}

@media (max-width: 479px) {
    .contact-links {
        flex-direction: column;
        gap: 10px;
    }
}

/*** Container and Row Fixes ***/
.container,
.container-fluid {
    max-width: 100%;
    overflow-x: hidden;
    padding-left: 15px;
    padding-right: 15px;
}

.row {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    overflow-x: hidden;
}

.row > * {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100%;
}

/*** Navbar and Dropdown CSS ***/
.custom-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: white;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    overflow: visible !important;
    width: 100%;
    max-width: 100vw;
}

.custom-navbar.sticky {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d, #404040, #333333) !important;
}

.navbar-left {
    display: flex;
    align-items: center;
}

.logo {
    width: 80px;
    height: auto;
    margin-right: 10px;
}

.site-name {
    font-size: 2rem;
    font-weight: 1000;
    background: linear-gradient(180deg, #0B7DC1 0%, #4A3F9E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-right {
    margin-left: auto;
    overflow: visible !important;
}

.navbar-right ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    overflow: visible !important;
}

.navbar-right ul li {
    margin-left: 20px;
}

.navbar-right ul li a {
    color: black;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 5px 10px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.navbar-right ul li a:hover {
    background: linear-gradient(135deg, #99c1e8, #56b6fa);
    border-radius: 5px;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.navbar-right ul li a.active {
    background: linear-gradient(135deg, #99c1e8, #56b6fa);
    color: #fff;
}

/* Dropdown Menu */
.navbar-right ul li.dropdown {
    position: relative;
}

.navbar-right ul li.dropdown .dropdown-toggle {
    color: black;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.navbar-right ul li.dropdown:hover .dropdown-toggle {
    background: linear-gradient(135deg, #99c1e8, #3da5f0);
}

.navbar-right ul li.dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #99c1e8 !important;
    min-width: 180px;
    padding: 10px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    border: 1px solid #404040;
    z-index: 9999 !important;
}

.navbar-right ul li.dropdown:hover .dropdown-menu {
    display: block;
}

.navbar-right ul li.dropdown .dropdown-item {
    color: white !important;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin: 2px 8px;
    background: transparent;
}

.navbar-right ul li.dropdown .dropdown-item:hover {
    background: linear-gradient(135deg, #404040, #1a1a1a) !important;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    color: white !important;
}

.custom-navbar .btn {
    margin-left: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1E88E5;
    border: 2px solid #808080;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.custom-navbar .btn:hover {
    background: linear-gradient(135deg, #b3cce8, #7fbfd8);
    border: 2px solid #78bee7;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    color: white;
}

/* Responsive Design for smaller screens */
@media (max-width: 768px) {
    .custom-navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar-right ul {
        flex-direction: column;
        margin-top: 10px;
    }

    .navbar-right ul li {
        margin-left: 0;
        margin-bottom: 10px;
    }

    .navbar-right ul li.dropdown .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
    }

    .navbar-right ul li.dropdown.open .dropdown-menu {
        display: block;
    }

    .custom-navbar .btn {
        margin-left: 0;
        margin-top: 10px;
    }
}

@media (max-width: 479px) {
    .custom-navbar .btn {
        width: 180px;
        font-size: 0.9rem;
    }
}

@media (max-width: 320px) {
    .custom-navbar .btn {
        width: 160px;
        font-size: 0.85rem;
    }

    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/*** Carousel Image Styling ***/
.carousel,
.carousel-inner {
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.carousel-item {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.carousel-item img {
    height: 720px;
    object-fit: cover;
    width: 100%;
    filter: brightness(50%);
}

.carousel-caption {
    position: absolute;
    height: 70px;
    top: 50%;
    left: 120px;
    transform: translateY(-50%);
    border-radius: 50%;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    color: white;
    padding: 20px;
    background: transparent;
}

.carousel-caption h5 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 15px;
    background: transparent;
    text-shadow: none;
}

.carousel-caption p {
    font-size: 1.5rem;
    margin-bottom: 20px;
    line-height: 1.5;
    background: transparent;
    text-shadow: none;
}

.carousel-caption .btn {
    padding: 12px 25px;
    font-size: 1.2rem;
    background-color: #007bff;
    border-color: #007bff;
    border-radius: 5px;
    text-transform: uppercase;
    margin-top: 20px;
    display: inline-block;
    transition: background-color 0.3s ease;
    border: 2px solid #007bff;
    width: auto;
}

.carousel-caption .btn:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

@media (max-width: 768px) {
    .carousel-item img {
        height: 400px;
    }

    .carousel-caption {
        padding: 15px;
    }

    .carousel-caption h5 {
        font-size: 2rem;
    }

    .carousel-caption p {
        font-size: 1.2rem;
    }

    .carousel-caption .btn {
        font-size: 1rem;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .carousel-item img {
        height: 300px;
    }

    .carousel-caption h5 {
        font-size: 1.5rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }

    .carousel-caption .btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

/*** Section Title Styling ***/
.section-title {
    font-size: 3rem;
    font-weight: bold;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title::before, 
.section-title::after {
    content: "";
    position: absolute;
    width: 50px;
    height: 5px;
    background-color: var(--bs-primary);
    top: 50%;
    transform: translateY(-50%);
    animation: lineAppear 3s ease-in-out forwards;
}

@keyframes lineAppear {
    0% { width: 0; }
    50% { width: 50px; }
    80% { width: 200px; }
    100% { width: 400px; }
}

.section-title::before {
    left: -180px;
}

.section-title::after {
    right: -180px;
}

.section-description {
    font-size: 1.125rem;
    color: #7f8c8d;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    font-style: italic;
    letter-spacing: 0.5px;
    margin-top: 20px;
}

@media (max-width: 992px) {
    /* .section-title::before,
    .section-title::after {
        display: none;
    } */
}

/*** Services Section ***/
.services-section {
    background: linear-gradient(to right, #f0f0f0, #dcdcdc);
    padding: 5rem 0;
    position: relative;
    overflow-x: hidden;
    width: 100%;
}

.service-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease-in-out;
    position: relative;
    will-change: transform, box-shadow;
    border: 2px solid #ddd;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: white;
    text-align: center;
    height: 100%;
    max-width: 100%;
    overflow: hidden;
}

.service-box:hover {
    transform: scale(1.05) rotate3d(0, 1, 0, 2deg);
    box-shadow: 0px 15px 30px rgba(0, 123, 255, 0.3);
    border-color: #007bff;
}

.service-img-wrapper img {
    transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    object-fit: cover;
    max-width: 100%;
}

.service-img-wrapper img:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
    opacity: 0.9;
}

.service-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    background-color: rgba(135, 206, 235, 0.6);
    border-radius: 10px;
    padding: 15px;
}

.service-box:hover .service-info {
    opacity: 1;
}

.service-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #0000FF;
}

.service-info p {
    font-size: 1rem;
    margin-bottom: 15px;
}

.service-box .btn {
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    margin-top: auto;
    width: 100%;
    text-align: center;
    background-color: #007bff;
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
}

.service-box .btn:hover {
    background-color: #0056b3;
    color: white;
}

.service-box .btn:focus,
.service-box .btn:active {
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.service-box .read-more {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: color 0.3s ease;
    margin-top: auto;
    display: inline-block;
    padding: 8px 0;
}

.service-box .read-more:hover {
    color: #0056b3;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .service-box {
        padding: 2rem 1rem;
        min-height: 300px;
    }

    .service-info {
        padding: 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .service-box {
        padding: 1.5rem;
    }

    .service-title {
        font-size: 1.1rem;
    }

    .service-info {
        font-size: 0.85rem;
    }
}

/*** About Section ***/
.about-section {
    background-color: #f9f9f9;
    padding: 60px 0;
    overflow-x: hidden;
    width: 100%;
}

.about-section .section-title {
    font-size: 3rem;
    font-weight: bold;
    color: #2c3e50;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.about-section .section-subtitle {
    font-size: 1.5rem;
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.about-section .section-description {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.about-section .row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.about-section .col-lg-6 {
    margin-bottom: 2rem;
}

.about-section h4 {
    font-weight: bold;
    color: #34495e;
}

.about-section ul {
    padding-left: 20px;
    list-style-type: none;
}

.about-section ul li {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.about-section ul li i {
    color: #3498db;
}

.mission-box, 
.vision-box, 
.values-box {
    background-color: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.mission-box:hover, 
.vision-box:hover, 
.values-box:hover {
    transform: translateY(-5px);
}

.mission-box h4, 
.vision-box h4, 
.values-box h4 {
    font-size: 1.5rem;
    color: #2c3e50;
}

.mission-box p, 
.vision-box p {
    font-size: 1rem;
    color: #7f8c8d;
}

.mission-box ul li, 
.vision-box ul li, 
.values-box ul li {
    font-size: 1.1rem;
    color: #7f8c8d;
}

.about-section .btn-primary {
    background-color: #3498db;
    border: none;
    padding: 10px 30px;
    font-size: 1.2rem;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.about-section .btn-primary:hover {
    background-color: #2980b9;
}

@media (max-width: 992px) {
    .about-section .section-title {
        font-size: 2.5rem;
    }

    .about-section .section-subtitle {
        font-size: 1.3rem;
    }

    .about-section .section-description {
        font-size: 1rem;
    }

    .about-section .col-lg-6 {
        width: 100%;
    }

    .mission-box, 
    .vision-box, 
    .values-box {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .about-section .section-title {
        font-size: 2rem;
    }

    .about-section .section-subtitle {
        font-size: 1.2rem;
    }

    .about-section .section-description {
        font-size: 0.95rem;
    }

    .about-section .btn-primary {
        font-size: 1rem;
        padding: 8px 20px;
    }
}

/*** Why Choose Us Section ***/
.why-choose-us-section {
    background: linear-gradient(to right, #f0f0f0, #dcdcdc);
    padding: 5rem 0;
    position: relative;
    overflow-x: hidden;
    width: 100%;
}

.reason-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 2px solid #ddd;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: white;
    text-align: center;
    height: 100%;
    min-height: 450px;
    max-width: 100%;
    overflow: hidden;
}

.reason-box:hover {
    transform: scale(1.05) rotate3d(0, 1, 0, 2deg);
    box-shadow: 0px 15px 30px rgba(0, 123, 255, 0.3);
    border-color: #007bff;
}

.reason-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.reason-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
    border-radius: 10px;
    display: block;
    loading: lazy;
}

.reason-img-wrapper img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
    opacity: 0.9;
}

.reason-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.reason-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    background-color: rgba(135, 206, 235, 0.6);
    border-radius: 10px;
    padding: 15px;
}

.reason-box:hover .reason-info {
    opacity: 1;
}

.reason-title {
    font-size: 1.15rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #0000FF;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.3;
}

.reason-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    text-align: justify;
    flex-grow: 1;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.reason-info p {
    font-size: 1rem;
    margin-bottom: 15px;
}

.reason-box .btn {
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.reason-box .btn:hover {
    background-color: #6c63ff;
    border-color: #6c63ff;
    color: #fff;
}

.reason-box .btn:focus, 
.reason-box .btn:active {
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.reason-box .read-more {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: color 0.3s ease;
    margin-top: auto;
    padding: 8px 0;
    display: inline-block;
}

.reason-box .read-more:hover {
    color: #0056b3;
    text-decoration: underline;
}

@media (max-width: 1200px) {
    .reason-img-wrapper {
        height: 180px;
    }
    
    .reason-box {
        min-height: 420px;
        padding: 1.8rem;
    }
    
    .reason-title {
        font-size: 1.1rem;
        min-height: 2.8rem;
    }
}

@media (max-width: 992px) {
    .reason-img-wrapper {
        height: 160px;
    }
    
    .reason-box {
        min-height: 380px;
        padding: 1.5rem;
    }
    
    .reason-title {
        font-size: 1rem;
        min-height: 2.5rem;
    }
    
    .reason-description {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .reason-img-wrapper {
        height: 150px;
    }
    
    .reason-box {
        min-height: 350px;
        padding: 1.3rem;
    }
    
    .reason-title {
        font-size: 1rem;
        min-height: 2.3rem;
    }

    .reason-info {
        padding: 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .reason-img-wrapper {
        height: 140px;
    }
    
    .reason-box {
        min-height: 320px;
        padding: 1rem;
    }
    
    .reason-title {
        font-size: 0.95rem;
        min-height: 2rem;
    }
    
    .reason-description {
        font-size: 0.8rem;
    }
}

/*** Book Appointment Section ***/
.book-appointment-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 1rem 0;
    text-align: center;
    position: relative;
    animation: fadeInUp 1s ease-in-out;
    overflow-x: hidden;
    width: 100%;
}

.book-appointment-section .section-title {
    font-size: 3rem;
    font-weight: bold;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

.book-appointment-section .section-description {
    font-size: 1.125rem;
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    font-style: italic;
}

.appointment-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.appointment-form .form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.appointment-form .input-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}


.appointment-form .input-wrapper input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
    background-color: #fff;
    outline: none;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
}

.appointment-form .input-wrapper input:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.appointment-form .input-wrapper label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: #aaa;
    pointer-events: none;
    transition: all 0.3s ease;
}

.appointment-form .input-wrapper input:focus + label,
.appointment-form .input-wrapper input:not(:placeholder-shown) + label {
    top: -10px;
    font-size: 0.85rem;
    color: #007bff;
}

.appointment-form .btn-submit {
    background-color: #007bff;
    color: #fff;
    padding: 1rem 2rem;
    font-size: 1rem;
    text-transform: uppercase;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.appointment-form .btn-submit:hover {
    background-color: #0056b3;
}

.appointment-form .loading {
    font-size: 1.2rem;
    color: #007bff;
    font-weight: bold;
    margin-top: 1rem;
}

.appointment-form .form-group input.invalid {
    border-color: #e74c3c;
}

.appointment-form .form-group input.invalid:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.3);
}

.wow {
    visibility: hidden;
}

.wow.fadeInUp {
    animation: fadeInUp 1s ease-in-out forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .book-appointment-section {
        padding: 4rem 2rem;
    }
    
    .appointment-form {
        padding: 1.5rem;
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .book-appointment-section .section-title {
        font-size: 2rem;
    }
    
    .appointment-form {
        padding: 1rem;
    }
    
    .appointment-form .form-group input {
        font-size: 0.9rem;
    }
}

/*** Team Section ***/
.team-section {
    padding: 100px 0;
    background: #f9f9f9;
    text-align: center;
    overflow-x: hidden;
    width: 100%;
}

.team-member {
    flex: 1 1 calc(25% - 20px);
    max-width: calc(25% - 20px);
    margin-bottom: 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.team-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    height: auto;
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    background: rgba(0, 123, 255, 0.5);
    color: #007bff;
    transform: translateY(-10px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.team-image-container {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out, opacity 0.3s ease-in-out;
    display: block;
    max-width: 100%;
}

.team-card:hover .team-image {
    transform: scale(1.05);
    filter: brightness(1.1);
    opacity: 0.9;
}

.social-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 123, 255, 0.05);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: opacity 0.3s ease-in-out;
}

.team-card:hover .social-overlay {
    opacity: 1;
}

.social-icons {
    display: flex;
    gap: 10px;
    padding: 20px;
}

.social-icons a {
    color: #fff;
    background: #007bff;
    padding: 10px;
    border-radius: 50%;
    font-size: 1.2rem;
    text-decoration: none;
    transition: transform 0.3s ease-in-out, background 0.3s ease-in-out;
}

.social-icons a:hover {
    background: #0056b3;
    transform: scale(1.2);
}

.team-info {
    padding: 20px 15px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.team-info:hover {
    background: rgba(0, 123, 255, 0.7);
    color: #007bff;
}

.team-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    padding: 5px;
    display: inline-block;
    border-radius: 5px;
}

.team-role {
    font-size: 1rem;
    color: #333;
}

.team-bio {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.team-info .read-more {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: color 0.3s ease;
    margin-top: auto;
    display: inline-block;
    padding: 8px 0;
}

.team-info .read-more:hover {
    color: #0056b3;
    text-decoration: underline;
}

@media (max-width: 992px) {
    .team-member {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
    
    .team-image-container {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .team-image-container {
        height: 280px;
    }
    
    .team-info {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .team-member {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .team-image-container {
        height: 250px;
    }
    
    .team-info {
        padding: 15px 10px;
    }
    
    .team-bio {
        font-size: 0.85rem;
    }
}

/*** Testimonial Section ***/
.testimonial-section {
    padding: 60px 0;
    background: skyblue;
    text-align: center;
    position: relative;
    overflow-x: hidden;
    width: 100%;
}

.testimonial-card {
    color: #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 30px;
    background: rgba(0, 123, 255, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border-radius: 60px;
    transition: transform 0.3s ease-in-out;
}

.testimonial-card:hover {
    background: rgba(0, 123, 255, 0.5);
    color: #007bff;
    transform: translateY(-10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.testimonial-card:hover .testimonial-image {
    background: rgba(0, 123, 255, 0.5);
    color: #007bff;
    filter: brightness(1.2);
}

.testimonial-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 20px;
    transition: transform 0.3s ease-in-out;
    max-width: 100%;
}

.testimonial-info {
    text-align: center;
}

.testimonial-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.testimonial-role {
    font-size: 1.1rem;
    color: #777;
    margin-bottom: 15px;
}

.testimonial-feedback {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
}

.testimonial-rating {
    font-size: 1.2rem;
    color: #f39c12;
}

.star {
    margin-right: 5px;
}

.carousel-control-prev, 
.carousel-control-next {
    color: #007bff;
}

@media (max-width: 768px) {
    .testimonial-card {
        padding: 20px;
    }
}

/*** Blog Section ***/
.blog-section {
    padding: 60px 0;
    background: #f0f0f0;
    position: relative;
    overflow-x: hidden;
    width: 100%;
}

.blog-section .section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

.blog-section .section-description {
    font-size: 1.5rem;
    color: #555;
    text-align: center;
    margin-bottom: 30px;
}

.blog-post {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    position: relative;
    will-change: transform, box-shadow, background-color;
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    margin-bottom: 30px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 100%;
}

.blog-post:hover {
    transform: scale(1.07) rotate3d(0, 1, 0, 4deg);
    box-shadow: 0px 20px 50px rgba(0, 123, 255, 0.25);
    border-color: #007bff;
    background-color: #f9f9f9;
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.4s ease, filter 0.4s ease, opacity 0.4s ease, background 0.4s ease;
    position: relative;
    max-width: 100%;
}

.blog-image:hover {
    transform: scale(1.15);
    filter: brightness(1.3);
    opacity: 0.85;
    object-fit: cover;
}

.blog-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 123, 255, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.blog-image:hover::after {
    opacity: 1;
}

.blog-details {
    padding: 15px;
}

.blog-date {
    font-size: 1rem;
    color: #777;
}

.blog-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin: 10px 0;
    color: #333;
}

.blog-excerpt {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    color: #007bff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #0056b3;
}

#view-all {
    padding: 10px 30px;
    font-size: 1.2rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}

#view-all:hover {
    background-color: #0056b3;
}

@media (max-width: 768px) {
    .blog-post {
        margin-bottom: 20px;
    }

    .blog-details {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .blog-post {
        margin-bottom: 15px;
    }

    .blog-title {
        font-size: 1.2rem;
    }

    .blog-excerpt {
        font-size: 0.9rem;
    }

    .read-more {
        font-size: 1rem;
    }
}

/*** Contact Us Page ***/
.contact-us-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 0;
    background: #f4f4f4;
    overflow: hidden;
}

.contact-us-page .section-title {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.contact-us-page .section-title h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.contact-us-page .section-title p {
    font-size: 1.2rem;
    color: #777;
    max-width: 600px;
    margin: 0 auto;
}

.contact-us-page .flex-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    padding: 20px;
}

.contact-form-container {
    background: linear-gradient(135deg, #5a6bff, #9cafff);
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4);
    width: 45vw;
    min-width: 300px;
    border-radius: 15px;
    color: #fff;
    display: flex;
    flex-direction: column;
    animation-duration: 1s;
    transition: all 0.3s ease;
    max-width: 100%;
    overflow: hidden;
}

.contact-form-container h3 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #fff;
}

.contact-form-container .form-group {
    margin-bottom: 20px;
}

.contact-form-container .form-control {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    border-radius: 8px;
    border: none;
    margin-top: 8px;
    max-width: 100%;
    box-sizing: border-box;
}

.contact-form-container .form-control:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.contact-form-container textarea {
    height: 150px;
}

.contact-form-container button {
    padding: 12px 20px;
    font-size: 1.1rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.contact-form-container button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.contact-form-container button:active {
    transform: scale(1);
}

.google-map-container {
    background: #f1f1f1;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4);
    width: 45vw;
    min-width: 300px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    animation-duration: 1s;
    max-width: 100%;
    overflow: hidden;
}

.google-map-container iframe {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    max-width: 100%;
}

.wow.fadeInUp {
    visibility: visible;
    animation-name: fadeInUp;
}

@media (max-width: 768px) {
    .contact-us-page {
        padding: 20px;
    }

    .contact-us-page .flex-container {
        flex-direction: column;
        gap: 20px;
    }

    .contact-form-container, 
    .google-map-container {
        width: 100%;
        min-width: unset;
    }

    .contact-form-container h3 {
        font-size: 1.5rem;
    }

    .contact-form-container button {
        font-size: 1rem;
    }
}

/*** Footer Styles ***/
.footer {
    background-color: #343a40;
    color: #f8f9fa;
    padding: 40px 0;
    font-size: 0.875rem;
    overflow-x: hidden;
    width: 100%;
}

.footer .footer-heading {
    color: #aaa;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

.footer ul {
    list-style: none;
    padding-left: 0;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul li a {
    color: #f8f9fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: #17a2b8;
}

.footer .social-links a {
    text-decoration: none;
    margin: 0 15px;
    color: #f8f9fa;
    transition: color 0.3s ease;
}

.footer .social-links a:hover {
    color: #17a2b8;
}

.footer .social-links i {
    font-size: 1.75rem;
}

.footer .container {
    max-width: 1200px;
    max-width: 100%;
    overflow-x: hidden;
}

.footer .container .row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 100%;
    overflow-x: hidden;
}

.footer .container .row .col-md-4 {
    flex: 1;
    min-width: 280px;
    padding: 0 15px;
    max-width: 100%;
}

.footer .container .row .col-md-4 h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.footer .container .row .col-md-4 p {
    font-size: 0.875rem;
    color: #ddd;
}

.footer .container .row .col-md-4 ul li i {
    margin-right: 10px;
    color: #17a2b8;
}

.footer .container .row .col-md-4 ul li {
    font-size: 0.875rem;
    color: #ddd;
}

@media (max-width: 768px) {
    .footer .container .row {
        flex-direction: column;
        align-items: center;
    }

    .footer .container .row .col-md-4 {
        width: 100%;
        text-align: center;
        margin-bottom: 30px;
    }

    .footer .container .row .col-md-4 h4 {
        margin-bottom: 15px;
    }

    .footer .container .row .col-md-4 ul li {
        margin-bottom: 12px;
    }
}

/*** Read More Functionality ***/
.expandable-text {
    position: relative;
}

.text-content {
    transition: max-height 0.3s ease;
    overflow: hidden;
}

.text-content.collapsed {
    max-height: 60px; /* About 3-4 lines of text */
}

.text-content.expanded {
    max-height: none;
}

.read-more-btn {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: color 0.3s ease;
    cursor: pointer;
    display: inline-block;
    margin-top: 5px;
    padding: 5px 0;
    border: none;
    background: none;
}

.read-more-btn:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Fade effect for collapsed text */
.text-content.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(transparent, white);
    pointer-events: none;
}

/* Remove fade effect when expanded */
.text-content.expanded::after {
    display: none;
}

/* Update existing description classes to work with expandable text */
.service-description,
.reason-description,
.team-bio {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
    text-align: justify;
    /* Remove the old ellipsis styles since we're using expandable text now */
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

/*** Enhanced About Section Responsive Design ***/
@media (max-width: 992px) {
    .about-section .row {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about-section .col-lg-6 {
        width: 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }

    /* Center image on tablets and below */
    .about-section .col-lg-6:first-child {
        display: flex;
        justify-content: center;
        align-items: center;
        order: 1; /* Image appears first */
    }

    .about-section .col-lg-6:last-child {
        order: 2; /* Content appears below image */
    }

    .about-section .col-lg-6 img {
        max-width: 80%;
        height: auto;
        display: block;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 50px 15px;
    }

    .about-section .col-lg-6 img {
        max-width: 90%;
        margin-bottom: 30px;
    }

    .about-section .mission-box,
    .about-section .vision-box,
    .about-section .values-box {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .about-section .section-title {
        font-size: 2.2rem;
    }

    .about-section .section-subtitle {
        font-size: 1.2rem;
    }

    .about-section .section-description {
        font-size: 1rem;
        padding: 0 15px;
    }
}

@media (max-width: 576px) {
    .about-section {
        padding: 40px 10px;
    }

    .about-section .col-lg-6 img {
        max-width: 100%;
        margin-bottom: 25px;
    }

    .about-section .mission-box,
    .about-section .vision-box,
    .about-section .values-box {
        padding: 18px;
        margin-bottom: 20px;
    }

    .about-section .section-title {
        font-size: 1.8rem;
        padding: 0 10px;
    }

    .about-section .section-subtitle {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    .about-section .section-description {
        font-size: 0.95rem;
        padding: 0 10px;
    }

    .about-section .mission-box h4,
    .about-section .vision-box h4,
    .about-section .values-box h4 {
        font-size: 1.3rem;
    }

    .about-section .mission-box p,
    .about-section .vision-box p,
    .about-section .values-box ul li {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 35px 8px;
    }

    .about-section .section-title {
        font-size: 1.6rem;
    }

    .about-section .section-subtitle {
        font-size: 1rem;
    }

    .about-section .section-description {
        font-size: 0.9rem;
    }

    .about-section .mission-box,
    .about-section .vision-box,
    .about-section .values-box {
        padding: 15px;
    }
}

@media (max-width: 360px) {
    .about-section .section-title {
        font-size: 1.4rem;
    }

    .about-section .col-lg-6 img {
        margin-bottom: 20px;
    }

    .about-section .mission-box,
    .about-section .vision-box,
    .about-section .values-box {
        padding: 12px;
        margin-bottom: 15px;
    }
}

/*** Site Name Responsive Fix ***/
.site-name {
    font-size: 2rem;
    font-weight: 1000;
    background: linear-gradient(180deg, #0B7DC1 0%, #4A3F9E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap; /* Prevents text from wrapping */
    overflow: visible;
}

@media (max-width: 1200px) {
    .site-name {
        font-size: 1.8rem;
    }
}

@media (max-width: 992px) {
    .site-name {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .site-name {
        font-size: 1.4rem;
    }
}

@media (max-width: 576px) {
    .site-name {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .site-name {
        font-size: 1.1rem;
    }
}

@media (max-width: 360px) {
    .site-name {
        font-size: 1rem;
    }
}

@media (max-width: 320px) {
    .site-name {
        font-size: 0.9rem;
    }
    
    .logo {
        width: 60px; /* Reduce logo size on very small screens */
    }
}