/* Indian Scans Custom Styles - Red and White Theme */

:root {
  --theme-color: #DC2626; /* Red color for medical theme */
  --secondary-color: #B91C1C; /* Darker red for secondary elements */
  --accent-red: #EF4444; /* Lighter red for accents */
  --medical-white: #FFFFFF; /* Pure white for medical cleanliness */
  --light-gray: #F8FAFC; /* Light gray for backgrounds */
  --text-dark: #1F2937; /* Dark text for readability */
}

/* Override theme color throughout the site */
.main-menu .navigation > li.current > a,
.main-menu .navigation > li:hover > a,
.main-menu .navigation > li > ul > li > a:hover,
.main-menu .navigation > li > .megamenu li > a:hover,
.main-menu .navigation > li > ul > li > ul > li > a:hover,
.scroll-to-top .scroll-bar-text,
.header-top .top-inner p i,
.header-top .top-inner .social-links li a:hover,
.main-header .menu-right-content .search-box-outer:hover,
.main-header .menu-right-content .btn-box a,
.sub-title,
.feature-block-one .inner-box .icon-box .icon,
.feature-block-one .inner-box h3 a:hover,
.image_block_one .image-box .image-content h2,
.list-style-one li:before,
.funfact-block-one .inner-box .icon-box,
.events-block-one .inner-box .lower-content .location-box,
.events-block-one .inner-box .lower-content h3 a:hover,
.team-block-one .inner-box .lower-content h3 a:hover,
.main-footer .footer-top .top-inner .footer-menu li a:hover,
.main-footer .about-widget .info li a:hover,
.main-footer .links-widget .links-list li a:hover,
.main-footer .footer-bottom .copyright p a,
.scroll-to-top::after,
.banner-style-two .content-box .theme-btn:hover,
.image_block_two .image-inner .experience-box h2,
.speciality-block-one .inner-box h3 a:hover,
.speciality-block-one .inner-box .btn-box .link-text a:hover,
.video-btn a,
.working-block-two .inner-box h3 a:hover,
.events-block-one .inner-box .event-info li i,
.nav-style-one .owl-nav button,
.banner-style-three .content-box .theme-btn,
.banner-style-three .image-box .support-box .icon-box,
.banner-style-three .image-box .support-box span,
.banner-style-three .image-box .support-box a:hover,
.feature-style-two .sec-title h2 span,
.feature-block-three .inner-box .icon-box .icon,
.service-block-two .inner-box .content-box .link a:hover,
.journey-block-one .inner-box h3 a:hover,
.news-block-one .inner-box .lower-content .category,
.news-block-one .inner-box .lower-content h3 a:hover,
.chooseus-block-one .inner-box:hover .icon-box .icon,
.faq-style-two .inner-box .tab-btn-box .tab-btn .icon-box,
.main-header.home-5 .header-top .top-inner .social-links li a:hover,
.feature-block-four .inner-box h3 a:hover,
.research-details .image-inner .info-list .share-links li a:hover,
.service-sidebar .support-widget .support-box .icon-box,
.service-sidebar .support-widget .support-box h3 a:hover,
.event-details-content .info-list li,
.team-details .content-box .inner-box .single-item h4 a:hover,
.history-section .content-box h3 a:hover,
.error-section h1,
.blog-sidebar .search-widget .search-form .form-group input:focus + button,
.blog-sidebar .search-widget .search-form .form-group button:hover,
.blog-sidebar .category-widget .category-list li a:hover,
.blog-sidebar .post-widget .post h4 a:hover,
.blog-sidebar .post-widget .post .post-date,
.news-block-two .inner-box .content-box .category,
.news-block-two .inner-box .content-box h3 a:hover,
.news-block-two .inner-box .content-box .post-info .author a:hover,
.news-block-two .inner-box .content-box .post-info .date,
.blog-details-content .post-info li span,
.blog-details-content .post-share-option .social-links li a:hover,
.info-block-one .inner-box p a:hover {
  color: var(--theme-color) !important;
}

