/* Masport Custom Color Palette & Styles */

:root {
  --masport-primary: #0B2545;      /* Navy Blue */
  --masport-accent: #81D8D0;        /* Tiffany Blue */
  --masport-bg-white: #FFFFFF;      /* Pure White */
  --masport-bg-light: #F0F4F8;     /* Light Mist */
  --masport-text: #1F2937;          /* Charcoal */
}

/* Override Bootstrap Primary Colors */
.btn-primary,
.btn-primary:focus {
  background-color: var(--masport-accent);
  border-color: var(--masport-accent);
  color: var(--masport-primary);
  font-weight: 600;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary.active {
  background-color: var(--masport-primary);
  border-color: var(--masport-primary);
  color: #ffffff;
}

.btn-outline-primary {
  border-color: var(--masport-accent);
  color: var(--masport-accent);
}

.btn-outline-primary:hover {
  background-color: var(--masport-accent);
  border-color: var(--masport-accent);
  color: var(--masport-primary);
}

/* Navbar Styling */
.ftco_navbar {
  background-color: var(--masport-primary) !important;
}

.navbar-brand {
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.5rem;
}

.navbar-brand:hover {
  color: var(--masport-accent) !important;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
  color: var(--masport-accent) !important;
}

/* Text Colors */
body {
  color: var(--masport-text);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--masport-primary);
  font-weight: 700;
}

/* Background Sections */
.bg-light {
  background-color: var(--masport-bg-light) !important;
}

/* Stats Section - Dark Gradient Background */
.masport-stats-section {
  background: linear-gradient(135deg, 
    var(--masport-primary) 0%, 
    rgba(11, 37, 69, 0.95) 50%,
    rgba(11, 37, 69, 0.98) 100%) !important;
  position: relative;
}

.masport-stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 30% 50%, rgba(129, 216, 208, 0.1) 0%, transparent 60%),
    radial-gradient(circle at 70% 50%, rgba(129, 216, 208, 0.08) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.masport-stats-section .container {
  position: relative;
  z-index: 1;
}

.masport-stats-section .offer-deal {
  background: transparent;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.masport-stats-section .offer-deal:last-child {
  border-right: none;
}

.masport-stats-section .offer-deal.active {
  background: rgba(129, 216, 208, 0.1);
}

/* Intro Section - Why Choose Masport */
.masport-intro-section {
  position: relative;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

.masport-intro-overlay {
  display: none; /* Hidden on desktop */
}

.masport-intro-section .container {
  position: relative;
  z-index: 1;
}

/* Mobile: Light white overlay for better text readability */
@media (max-width: 768px) {
  .masport-intro-overlay {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.75);
    z-index: 0;
    pointer-events: none;
  }
  
  .masport-intro-section {
    padding: 3rem 0;
  }
  
  .masport-intro-section .col-md-6 {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 8px;
    margin: 1rem;
    box-shadow: 0 4px 12px rgba(11, 37, 69, 0.15);
  }
  
  .masport-intro-section h2,
  .masport-intro-section p,
  .masport-intro-section li,
  .masport-intro-section strong {
    color: var(--masport-text) !important;
  }
}

@media (max-width: 480px) {
  .masport-intro-overlay {
    background: rgba(255, 255, 255, 0.8);
  }
  
  .masport-intro-section .col-md-6 {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    margin: 0.5rem;
  }
}

.bg-primary {
  background-color: var(--masport-primary) !important;
}

/* Hero Section Background - Medical Professional */
.masport-hero-bg {
  background: linear-gradient(135deg, 
    var(--masport-primary) 0%, 
    rgba(11, 37, 69, 0.98) 40%,
    rgba(11, 37, 69, 0.95) 60%,
    rgba(129, 216, 208, 0.2) 100%);
  position: relative;
}

.masport-hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(129, 216, 208, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(129, 216, 208, 0.1) 0%, transparent 50%),
    linear-gradient(135deg, transparent 0%, rgba(11, 37, 69, 0.3) 100%);
  z-index: 0;
  pointer-events: none;
}

.masport-hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(129, 216, 208, 0.03) 2px,
      rgba(129, 216, 208, 0.03) 4px
    );
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* Hero Section Overlay */
.hero-wrap .overlay {
  background: rgba(11, 37, 69, 0.3) !important; /* Navy Blue with opacity - reduced for better visibility */
  z-index: 1;
}

