/* =============================================
   HULALLA POLICIES - MODERN LIQUID GLASS DESIGN
   Inspired by modern web design trends
   ============================================= */

/* ========== CSS VARIABLES ========== */
:root {
    /* Brand Colors */
    --primary-blue: #38b6ff;
    --primary-gold: #e3b93d;
    --primary-blue-dark: #2a9ed8;
    --primary-gold-dark: #c9a035;
    
    /* Liquid Glass Colors */
    --glass-white: rgba(255, 255, 255, 0.1);
    --glass-white-md: rgba(255, 255, 255, 0.15);
    --glass-white-strong: rgba(255, 255, 255, 0.25);
    --glass-blue: rgba(56, 182, 255, 0.1);
    --glass-gold: rgba(227, 185, 61, 0.1);
    
    /* Borders */
    --border-glass: rgba(255, 255, 255, 0.2);
    --border-glass-strong: rgba(255, 255, 255, 0.3);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
    --shadow-glow-blue: 0 0 40px rgba(56, 182, 255, 0.3);
    --shadow-glow-gold: 0 0 40px rgba(227, 185, 61, 0.3);
    
    /* Text Colors */
    --text-dark: #1a1a2e;
    --text-light: #6b7280;
    --text-white: #ffffff;
    
    /* Gradients */
    --gradient-main: linear-gradient(135deg, #38b6ff 0%, #e3b93d 100%);
    --gradient-hover: linear-gradient(135deg, #2a9ed8 0%, #c9a035 100%);
    --gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-green: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    --gradient-orange: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
}

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Prompt', 'IBM Plex Sans Thai', sans-serif;
    background: linear-gradient(-45deg, #5d510c, #deba1c, rgb(80, 182, 241), #4463ad, #2c3e50);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: var(--text-dark);
    overflow-x: hidden;
    min-height: 100dvh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ========== ANIMATED BACKGROUND ========== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(56, 182, 255, 0.4) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(227, 185, 61, 0.4) 0%, transparent 70%);
    top: 50%;
    right: -10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
    bottom: -15%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* ========== HERO SECTION ========== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px 20px;
}

.hero-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.hero-content {
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.hero-logo {
    width: 160px;
    height: 160px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 0px solid var(--border-glass-strong);
    backdrop-filter: blur(10px);
}

.hero-logoooo {
    width: 160px;
    height: 160px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 0px solid var(--border-glass-strong);
    box-shadow: var(--shadow-xl), var(--shadow-glow-blue);
    background: var(--glass-white-strong);
    backdrop-filter: blur(10px);
}

.hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.title-main {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    filter: drop-shadow(0 2px 10px rgba(255, 255, 255, 0.3));
}

.title-sub {
    background: linear-gradient(135deg, #38b6ff 0%, #7dd3ff 50%, #e3b93d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    font-size: 5rem;
    filter: drop-shadow(0 4px 20px rgba(56, 182, 255, 0.5)) brightness(1.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 600;
    opacity: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    line-height: 1.8;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.hero-stats .stat-item {
    background: var(--glass-white-strong);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 20px 30px;
    min-width: 120px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.hero-stats .stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.hero-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 5px;
}

.hero-stats .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s ease-in-out infinite;
    cursor: pointer;
}

.hero-scroll i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.7);
}

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

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

/* ========== CONTAINER ========== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
    position: relative;
}

/* ========== SECTION TITLES ========== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.3), 0 0 40px rgba(56, 182, 255, 0.5);
}

/* ========== FILTER SECTION ========== */
.filter-section {
    margin-bottom: 50px;
    animation: fadeIn 0.8s ease-out;
}

.filter-container {
    background: var(--glass-white-strong);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 40px 30px;
    box-shadow: var(--shadow-lg);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.filter-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    padding: 20px 15px;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.filter-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 182, 255, 0.5);
    background: rgba(255, 255, 255, 0.35);
    box-shadow: var(--shadow-md);
}

.filter-card.active {
    background: linear-gradient(135deg, #38b6ff 0%, #7dd3ff 100%);
    border-color: transparent;
    box-shadow: 0 0 30px rgba(56, 182, 255, 0.4);
}

.filter-card.active .filter-icon,
.filter-card.active .filter-content h3,
.filter-card.active .filter-content p {
    color: var(--text-white);
}

.filter-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: var(--transition-normal);
}


.filter-card.active .filter-icon {
    background: rgba(255, 255, 255, 0.2);
}

.filter-icon i {
    font-size: 1.5rem;
    color: var(--text-white);
}

.filter-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.filter-content p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

/* ========== SEARCH SECTION ========== */
.search-section {
    margin-bottom: 50px;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.search-container {
    max-width: 700px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    padding: 15px 25px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.search-box:focus-within {
    border-color: #38b6ff;
    box-shadow: 0 4px 20px rgba(56, 182, 255, 0.3);
    background: rgba(255, 255, 255, 0.25);
}

.search-box i {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-right: 15px;
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 1rem;
    font-family: 'Prompt', sans-serif;
    color: var(--text-white);
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-clear {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-clear:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
    transition: var(--transition-fast);
}

.search-clear i {
    font-size: 0.9rem;
    color: var(--text-white);
    margin: 0;
}

/* ========== POLICIES SECTION ========== */
.policies-section {
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* ========== POLICY CARDS ========== */
.policy-card {
    background: var(--glass-white-strong);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}

.policy-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--border-glass-strong);
}

.policy-card-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.policy-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    transition: var(--transition-normal);
}

.policy-card:hover .policy-card-image::before {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
}

.policy-card-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: var(--glass-white-strong);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-glass);
    opacity: 0;
    transition: var(--transition-normal);
}

