* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Kanit', sans-serif;
    background: linear-gradient(135deg, #F8F9FA 0%, #E8EBED 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding-top: 60px;
    position: relative;
    overflow-x: hidden;
}

/* Decorative background elements */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.05) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 184, 148, 0.05) 0%, transparent 70%);
    animation: float 25s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 0;
}

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

/* Performance optimization */
* {
    -webkit-tap-highlight-color: transparent;
}

img {
    content-visibility: auto;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Navigation Bar */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #6C5CE7 0%, #5F4FD1 50%, #5543CC 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    color: white;
    padding: 12px 0;
    box-shadow: 0 2px 12px rgba(108, 92, 231, 0.3);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    cursor: pointer;
    transition: opacity 0.2s;
}

.nav-title:hover {
    opacity: 0.8;
}

.nav-breadcrumb {
    font-size: 14px;
    opacity: 0.9;
}

.nav-home-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
}

.nav-home-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.nav-register-btn {
    background: linear-gradient(135deg, #FFD93D 0%, #FFC107 100%);
    border: none;
    color: #2D3436;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Kanit', sans-serif;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
    position: relative;
    overflow: hidden;
}

.nav-register-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.nav-register-btn:hover::before {
    width: 300px;
    height: 300px;
}

.nav-register-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5);
    animation: pulse 1s ease-in-out infinite;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page {
    display: none;
    will-change: auto;
}

.page.active {
    display: block;
}

