:root {
    --transition: all 0.3s ease;
    --primary: #A1E3D8;
    --secondary: #BFEAF5;
    --accent: #37474F;
    --dark: #1a1a1a;
    --darker: #111111;
    --light-gray: #999999;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    overflow-x:hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand{
    font-family: 'Quicksand', sans-serif;
}
.nav-item .active{
     border-bottom: 2px solid var(--primary);
}
pre {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    overflow-x: auto; /* Enables horizontal scrolling for long lines */
    white-space: pre-wrap; /* Ensures text wraps within container */
    word-wrap: break-word;
    line-height: 1.5;
}

.bg-custom{
    background: linear-gradient(135deg, #A1E3D8, #BFEAF5, #ECECEC, #FFFFFF, #37474F);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    padding: 20px;
}
    
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
/* About Section */

.service-item {
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-icon {
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size:30px;
}

.doctor-image {
    width: 100%;
    height: 100%;
    border: 10px solid rgba(64, 192, 87, 0.1);
    aspect-ratio: 1;
    object-fit: cover;
}

.service-item h5 {
    font-size: 1rem;
}

@media (max-width: 991.98px) {
    .service-item {
        text-align: left;
    }
}



.logo{
    height:50px;
}

/*Department Section */
.line {
    width: 60px;
    height: 2px;
    background: #0dcaf0;
}

.department-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.department-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.department-details {
    height: 100%;
}

.department-details img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.department-active{
    border: 2px solid #17a2b8;
}

/* Team Section */

.specialist-card {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.specialist-img {
    position: relative;
    overflow: hidden;
}

.specialist-img img {
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.specialist-card:hover .specialist-img img {
    transform: scale(1.1);
}

.specialist-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(23, 162, 184, 0.9), rgba(23, 162, 184, 0.7));
    transform: translateY(100%);
    transition: transform 0.3s ease;
    text-align:center;
}

.specialist-card:hover .specialist-info {
    transform: translateY(0);
    background: linear-gradient(to top, rgba(23, 162, 184, 0.7), rgba(23, 162, 184, 0.7));
}

.specialist-info.with-social {
    padding-bottom: 2rem;
}
.specialist-info .social-links{
    text-align:center;
}

/* Service Section */
.service-card {
    transition: all 0.3s ease;
    border-radius: 10px;
    display:flex;
    justify-content:center;
    align-items: center;
}

.service-card:hover {
    background: #f8f9fa;
    transform: translateY(-5px);
}

.icon-box {
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.icon-box i{
    font-size: 30px;
}

.service-card:hover .icon-box {
    /*background-image: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);*/
    background-image: linear-gradient(to right, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.service-card:hover .icon-box img {
    filter: brightness(0) invert(1);
}

.service-content h5 {
    font-size: 1.1rem;
}

.service-content a {
    font-size: 0.9rem;
    font-weight: 500;
}

.service-content a:hover {
    text-decoration: underline !important;
}



/* Facilities Section */

.facilities-section {
    background: #f8f9fa;
}

.facilities-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.facilities-card:hover {
    transform: translateY(-10px);
}

.facilities-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.facilities-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.facilities-card:hover .facilities-image img {
    transform: scale(1.1);
}

.facilities-section .overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
     background: linear-gradient(to top, rgba(23, 162, 184, 0.7), rgba(23, 162, 184, 0.7));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    transition: all 0.5s ease;
}

.facilities-card:hover .overlay {
    bottom: 0;
}

.facilities-section .overlay p {
    color: white;
    font-weight:600;
    margin-bottom: 1.5rem;
}

.facilities-section .overlay .btn {
    padding: 0.5rem 1.5rem;
    
    font-weight: 500;
    transition: all 0.3s ease;
}

.facilities-section .overlay .btn:hover {
    background: #000;
    color: white;
}

.facilities-content {
    padding: 1.5rem;
}

.facilities-content h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.facilities-content p {
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
}

.facility-image{
    height: 60vh;
    width:100%;
    object-fit:cover;
}

@media (max-width: 991px) {
    .facilities-image {
        height: 200px;
    }
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 100%;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.blog-image {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    overflow: hidden;
}

.blog-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
     background: linear-gradient(to top, rgba(23, 162, 184, 0.7), rgba(23, 162, 184, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.blog-card:hover .blog-overlay {
    opacity: 1;
}

.read-more {
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.read-more i {
    transition: transform 0.3s ease;
}

.blog-card:hover .read-more i {
    transform: translateX(5px);
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.blog-meta span {
    color: #17d1d1;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-content h3 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.blog-card:hover h3 {
    color: #17d1d1;
}

.blog-content p {
    color: #6c757d;
    font-size: 0.95rem;
    margin: 0;
}

.nav-arrow {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: white;
    color: #17d1d1;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background: #17d1d1;
    color: white;
}

@media (max-width: 991px) {
    .blog-image {
        padding-top: 66.67%; /* 3:2 Aspect Ratio */
    }
}

/* footer */


.footer-section {
    background-color: var(--dark);
    color: #fff;
}


/* Brand Section */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo i {
    font-size: 2.5rem;
    color: rgba(23, 162, 184, 0.9)
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.social-link:hover {
    background: var(--secondary);
    color: #000;
    transform: translateY(-5px);
}

/* Footer Title */
.footer-title {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary);
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--light-gray);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: rgba(23, 162, 184, 0.9);
    transform: translateX(10px);
}

/* Contact Info */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-contact .icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
}

.footer-contact .text {
    display: flex;
    flex-direction: column;
}

.footer-contact a {
    color: var(--light-gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: rgba(23, 162, 184, 0.9);
}

/* Footer Bottom */
.footer-bottom {
    background: var(--darker);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.copyright strong {
    color: rgba(23, 162, 184, 0.9);
}

.copyright a{
    color: var(--secondary);
}

.footer-bottom-links {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: var(--light-gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: rgba(23, 162, 184, 0.9);
}

.designer {
    margin-left: 1.5rem;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 991px) {
    .newsletter-form {
        margin-top: 1.5rem;
    }
}

@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .copyright {
        text-align: center;
    }
    
    .designer {
        margin: 0;
        padding: 0;
        border: none;
    }
}

/* navbar */

.z-1 {
	z-index: 1;
}

.navbar {
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
	font-size: 1.8rem;
	font-weight: bold;
}

.btn-primary {
	background-color: #00B4D8;
	border-color: #00B4D8;
}

.btn-primary:hover {
	background-color: #0096c7;
	border-color: #0096c7;
}

.top-bar {
    font-size: 0.9rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.top-bar a {
    color: #6c757d;
    font-weight: 500;
}

.top-bar a:hover {
    color: #00B4D8;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .top-bar .row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .top-bar .col-md-6 {
        width: 100%;
        margin-bottom: 6px;
    }

    .top-bar .text-end {
        text-align: center !important;
        margin-top: 0;
    }

    .top-bar small,
    .top-bar a {
        display: block;
        margin-bottom: 4px;
    }
}

.booking{
    font-size:30px;
    font-weight:700;
    color:white;
}

@media only screen and (max-width: 600px) {
    .departments-icon{
        display:none;
    }
}

.section-padding{
    padding: 100px 0;
}

/* Adjust padding for smaller devices */
@media (max-width: 768px) {
    .section-padding {
        padding: 50px 0; /* Reduced padding for smaller devices */
    }
}

/* Gallery Section Styles */
.gallery-section {
    position: relative;
    padding: 50px 0;
    text-align: center;
}

.gallery-section p{
    color: #6c757d;
    margin-bottom: 0;
    line-height: 1.6;
}
.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-icon {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-size: 1.5rem;
    text-decoration: none;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-icon {
    transform: scale(1);
}

.gallery-icon:hover {
    background: #20c997;
    color: #fff;
}


.testimonial-section {
    background-color: #f8f9fa;
}

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.quote-icon {
    color: #ff6b6b;
}

.testimonial-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
}

.testimonial-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.carousel-control-prev,
.carousel-control-next {
    position: static;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    opacity: 1;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: #ff6b6b;
}

.carousel-control-prev i,
.carousel-control-next i {
    color: #333;
    font-size: 20px;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover i,
.carousel-control-next:hover i {
    color: white;
}

@media (max-width: 991px) {
    .testimonial-card {
        padding: 20px;
    }
    
    .testimonial-image {
        margin-top: 30px;
    }
    
    .testimonial-image img {
        height: 300px;
    }
}

.event-card {
    position: relative;
    width: 100%;
}

.event-image1 {
    height: 450px;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.event-tags {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.tag {
    background: var(--primary);
    /*background: rgba(0, 0, 0, 0.7);*/
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight:bold;
}

.contact-section {
    /*background-color: #f5f5f5;*/
}

.info-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.icon-box {
    width: 80px;
    height: 80px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.icon-box i {
    color: black;
    font-size: 40px;
}

.info-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.info-card p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

.form-control {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--secondary);
}

.contact-social-links {
    display: flex;
    gap: 15px;
}

.contact-social-links a {
    color: var(--dark);
    font-size: 20px;
    transition: all 0.3s ease;
}

.contact-social-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .contact-content {
        margin-top: 40px;
        text-align: center;
    }

    .contact-social-links {
        justify-content: center;
    }
}

textarea{
    resize:none;
}

/* Parallax */
.diagonal-parallax {
  position: relative;
  background-size: cover;
  background-attachment: fixed;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: white;
}

.diagonal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(0,0,0,0.3));

  z-index: 1;
}

.diagonal-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px;
  max-width: 700px;
}

.diagonal-content h1 {
  font-size: 3rem;
  font-weight: 700;
}

.diagonal-content p {
  font-size: 1.2rem;
  margin-top: 15px;
}

@media (max-width: 768px) {
  .diagonal-content h1 {
    font-size: 2rem;
  }
  .diagonal-content p {
    font-size: 1rem;
  }
}