@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  /* Base Colors */
  --color-primary: #364391;
  --color-secondary: #27aae0;
  --color-dark: #3e405b;
  --color-light: #f4f4f4;
  --color-bg-body: #e4e5e4;
  --color-light-gray: #ebecec;
  --color-border: #cccccc;
  --color-danger: #CC0000;

  /* Slate Color Scale */
  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-300: #cbd5e1;
  --color-slate-400: #94a3b8;
  --color-slate-500: #64748b;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-800: #1e293b;
  --color-slate-900: #0f172a;

  /* Secondary Shades (Blue) */
  --color-secondary-50: #f0f9ff;
  --color-secondary-100: #e0f2fe;
  --color-secondary-200: #bae6fd;
  --color-secondary-300: #7dd3fc;
  --color-secondary-400: #38bdf8;
  --color-secondary-500: #27aae0;
  --color-secondary-600: #0284c7;
  --color-secondary-700: #0369a1;
  --color-secondary-800: #075985;
  --color-secondary-900: #0c4a6e;

  /* Primary Shades (Indigo) */
  --color-primary-50: #f5f7ff;
  --color-primary-100: #e8ecfe;
  --color-primary-200: #c5d0fa;
  --color-primary-300: #92a6f2;
  --color-primary-400: #5d7ae8;
  --color-primary-500: #364391;
  --color-primary-600: #2c387d;
  --color-primary-700: #232e6a;
  --color-primary-800: #1a2457;
  --color-primary-900: #121b45;

  /* Shades Red Colors */
  --color-red-50: #ffebee;
  --color-red-100: #ffcdd2;
  --color-red-200: #ef9a9a;
  --color-red-300: #e57373;
  --color-red-400: #ef5350;
  --color-red-500: #f44336;
  --color-red-600: #e53935; 
  --color-red-700: #d32f2f;
  --color-red-800: #c62828;
  --color-red-900: #b71c1c;   

  /* Semantic Aliases (optional) */
  --color-text: var(--color-slate-800);
  --color-text-muted: var(--color-slate-500);
  --color-bg: var(--color-light);
  --color-border-light: var(--color-slate-200);

  /* Opacity Variants */
  --color-primary-100: rgba(54, 67, 145, 1);     /* 100% opacity */
  --color-primary-90: rgba(54, 67, 145, 0.9);    /* 90% opacity */
  --color-primary-80: rgba(54, 67, 145, 0.8);    /* 80% opacity */
  --color-primary-70: rgba(54, 67, 145, 0.7);    /* 70% opacity */
  --color-primary-60: rgba(54, 67, 145, 0.6);    /* 60% opacity */
  --color-primary-50: rgba(54, 67, 145, 0.5);    /* 50% opacity */
  --color-primary-40: rgba(54, 67, 145, 0.4);    /* 40% opacity */
  --color-primary-30: rgba(54, 67, 145, 0.3);    /* 30% opacity */
  --color-primary-20: rgba(54, 67, 145, 0.2);    /* 20% opacity */
  --color-primary-10: rgba(54, 67, 145, 0.1);    /* 10% opacity */

  --color-secondary-100: rgba(39, 170, 224, 1);   /* 100% opacity */
  --color-secondary-90: rgba(39, 170, 224, 0.9);  /* 90% opacity */
  --color-secondary-80: rgba(39, 170, 224, 0.8);  /* 80% opacity */
  --color-secondary-70: rgba(39, 170, 224, 0.7);  /* 70% opacity */
  --color-secondary-60: rgba(39, 170, 224, 0.6);  /* 60% opacity */
  --color-secondary-50: rgba(39, 170, 224, 0.5);  /* 50% opacity */
  --color-secondary-40: rgba(39, 170, 224, 0.4);  /* 40% opacity */
  --color-secondary-30: rgba(39, 170, 224, 0.3);  /* 30% opacity */
  --color-secondary-20: rgba(39, 170, 224, 0.2);  /* 20% opacity */
  --color-secondary-10: rgba(39, 170, 224, 0.1);  /* 10% opacity */
}

.main-nav-active {
  color: var(--color-secondary);
  font-weight: 600;
  background: var(--color-secondary-50);
}

.main-nav-active::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-secondary);
  transition: all 0.3s ease;
}

/* Water Animation Navigation Links */
.water-nav-link {
  position: relative;
  overflow: hidden;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.water-nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-secondary-20),
    var(--color-secondary-30),
    var(--color-secondary-20),
    transparent
  );
  transition: left 0.5s ease;
}

.water-nav-link:hover::before {
  left: 100%;
}