/* Background overrides */
.switcher .switch_btn button,
button.rtl,
button.ltr,
.main-header .menu-right-content .btn-box a:hover,
.theme-btn,
.sub-title:before,
.feature-section .inner-container .feature-block-one:first-child .inner-box,
.service-block-one .inner-box .icon-box .r-hex:first-child .r-hex-inner:before,
.service-block-one .inner-box:before,
.working-block-one .inner-box .count-box .r-hex:first-child .r-hex-inner:before,
.events-block-one .inner-box:hover .image-box,
.events-block-one .inner-box .lower-content .post-date,
.team-block-one .inner-box .image-box .image,
.team-block-one .inner-box .image-box .social-links li a:hover,
.main-footer .footer-bottom .social-links li a:hover,
.image_block_two .image-inner .experience-box h2:before,
.service-style-two .tab-btn-box .tab-btns li:before,
.speciality-block-one .inner-box .icon-box .r-hex:first-child .r-hex-inner:before,
.working-style-two .working-block:first-child .working-block-two .inner-box .icon-box .r-hex:first-child .r-hex-inner:before,
.nav-style-one .owl-nav button:hover,
.banner-style-three .image-box .support-box .icon-box:before,
.feature-block-two .inner-box .icon-box .r-hex:first-child .r-hex-inner:before,
.feature-block-three .inner-box .icon-box .r-hex:first-child .r-hex-inner:before,
.journey-block-one .inner-box .year,
.journey-block-one .inner-box .decore,
.testimonial-block-one .inner-box .icon-box .r-hex:first-child .r-hex-inner:before,
.dots-style-one .owl-dots .owl-dot:before,
.news-block-one .inner-box .lower-content .post-date,
.news-block-one .inner-box .image-box,
.header-style-four .header-lower .logo-box,
.chooseus-block-one .inner-box .icon-box .r-hex:first-child .r-hex-inner:before,
.chooseus-block-one .inner-box .bg-layer:before,
.image_block_three .image-box .experience-box .r-hex:first-child .r-hex-inner:before,
.faq-style-two .inner-box .tab-btn-box .tab-btn:before,
.feature-block-four .inner-box .icon-box .r-hex:first-child .r-hex-inner:before,
.working-block-three .inner-box .count-box,
.working-block-three .inner-box::before,
.research-details .content-three .tab-btn-box .tab-btn:before,
.service-sidebar .category-widget .category-list li a:hover,
.service-sidebar .download-widget .download-list li button span,
.service-sidebar .download-widget .download-list li button:hover,
.service-sidebar .support-widget .support-box .icon-box:before,
.service-sidebar .category-widget .category-list li a.current,
.pagination li a:hover,
.pagination li a.current,
.team-details .content-box .social-links li a:before,
.history-section .year,
.history-section .border-line:before,
.history-section .border-line:after,
.sortable-masonry .filter-tabs li:hover,
.sortable-masonry .filter-tabs li.active,
.blog-sidebar .tags-widget .tags-list li a:hover,
.news-block-two .inner-box .image-box,
.blog-details-content .upper-image .post-date,
.blog-details-content .post-share-option .post-tags li a:hover,
.info-block-one .inner-box .r-hex:first-child .r-hex-inner:before {
  background: var(--theme-color) !important;
}

/* Border color overrides */
.main-menu .navigation > li > ul,
.main-menu .navigation > li > .megamenu,
.main-menu .navigation > li > ul > li > ul,
.main-header .menu-right-content .btn-box a,
.image_block_one .image-box .image-content,
.main-footer .newsletter-widget .newsletter-form .form-group input:focus,
.feature-block-three .inner-box:hover,
.dots-style-one .owl-dots .owl-dot.active,
.dots-style-one .owl-dots .owl-dot:hover,
.header-style-four .menu-right-content .btn-box a:hover,
.service-sidebar .download-widget .download-list li button:hover,
.history-section .content-box,
.faq-form-section .form-inner .form-group input:focus,
.faq-form-section .form-inner .form-group textarea:focus,
.blog-sidebar .search-widget .search-form .form-group input:focus,
.blog-sidebar .tags-widget .tags-list li a:hover,
.blog-sidebar .newsletter-widget .form-inner .form-group input:focus,
.blog-details-content blockquote,
.blog-details-content .post-share-option .post-tags li a:hover,
.blog-details-content .comment-form-box .form-inner .form-group input:focus,
.blog-details-content .comment-form-box .form-inner .form-group textarea:focus,
#contact-form .form-group input:focus,
#contact-form .form-group textarea:focus {
  border-color: var(--theme-color) !important;
}