.hero-wrap .container {
  position: relative;
  z-index: 2;
}

/* Hero Section Text Colors - Light for Dark Background */
.masport-hero-bg .slider-text h1,
.masport-hero-bg .slider-text h2,
.masport-hero-bg .slider-text p {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.masport-hero-bg .slider-text h1 {
  color: #ffffff !important;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.masport-hero-bg .slider-text h2 {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.masport-hero-bg .slider-text p {
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Hero Section Links */
.masport-hero-bg .slider-text a {
  text-shadow: none;
}

.masport-hero-bg .breadcrumbs {
  color: rgba(255, 255, 255, 0.8) !important;
}

.masport-hero-bg .breadcrumbs a {
  color: rgba(255, 255, 255, 0.9) !important;
}

.masport-hero-bg .breadcrumbs a:hover {
  color: var(--masport-accent) !important;
}

/* Hero Section Buttons - Light Version */
.masport-hero-bg .cta-secondary {
  border-color: rgba(255, 255, 255, 0.8) !important;
  color: rgba(255, 255, 255, 0.95) !important;
  background-color: transparent !important;
}

.masport-hero-bg .cta-secondary:hover {
  background-color: rgba(255, 255, 255, 0.95) !important;
  color: var(--masport-primary) !important;
  border-color: rgba(255, 255, 255, 0.95) !important;
}

/* Hero Section for hero-wrap-2 (Secondary Pages) */
.hero-wrap-2.masport-hero-bg .bread {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-wrap-2.masport-hero-bg .breadcrumbs {
  color: rgba(255, 255, 255, 0.9) !important;
}

.hero-wrap-2.masport-hero-bg .breadcrumbs a {
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-wrap-2.masport-hero-bg .breadcrumbs a:hover {
  color: var(--masport-accent) !important;
}

.hero-wrap-2.masport-hero-bg .breadcrumbs span {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Links */
a {
  color: var(--masport-accent);
}

a:hover {
  color: var(--masport-primary);
}

/* Footer */
.ftco-footer {
  background-color: var(--masport-primary);
  color: rgba(255, 255, 255, 0.9) !important;
}

.ftco-footer h2,
.ftco-footer .ftco-heading-2 {
  color: #ffffff !important;
}

.ftco-footer p,
.ftco-footer .text,
.ftco-footer li,
.ftco-footer span {
  color: rgba(255, 255, 255, 0.9) !important;
}

.ftco-footer a {
  color: rgba(255, 255, 255, 0.9) !important;
}

.ftco-footer a:hover {
  color: var(--masport-accent) !important;
}

.ftco-footer ul {
  color: rgba(255, 255, 255, 0.9) !important;
}

.ftco-footer ul li {
  color: rgba(255, 255, 255, 0.9) !important;
}

.ftco-footer .block-23 .text {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Cards and Sections */
.card {
  border-color: var(--masport-bg-light);
}

.card-header {
  background-color: var(--masport-bg-light);
  border-color: var(--masport-bg-light);
}

/* Treatment/Application Cards */
.treatment,
.services {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.treatment:hover,
.services:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(11, 37, 69, 0.1);
}

/* Icon Colors */
.icon span,
.flaticon-lotus {
  color: var(--masport-accent);
}

/* Quote/Testimonial Styling */
.quote {
  color: var(--masport-accent);
}

/* Form Styling */
.form-control:focus {
  border-color: var(--masport-accent);
  box-shadow: 0 0 0 0.2rem rgba(129, 216, 208, 0.25);
}

/* Medical/Professional Styling */
.medical-badge {
  background-color: var(--masport-accent);
  color: var(--masport-primary);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
}

/* Statistics/Counters */
.counter-wrap .number {
  color: var(--masport-primary);
}

/* Section Headings */
.heading-section .subheading {
  color: var(--masport-accent);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

/* CTA Buttons */
.cta-primary {
  background-color: var(--masport-accent);
  color: var(--masport-primary);
  padding: 1rem 2.5rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.cta-primary:hover {
  background-color: var(--masport-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(11, 37, 69, 0.3);
}

.cta-secondary {
  background-color: transparent;
  color: var(--masport-accent);
  border: 2px solid var(--masport-accent);
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: inline-block;
}

.cta-secondary:hover {
  background-color: var(--masport-accent);
  color: var(--masport-primary);
  text-decoration: none;
}

/* Application Cards */
.application-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(11, 37, 69, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

/* Publications section - override height for vertical stacking */
section .application-card[style*="height: auto"] {
  height: auto !important;
}

.application-card:hover {
  box-shadow: 0 5px 20px rgba(11, 37, 69, 0.15);
  transform: translateY(-5px);
}

.application-card img {
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

/* Application Image Wrapper - Fixed Height */
.application-image-wrapper {
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  background-color: var(--masport-bg-light);
}

.application-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.application-card:hover .application-image-wrapper img {
  transform: scale(1.05);
}

/* Table Styling for Clinical Data */
.clinical-table {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
}

.clinical-table thead {
  background-color: var(--masport-primary);
  color: #ffffff;
}

.clinical-table tbody tr:nth-child(even) {
  background-color: var(--masport-bg-light);
}

/* Accordion Styling */
.myaccordion {
  background: var(--masport-bg-light) !important;
}

.myaccordion .card-header {
  border-bottom-color: rgba(11, 37, 69, 0.1) !important;
  background: transparent !important;
}

.myaccordion .btn-link {
  color: var(--masport-primary) !important;
}

.myaccordion .btn-link:hover,
.myaccordion .btn-link:focus {
  color: var(--masport-accent) !important;
}

.myaccordion .fa {
  color: var(--masport-accent) !important;
}

.myaccordion .card-body {
  color: var(--masport-text);
}

/* Form Controls - Override Template Colors */
.form-control:focus,
.form-control:active {
  border-color: var(--masport-accent) !important;
  box-shadow: 0 0 0 0.2rem rgba(129, 216, 208, 0.25) !important;
}

.form-control {
  color: var(--masport-text) !important;
  border-color: rgba(11, 37, 69, 0.1) !important;
}

.form-control::placeholder {
  color: rgba(31, 41, 55, 0.5) !important;
}

select.form-control {
  color: var(--masport-text) !important;
}

/* Alert Messages */
.alert-success {
  background-color: rgba(129, 216, 208, 0.1) !important;
  border-color: var(--masport-accent) !important;
  color: var(--masport-primary) !important;
}

.alert-danger {
  background-color: rgba(11, 37, 69, 0.1) !important;
  border-color: var(--masport-primary) !important;
  color: var(--masport-primary) !important;
}

.alert-info {
  background-color: rgba(129, 216, 208, 0.1) !important;
  border-color: var(--masport-accent) !important;
  color: var(--masport-primary) !important;
}

.alert-warning {
  background-color: rgba(129, 216, 208, 0.1) !important;
  border-color: var(--masport-accent) !important;
  color: var(--masport-primary) !important;
}

/* Contact Form Specific */
.contact-info {
  background-color: var(--masport-bg-light) !important;
}

.contact-info h2,
.contact-info h3,
.contact-info h4,
.contact-info h5 {
  color: var(--masport-primary) !important;
}

.contact-info a {
  color: var(--masport-accent) !important;
}

.contact-info a:hover {
  color: var(--masport-primary) !important;
}

/* Success Message Styling */
.success-message {
  padding: 3rem 2rem;
  background-color: var(--masport-bg-light);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(11, 37, 69, 0.1);
}

.success-message .icon {
  animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Scroll to Top Button */
.scroll-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--masport-accent);
  color: var(--masport-primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(11, 37, 69, 0.3);
  transition: all 0.3s ease;
  font-size: 24px;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.scroll-to-top-btn span {
  color: var(--masport-primary) !important;
}

.scroll-to-top-btn:hover {
  background-color: var(--masport-primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(11, 37, 69, 0.4);
}

.scroll-to-top-btn:hover span {
  color: #ffffff !important;
}

.scroll-to-top-btn:active {
  transform: translateY(-1px);
}

.scroll-to-top-btn span {
  display: block;
  line-height: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .cta-primary,
  .cta-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .scroll-to-top-btn {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .scroll-to-top-btn {
    width: 40px;
    height: 40px;
    bottom: 15px;
    right: 15px;
    font-size: 18px;
  }
}