.water-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-secondary);
  transition: all 0.4s ease;
  transform: translateX(-50%);
}

.water-nav-link:hover::after,
.water-nav-link.active::after {
  width: 100%;
}

.water-nav-link.active::after {
  background: var(--color-secondary);
}

/* Water ripple effect for active and hover states */
.water-nav-link .ripple {
  position: absolute;
  border-radius: 50%;
  background: var(--color-secondary-20);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Enhanced water flow animation */
.water-nav-link:hover {
  color: var(--color-secondary);
  background: var(--color-secondary-10);
}

.water-nav-link.active {
  color: var(--color-secondary);
  background: var(--color-secondary-20);
  font-weight: 600;
}

.radial-pattern-container {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  opacity: 0.1;
  z-index: 0;
}

.radial-pattern {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: radial-gradient(circle, var(--color-primary-500) 1px, transparent 1px);
  background-size: 16px 16px;
}

.pillar-nav-link {
    position: relative;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-out;
    color: #64748b; /* slate-500 */
    min-width: 90px;
    text-decoration: none;
}

.pillar-nav-link.active {
    color: var(--color-primary-500); /* primary */
}

.pillar-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    margin-bottom: 0.5rem;
    background-color: #e8ecfe; /* primaryShades-100 */
    color: var(--color-primary-500); /* primary */
    transition: all 0.3s ease-out;
}

.pillar-nav-link:hover .pillar-nav-icon,
.pillar-nav-link.pillar_active .pillar-nav-icon {
    background: linear-gradient(to bottom right, var(--color-primary-500), var(--color-secondary)); /* primary to secondary */
    color: var(--color-slate-50);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.pillar-nav-text {
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.pillar-nav-link:hover .pillar-nav-text {
    font-weight: 600;
}

.pillar-nav-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0.25rem;
    background-color: transparent;
    transition: all 0.3s ease-out;
}

.pillar-nav-link.pillar_active .pillar-nav-indicator {
    width: 100%;
    background-color: var(--color-primary-500); /* primary */
}

/* Wave animation */
.wave-animation {
    animation: wave 8s linear infinite;
}
.delay-100 {
    animation-delay: 1s;
}
@keyframes wave {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Mobile menu overlay */
.mobile-menu-open {
    transform: translateX(0) !important;
}
.overlay-visible {
    display: block !important;
}

/* Gradient Button Styles */
.gradient-btn {
    background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-secondary) 100%);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(54, 67, 145, 0.2);
    color: var(--color-slate-50);
    transition: all 0.3s ease;
}

.gradient-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary-500) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gradient-btn span {
    position: relative;
    z-index: 8;
}

.gradient-btn:hover::before {
    opacity: 1;
}

.gradient-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 170, 224, 0.3);
}

/* Youtube Styles */
.youtube-btn {
    background: linear-gradient(135deg, var(--color-red-600) 0%, var(--color-danger) 100%);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(255, 0, 0, 0.2);
    font-weight: 600;
}

.youtube-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-danger) 0%, var(--color-red-600) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.youtube-btn:hover::before {
    opacity: 1;
}

.youtube-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.youtube-btn:active {
    transform: translateY(0);
}

/* Partner Styles */
.partner-card {
    transition: all 0.3s ease;
    will-change: transform;
    border: 1px solid rgba(0,0,0,0.05);
}

.partners-grid {
    perspective: 1000px;
}

 /* Base styles for both buttons */
#back-to-top, #whatsapp-chat {
    will-change: transform, opacity;
    border: 2px solid var(--color-slate-50);
}

/* Tooltip for WhatsApp button */
#whatsapp-chat::after {
    content: "Chat with us";
    position: absolute;
    right: 60px;
    white-space: nowrap;
    background: #333;
    color: var(--color-slate-50);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

#whatsapp-chat:hover::after {
    opacity: 1;
}

/* Water button effect */
.water-btn:hover::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    transform: scale(0);
    animation: ripple 1s ease-out;
    border-radius: 50%;
}

