/* =========================================
   1. GLOBAL VARIABLES & FONTS
   ========================================= */
:root {
  /* Oman Oasis Palette */
  --oman-teal: #197278;   /* Primary Brand */
  --oman-coral: #E07A5F;  /* Warmth & Action */
  --oman-gold: #F2CC8F;   /* Cheerful Highlights */
  --oman-sand: #F4F1DE;   /* Soft Backgrounds */
  --white: #ffffff;
  
  --primary-font: 'Raleway', sans-serif;
  
  /* Nav Dimensions */
  --nav-width-collapsed: 80px;
  --nav-width-expanded: 260px;
}

body {
  font-family: var(--primary-font);
  background-color: var(--white);
  padding-left: var(--nav-width-collapsed); /* Pushes content right */
  overflow-x: hidden;
}

/* =========================================
   2. HOVER-EXPAND SIDE NAV (DESKTOP)
   ========================================= */
.oman-sidenav {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--nav-width-collapsed);
  height: 100vh;
  background-color: var(--oman-teal);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-x: hidden;
  white-space: nowrap;
  z-index: 1040;
  box-shadow: 4px 0 15px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.oman-sidenav:hover {
  width: var(--nav-width-expanded);
}

.sidenav-link {
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  padding: 1.2rem 0;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  border-left: 4px solid transparent;
}

.sidenav-link:hover, .sidenav-link.active {
  color: var(--oman-gold);
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--oman-coral);
}

.sidenav-icon {
  width: var(--nav-width-collapsed); /* Centers icon perfectly */
  text-align: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.sidenav-text {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.oman-sidenav:hover .sidenav-text {
  opacity: 1;
  transition-delay: 0.1s;
}

.brand-icon { width: 40px; transition: opacity 0.2s; }
.brand-full { width: 160px; position: absolute; left: 80px; opacity: 0; transition: opacity 0.2s; }
.oman-sidenav:hover .brand-icon { opacity: 0; }
.oman-sidenav:hover .brand-full { opacity: 1; }

/* =========================================
   3. MOBILE APP BAR (PHONES)
   ========================================= */
@media (max-width: 991px) {
  body { padding-left: 0; padding-bottom: 75px; }
  
  .oman-sidenav {
    position: fixed !important;
    top: unset !important;    /* Forces the browser to forget top: 0 */
    bottom: 0 !important;     /* Locks it strictly to the bottom */
    left: 0 !important;
    width: 100% !important;
    height: 75px !important;
    flex-direction: row;
    justify-content: flex-start;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; /* Butter-smooth scrolling on iOS */
    z-index: 9999 !important; /* Forces it above all other elements */
    -ms-overflow-style: none;  /* IE and Edge scrollbar hiding */
    scrollbar-width: none;  /* Firefox scrollbar hiding */
  }

  /* Hide the ugly scrollbar for Chrome, Safari and Opera */
  .oman-sidenav::-webkit-scrollbar {
    display: none;
  }

  /* Allows the inner link container to expand for horizontal scrolling */
  .oman-sidenav > .d-flex {
    width: max-content !important;
    min-width: 100%;
  }
  
  .sidenav-link { 
    flex: 0 0 auto; /* CRITICAL: Prevents squishing so scrolling activates */
    flex-direction: column; 
    padding: 10px 10px; 
    border-left: none; 
    border-bottom: 3px solid transparent; 
    min-width: 85px; 
  }
  
  .sidenav-link:hover, .sidenav-link.active { 
    border-left: none; 
    border-bottom: 3px solid var(--oman-coral); 
  }
  
  .sidenav-icon { width: auto; font-size: 1.1rem; margin-bottom: 4px; }
  .sidenav-text { opacity: 1; font-size: 0.7rem; }
  .brand-icon, .brand-full { display: none; }
}

/* =========================================
   4. BENTO BOX CARDS
   ========================================= */
.bento-card {
  border-radius: 24px;
  padding: 2.5rem;
  height: 100%;
  color: var(--white);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.bento-card::after {
  content: '\f061'; /* FontAwesome right arrow */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  bottom: 2rem;
  right: 2.5rem;
  font-size: 1.5rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.3s ease;
}

.bento-card:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* =========================================
   5. CORE SERVICES UI
   ========================================= */
.core-service-card {
  border-radius: 24px;
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-bottom: 6px solid var(--oman-sand); /* Soft neutral bottom by default */
}

/* The Updated Icon Wrapper */
.core-icon-wrapper {
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--white); 
  border: 6px solid var(--white); /* The outer cutout effect */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* The Spinning Comet Gradient */
.core-icon-wrapper::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  background: conic-gradient(transparent 270deg, var(--accent-color) 360deg);
  animation: cometSpin 2.5s linear infinite;
  z-index: -2;
}

/* The Solid Center Mask */
.core-icon-wrapper::after {
  content: '';
  position: absolute;
  inset: 3px; /* Creates the 3px thickness of the comet trail */
  background-color: var(--accent-color);
  border-radius: 50%;
  z-index: -1;
  transition: background-color 0.4s ease;
}

/* Keeps the FontAwesome icon visible above the mask */
.core-icon-wrapper i {
  position: relative;
  z-index: 2;
}

/* Hover States */
.core-service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06) !important;
  border-bottom-color: var(--accent-color);
}