/* Home Page */
.home-header {
    background: linear-gradient(135deg, #6C5CE7 0%, #5F4FD1 100%);
    color: white;
    padding: 40px 0 60px;
    border-radius: 0 0 40px 40px;
    margin-bottom: 40px;
    margin-top: -60px;
    padding-top: 100px;
}

.header-content {
    text-align: center;
    animation: slideInDown 0.8s ease-out;
    position: relative;
}

.header-content::before {
    content: '✨';
    position: absolute;
    top: -30px;
    left: 20%;
    font-size: 40px;
    animation: float 3s ease-in-out infinite;
    opacity: 0.6;
}

.header-content::after {
    content: '🎯';
    position: absolute;
    top: -20px;
    right: 20%;
    font-size: 40px;
    animation: float 3s ease-in-out infinite 1.5s;
    opacity: 0.6;
}

.welcome-text {
    font-size: 16px;
    margin: 0 0 8px 0;
    opacity: 0.9;
}

.main-title {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 12px 0;
    background: linear-gradient(135deg, #ffffff 0%, #FFD93D 50%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

.subtitle {
    font-size: 18px;
    margin: 0;
    opacity: 0.9;
}

.page-content {
    padding-bottom: 60px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #2D3436;
    margin: 0 0 20px 0;
}

.categories-section {
    margin-bottom: 40px;
}

.categories-grid {
    display: grid;
    gap: 20px;
}

/* Category Card */
.category-card {
    display: block;
    text-decoration: none;
    border-radius: 16px;
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: slideInUp 0.5s ease-out backwards;
}

.category-card:nth-child(1) {
    animation-delay: 0.1s;
}

.category-card:nth-child(2) {
    animation-delay: 0.2s;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.category-card-content {
    display: flex;
    padding: 24px;
    gap: 20px;
}

.category-icon {
    font-size: 56px;
    flex-shrink: 0;
    animation: bounce 2s ease-in-out infinite;
    display: inline-block;
    transition: transform 0.3s;
}

.category-card:hover .category-icon {
    transform: rotate(10deg) scale(1.2);
    animation: none;
}

.category-text {
    flex: 1;
    color: white;
}

.category-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: white;
}

.category-title-en {
    font-size: 14px;
    margin: 0 0 12px 0;
    opacity: 0.9;
    color: white;
}

.category-description {
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 12px 0;
    opacity: 0.95;
    color: white;
}

.category-count {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
    color: white;
}

/* Info Section */
.info-section {
    margin-bottom: 60px;
}

.info-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.1);
    transition: all 0.3s;
    animation: fadeInScale 0.6s ease-out;
}

.info-card:hover {
    box-shadow: 0 8px 32px rgba(108, 92, 231, 0.15);
    transform: translateY(-4px);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    font-size: 16px;
    color: #2D3436;
    transition: transform 0.2s;
    animation: slideInLeft 0.4s ease-out backwards;
}

.info-item:nth-child(1) { animation-delay: 0.1s; }
.info-item:nth-child(2) { animation-delay: 0.2s; }
.info-item:nth-child(3) { animation-delay: 0.3s; }

.info-item:hover {
    transform: translateX(8px);
}

.info-icon {
    font-size: 20px;
    color: #00B894;
    font-weight: bold;
    flex-shrink: 0;
    background: rgba(0, 184, 148, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

/* Footer */
.home-footer {
    margin-top: auto;
    background: linear-gradient(135deg, #2D3436 0%, #1e272e 100%);
    color: white;
    padding: 24px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.home-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #6C5CE7, #00B894, #FFD93D, transparent);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.home-footer p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

.footer-link {
    color: #FFD93D;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FFD93D;
    transition: width 0.3s;
}

.footer-link:hover::after {
    width: 100%;
}

.footer-link:hover {
    color: #FFC107;
    transform: translateY(-2px);
}

/* CTA Section */
.cta-section {
    margin-bottom: 60px;
}

.cta-card {
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.cta-content {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

.cta-icon {
    font-size: 64px;
    flex-shrink: 0;
    animation: bounce 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.cta-text {
    color: white;
}

.cta-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: white;
}

.cta-description {
    font-size: 16px;
    margin: 0;
    opacity: 0.95;
    line-height: 1.6;
}

.cta-button {
    background: linear-gradient(135deg, #FFD93D 0%, #FFC107 100%);
    color: #2D3436;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(255, 193, 7, 0.6);
    animation: pulse 1s ease-in-out infinite;
}

/* Category Page */
.category-header {
    padding: 24px 0 40px;
    color: white;
    border-radius: 0 0 40px 40px;
    margin-bottom: 32px;
    margin-top: -60px;
    padding-top: 84px;
}

.back-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 16px;
    font-family: 'Kanit', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.category-header-content {
    text-align: center;
}

.category-header-icon {
    font-size: 72px;
    display: block;
    margin-bottom: 16px;
    animation: bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.category-header-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.category-header-description {
    font-size: 16px;
    margin: 0;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.category-content {
    max-width: 800px;
    margin: 0 auto;
}

.category-intro {
    margin-bottom: 24px;
}

.content-title {
    font-size: 24px;
    font-weight: 700;
    color: #2D3436;
    margin: 0 0 8px 0;
}

.content-subtitle {
    font-size: 15px;
    color: #636E72;
    margin: 0;
}

/* Insurance Card */
.insurance-card {
    display: block;
    text-decoration: none;
    background: white;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    animation: slideInLeft 0.4s ease-out backwards;
}

.insurance-card:nth-child(1) { animation-delay: 0.05s; }
.insurance-card:nth-child(2) { animation-delay: 0.1s; }
.insurance-card:nth-child(3) { animation-delay: 0.15s; }
.insurance-card:nth-child(4) { animation-delay: 0.2s; }
.insurance-card:nth-child(5) { animation-delay: 0.25s; }
.insurance-card:nth-child(6) { animation-delay: 0.3s; }
.insurance-card:nth-child(7) { animation-delay: 0.35s; }

.insurance-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, #6C5CE7, #00B894);
    transition: height 0.3s;
    transform: translateY(-50%);
}

.insurance-card:hover::after {
    height: 80%;
}

.insurance-card:hover {
    transform: translateX(8px) scale(1.02);
    box-shadow: -4px 8px 20px rgba(108, 92, 231, 0.15);
    background: linear-gradient(to right, #f8f9ff 0%, #ffffff 100%);
}

.insurance-card-content {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 16px;
}

.insurance-icon {
    font-size: 40px;
    flex-shrink: 0;
    transition: transform 0.3s;
    display: inline-block;
}

.insurance-card:hover .insurance-icon {
    transform: scale(1.3) rotate(-10deg);
    animation: wiggle 0.5s ease-in-out;
}

.insurance-text {
    flex: 1;
}

.insurance-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #2D3436;
}

.insurance-short-description {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    color: #636E72;
}

.insurance-arrow {
    font-size: 32px;
    color: #B2BEC3;
    flex-shrink: 0;
    margin-left: 8px;
    transition: all 0.3s;
}

.insurance-card:hover .insurance-arrow {
    color: #6C5CE7;
    transform: translateX(8px);
    animation: bounce 0.6s ease-in-out;
}

/* Detail Page */
.detail-header {
    background: white;
    padding: 16px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-top: -60px;
    padding-top: 76px;
}

/* Back to Category Button */
.back-to-category-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border: 2px solid #6C5CE7;
    color: #6C5CE7;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Kanit', sans-serif;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.15);
}

.back-to-category-btn:hover {
    background: linear-gradient(135deg, #6C5CE7 0%, #5F4FD1 100%);
    color: white;
    transform: translateX(-4px) scale(1.02);
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.3);
}

.back-to-category-btn:active {
    transform: translateX(-2px) scale(0.98);
}

.back-arrow {
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.3s;
}

.back-to-category-btn:hover .back-arrow {
    transform: translateX(-4px);
    animation: bounceLeft 0.6s ease-in-out;
}

.back-text {
    line-height: 1;
}

@keyframes bounceLeft {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-8px);
    }
}

.detail-content {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 32px;
}

.detail-intro {
    background: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 32px;
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.15);
    position: relative;
    overflow: hidden;
    animation: fadeInScale 0.6s ease-out;
}

.detail-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(108, 92, 231, 0.1), transparent);
    animation: shimmerSlide 3s ease-in-out infinite;
}

@keyframes shimmerSlide {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

.detail-icon {
    font-size: 80px;
    display: block;
    margin-bottom: 20px;
    animation: bounce 2.5s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(108, 92, 231, 0.3));
    transition: transform 0.5s;
}

.detail-intro:hover .detail-icon {
    transform: rotate(360deg) scale(1.2);
    animation: none;
}

.detail-title {
    font-size: 32px;
    font-weight: 700;
    color: #2D3436;
    margin: 0 0 16px 0;
    background: linear-gradient(135deg, #2D3436 0%, #6C5CE7 50%, #2D3436 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

.detail-description {
    font-size: 18px;
    color: #636E72;
    line-height: 1.8;
    margin: 0;
    max-width: 700px;
    margin: 0 auto;
}

.detail-section {
    margin-bottom: 32px;
}

.section-heading {
    font-size: 26px;
    font-weight: 700;
    color: #2D3436;
    margin: 0 0 24px 0;
    position: relative;
    padding-left: 24px;
}

.section-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 70%;
    background: linear-gradient(to bottom, #6C5CE7, #00B894);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.3);
}

.details-grid {
    display: grid;
    gap: 16px;
}

.detail-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    animation: fadeInScale 0.4s ease-out backwards;
}

.detail-card:nth-child(1) { animation-delay: 0.1s; }
.detail-card:nth-child(2) { animation-delay: 0.2s; }
.detail-card:nth-child(3) { animation-delay: 0.3s; }
.detail-card:nth-child(4) { animation-delay: 0.4s; }

.detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6C5CE7, #00B894, #FFD93D);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.detail-card:hover::before {
    transform: scaleX(1);
}

.detail-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.15);
    border-color: rgba(108, 92, 231, 0.2);
}

.detail-card-title {
    font-size: 19px;
    font-weight: 700;
    color: #2D3436;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-card-title::before {
    content: '●';
    color: #6C5CE7;
    font-size: 12px;
}

.detail-card-content {
    font-size: 15px;
    color: #636E72;
    line-height: 1.7;
    margin: 0 0 16px 0;
}

.detail-card-coverage {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    border-left: 3px solid #6C5CE7;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.8;
    color: #2D3436;
    margin: 12px 0;
}

.detail-card-coverage strong {
    color: #6C5CE7;
    display: block;
    margin-bottom: 6px;
}

.detail-card-suitable {
    background: linear-gradient(135deg, #fff9f0 0%, #ffe6cc 100%);
    border: 2px dashed #FFD93D;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #2D3436;
    margin-top: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.detail-card-suitable strong {
    color: #F59E0B;
}

.suitable-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.benefits-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0fff4 100%);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(0, 184, 148, 0.12);
    border: 2px solid rgba(0, 184, 148, 0.15);
    transition: all 0.3s;
}

.benefits-card:hover {
    box-shadow: 0 8px 32px rgba(0, 184, 148, 0.25);
    transform: translateY(-4px);
    border-color: rgba(0, 184, 148, 0.3);
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 12px;
    border-bottom: 1px solid rgba(0, 184, 148, 0.1);
    animation: slideInLeft 0.4s ease-out backwards;
    transition: all 0.2s;
    border-radius: 8px;
}

.benefit-item:hover {
    background: rgba(0, 184, 148, 0.05);
    padding-left: 16px;
}

.benefit-item:nth-child(1) { animation-delay: 0.1s; }
.benefit-item:nth-child(2) { animation-delay: 0.15s; }
.benefit-item:nth-child(3) { animation-delay: 0.2s; }
.benefit-item:nth-child(4) { animation-delay: 0.25s; }
.benefit-item:nth-child(5) { animation-delay: 0.3s; }

.benefit-item:last-child {
    border-bottom: none;
}

.benefit-icon {
    font-size: 20px;
    color: #00B894;
    font-weight: bold;
    flex-shrink: 0;
    background: rgba(0, 184, 148, 0.1);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

.benefit-text {
    flex: 1;
    font-size: 16px;
    color: #2D3436;
    line-height: 1.7;
    font-weight: 400;
}

.tip-card {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFE4A3 100%);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    gap: 20px;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.3);
    animation: fadeInScale 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.tip-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.tip-icon {
    font-size: 40px;
    flex-shrink: 0;
    animation: bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(255, 193, 7, 0.4));
    position: relative;
    z-index: 1;
}