/* Card Grid Container */
  .card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
  }

  @media (min-width: 1024px) {
    .card-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  /* Individual Card */
  .card {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 
                0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
  }

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

  /* Image Section */
  .card-image-container {
    position: relative;
    height: 12rem;
    overflow: hidden;
    flex-shrink: 0;
  }

  .card-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }

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

  .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.7), transparent);
  }

  .card-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    color: white;
    z-index: 10;
  }

  /* Content Section */
  .card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }

  .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-slate-800); /* Normal state color */
    margin-bottom: 1rem;
    transition: color 0.3s ease;
  }

  .card:hover .card-title {
    color: var(--color-secondary-600); /* Hover state color - change to your desired hover color */
  }

  .card-description {
    color: var(--color-slate-600);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
  }

  .card-button {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-slate-300);
    color: var(--color-slate-700);
    background-color: white;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }

  .card:hover .card-button {
    background-color: var(--color-secondary-600); /* Hover state background */
    color: white;
    border-color: var(--color-secondary-600);
  }

  .card-button i {
    margin-left: 0.5rem;
    transition: inherit; /* Inherit parent's transition */
  }

  /* Photo Grid Container - Unique class name */
  .photo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
  }

  @media (min-width: 768px) {
    .photo-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  /* Photo Card - Unique class name */
  .photo-card {
    position: relative;
    height: 16rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
  }

  /* Photo Card Background */
  .photo-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
  }

  /* Photo Card Overlay */
  .photo-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.7), transparent);
    z-index: 2;
  }

  /* Photo Card Content - Unique class names */
  .photo-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: white;
    z-index: 3;
  }

  .photo-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }

  .photo-card-description {
    font-size: 0.875rem;
    opacity: 0.9;
  }

  /* Blog Grid Container */
  .blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
  }

  @media (min-width: 768px) {
    .blog-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  /* Blog Card */
  .blog-card {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 
                0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: none;
  }

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

  /* Image Container */
  .blog-image-container {
    position: relative;
    height: 12rem;
    overflow: hidden;
  }

  .blog-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
  }

  .blog-card:hover .blog-image {
    transform: scale(1.05);
  }

  .blog-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.7), transparent);
  }

  .blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--color-secondary-600);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
  }

  /* Card Content */
  .blog-content {
    padding: 1.5rem;
  }

  .blog-meta {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    color: var(--color-slate-500);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
  }

  .blog-meta i {
    margin-right: 0.3rem;
  }

  .blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-slate-800);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
  }

  .blog-card:hover .blog-title {
    color: var(--color-secondary-600);
  }

  .blog-excerpt {
    color: var(--color-slate-600);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }

  /* Button */
  .blog-button {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--color-slate-300);
    color: var(--color-slate-700);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }

  .blog-card:hover .blog-button {
    background-color: var(--color-secondary-600);
    color: white;
    border-color: var(--color-secondary-600);
  }

  .blog-button i {
    margin-left: 0.5rem;
    font-size: 1rem;
  }

    /* Hero Section Base Styles */
  .hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--color-slate-800), var(--color-slate-700), var(--color-primary));
    color: white;
    overflow: hidden;
    width: 100%;
  }

  /* Wave Animation */
  .wave-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
  }

  .wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8rem;
    background-color: var(--color-secondary);
    opacity: 0.2;
    animation: wave 8s linear infinite;
  }

  .wave-2 {
    height: 6rem;
    opacity: 0.15;
    animation-delay: 1s;
  }

  @keyframes wave {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
  }

  /* Video Background */
  .video-background {
    position: absolute;
    inset: 0;
    z-index: 5;
  }

  .video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
  }

  .video-fallback {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
  }

  /* Hero Content */
  .hero-content {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 8rem 1rem;
    z-index: 10;
  }

  .hero-inner {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
  }

  /* Typography */
  .hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-slate-200);
    line-height: 1.5;
    margin-bottom: 2rem;
  }

  .hero-subtitle span {
    display: block;
    color: var(--color-secondary);
  }

  @media (min-width: 768px) {
    .hero-title {
      font-size: 3.75rem;
    }
    .hero-subtitle {
      font-size: 1.5rem;
    }
  }

  /* Buttons */
  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
  }

  @media (min-width: 640px) {
    .hero-buttons {
      flex-direction: row;
    }
  }

  .hero-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 2rem;
    font-size: 1.125rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
  }

  .hero-button-1 {
    background-color: var(--color-secondary);
    color: var(--color-slate-50);
  }

  .hero-button-1:hover {
    background-color: color-mix(in srgb, var(--color-secondary), var(--color-slate-50) 10%);
    transform: scale(1.05);
  }

  .hero-button-2 {
    border: 2px solid var(--color-slate-50);
    color: var(--color-slate-50);
  }

  .hero-button-2:hover {
    background-color: var(--color-slate-50);
    color: var(--color-primary);
    transform: scale(1.05);
  }

  .hero-button i {
    margin-left: 0.5rem;
    font-size: 1.25rem;
  }

  /* Stats */
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 4rem;
  }

  @media (min-width: 768px) {
    .hero-stats {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .stat-icon {
    background-color: color-mix(in srgb, var(--color-secondary), transparent 80%);
    padding: 1rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
  }

  .stat-icon i {
    font-size: 1.25rem;
    color: var(--color-secondary);
  }

  .stat-number {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-secondary);
  }

  .stat-label {
    color: var(--color-slate-300);
  }

.floating-buttons {
    position: fixed;
    right: 1.5rem; /* 6 */
    bottom: 1.5rem; /* 6 */
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 1rem; /* space-y-4 equivalent */
    align-items: flex-end;
}

.back-to-top-btn {
    padding: 0.75rem; /* p-3 */
    color: var(--color-slate-50);
    border-radius: 9999px; /* rounded-full */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 
                0 10px 10px -5px rgba(0, 0, 0, 0.04); /* shadow-xl */
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    transform: scale(1);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%); /* gradient-btn */
    border: none;
    cursor: pointer;
}