.core-service-card:hover .core-icon-wrapper {
  transform: translateX(-50%) scale(1.15);
}

/* The Continuous Rotation Keyframes */
@keyframes cometSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* =========================================
   6. DUAL-TRACK MARQUEE
   ========================================= */
.marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 2rem;
  padding: 1rem 0;
  animation: scrollLeft 40s linear infinite;
}

/* Reverse the animation for the "Coming Soon" track */
.marquee-track.reverse {
  animation: scrollRight 40s linear infinite;
}

/* Pause the scrolling if the user hovers over a track */
.marquee-track:hover {
  animation-play-state: paused;
}

/* Base Badge Styling */
.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
  cursor: default;
  white-space: nowrap;
}

.partner-badge:hover {
  transform: scale(1.05);
}

/* "Currently Accepted" Style */
.partner-badge.accepted {
  background-color: var(--white);
  color: var(--text-dark);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* "Coming Soon" Style */
.partner-badge.pending {
  background-color: transparent;
  color: var(--text-dark);
  border: 2px dashed var(--oman-coral);
}

/* The Pulsing Active Dot */
.pulse-dot {
  width: 12px;
  height: 12px;
  background-color: var(--oman-teal);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(25, 114, 120, 0.7);
  animation: pulseTeal 2s infinite;
}

/* Continuous Marquee Animations */
@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* Scrolls exactly half the total width */
}

@keyframes scrollRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

@keyframes pulseTeal {
  0% { box-shadow: 0 0 0 0 rgba(25, 114, 120, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(25, 114, 120, 0); }
  100% { box-shadow: 0 0 0 0 rgba(25, 114, 120, 0); }
}

/* =========================================
   7. CONTACT CTA SECTION
   ========================================= */
.contact-popout-img {
  margin-top: -80px;     /* Pulls image UP out of the box */
  margin-bottom: -40px;  /* Pulls image DOWN out of the box */
  max-height: 420px;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.25)); /* Shadows the transparent PNG natively */
  transition: transform 0.4s ease;
}

.contact-animate:hover .contact-popout-img {
  transform: translateY(-10px) scale(1.03); /* Subtle float effect on hover */
}

.contact-btn-outline {
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
  transition: all 0.3s ease;
}

.contact-btn-outline:hover {
  background-color: var(--white);
  color: var(--oman-teal);
  border-color: var(--white);
  transform: translateY(-3px);
}

/* =========================================
   8. FOOTER UI
   ========================================= */
.footer {
  background-color: #115256;
  color: var(--white);
  
}

/* The Wavy Top Border */
.footer::before {
  content: "";
  position: absolute;
  top: -45px; /* Pulls the wave exactly its height above the footer */
  left: 0;
  width: 100%;
  height: 46px;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V120H0Z" fill="%23115256"/></svg>') center/cover no-repeat;
  pointer-events: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: 0.2s;
}

.footer-links a:hover {
  color: var(--oman-gold);
  padding-left: 5px;
}

.footer-video-card:hover {
  background: rgba(255,255,255,0.1) !important;
  transform: translateY(-3px);
}