.tip-content {
    flex: 1;
}

.tip-title {
    font-size: 18px;
    font-weight: 700;
    color: #2D3436;
    margin: 0 0 12px 0;
}

.tip-text {
    font-size: 15px;
    color: #636E72;
    line-height: 1.7;
    margin: 0;
}

/* Check Premium Card */
.check-premium-card {
    background: linear-gradient(135deg, #11998E 0%, #38EF7D 100%);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 6px 20px rgba(17, 153, 142, 0.3);
}

.check-premium-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.check-premium-icon {
    font-size: 56px;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    position: relative;
    z-index: 1;
}

.check-premium-text {
    color: white;
}

.check-premium-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: white;
}

.check-premium-description {
    font-size: 16px;
    margin: 0;
    opacity: 0.95;
    line-height: 1.5;
}

.check-premium-button {
    background: white;
    color: #11998E;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.check-premium-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(108, 92, 231, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(108, 92, 231, 0.8), 0 0 30px rgba(108, 92, 231, 0.6);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Loading */
.loading {
    display: none;
    text-align: center;
    padding: 60px 20px;
}

.loading.active {
    display: block;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #6C5CE7;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

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

.loading-text {
    color: #636E72;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .back-to-category-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 15px;
        margin-bottom: 20px;
    }

    .nav-buttons {
        gap: 8px;
    }

    .nav-title {
        font-size: 16px;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nav-home-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .nav-register-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    body {
        padding-top: 56px;
    }

    .home-header {
        padding: 20px 0 40px;
        border-radius: 0 0 30px 30px;
        padding-top: 76px;
    }

    .cta-card {
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
        text-align: center;
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-icon {
        font-size: 48px;
    }

    .cta-title {
        font-size: 22px;
    }

    .cta-description {
        font-size: 15px;
    }

    .cta-button {
        width: 100%;
        padding: 14px 24px;
        font-size: 16px;
    }

    .main-title {
        font-size: 32px;
    }

    .subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 20px;
    }

    .info-card {
        padding: 20px;
    }

    .info-item {
        font-size: 15px;
    }

    .category-card-content {
        padding: 20px;
        gap: 16px;
    }

    .category-icon {
        font-size: 48px;
    }

    .category-title {
        font-size: 20px;
    }

    .category-description {
        font-size: 14px;
    }

    .category-header {
        padding: 20px 0 32px;
        border-radius: 0 0 30px 30px;
        padding-top: 76px;
    }

    .category-header-icon {
        font-size: 56px;
    }

    .category-header-title {
        font-size: 26px;
    }

    .category-header-description {
        font-size: 15px;
    }

    .content-title {
        font-size: 20px;
    }

    .insurance-icon {
        font-size: 36px;
    }

    .insurance-title {
        font-size: 16px;
    }

    .insurance-short-description {
        font-size: 13px;
    }

    .detail-intro {
     

    .detail-header {
        margin-top: -56px;
        padding-top: 72px;
    }   padding: 32px 24px;
    }

    .detail-icon {
        font-size: 64px;
    }

    .detail-title {
        font-size: 26px;
    }

    .detail-description {
        font-size: 16px;
    }

    .section-heading {
        font-size: 20px;
    }

    .detail-card {
        padding: 20px;
    }

    .detail-card-title {
        font-size: 17px;
    }

    .detail-card-coverage,
    .detail-card-suitable {
        font-size: 13px;
        padding: 10px 12px;
    }

    .suitable-icon {
        font-size: 16px;
    }

    .benefits-card {
        padding: 20px;
    }

    .benefit-text {
        font-size: 15px;
    }

    .tip-card {
        padding: 20px;
        gap: 16px;
    }

    .tip-icon {
        font-size: 32px;
    }

    .tip-title {
        font-size: 16px;
    }

    .tip-text {
        font-size: 14px;
    }

    .check-premium-card {
        flex-direction: column;
        padding: 28px 20px;
        gap: 20px;
        text-align: center;
    }

    .check-premium-content {
        flex-direction: column;
        text-align: center;
    }

    .check-premium-icon {
        font-size: 48px;
    }

    .check-premium-title {
        font-size: 20px;
    }

    .check-premium-description {
        font-size: 15px;
    }

    .check-premium-button {
        width: 100%;
        padding: 12px 24px;
        font-size: 16px;
    }
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    }

    .details-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
}