.btn-background {
    color: var(--color-slate-50);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%); /* gradient-btn */
    border: none;
    cursor: pointer;
}

.btn-background:hover {
    transform: scale(1.05);
}

.back-to-top-btn:hover {
    transform: scale(1.05);
}

.back-to-top-btn i {
    font-size: 1.25rem; /* icon-lg */
}

/* Resources Styles */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.drawer-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.resource-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 500px;
    height: 100vh;
    background-color: white;
    z-index: 9999;
    overflow-y: auto;
    transition: right 0.3s ease;
}
.resource-drawer.active {
    right: 0;
}
@media (max-width: 640px) {
    .resource-drawer {
        width: 100%;
        max-width: 100%;
    }
}

/* Select2 custom styles */
.select2-container--bootstrap-5 .select2-selection {
    min-height: 48px;
    padding: 8px 12px;
    border: 1px solid #cccccc !important;
    border-radius: 8px !important;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    padding-left: 0;
    color: #3e405b;
}

.select2-container--bootstrap-5 .select2-dropdown {
    border: 1px solid #cccccc;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    height: 46px;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    box-shadow: 0 0 0 2px var(--color-secondary-300) !important;
    border-color: var(--color-secondary-100) !important;
}

.select2-container--bootstrap-5 .select2-results__option--selected {
    background-color: #e8ecfe !important;
    color: #364391 !important;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted {
    background-color: #364391 !important;
    color: white !important;
}

/* WhatsApp Button */
.whatsapp-btn {
    width: 3.5rem; /* w-14 */
    height: 3.5rem; /* h-14 */
    background-color: #25D366;
    color: white;
    border-radius: 9999px; /* rounded-full */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 
                0 10px 10px -5px rgba(0, 0, 0, 0.04); /* shadow-xl */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    transform: scale(1);
}

.whatsapp-btn:hover {
    background-color: #128C7E; /* hover:bg-[#128C7E] */
    transform: scale(1.05); /* hover:scale-105 */
}

.whatsapp-btn i {
    font-size: 1.5rem; /* text-2xl */
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .pillar-nav-link {
        padding: 0.5rem 0.75rem;
        min-width: 80px;
    }
    .pillar-nav-icon {
        width: 2rem;
        height: 2rem;
    }
    .pillar-nav-text {
        font-size: 0.75rem;
    }
}

/* KSP Landing Page Styles */
/* Hero Section Styles */
.ksp-hero-section {
    position: relative;
    height: 100vh;
    max-height: 800px;
    overflow: hidden;
    background-color: var(--color-slate-50);
}

.ksp-slides-container {
    position: absolute;
    inset: 0;
    display: flex;
}

.ksp-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
}

/* Enhanced Video Overlay Styles */
.ksp-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0.6) 0%, 
        rgba(0, 0, 0, 0.45) 30%, 
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 1;
}

/* Darker overlay for better text contrast */
.ksp-slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(
        to top, 
        rgba(0, 0, 0, 0.7) 0%, 
        transparent 100%
    );
    z-index: 1;
}

/* Adjust text positioning for better visibility */
.ksp-text-content {
    position: relative;
    z-index: 2;
    padding-bottom: 2rem; /* Give space for the bottom gradient */
}