.play-btn-mini {
  width: 40px;
  height: 40px;
  background-color: var(--oman-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-circle {
  display: inline-flex;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.social-circle:hover {
  background-color: var(--oman-gold);
  color: var(--oman-teal);
  transform: translateY(-3px);
}

.text-gold { color: var(--oman-gold); }
.tiny { font-size: 0.7rem; }

/* =========================================
   9. COMMUNITY & EVENTS UI
   ========================================= */
.event-card-hover {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.event-card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08) !important;
}

/* =========================================
   10. HOME HEALTH INTERNAL PAGE UI
   ========================================= */

/* Mobile Default: Full width, behind text, darker overlay for readability */
.hh-hero-video-bg {
  width: 100%;
  left: 0;
  transition: all 0.5s ease;
}

.hh-video-overlay {
  background: rgba(0, 0, 0, 0.65); 
  transition: background 0.5s ease;
}

/* Desktop: Right-aligned, diagonal cut, lighter overlay */
@media (min-width: 992px) {
  .hh-hero-video-bg {
    width: 60%; /* Adjusts the video to cover the right side nicely */
    left: auto;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
  }
  
  .hh-video-overlay {
    background: rgba(0, 0, 0, 0.25); /* Lighter since it's not behind the main text */
  }
}

/* =========================================
   10.1 EDUCATION COMPARISON BLOCK UI
   ========================================= */
/* The Central Circular Image */
.central-care-circle {
  transition: transform 0.4s ease;
  z-index: 10;
}

.hh-animate-up:hover .central-care-circle {
  transform: scale(1.05) rotate(2deg);
}

/* The comparison icons */
.comparison-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* The Comparison List Styling */
.hh-comparison-list {
  padding: 0;
  margin: 0;
}

.hh-comparison-list li {
  position: relative;
  line-height: 1.6;
}

/* Base dot styling using pseudo-elements */
.hh-comparison-list li::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  top: 6px; /* Vertical position */
}

/* Left list: Teal dots on the right side */
.hh-comparison-list.teal-dots li {
  padding-right: 25px;
}

.hh-comparison-list.teal-dots li::before {
  right: 0;
  background-color: var(--oman-teal);
  box-shadow: 0 0 10px rgba(25, 114, 120, 0.2);
}

/* Right list: Coral dots on the left side */
.hh-comparison-list.coral-dots li {
  padding-left: 25px;
}

.hh-comparison-list.coral-dots li::before {
  left: 0;
  background-color: var(--oman-coral);
  box-shadow: 0 0 10px rgba(224, 122, 95, 0.2);
}

/* =========================================
   10.2 SERVICE PILLS UI
   ========================================= */
.hh-service-pill {
  background-color: var(--white);
  color: var(--oman-teal) !important;
  border: 1px solid var(--oman-teal);
  transition: all 0.3s ease;
  cursor: default; /* Keeps it feeling like a UI element */
}

.hh-service-pill:hover {
  background-color: var(--oman-teal);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(25, 114, 120, 0.2) !important;
}

/* Let's also define those global text colors just in case you need them later! */
.text-oman-teal { color: var(--oman-teal) !important; }
.text-oman-coral { color: var(--oman-coral) !important; }
.text-oman-gold { color: var(--oman-gold) !important; }

/* Custom Oman Background Utilities */
.bg-oman-teal { background-color: var(--oman-teal) !important; }
.bg-oman-coral { background-color: var(--oman-coral) !important; }
.bg-oman-gold { background-color: var(--oman-gold) !important; }

/* =========================================
   11. PHARMACY PAGE UI
   ========================================= */

/* Therapeutic Grid Cards */
.pharm-card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid transparent !important;
}

.pharm-card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08) !important;
  border-top: 4px solid var(--oman-teal) !important;
}

/* Engineering Blueprint Background */
.blueprint-bg {
  background-color: #ffffff;
  background-image: 
    linear-gradient(rgba(25, 114, 120, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 114, 120, 0.05) 1px, transparent 1px);
  background-size: 30px 30px; /* Creates the grid pattern */
}

/* =========================================
   12. INFUSION CENTER (AIC) PAGE UI
   ========================================= */

/* The Vertical Video Capsule */
.aic-capsule-video {
  width: 100%;
  max-width: 380px; /* Keeps it looking like a phone/capsule */
  aspect-ratio: 9/16;
  border-radius: 200px; /* Creates the massive pill shape */
  overflow: hidden;
}

/* Glassmorphism Feature Cards */
.aic-glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.aic-glass-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

/* Editorial Overlap Gallery */
.w-85 { width: 85%; }

.aic-overlap-img {
  width: 60%;
  bottom: -40px;
  right: 0;
  z-index: 2;
}

.aic-deco-dot {
  width: 80px;
  height: 80px;
  top: -20px;
  left: -20px;
  z-index: -1;
  opacity: 0.5;
}