.scroll-to-top .scroll-top-inner path {
  stroke: var(--theme-color);
}

/* Medical Scan Center Specific Styles */
.medical-header {
  background: linear-gradient(135deg, var(--theme-color) 0%, var(--secondary-color) 100%);
  color: var(--medical-white);
}

.medical-card {
  background: var(--medical-white);
  border: 2px solid var(--theme-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.1);
  transition: all 0.3s ease;
}

.medical-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.2);
}

.medical-button {
  background: var(--theme-color);
  color: var(--medical-white);
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.medical-button:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
}

.medical-icon {
  color: var(--theme-color);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.medical-section {
  background: var(--light-gray);
  padding: 60px 0;
}

.medical-title {
  color: var(--theme-color);
  font-weight: 700;
  margin-bottom: 1rem;
}

.medical-subtitle {
  color: var(--text-dark);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Emergency contact styling */
.emergency-contact {
  background: var(--theme-color);
  color: var(--medical-white);
  padding: 15px 25px;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

/* Service cards styling */
.service-card {
  background: var(--medical-white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-top: 4px solid var(--theme-color);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(220, 38, 38, 0.2);
}

/* Mobile responsiveness enhancements */
@media (max-width: 768px) {
  .medical-section {
    padding: 40px 0;
  }
  
  .medical-card {
    margin-bottom: 20px;
  }
  
  .medical-button {
    width: 100%;
    margin-bottom: 15px;
  }
  
  .emergency-contact {
    font-size: 0.9rem;
    padding: 12px 20px;
  }
  
  .service-card {
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .medical-title {
    font-size: 1.5rem;
  }
  
  .medical-subtitle {
    font-size: 1rem;
  }
  
  .medical-icon {
    font-size: 2rem;
  }
}

/* Additional medical theme elements */
.medical-badge {
  background: var(--theme-color);
  color: var(--medical-white);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.medical-divider {
  height: 3px;
  background: linear-gradient(90deg, var(--theme-color) 0%, var(--accent-red) 100%);
  border: none;
  margin: 30px 0;
}

/* Testimonial styling for medical theme */
.testimonial-medical {
  background: var(--medical-white);
  border-left: 4px solid var(--theme-color);
  padding: 30px;
  border-radius: 0 15px 15px 0;
  box-shadow: 0 5px 20px rgba(220, 38, 38, 0.1);
}

/* Footer medical theme */
.footer-medical {
  background: linear-gradient(135deg, var(--text-dark) 0%, #374151 100%);
  color: var(--medical-white);
}

.footer-medical .widget-title {
  color: var(--theme-color);
  font-weight: 700;
}

.footer-medical a:hover {
  color: #fff !important;
}

.footer-medical .copyright a {
  color: var(--theme-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-medical .copyright a:hover {
  color: #fff !important;
  text-decoration: underline;
}

/* Equal Height Cards for Services, Testimonials, and News Sections */
/* Services Section - Reliable Services */
.service-style-three .row {
  display: flex;
  flex-wrap: wrap;
}

.service-style-three .service-block {
  display: flex;
  margin-bottom: 30px;
}

.service-style-three .service-block-two {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.service-style-three .service-block-two .inner-box.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 450px;
}

.service-style-three .service-block-two .inner-box.service-card .content-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Compact service card content - reduce internal spacing */
.service-style-three .service-card .content-box {
  padding: 18px 18px !important;
  margin: 12px 10px !important;
}

.service-style-three .service-card .content-box h3 {
  margin-bottom: 8px !important;
}

.service-style-three .service-card .content-box h3 a {
  margin-bottom: 0 !important;
  font-size: 1.35rem !important;
}

.service-style-three .service-card .content-box p {
  margin: 8px 0 10px 0 !important;
  line-height: 1.5 !important;
  font-size: 1rem !important;
}

.service-style-three .service-card .content-box .link {
  margin-top: 5px !important;
}

/* Testimonials Section - Equal Height */
.testimonial-section .owl-carousel .owl-stage {
  display: flex;
  align-items: stretch;
}

.testimonial-section .owl-carousel .owl-item {
  display: flex;
  align-items: stretch;
  height: auto;
}

.testimonial-section .testimonial-block-one {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.testimonial-section .testimonial-block-one .inner-box {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 320px;
  flex: 1;
}

.testimonial-section .testimonial-block-one .inner-box p {
  flex: 1;
  margin-bottom: 22px;
}

.testimonial-section .testimonial-block-one .inner-box .lower-box {
  margin-top: auto;
  flex-shrink: 0;
}

/* News/Media Update Section - Equal Height */
.news-section .row {
  display: flex;
  flex-wrap: wrap;
}

.news-section .news-block {
  display: flex;
  margin-bottom: 30px;
}

.news-section .news-block-one {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.news-section .news-block-one .inner-box {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
}

.news-section .news-block-one .inner-box .image-box {
  flex-shrink: 0;
}

.news-section .news-block-one .inner-box .lower-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-section .news-block-one .inner-box .lower-content h3 {
  flex: 1;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .service-style-three .service-block-two .inner-box.service-card {
    min-height: 400px;
  }
  
  .testimonial-section .testimonial-block-one .inner-box {
    min-height: 280px;
    padding: 50px 30px 35px 30px;
  }
  
  .testimonial-section .testimonial-block-one .inner-box .icon-box {
    left: 30px;
  }
}

@media (max-width: 767px) {
  .service-style-three .service-block-two .inner-box.service-card {
    min-height: 380px;
  }
  
  .testimonial-section .testimonial-block-one .inner-box {
    min-height: auto;
    padding: 50px 25px 30px 25px;
  }
  
  .testimonial-section .testimonial-block-one .inner-box .icon-box {
    left: 25px;
    width: 60px;
    height: 65px;
  }
  
  .testimonial-section .testimonial-block-one .inner-box .icon-box .icon {
    width: 60px;
    height: 65px;
    line-height: 65px;
    font-size: 18px;
  }
  
  .testimonial-section .testimonial-block-one .inner-box .icon-box .r-hex {
    width: 65px;
    height: 65px;
  }
  
  .news-section .news-block-one .inner-box .lower-content {
    padding: 20px 15px 30px 15px;
  }
  
  .news-section .news-block-one .inner-box .lower-content .post-date {
    right: 30px;
    width: 60px;
    height: 60px;
    line-height: 60px;
  }
  
  .news-section .news-block-one .inner-box .lower-content .post-date h2 {
    font-size: 24px;
  }
  
  .news-section .news-block-one .inner-box .lower-content h3 {
    font-size: 22px;
    line-height: 28px;
  }
}

@media (max-width: 599px) {
  .service-style-three .service-block-two .inner-box.service-card {
    min-height: 350px;
  }
  
  .service-style-three .service-block-two .inner-box.service-card .content-box {
    padding: 25px 20px;
    margin: 15px 10px;
  }
  
  .service-style-three .service-block-two .inner-box.service-card .content-box h3 {
    font-size: 24px;
    line-height: 28px;
  }
  
  .service-style-three .service-block-two .inner-box.service-card .content-box p {
    font-size: 14px;
    margin: 10px 0 15px 0;
  }
  
  .testimonial-section .testimonial-block-one .inner-box {
    padding: 45px 20px 25px 20px;
  }
  
  .testimonial-section .testimonial-block-one .inner-box .icon-box {
    left: 20px;
    top: -30px;
    width: 55px;
    height: 60px;
  }
  
  .testimonial-section .testimonial-block-one .inner-box .icon-box .icon {
    width: 55px;
    height: 60px;
    line-height: 60px;
    font-size: 16px;
  }
  
  .testimonial-section .testimonial-block-one .inner-box .icon-box .r-hex {
    width: 60px;
    height: 60px;
  }
  
  .testimonial-section .testimonial-block-one .inner-box .author-box {
    padding-left: 70px;
  }
  
  .testimonial-section .testimonial-block-one .inner-box .author-box .thumb-box {
    width: 60px;
    height: 60px;
  }
  
  .testimonial-section .testimonial-block-one .inner-box .author-box h3 {
    font-size: 22px;
  }
  
  .testimonial-section .testimonial-block-one .inner-box .lower-box {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .testimonial-section .testimonial-block-one .inner-box .rating {
    margin-top: 10px;
  }
  
  .news-section .news-block-one .inner-box .lower-content {
    padding: 15px 15px 25px 15px;
  }
  
  .news-section .news-block-one .inner-box .lower-content .post-date {
    right: 20px;
    top: -30px;
    width: 55px;
    height: 55px;
    line-height: 55px;
  }
  
  .news-section .news-block-one .inner-box .lower-content .post-date h2 {
    font-size: 20px;
  }
  
  .news-section .news-block-one .inner-box .lower-content .post-date h2 span {
    font-size: 16px;
  }
  
  .news-section .news-block-one .inner-box .lower-content h3 {
    font-size: 20px;
    line-height: 26px;
  }
  
  .news-section .news-block-one .inner-box .lower-content p {
    font-size: 14px;
  }
}

/* Mobile Responsive Improvements */
@media (max-width: 480px) {
  .main-header .header-lower .outer-box {
    padding: 10px 0;
  }
  
  .main-header .logo-box .logo img {
    max-width: 140px;
    height: auto;
  }
  
  .banner-style-three .content-box h2 {
    font-size: 32px;
    line-height: 42px;
  }
  
  .banner-style-three .content-box p {
    font-size: 15px;
    line-height: 24px;
  }
  
  .sec-title h2 {
    font-size: 28px;
    line-height: 38px;
  }
  
  .service-style-three .service-block {
    margin-bottom: 20px;
  }
  
  .testimonial-section {
    padding: 50px 0;
  }
  
  .news-section {
    padding: 40px 0;
  }
  
  .footer-medical .footer-widget {
    margin-bottom: 35px !important;
  }
  
  .main-footer .footer-widget .widget-title h3 {
    font-size: 20px;
  }
  
  .main-footer .footer-widget .info li,
  .main-footer .footer-widget .links-list li {
    font-size: 14px;
    margin-bottom: 8px;
  }
  
  .main-footer .footer-bottom .copyright p {
    font-size: 13px;
    text-align: center;
  }
  
  .main-footer .footer-bottom .social-links {
    justify-content: center;
    margin-top: 15px;
  }
  
  .main-header .menu-right-content .btn-box a {
    padding: 10px 20px;
    font-size: 13px;
  }
  
  .feature-style-three {
    padding-bottom: 60px;
  }
  
  .working-style-two .btn-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .working-style-two .btn-box a {
    margin: 0 !important;
    width: 100%;
    max-width: 280px;
  }
  
  .cta-style-two .btn-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .cta-style-two .btn-box a {
    margin: 0 !important;
    width: 100%;
    max-width: 280px;
  }
}

/* Extra Small Devices */
@media (max-width: 360px) {
  .banner-style-three .content-box h2 {
    font-size: 28px;
    line-height: 38px;
  }
  
  .sec-title h2 {
    font-size: 24px;
    line-height: 32px;
  }
  
  .main-header .logo-box .logo img {
    max-width: 120px;
  }
  
  .service-style-three .service-block-two .inner-box.service-card .content-box h3 {
    font-size: 20px;
    line-height: 24px;
  }
  
  .testimonial-section .testimonial-block-one .inner-box {
    padding: 40px 15px 20px 15px;
  }
  
  .testimonial-section .testimonial-block-one .inner-box .icon-box {
    left: 15px;
  }
}