/* Make text brighter */
.ksp-headline,
.ksp-subhead {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ksp-description {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.ksp-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Navigation Arrows */
.ksp-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: var(--color-secondary);
    color: var(--color-slate-50);
    border-radius: 50%;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.ksp-nav-arrow:hover {
    background-color: var(--color-secondary);
}

.ksp-arrow-left {
    left: 1rem;
}

.ksp-arrow-right {
    right: 1rem;
}

.ksp-arrow-icon {
    width: 2rem;
    height: 2rem;
}

/* Slider Controls */
.ksp-slider-controls {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    z-index: 10;
}

.ksp-slider-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    transition: background-color 0.3s ease;
}

.ksp-slider-dot:hover {
    background-color: var(--color-slate-50);
}

/* Knowledge Platform Section */
.ksp-platform-section {
    position: relative;
    padding: 5rem 0;
    background-color: var(--color-slate-50);
}

.ksp-dotted-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.1;
    z-index: 0;
    background-image: radial-gradient(var(--color-primary) 1px, transparent 1px);
    background-size: 16px 16px;
}

.ksp-platform-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
}

.ksp-section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.ksp-section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
}

.ksp-section-description {
    font-size: 1.25rem;
    color: var(--color-slate-500);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.ksp-platform-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    width: 100%;
}

@media (min-width: 1024px) {
    .ksp-platform-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ksp-platform-card {
    border: 1px solid var(--color-slate-200);
    overflow: hidden;
    background-color: var(--color-slate-50);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.ksp-platform-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.ksp-card-image-container {
    position: relative;
    height: 12rem;
    overflow: hidden;
}

.ksp-card-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.ksp-platform-card:hover .ksp-card-image {
    transform: scale(1.05);
}

.ksp-card-image-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to top, rgba(62, 64, 91, 0.7), transparent);
}

.ksp-card-stats {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    color: var(--color-slate-50);
}

.ksp-card-icon {
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.5rem;
}

.ksp-card-stat-text {
    font-size: 0.875rem;
    font-weight: 500;
}

.ksp-card-content {
    padding: 1.5rem;
}

.ksp-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.ksp-platform-card:hover .ksp-card-title {
    color: var(--color-primary);
}

.ksp-card-text {
    color: var(--color-slate-500);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.ksp-card-btn {
    width: 100%;
    border: 1px solid var(--color-slate-300);
    color: var(--color-dark);
    padding: 0.5rem 0;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ksp-platform-card:hover .ksp-card-btn {
    background-color: var(--color-secondary);
    color: var(--color-slate-50);
    border-color: var(--color-secondary);
}

/* Learning Hub Landing Page Styles */
.course-card {
    transition: all 0.3s ease;
    border: 1px solid var(--color-slate-200);
}

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

.pillar-category {
    transition: all 0.3s ease;
}

.pillar-category:hover {
    transform: scale(1.03);
}

.gradient-btn {
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.gradient-btn:hover {
    background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-primary) 100%);
}

.school-header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1501504905252-473c47e087f8?q=80&w=1548&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
}

.notebook-paper {
    background-image: linear-gradient(var(--color-slate-100) 1px, transparent 1px);
    background-size: 100% 2rem;
    line-height: 2rem;
    padding: 1rem 2rem;
    background-color: var(--color-slate-50);
}

.search-box {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Networking Corner Landing Page Styles */
.network-card {
    transition: all 0.3s ease;
    border: 1px solid var(--color-slate-200);
}

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

.forum-category {
    background: var(--color-primary);
}

.discussion-card {
    transition: all 0.2s ease;
}

.discussion-card:hover {
    background-color: var(--color-slate-100);
}

.gradient-btn {
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.gradient-btn:hover {
    color: var(--color-slate-50);
    background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-primary) 100%);
}

/* Discussion Forum Styles */
.discussion-card {
    transition: all 0.2s ease;
}

.discussion-card:hover {
    background-color: var(--color-slate-100);
}

.reply-card {
    transition: all 0.2s ease;
    border-left: 3px solid var(--color-slate-200);
}

.reply-card:hover {
    border-left-color: var(--color-secondary);
}

.active-tab {
    border-bottom: 3px solid var(--color-primary);
    color: var(--color-primary);
    font-weight: 600;
}

/* Authentication Page Styling */
.auth-container {
    max-width: 28rem;
    margin: 0 auto;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--color-slate-500);
}

.gradient-btn {
    background: linear-gradient(90deg, var(--color-primary-500) 0%, var(--color-secondary) 100%);
}

.gradient-btn:hover {
    background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-primary-500) 100%);
}

.divider::before, .divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--color-slate-50);
}

.divider::before {
    margin-right: 1rem;
}

.divider::after {
    margin-left: 1rem;
}

.google-btn {
    transition: all 0.3s ease;
}

.google-btn:hover {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.sidebar-active {
  background: var(--color-primary-500);
  color: var(--color-slate-50);
  border-radius: 8px;
}

.sidebar-active span,
.sidebar-active>.sidebar-icon {
    color: var(--color-slate-50);
}

/* Sidebar Footer Positioning Fix */
#sidebar {
    height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
}