/* Mobile Adjustments for Editorial Gallery */
@media (max-width: 991px) {
  .aic-overlap-img {
    position: relative !important;
    width: 90%;
    margin-top: -30px;
    margin-left: 10%;
    bottom: auto;
  }
}

/* =========================================
   12.1 COMET RING ANIMATION
   ========================================= */
.comet-ring {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  z-index: 1;
  isolation: isolate; /* Creates a new stacking context */
}

/* The spinning comet tail */
.comet-ring::before {
  content: '';
  position: absolute;
  inset: -3px; /* Controls the thickness of the ring */
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 75%, currentColor 100%);
  animation: cometSpin 2s linear infinite;
  z-index: -1;
}

/* The hollow white center */
.comet-ring::after {
  content: '';
  position: absolute;
  inset: 2px; /* Creates the border width */
  background: var(--white);
  border-radius: 50%;
  z-index: 0;
}

/* Forces the icon to sit on top of the animation */
.comet-ring i {
  position: relative;
  z-index: 2;
}

@keyframes cometSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* =========================================
   13.1 TPN HERO DROPLET RESPONSIVE
   ========================================= */

/* Default (Mobile View) */
.tpn-hero-droplet {
  font-size: 18rem;
  top: -5%;
  right: -10%;
}

/* Desktop View (Restores your exact original layout) */
@media (min-width: 992px) {
  .tpn-hero-droplet {
    font-size: 35rem;
    top: -10%;
    right: -5%;
  }
}

/* =========================================
   14. RESOURCES PAGE UI
   ========================================= */
.resource-card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.resource-card-hover:hover {
  transform: translateX(5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05) !important;
}

/* =========================================
   15. LANGUAGE TOGGLE UI
   ========================================= */

/* Desktop Behavior */
@media (min-width: 992px) {
  /* Hide the buttons by default */
  .lang-btn-expanded {
    display: none !important;
  }
  
  /* Show the icon by default */
  .lang-icon-collapsed {
    display: flex !important;
    transition: opacity 0.3s ease;
  }

  /* WHEN HOVERED: Swap them! */
  .oman-sidenav:hover .lang-icon-collapsed {
    display: none !important;
  }
  
  .oman-sidenav:hover .lang-btn-expanded {
    display: flex !important;
    animation: fadeIn 0.4s ease forwards;
  }
}

/* Mobile Behavior (Bottom Bar) */
@media (max-width: 991px) {
  .lang-toggle-wrapper {
    flex: 0 0 auto;
    width: 140px !important; /* Gives the pill enough room to sit in the swipe row */
    padding: 0 10px;
  }
  
  /* Always show the full toggle on mobile */
  .lang-btn-expanded {
    display: flex !important;
  }
  
  /* Hide the standalone icon on mobile */
  .lang-icon-collapsed {
    display: none !important;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* =========================================
   16. INTERACTIVE CARE ROADMAP UI
   ========================================= */

/* The vertical line running down the left */
#roadmap-timeline {
  border-left: 3px dashed rgba(25, 114, 120, 0.2);
  margin-left: 15px;
}

@media (min-width: 768px) {
  #roadmap-timeline { margin-left: 0; }
}

.timeline-step {
  position: relative;
  padding-left: 30px;
  margin-bottom: 40px;
}

/* The glowing dot on the timeline */
.timeline-step::before {
  content: '';
  position: absolute;
  left: -41px; /* Aligns perfectly over the dashed border */
  top: 0;
  width: 20px;
  height: 20px;
  background-color: var(--oman-gold);
  border: 4px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(224, 159, 62, 0.3);
  z-index: 2;
}

/* Styling the step card */
.timeline-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border-left: 4px solid var(--oman-teal);
  transition: transform 0.3s ease;
}

.timeline-card:hover {
  transform: translateX(10px);
}

/* Custom Oman Teal Button Override */
.btn-oman-teal {
    background-color: var(--oman-teal) !important;
    color: var(--white) !important;
    border: none !important;
}

.btn-oman-teal:hover {
    background-color: #0d4044 !important; /* Slightly darker teal for hover */
    color: var(--white) !important;
}

/* =========================================
   17. SMART ASSIST RESPONSIVE POSITIONING
   ========================================= */

/* Default/Desktop position */
.smart-toast-pos {
    bottom: 0;
}

/* Mobile position to clear the bottom navigation */
@media (max-width: 991px) {
    .smart-toast-pos {
        bottom: 100px; 
    }
}