.policy-card:hover .policy-card-overlay {
    opacity: 1;
}

.policy-card-overlay i {
    font-size: 2rem;
    color: var(--text-white);
}

.policy-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.policy-card-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 15px;
    align-self: flex-start;
}

.policy-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.policy-card-summary {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.policy-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    border: none;
    font-family: 'Prompt', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-white);
    cursor: pointer;
    transition: var(--transition-normal);
    align-self: flex-start;
}

.policy-card-button:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

/* ========== LOADING STATE ========== */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading p {
    color: var(--text-white);
    font-size: 1rem;
}

/* ========== NO RESULTS ========== */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-white);
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results p {
    font-size: 1.2rem;
}

/* ========== FLOATING ACTION BUTTON ========== */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.fab-main {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-main);
    border: none;
    box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.fab-main:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: var(--shadow-xl), var(--shadow-glow-blue);
}

.fab-main i {
    font-size: 1.5rem;
    color: var(--text-white);
}

.fab-menu {
    position: absolute;
    bottom: 75px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-normal);
}

.fab-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-white-strong);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.fab-item:hover {
    transform: scale(1.1);
    background: var(--gradient-main);
    border-color: transparent;
    box-shadow: var(--shadow-lg);
}

.fab-item i {
    font-size: 1.2rem;
    color: var(--text-white);
}

/* ========== FOOTER ========== */
/* ========== FOOTER ========== */
.footer {
    margin-top: 380px;
}

footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 60px 20px 40px;
    border-radius: 30px 30px 0 0;
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-section h4 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 15px rgba(255, 255, 255, 0.2);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: white;
    padding-left: 10px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo-emoji {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 0px solid rgba(255, 255, 255, 0.3);
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.social-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.social-link.ig {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.yt {
    background: #ff0000;
}

.social-link.tiktok {
    background: #000000;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}


/* ========== MODAL ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background: var(--glass-white-strong);
    backdrop-filter: blur(30px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.4s ease-out;
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    flex: 1;
    padding-right: 20px;
}

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-close i {
    font-size: 1.2rem;
    color: var(--text-white);
}

.modal-body {
    padding: 30px;
    padding-bottom: 100px;
    overflow-y: auto;
    flex: 1;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.modal-section {
    margin-bottom: 30px;
}

.modal-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-section h3 i {
    color: var(--primary-blue);
}

.modal-section p,
.modal-section li {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.modal-section ul {
    list-style: none;
    padding: 0;
}

.modal-section li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.modal-section li:last-child {
    border-bottom: none;
}

.modal-section li::before {
    content: "✓";
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ========== MODAL ACTIONS (FIXED) ========== */
.modal-actions-fixed {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 30px;
    background: linear-gradient(to top, rgba(26, 20, 100, 0.98), rgba(26, 20, 100, 0.95));
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    z-index: 10;
    margin-top: auto;
}

.modal-actions-fixed .policy-card-button {
    flex: 1;
    min-width: 200px;
    padding: 14px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.modal-actions-fixed .policy-card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(56, 182, 255, 0.4);
}

/* ========== BACK TO TOP BUTTON ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-white-strong);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
    z-index: 999;
}

.back-to-top.active {
    display: flex;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: var(--gradient-main);
    border-color: transparent;
    box-shadow: var(--shadow-lg);
}

.back-to-top i {
    font-size: 1.3rem;
    color: var(--text-white);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .title-sub {
        font-size: 4rem;
    }
    
    .filter-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .policy-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .title-sub {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-logo {
        width: 120px;
        height: 120px;
    }
    
    .hero-stats {
        gap: 15px;
    }
    
    .hero-stats .stat-item {
        min-width: 100px;
        padding: 15px 20px;
    }
    
    .hero-stats .stat-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .filter-container {
        padding: 30px 20px;
    }
    
    .filter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .filter-card {
        padding: 18px 12px;
    }
    
    .filter-icon {
        width: 45px;
        height: 45px;
    }
    
    .filter-icon i {
        font-size: 1.3rem;
    }
    
    .filter-content h3 {
        font-size: 0.9rem;
    }
    
    .filter-content p {
        font-size: 0.8rem;
    }
    
    .search-box {
        padding: 12px 20px;
    }
    
    .policy-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .floating-actions {
        bottom: 20px;
        right: 20px;
    }
    
    .fab-main {
        width: 55px;
        height: 55px;
    }
    
    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
    
    .modal-container {
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    footer {
        padding: 50px 15px 30px;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    .social-bar {
        gap: 15px;
        padding: 25px 0;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 40px 15px;
    }
    
    .hero-section {
        padding: 30px 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .title-sub {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .hero-logo {
        width: 100px;
        height: 100px;
    }
    
    .hero-stats {
        gap: 10px;
    }
    
    .hero-stats .stat-item {
        min-width: 80px;
        padding: 12px 15px;
    }
    
    .hero-stats .stat-number {
        font-size: 1.8rem;
    }
    
    .hero-stats .stat-label {
        font-size: 0.75rem;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }
    
    .filter-container {
        padding: 25px 15px;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .filter-card {
        flex-direction: row;
        padding: 15px;
        gap: 15px;
        text-align: left;
    }
    
    .filter-icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }
    
    .filter-icon i {
        font-size: 1.2rem;
    }
    
    .filter-content {
        flex: 1;
    }
    
    .search-box {
        padding: 12px 18px;
    }
    
    .search-box i {
        font-size: 1rem;
        margin-right: 12px;
    }
    
    .search-box input {
        font-size: 0.95rem;
    }
    
    .policy-card-image {
        height: 180px;
    }
    
    .policy-card-content {
        padding: 20px;
    }
    
    .fab-main {
        width: 50px;
        height: 50px;
    }
    
    .fab-main i {
        font-size: 1.3rem;
    }
    
    .fab-item {
        width: 45px;
        height: 45px;
    }
    
    .fab-item i {
        font-size: 1.1rem;
    }
    
    .back-to-top {
        width: 42px;
        height: 42px;
    }
    
    .back-to-top i {
        font-size: 1.1rem;
    }
    
    footer {
        padding: 40px 15px 25px;
        border-radius: 20px 20px 0 0;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 0.9rem;
    }
    
    .footer-logo-emoji {
        width: 40px;
        height: 40px;
    }
    
    .footer-logo-text {
        font-size: 1.2rem;
    }
    
    .social-bar {
        gap: 12px;
        padding: 20px 0;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
    }
    
    .footer-links {
        gap: 15px;
        margin-top: 12px;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
}

/* ========== IMAGE PREVIEW STYLING ========== */
.image-preview-popup {
    background: linear-gradient(135deg, rgba(26, 20, 100, 0.98), rgba(56, 182, 255, 0.95)) !important;
    backdrop-filter: blur(20px);
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-preview-popup .swal2-title {
    color: #ffffff !important;
    font-family: 'Prompt', sans-serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.image-preview-popup .swal2-html-container img {
    transition: transform 0.3s ease;
}

.image-preview-popup .swal2-html-container img:hover {
    transform: scale(1.02);
}

/* ========== CUSTOMIZATION FORM STYLING ========== */
.swal2-input,
.swal2-textarea {
    font-family: 'Prompt', sans-serif !important;
    color: #1a1464 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    transition: all 0.3s ease !important;
}

.swal2-input:focus,
.swal2-textarea:focus {
    box-shadow: 0 0 0 3px rgba(56, 182, 255, 0.3) !important;
    border-color: #38b6ff !important;
    transform: translateY(-2px);
}

.swal2-html-container label {
    font-family: 'Prompt', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.swal2-html-container label i {
    color: #38b6ff;
    font-size: 1.1rem;
}

/* ========== SWAL2 Z-INDEX FIX ========== */
.swal2-container {
    z-index: 3000 !important;
}

.swal2-popup {
    z-index: 3001 !important;
}


/* ========== UTILITY CLASSES ========== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}
/* ========== AI AGENT FLOATING BUTTON ========== */
.ai-agent-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(56, 182, 255, 0.4);
    z-index: 999;
    transition: all var(--transition-normal);
    animation: pulse-glow 2s ease-in-out infinite;
    cursor: pointer;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: #ffffff52;
}

.ai-agent-button:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 12px 40px rgba(56, 182, 255, 0.6);
}

.ai-agent-button .ai-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(56, 182, 255, 0.4);
    }
    50% {
        box-shadow: 0 8px 32px rgba(56, 182, 255, 0.7), 0 0 60px rgba(227, 185, 61, 0.4);
    }
}

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

/* ========== AI POPUP INVITATION ========== */
.ai-popup-invitation {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    z-index: 998;
    max-width: 320px;
    border: 2px solid rgba(56, 182, 255, 0.3);
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-popup-invitation.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.ai-popup-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    position: relative;
}

.ai-popup-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff, #e3b93d);
    padding: 8px;
    box-shadow: 0 4px 16px rgba(56, 182, 255, 0.3);
    flex-shrink: 0;
}

.ai-popup-text h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    background: linear-gradient(135deg, #38b6ff, #0e5a94);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-popup-text p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

.ai-popup-close {
    position: absolute;
    top: -5px;
    right: -5px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: #6b7280;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ai-popup-close:hover {
    background: rgba(255, 255, 255, 1);
    color: #38b6ff;
    transform: scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ai-agent-button {
        width: 60px;
        height: 60px;
        bottom: 30px;
        right: 20px;
    }

    .ai-agent-button .ai-logo {
        width: 35px;
        height: 35px;
    }

    .ai-popup-invitation {
        bottom: 95px;
        right: 20px;
        max-width: calc(100vw - 40px);
        padding: 16px;
    }

    .ai-popup-text h4 {
        font-size: 15px;
    }

    .ai-popup-text p {
        font-size: 13px;
    }
}