#sidebar nav {
    flex: 1 !important;
    overflow-y: auto !important;
}

#sidebar .p-4.border-t {
    margin-top: auto !important;
}

/* DataTable styling */
#resourcesTable td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#resourcesTable td:first-child {
    max-width: 150px !important;
}

.tab-content {
    padding: 0 !important;
}

.data-table thead th {
    text-align: left !important;
}

.data-table thead th.dt-left {
    text-align: left;
}

/* Striped rows */
.data-table tbody tr:nth-child(even) {
    background-color: var(--color-primary-10) !important;
}

.data-table tbody tr:hover {
    background-color: var(--color-primary-30) !important;
}

/* Button styling */
.dt-buttons .dt-button {
    background: linear-gradient(to bottom, var(--color-secondary) 0%, var(--color-primary-500) 100%) !important;
    color: var(--color-slate-50) !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    margin-right: 8px !important;
    transition: background-color 0.2s ease;
}

.dt-buttons .dt-button:hover {
    background: linear-gradient(to bottom, var(--color-primary-500) 0%, var(--color-secondary) 100%) !important;
}

/* Pagination styling */
.dataTables_paginate .paginate_button {
    padding: 6px 12px !important;
    margin: 0 4px !important;
    border-radius: 6px !important;
    border: 1px solid var(--color-slate-200) !important;
}

.dataTables_paginate .paginate_button.current {
    background: var(--color-primary-500) !important;
    color: var(--color-slate-50) !important;
    border-color: var(--color-primary-500) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    color: var(--color-slate-50) !important;
    border: none !important;
    background-color: var(--color-primary-500) !important;
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, var(--color-secondary)), color-stop(100%, var(--color-primary-500))) !important;
    background: -webkit-linear-gradient(top, var(--color-secondary) 0%, var(--color-primary-500) 100%) !important;
    background: -moz-linear-gradient(top, var(--color-secondary) 0%, var(--color-primary-500) 100%) !important;
    background: -ms-linear-gradient(top, var(--color-secondary) 0%, var(--color-primary-500) 100%) !important;
    background: -o-linear-gradient(top, var(--color-secondary) 0%, var(--color-primary-500) 100%) !important;
    background: linear-gradient(to bottom, var(--color-secondary) 0%, var(--color-primary-500) 100%) !important;
}

/* Table header styling */
.data-table thead th {
    background-color: var(--color-primary-500); /* Your primary color */
    color: var(--color-slate-50);
    padding: 12px 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
    border: none;
}

/* Header hover effect */
.data-table thead th:hover {
    background-color: var(--color-primary-500); /* Darker shade of primary */
}

/* Remove default DataTables sorting icons */
.data-table thead th.sorting:after,
.data-table thead th.sorting_asc:after,
.data-table thead th.sorting_desc:after {
    color: var(--color-slate-50);
}

/* Add custom sorting indicators */
.data-table thead th.sorting:after {
    content: "⇅";
    opacity: 0.6;
    margin-left: 8px;
}

.data-table thead th.sorting_asc:after {
    content: "↑";
    opacity: 1;
    margin-left: 8px;
}

.data-table thead th.sorting_desc:after {
    content: "↓";
    opacity: 1;
    margin-left: 8px;
}

/* Export buttons styling */
.btn-export {
    background-color: var(--color-primary-500) !important;
    color: var(--color-slate-50) !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    margin-right: 8px !important;
    transition: all 0.2s ease;
    display: inline-flex !important;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
}

.btn-export:hover {
    background-color: var(--color-primary-500) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Button icons */
.btn-export i {
    margin-right: 6px;
}

/* Search input styling */
.dataTables_filter input {
    border: 1px solid var(--color-slate-50) !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    margin-left: 8px !important;
    transition: all 0.2s ease;
    background-color: var(--color-light) !important;
    width: 250px !important;
    font-size: 0.875rem;
    color: var(--color-slate-700);
}

.dataTables_filter input:focus {
    outline: none;
    border-color: none !important;
    box-shadow: 0 0 0 3px rgba(54, 67, 145, 0.1);
}

.dataTables_filter label {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--color-slate-700) !important;
}

/* Show entries dropdown styling */
.dataTables_length select {
    border: 1px solid var(--color-slate-50) !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    margin: 0 8px !important;
    background-color: var(--color-slate-50);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    color: var(--color-slate-700);
    width: 100px !important; /* Fixed width for select */
}

