/*
 * Deya WordPress Theme Styles
 * Includes Tailwind CSS and custom components
 */

/* Import compiled Tailwind CSS */
@import url('./tailwind.css');

/* Akkurat Font Faces */
@font-face {
    font-family: 'Akkurat';
    src: url('../fonts/AkkuratLL-Regular.woff2') format('woff2'),
         url('../fonts/AkkuratLL-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Akkurat';
    src: url('../fonts/AkkuratLL-Bold.woff2') format('woff2'),
         url('../fonts/AkkuratLL-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Akkurat';
    src: url('../fonts/AkkuratLL-Italic.woff2') format('woff2'),
         url('../fonts/AkkuratLL-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}


/* Base Font Size */
html {
    font-size: 16px;
}

/* Mobile Navigation Styles */
.mobile-submenu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: start !important;
    width: 100% !important;
}

.mobile-submenu-toggle .mobile-arrow {
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.success-message-cta a {
  text-decoration: underline;
}
    


/* Custom Footer Grid Layout */
/* Mobile footer column spacing */
@media (max-width: 767px) {
    .footer-col-2,
    .footer-col-3 {
        padding-top: 2rem;
    }
}

@media (min-width: 768px) {
    .footer-main-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 2rem; /* Adjust gap as needed */
    }

    .footer-main-grid > .footer-col-1 {
        grid-column: span 1 / span 1;
    }

    .footer-main-grid > .footer-col-2 {
        grid-column: span 1 / span 1;
    }

    .footer-main-grid > .footer-col-3 {
        grid-column: span 2 / span 2;
    }
}

@media (min-width: 768px) {
    html {
        /* Scale up for tablets and larger screens */
        font-size: 15px;
    }
}

@media (min-width: 1024px) {
    html {
        /* Set to 16px for desktops to ensure 1rem = 16px */
        font-size: 16px;
    }
}

/* Base Typography */
body {
    font-family: 'Akkurat', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
}

em, i {
    font-style: italic;
}

/* CSS Custom Properties */
:root {
  --background: 0 0% 100%;
  --foreground: 0 0% 3.9%;
  --card: 0 0% 100%;
  --card-foreground: 0 0% 3.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 0 0% 3.9%;
  --primary: 0 0% 9%;
  --primary-foreground: 0 0% 98%;
  --secondary: 0 0% 96.1%;
  --secondary-foreground: 0 0% 9%;
  --muted: 0 0% 96.1%;
  --muted-foreground: 0 0% 45.1%;
  --accent: 0 0% 96.1%;
  --accent-foreground: 0 0% 9%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --border: 0 0% 89.8%;
  --input: 0 0% 89.8%;
  --ring: 0 0% 3.9%;
  
  /* Brand Colors */
  --brand-dark-blue: 218 57% 23%; /* #1A2B5C */
  --brand-teal: 170 60% 65%; /* #7DD3C0 */
  --radius: 0.5rem;
}

/* Brand Color Utilities - Updated to match React config */
.text-brand-blue { color: #243A77; }
.text-brand-blue-75 { color: #5D719E; }
.text-brand-blue-50 { color: #8D9DC5; }
.text-brand-blue-25 { color: #BDC8EB; }
.text-brand-blue-dark { color: #1A2B5C; }
.text-brand-blue-light { color: #3A4F8A; }
.text-brand-teal { color: #88D1D1; }
.text-brand-teal-link { color: #2F7979; }
.text-brand-teal-75 { color: #A0DADA; }
.text-brand-teal-50 { color: #B8E3E3; }
.text-brand-teal-25 { color: #D1ECEC; }
.text-brand-teal-dark { color: #22262a; }
.text-brand-green { color: #7DD3C0; }
.text-brand-green-75 { color: #96DBC9; }
.text-brand-green-50 { color: #AFE3D2; }
.text-brand-green-25 { color: #C8EBDB; }
.text-brand-text { color: rgb(34 31 32 / var(--tw-text-opacity, 1)); }
.text-brand-text\/80 { color: rgb(34 31 32 / 0.8); }

.bg-brand-blue { background-color: #243A77; }
.bg-brand-blue-75 { background-color: #5D719E; }
.bg-brand-blue-50 { background-color: #8D9DC5; }
.bg-brand-blue-25 { background-color: #BDC8EB; }
.bg-brand-blue-dark { background-color: #1A2B5C; }
.bg-brand-blue-light { background-color: #3A4F8A; }
.bg-brand-teal { background-color: #88D1D1; }
.bg-brand-teal-75 { background-color: #A0DADA; }
.bg-brand-teal-50 { background-color: #B8E3E3; }
.bg-brand-teal-25 { background-color: #D1ECEC; }
.bg-brand-green { background-color: #7DD3C0; }
.bg-brand-green-75 { background-color: #96DBC9; }
.bg-brand-green-50 { background-color: #AFE3D2; }
.bg-brand-green-25 { background-color: #C8EBDB; }

.border-brand-blue { border-color: #243A77; }
.border-brand-blue-dark { border-color: #1A2B5C; }
.border-brand-teal { border-color: #88D1D1; }
.border-brand-green { border-color: #7DD3C0; }

/* Hover states */
.hover\:bg-brand-blue-dark:hover { background-color: #1A2B5C; }
.hover\:bg-brand-blue:hover { background-color: #243A77; }
.hover\:bg-brand-blue-light:hover { background-color: #3A4F8A; }
.hover\:bg-brand-teal:hover { background-color: #88D1D1; }
.hover\:text-brand-blue:hover { color: #243A77; }
.hover\:text-brand-blue-light:hover { color: #3A4F8A; }
.hover\:text-brand-teal:hover { color: #88D1D1; }
.hover\:border-brand-teal:hover { border-color: #88D1D1; }

/* Opacity hover states */
.hover\:text-brand-blue\/80:hover { color: rgba(36, 58, 119, 0.8); }

/* Custom Components */
.shadow-3xl {
  box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.25);
}


.text-balance {
  text-wrap: balance;
}

/* Text Utilities */
.whitespace-nowrap {
  white-space: nowrap;
}

/* Navigation Dropdown Styles */
.dropdown-menu {
  transform-origin: top;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.2s ease-out;
}

.group:hover .dropdown-menu {
  transform: translateY(0) scale(1);
}

/* Mobile Navigation Submenu */
.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.mobile-submenu.open {
  max-height: 500px;
}

/* Dropdown Arrow Animation */
.dropdown-arrow {
  transition: transform 0.2s ease-out;
}

.group:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* Mobile Arrow Animation */
.mobile-arrow {
  transition: transform 0.2s ease-out;
}

.rotate-180 {
  transform: rotate(180deg);
}

/* Active Navigation States */
.active-nav-item {
  color: #1A2B5C !important; /* brand-blue-dark */
  font-weight: 600;
  position: relative;
}

.active-nav-item::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #88D1D1; /* brand-teal */
  border-radius: 1px;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Border Radius Utilities - From React Config */
.rounded-lg {
  border-radius: var(--radius);
}

.rounded-md {
  border-radius: calc(var(--radius) - 2px);
}

.rounded-sm {
  border-radius: calc(var(--radius) - 4px);
}

#hero {
  height: 100vh;
  min-height: 1024px;
}  
@media (max-width: 639px) {
    #hero {
        min-height: 600px;
    }
}

/* Hero Section Animations */
.hero-content,
.hero-subtitle,
.hero-title,
.hero-description,
.hero-cta {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.hero-content.animate-in,
.hero-subtitle.animate-in,
.hero-title.animate-in,
.hero-description.animate-in,
.hero-cta.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.hero-subtitle.animate-in { animation-delay: 0.2s; }
.hero-title.animate-in { animation-delay: 0.4s; }
.hero-description.animate-in { animation-delay: 0.6s; }
.hero-cta.animate-in { animation-delay: 0.8s; }

/* Problem Cards */
.problem-card {
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 14px;
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Expanded state with color themes */
.problem-card.is-expanded .relative.overflow-hidden {
    border-width: 2px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.problem-card[data-color-theme="teal"].is-expanded .relative.overflow-hidden {
    border-color: #88D1D1; /* brand-teal */
}

.problem-card[data-color-theme="blue"].is-expanded .relative.overflow-hidden {
    border-color: #243A77; /* brand-blue */
}

.problem-card[data-color-theme="green"].is-expanded .relative.overflow-hidden {
    border-color: #7DD3C0; /* brand-green */
}

/* Themed gradient background utility */
.bg-gradient-theme {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-from), var(--tw-gradient-to));
    opacity: 0;
}

.problem-card.is-expanded .bg-gradient-theme {
    opacity: 1;
}

.problem-card:hover .bg-gradient-theme {
    opacity: 1;
}

.problem-card:hover > .relative {
    border: 1px solid rgb(36 58 119 / 0.3);
}

.problem-card.is-expanded .icon-wrapper {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.problem-card .expanded-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}

.problem-card.is-expanded .expanded-content {
  max-height: none; /* Allow content to dictate height */
  overflow: visible;
}

/* Mobile-specific adjustments for problem cards */
@media (max-width: 767px) {
  .problem-card.is-expanded .expanded-content {
    max-height: none !important;
    overflow: visible !important;
  }
}

/* Rotate chevron icon on expand */
.problem-card.is-expanded .chevron-wrapper svg {
    transform: rotate(180deg);
}

/* Rotate main icon on expand */
.problem-card.is-expanded .icon-wrapper {
    transform: rotate(3deg);
}

/* Style chevron wrapper on expand */
.problem-card.is-expanded .chevron-wrapper {
    transform: scale(1.1);
}

.problem-card[data-color-theme="teal"].is-expanded .chevron-wrapper {
    background-color: #D1ECEC; /* brand-teal-25 */
    color: #243A77;
}

.problem-card[data-color-theme="blue"].is-expanded .chevron-wrapper {
    background-color: #BDC8EB; /* brand-blue-25 */
    color: #243A77;
}

.problem-card[data-color-theme="green"].is-expanded .chevron-wrapper {
    background-color: #C8EBDB; /* brand-green-25 */
    color: #243A77;
}


.nav-item.active {
    font-weight: 600;
}

.nav-item {
  transition: all 0.2s ease;
}

.nav-item:hover {
  background-color: rgb(243 244 246);
  border-color: rgb(209 213 219);
  
}

.nav-item.active {
  color: white;
  /* border-color: rgb(31 41 55); */
  border-width: 0;
  --tw-ring-color: #1A2B5C; 
    box-shadow: 0 0 0 2px var(--tw-ring-color), 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);

}

.nav-item .icon-container {
  background-color: rgb(36 58 119 / 0.1); /* brand-blue-dark */
  color: var(--brand-blue-dark);
  border-radius: 0.75rem; /* rounded-xl */
}

.nav-item.active .icon-container {
    background-color: #1A2B5C; /* brand-blue-dark */
    color: white;
    border-radius: 0.75rem; /* rounded-xl */
}

.nav-item.active .active-indicator {
    opacity: 1;

}

.group:hover .icon-container {
    --tw-rotate: 3deg;
    transform: rotate(var(--tw-rotate));
}

/* Pillar Navigation Responsive Grid */
.pillar-nav-desktop {
    display: none; /* Hidden by default */
}

.pillar-nav-tablet {
    display: none; /* Hidden by default */
}

.pillar-nav-mobile {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem; /* gap-3 */
    padding-left: 0.25rem; /* px-1 */
    padding-right: 0.25rem; /* px-1 */
}

/* Hide entire pillars navigation on smartphones */
@media (max-width: 639px) {
    br.responsive-break {
        display: none;
    }
    #pillars-nav {
        display: none !important;
    }
}

/* Fix font size consistency for Connected Care Showcase */
.connected-care-showcase .feature-description .text-base {
    font-size: 1.125rem !important; /* Force text-lg size (18px) */
    line-height: 1.75;
}

/* Small screens and up (sm) */
@media (min-width: 640px) {
    
    .pillar-nav-mobile {
        display: none;
    }
    .pillar-nav-tablet {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0.75rem; /* gap-3 */
        padding-left: 0.5rem; /* px-2 */
        padding-right: 0.5rem; /* px-2 */
    }
}

/* Large screens and up (lg) */
@media (min-width: 1024px) {
    .pillar-nav-desktop {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 1.5rem; /* gap-6 */
    }
    .pillar-nav-mobile-wrapper {
        display: none;
    }
}


/* Pillars Rolodex */


.pillars-section {
  perspective: 1000px;
}

.pillar-card {
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
  transform-origin: bottom center;
  border-width: 4px;
}

.pillar-card.active {
    border-color: rgb(31 41 55); /* Default active color */
    border-width: 4px;
}

.pillar-card.active.teal-theme {
    border-color: #88D1D1; /* brand-teal */
}
.nav-item.active.teal-theme {
    background-color: #EDF9F9;
    --tw-ring-color: #88D1D1; 
    box-shadow: 0 0 0 2px var(--tw-ring-color), 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.pillar-card.active.blue-theme {
    border-color: #243A77; /* brand-blue */
}
.nav-item.active.blue-theme {
    background-color: #DEE3F5;
    --tw-ring-color: #243A77; 
    box-shadow: 0 0 0 2px var(--tw-ring-color), 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.pillar-card.active.green-theme {
    border-color: #7DD3C0; /* brand-green */
}
.nav-item.active.green-theme {
    background-color: #e1f1ed;

    --tw-ring-color: #7DD3C0; 
    box-shadow: 0 0 0 2px var(--tw-ring-color), 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.nav-item.active.teal-theme .icon-container {
    background-color: #88D1D1; /* brand-teal */
    color: white;
}

.nav-item.active.blue-theme .icon-container {
    background-color: #243A77; /* brand-blue */
    color: white;
}

.nav-item.active.green-theme .icon-container {
    background-color: #7DD3C0; /* brand-green */
    color: white;
}

.pillar-card.tucked {
  transform: scale(0.95) rotateX(-8deg) translateY(-20px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.pillar-card .pillar-feature-item {
    margin-left: .5rem;
}





/* Header Navigation Links */
#main-header nav a {
  color: #243A77;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

#main-header nav a:hover {
  color: rgba(36, 58, 119, 0.8);
}

/* Mobile Menu Styling */
#mobile-menu {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

#mobile-menu nav a {
  display: block;
  padding: 0.75rem 1rem;
  color: #243A77;
  font-weight: 500;
  text-align: left;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

#mobile-menu nav a:hover {
  background-color: rgba(36, 58, 119, 0.1);
  color: #243A77;
}

/* Ensure mobile button is only visible on mobile */
@media (min-width: 1024px) {
  #mobile-menu-toggle {
    display: none !important;
  }
}

/* Header Shadow on Scroll */
#main-header.shadow-sm {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Team Modal */
.team-modal-overlay {
  backdrop-filter: blur(8px);
}

.team-modal-content {
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* News Cards */
.news-card {
  transition: all 0.3s ease;
  border-radius: 14px;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Category Filters */
.category-filter {
  transition: all 0.2s ease;
}

.category-filter:hover {
  background-color: rgba(189, 200, 235, 0.4);
}

.category-filter.active {
  background-color: #1A2B5C;
  color: white;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Responsive Design */
@media (max-width: 768px) {
  .pillar-card {
    padding: 1.5rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.1;
  }
}

/* Utility Classes */
.perspective-500 {
  perspective: 500px;
}

.perspective-1000 {
  perspective: 1000px;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Focus States */
.focus-visible:focus {
  outline: 2px solid #88D1D1;
  outline-offset: 2px;
}

/* Keyframe Animations - From React Config */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes accordion-down {
  from {
    height: 0;
  }
  to {
    height: var(--radix-accordion-content-height);
  }
}

@keyframes accordion-up {
  from {
    height: var(--radix-accordion-content-height);
  }
  to {
    height: 0;
  }
}

@keyframes radiate {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* Animation Classes */
.animate-accordion-down {
  animation: accordion-down 0.2s ease-out;
}

.animate-accordion-up {
  animation: accordion-up 0.2s ease-out;
}

.animate-radiate {
  animation: radiate 1.75s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.animate-fade-in-up {
  animation: fadeInUp 0.7s ease-out forwards;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
}

/* News Archive Filter Buttons */
.filter-btn {
  transition: all 0.3s ease;
}

.filter-btn:hover {
  transform: translateY(-1px);
}

/* News Articles Grid Animation */
#articles-grid {
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

#articles-grid.filtering {
  opacity: 0;
  transform: translateY(20px);
}

#articles-grid.filtered {
  opacity: 1;
  transform: translateY(0);
}

/* News Article Cards */
.news-article {
  transition: all 0.3s ease;
}

.news-article:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Pagination Styles */
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  margin: 0 0.125rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #243A77;
  background-color: white;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.page-numbers:hover {
  background-color: rgba(189, 200, 235, 0.25);
  border-color: #88D1D1;
  color: #243A77;
}

.page-numbers.current {
  background-color: #243A77;
  color: white;
  border-color: #243A77;
}

.page-numbers.prev,
.page-numbers.next {
  padding: 0.5rem;
}

body.page:not(.home) article {
  margin-top: 62px;
}

/* Archive Hero Gradient */
.archive-hero-gradient {
  background: linear-gradient(180deg, #ffffff 0%, #EDF9F9 100%);
  padding-bottom: 60px;
}

/* Responsive Classes - Tailwind Fallback */
@media (min-width: 640px) {
  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 768px) {
  .md\:text-5xl {
    font-size: 3rem;
    line-height: 1;
  }
  
  .md\:text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
  
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:text-6xl {
    font-size: 3.75rem;
    line-height: 1;
  }
  
  .lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Generic Modal Styles with Enhanced Animations */
.generic-modal {
    display: none; /* Hidden by default */
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

.generic-modal-overlay {
    transition: backdrop-filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.generic-modal-content {
    z-index: 100;
    transform: translateY(32px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.generic-modal.is-open {
    display: flex; /* Use flex to center */
    opacity: 1;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.generic-modal.is-open .generic-modal-content {
    transform: translateY(0) scale(1);
}

/* Animation states for smoother transitions */
.generic-modal.is-opening {
    display: flex;
    opacity: 0;
}

.generic-modal.is-opening .generic-modal-content {
    transform: translateY(32px) scale(0.95);
}

.generic-modal.is-closing {
    opacity: 1;
}

.generic-modal.is-closing .generic-modal-content {
    transform: translateY(-16px) scale(1.02);
}

/* Enhanced modal content animations */
.generic-modal-body {
    animation-duration: 0.4s;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    animation-fill-mode: both;
}

.generic-modal.is-open .generic-modal-body {
    animation-name: modalContentFadeIn;
    animation-delay: 0.1s;
}

@keyframes modalContentFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth close button hover */
.generic-modal-close {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.generic-modal-close:hover {
    transform: scale(1.1);
    background-color: rgb(243 244 246);
}

/* ===================================
   Connected Care Showcase Styles
   =================================== */

/* Base showcase styles */
.connected-care-showcase {
    --transition-duration: 0.3s;
    --transition-easing: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation classes for scroll-triggered animations */
.connected-care-showcase .animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.connected-care-showcase .animate-on-scroll.fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

/* Feature item states and transitions */
.connected-care-showcase .feature-item {
    transition: all var(--transition-duration) var(--transition-easing);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background-color: white;
}

.connected-care-showcase .feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    
    transition: left 0.5s ease-out;
    pointer-events: none;
}

.connected-care-showcase .feature-item:hover::before {
    left: 100%;
}

.connected-care-showcase .feature-item:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.connected-care-showcase .feature-item:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 0.1s;
}

/* Feature description animations */
.connected-care-showcase .feature-description {
    transition: all var(--transition-duration) var(--transition-easing);
    overflow: hidden;
}

.connected-care-showcase .feature-description.collapsed {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    padding-top: 0;
    transform: translateY(-10px);
}

.connected-care-showcase .feature-description.expanded {
    opacity: 1;
    max-height: 200px;
    margin-top: 0.25rem;
    transform: translateY(0);
}

/* Feature arrow animations */
.connected-care-showcase .feature-arrow {
    transition: transform var(--transition-duration) var(--transition-easing);
    margin-top: 2px;
}

.connected-care-showcase .feature-arrow svg {
    transition: color var(--transition-duration) var(--transition-easing);
}

/* Active state styling for different color schemes */
.connected-care-showcase .feature-item.active {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

/* Teal color scheme */
.connected-care-showcase .feature-showcase[data-color-scheme="teal"] .feature-item.active {
    border-color: #88D1D1;
    background-color: rgba(136, 209, 209, 0.05);
    box-shadow: 0 0 0 1px rgba(136, 209, 209, 0.1), 0 10px 15px -3px rgba(136, 209, 209, 0.1);
}

.connected-care-showcase .feature-showcase[data-color-scheme="teal"] .feature-item.active .feature-arrow svg {
    color: #88D1D1;
}

.connected-care-showcase .feature-showcase[data-color-scheme="teal"] .progress-dot.bg-brand-teal {
    background-color: #88D1D1;
    box-shadow: 0 0 0 2px rgba(136, 209, 209, 0.2);
}

/* Blue color scheme */
.connected-care-showcase .feature-showcase[data-color-scheme="blue"] .feature-item.active {
    border-color: #243A77;
    background-color: rgba(36, 58, 119, 0.05);
    box-shadow: 0 0 0 1px rgba(36, 58, 119, 0.1), 0 10px 15px -3px rgba(36, 58, 119, 0.1);
}

.connected-care-showcase .feature-showcase[data-color-scheme="blue"] .feature-item.active .feature-arrow svg {
    color: #243A77;
}

.connected-care-showcase .feature-showcase[data-color-scheme="blue"] .progress-dot.bg-brand-blue {
    background-color: #243A77;
    box-shadow: 0 0 0 2px rgba(36, 58, 119, 0.2);
}

/* Image carousel animations */
.connected-care-showcase .image-carousel {
    position: relative;
    overflow: hidden;
}

.connected-care-showcase .carousel-image {
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    will-change: opacity, transform;
}

.connected-care-showcase .carousel-image.fade-in {
    opacity: 1;
    transform: scale(1);
}

.connected-care-showcase .carousel-image.fade-out {
    opacity: 0;
    transform: scale(1.05);
}

/* Progress indicators */
.connected-care-showcase .progress-indicators {

    padding: 8px 12px;
}

.connected-care-showcase .progress-dot {
    transition: all var(--transition-duration) var(--transition-easing);
    cursor: pointer;
    position: relative;
}

.connected-care-showcase .progress-dot:hover {
    transform: scale(1.2);
}

.connected-care-showcase .progress-dot:active {
    transform: scale(0.9);
}

/* Progress dot active state animation */
.connected-care-showcase .progress-dot.w-8 {
    width: 2rem;
    border-radius: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .connected-care-showcase .feature-item {
        padding: 1rem;
    }
    
    .connected-care-showcase .image-carousel {
        min-height: 250px;
        max-height: 300px;
    }
    
    .connected-care-showcase .progress-indicators {
        bottom: 1rem;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .connected-care-showcase * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .connected-care-showcase .feature-item:hover {
        transform: none;
    }
    
    .connected-care-showcase .carousel-image {
        transition: opacity 0.2s ease-in-out;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .connected-care-showcase .feature-item.active {
        border-width: 3px;
    }
    
    .connected-care-showcase .progress-dot {
        border: 2px solid currentColor;
    }
}

/* Focus states for accessibility */
.connected-care-showcase .feature-item:focus-visible {
    outline: 2px solid #243A77;
    outline-offset: 2px;
}

.connected-care-showcase .progress-dot:focus-visible {
    outline: 2px solid #243A77;
    outline-offset: 2px;
}

/* Loading state */
.connected-care-showcase .image-carousel.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #243A77;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Policy Page List Marker Styling */
.policy-content ul li::marker {
    color: #d1d5db;
}

/* ===================================
   WordPress Content Formatting
   =================================== */

/* Base content container styling */
.wp-content,
.entry-content,
.content-area {
    font-family: 'Akkurat', sans-serif;
    line-height: 1.7;
    color: #374151;
}

/* Headings */
.wp-content h1,
.entry-content h1 {
    font-size: 2.25rem;
    font-weight: bold;
    color: #243A77;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.wp-content h2,
.entry-content h2 {
    font-size: 1.875rem;
    font-weight: bold;
    color: #243A77;
    margin-top: 1.75rem;
    margin-bottom: 0.875rem;
    line-height: 1.3;
}

.wp-content h3,
.entry-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #243A77;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.wp-content h4,
.entry-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #243A77;
    margin-top: 1.25rem;
    margin-bottom: 0.625rem;
    line-height: 1.4;
}

.wp-content h5,
.entry-content h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #243A77;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.wp-content h6,
.entry-content h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #243A77;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Paragraphs */
.wp-content p,
.entry-content p {
    margin-bottom: 1.25rem;
    font-size: 1rem;
    line-height: 1.7;
}

/* Links */
.wp-content a,
.entry-content a {
    color: #243A77;
    text-decoration: underline;
    text-decoration-color: #88D1D1;
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}
.underline {
    color: #243A77;
    text-decoration: underline;
    text-decoration-color: #88D1D1;
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}
.wp-content a:hover,
.entry-content a:hover {
    color: #1A2B5C;
    text-decoration-color: #243A77;
}

/* Lists */
.wp-content ul,
.entry-content ul {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.wp-content ol,
.entry-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    list-style-type: decimal;
}

.wp-content li,
.entry-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.wp-content ul ul,
.wp-content ol ol,
.entry-content ul ul,
.entry-content ol ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Nested list styling */
.wp-content ul ul,
.entry-content ul ul {
    list-style-type: circle;
}

.wp-content ul ul ul,
.entry-content ul ul ul {
    list-style-type: square;
}

/* Blockquotes */
.wp-content blockquote,
.entry-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid #88D1D1;
    background-color: rgba(136, 209, 209, 0.05);
    font-style: italic;
    color: #4B5563;
    border-radius: 0 0.375rem 0.375rem 0;
}

.wp-content blockquote p,
.entry-content blockquote p {
    margin-bottom: 0.75rem;
}

.wp-content blockquote p:last-child,
.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Code */
.wp-content code,
.entry-content code {
    background-color: #F3F4F6;
    color: #DC2626;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
}

.wp-content pre,
.entry-content pre {
    background-color: #1F2937;
    color: #F9FAFB;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
}

.wp-content pre code,
.entry-content pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
}

/* Tables */
.wp-content table,
.entry-content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    overflow: hidden;
}

.wp-content th,
.entry-content th {
    background-color: #F9FAFB;
    color: #243A77;
    font-weight: 600;
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
}

.wp-content td,
.entry-content td {
    padding: 0.75rem;
    border-bottom: 1px solid #F3F4F6;
}

.wp-content tr:last-child td,
.entry-content tr:last-child td {
    border-bottom: none;
}

.wp-content tr:nth-child(even),
.entry-content tr:nth-child(even) {
    background-color: #FAFAFA;
}

/* Images */
.wp-content img,
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.wp-content figure,
.entry-content figure {
    margin: 1.5rem 0;
    text-align: center;
}

.wp-content figcaption,
.entry-content figcaption {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6B7280;
    font-style: italic;
}

/* WordPress alignment classes */
.wp-content .alignleft,
.entry-content .alignleft {
    float: left;
    margin: 0 1.5rem 1rem 0;
}

.wp-content .alignright,
.entry-content .alignright {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

.wp-content .aligncenter,
.entry-content .aligncenter {
    display: block;
    margin: 1.5rem auto;
    text-align: center;
}

.wp-content .alignnone,
.entry-content .alignnone {
    margin: 1rem 0;
}

/* WordPress caption styling */
.wp-content .wp-caption,
.entry-content .wp-caption {
    max-width: 100%;
    margin: 1.5rem 0;
    text-align: center;
}

.wp-content .wp-caption img,
.entry-content .wp-caption img {
    margin: 0;
}

.wp-content .wp-caption-text,
.entry-content .wp-caption-text {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6B7280;
    font-style: italic;
}

/* Horizontal rules */
.wp-content hr,
.entry-content hr {
    margin: 2rem 0;
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #E5E7EB, transparent);
}

/* WordPress gallery */
.wp-content .gallery,
.entry-content .gallery {
    display: grid;
    grid-gap: 1rem;
    margin: 1.5rem 0;
}

.wp-content .gallery-columns-2,
.entry-content .gallery-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.wp-content .gallery-columns-3,
.entry-content .gallery-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.wp-content .gallery-columns-4,
.entry-content .gallery-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.wp-content .gallery-item,
.entry-content .gallery-item {
    text-align: center;
}

.wp-content .gallery-item img,
.entry-content .gallery-item img {
    margin: 0;
    border-radius: 0.375rem;
}

/* WordPress embeds */
.wp-content .wp-block-embed,
.entry-content .wp-block-embed {
    margin: 1.5rem 0;
}

.wp-content .wp-block-embed iframe,
.entry-content .wp-block-embed iframe {
    border-radius: 0.5rem;
}

/* Strong and emphasis */
.wp-content strong,
.wp-content b,
.entry-content strong,
.entry-content b {
    font-weight: bold;
    color: #243A77;
}

.wp-content em,
.wp-content i,
.entry-content em,
.entry-content i {
    font-style: italic;
}

/* Mark/highlight */
.wp-content mark,
.entry-content mark {
    background-color: rgba(136, 209, 209, 0.3);
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wp-content h1,
    .entry-content h1 {
        font-size: 1.875rem;
    }
    
    .wp-content h2,
    .entry-content h2 {
        font-size: 1.5rem;
    }
    
    .wp-content h3,
    .entry-content h3 {
        font-size: 1.25rem;
    }
    
    .wp-content .alignleft,
    .wp-content .alignright,
    .entry-content .alignleft,
    .entry-content .alignright {
        float: none;
        margin: 1rem auto;
        display: block;
        text-align: center;
    }
    
    .wp-content .gallery-columns-3,
    .wp-content .gallery-columns-4,
    .entry-content .gallery-columns-3,
    .entry-content .gallery-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wp-content table,
    .entry-content table {
        font-size: 0.875rem;
    }
    
    .wp-content th,
    .wp-content td,
    .entry-content th,
    .entry-content td {
        padding: 0.5rem;
    }
}