.dataTables_length select:focus {
    outline: none;
    border-color: var(--color-primary-500) !important;
    box-shadow: 0 0 0 3px rgba(54, 67, 145, 0.1);
}

.dataTables_length label {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--color-slate-700);
}

/* Container layout */
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length {
    margin-bottom: 16px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_length {
        width: 100%;
        margin-bottom: 12px;
    }
    
    .dataTables_filter input {
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: 8px;
    }
    
    .dataTables_length select {
        margin: 8px 0 !important;
    }
}

table.dataTable.no-footer {
    border-bottom: 1px solid var(--color-slate-50) !important;
}

.menu-header {
    background-color: var(--color-red-600);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    color: var(--color-slate-50);
}

.menu-header i {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.menu-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.menu-content {
    padding: 16px;
    font-size: 13px;
    color: var(--color-slate-700);
}

.menu-content p {
    margin: 0 0 12px 0;
}

.warning-banner {
    display: flex;
    align-items: center;
    background-color: #fffbeb !important;
    color: #92400e;
    padding: 8px;
    border-radius: 4px;
    font-size: 12px;
    gap: 8px;
}

.warning-banner i {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    flex-shrink: 0;
}

.menu-footer {
    background-color: #f9fafb;
    padding: 8px 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
}

.admin-link {
    color: var(--color-red-600);
    font-size: 12px;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
}

.admin-link:hover {
    color: var(--color-red-700);
    text-decoration: underline;
}

/* Floating Animation */
@keyframes float {
  0%, 100% {
      transform: translateY(0);
  }
  50% {
      transform: translateY(-10px);
  }
}

#adminMenuButton {
  animation: float 3s ease-in-out infinite;
  will-change: transform;
}

/* Optional: Add wave effect on hover */
@keyframes wave {
  0%, 100% {
      transform: rotate(0deg);
  }
  25% {
      transform: rotate(-5deg);
  }
  75% {
      transform: rotate(5deg);
  }
}

#adminMenuButton:hover {
  animation: float 3s ease-in-out infinite, wave 1.5s ease-in-out infinite;
}

.alert {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    display: flex;
    align-items: self-start;
    gap: 0.5rem;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
}

/* Modal Styles */
.modal-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.modal-icon-container {
    margin: 0 auto 1rem auto;
}

.modal-title {
    font-weight: 700;
    text-align: left;
    width: 100%;
}

/* For larger screens */
@media (min-width: 640px) {
    .modal-header {
        flex-direction: row;
        align-items: flex-start;
    }

    .modal-icon-container {
        margin: 0 1rem 0 0;
    }
}

.modal-icon-container {
    margin: 0 auto 1rem auto;
}

.modal-title {
    font-weight: 700;
    text-align: left;
    width: 100%;
}

/* For larger screens */
@media (min-width: 640px) {
    .modal-header {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .modal-icon-container {
        margin: 0 1rem 0 0; /* Right margin only on larger screens */
    }
}

/* Fix Summernote fullscreen mode */
.note-editor.note-frame.fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1050 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: var(--color-slate-50) !important;
    border: none !important;
}

.note-editor.note-frame.fullscreen .note-editing-area {
    background: var(--color-slate-50) !important;
}

.note-editor.note-frame.fullscreen .note-statusbar {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: var(--color-slate-50) !important;
}

/* Fix for the editable content area */
.note-editor.note-frame.fullscreen .note-editable {
    background: var(--color-slate-50) !important;
    padding: 20px !important;
    margin: 0 auto !important;
}

/* Fix modal and dropdown z-index */
.note-modal {
    z-index: 1051 !important;
    background: rgba(0,0,0,0.4) !important;
}

.note-dropdown-menu {
    z-index: 1052 !important;
}

.note-toolbar {
    padding: 10px 5px;
    color: var(--color-dark) !important;
    background-color: var(--color-secondary-50) !important;
    border-color: var(--color-slate-300) !important;
}

.note-btn {
    color: var(--color-secondary) !important;
    border: none !important;
}

.note-btn.active, .note-btn.focus, .note-btn:active, .note-btn:focus, .note-btn:hover {
    background-color: #e0f1fa !important;
}

.note-editor.note-airframe .note-statusbar .note-resizebar, .note-editor.note-frame .note-statusbar .note-resizebar {
    background: #dff0f9 !important;
}

.note-editor.note-airframe, .note-editor.note-frame {
    border: 1px solid rgb(158 213 240) !important;
}

.note-editor.note-airframe .note-statusbar, .note-editor.note-frame .note-statusbar {
    border-top: 1px solid rgb(158 213 240) !important;
}

/* jQuery UI Datepicker */
.ui-widget.ui-widget-content {
    border: 1px solid #27abe0 !important;
}

.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default, .ui-button, html .ui-button.ui-state-disabled:hover, html .ui-button.ui-state-disabled:active {
    border: none !important;
    background: #f0f7fa !important;
    color: #374391 !important;
}

.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active, a.ui-button:active, .ui-button:active, .ui-button.ui-state-active:hover {
    border: 1px solid #374391 !important;
    background: #374391 !important;
    color: #ffffff !important;
}

.ui-widget-header {
    border: 1px solid #26ace0 !important;
    background: #e4f2f9 !important;
    color: #27abe0 !important;
    font-weight: bold !important;
}

.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {
    border: none !important;
    background: #26ace0 !important;
    color: #ffffff !important;
}

/* FAQs Styles */  
.faq-item {
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-item[open] {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #c5d0fa;
}

.faq-question {
    padding: 20px 24px;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #364391;
    transition: background-color 0.2s ease;
    list-style: none; /* Remove default arrow in Firefox */
}

/* Hide default marker for summary in Webkit */
.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question:hover {
    background-color: #f8fafc;
}

.faq-item[open] .faq-question {
    background-color: #f5f7ff;
    border-bottom: 1px solid #e2e8f0;
}

.faq-icon {
    transition: transform 0.3s ease;
    color: #27aae0;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    color: #475569;
    line-height: 1.6;
}

.faq-item[open] .faq-answer {
    padding: 20px 24px;
    max-height: 500px;
}

.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto 40px;
}

.search-input {
    width: 100%;
    padding: 16px 24px 16px 48px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    font-size: 16px;
    color: #334155; /* Ensure text is visible */
}

.search-input:focus {
    outline: none;
    border-color: #27aae0;
    box-shadow: 0 4px 12px rgba(39, 170, 224, 0.15);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.category-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.category-btn {
    padding: 10px 20px;
    border-radius: 50px;
    background: white;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 14px;
}

.category-btn:hover, .category-btn.active {
    background: #364391;
    color: white;
    border-color: #364391;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #64748b;
    display: none;
}

.water-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.water-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

.water-wave .shape-fill {
    fill: #FFFFFF;
}

.gradient-bg {
    background: linear-gradient(135deg, #364391 0%, #27aae0 100%);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.floating-icon {
    animation: float 5s ease-in-out infinite;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 24px;
}

/* Chevron icon styling */
.chevron-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.chevron-icon::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translate(-50%, -50%) rotate(45deg);
    transition: transform 0.3s ease;
}

.faq-item[open] .chevron-icon::before {
    transform: translate(-50%, -50%) rotate(-135deg);
}

.governance-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    border-left: 4px solid #27aae0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.governance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(54, 67, 145, 0.15);
    border-left: 4px solid #364391;
}

.governance-icon {
    font-size: 2.5rem;
    color: #364391;
    background: linear-gradient(135deg, #e6f3fa 0%, #ffffff 100%);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.hero-pattern {
    background-image: radial-gradient(#27aae033 1px, transparent 1px);
    background-size: 20px 20px;
}

.gradient-text {
    background: linear-gradient(135deg, #364391 0%, #27aae0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.pulse {
    animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #27aae0, transparent);
    margin: 3rem 0;
}

.sticky-nav {
    position: sticky;
    top: 80px;
    z-index: 10;
}

.nav-indicator {
    position: relative;
}

.nav-indicator::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: #27aae0;
    transition: width 0.3s ease;
}

.nav-indicator:hover::after {
    width: 100%;
}

.nav-indicator.active::after {
    width: 100%;
}

/* Media Queries */
@media (max-width: 640px) {
    .governance-card {
        margin-bottom: 1rem;
    }
    .subscribe-input {
        flex-direction: column;
        gap: 1rem;
    }
    .subscribe-input input,
    .subscribe-input button {
        width: 100%;
    }
    .nav-links {
        display: none;
    }
    .mobile-menu {
        display: block;
    }
    #governance h1 {
        font-size: 2rem;
    }
    #governance p {
        font-size: 0.875rem;
    }
    .grid-cols-3,
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .governance-card {
        padding: 1rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    #governance h1 {
        font-size: 3rem;
    }
    #governance p {
        font-size: 1rem;
    }
    .governance-card {
        padding: 1.5rem;
    }
}

@media (min-width: 1025px) {
    #governance h1 {
        font-size: 4rem;
    }
    #governance p {
        font-size: 1.125rem;
    }
    .governance-card {
        padding: 2rem;
    }
}