/* ========================================
   PHUONG DENTIST - CUSTOM CSS
   Mobile First, Responsive Design
   Bootstrap 5.x Compatible
   ======================================== */

/* ========================================
   CSS VARIABLES & ROOT STYLES
   ======================================== */
   :root {
    /* Primary Colors - Based on Logo */
    --primary-color: #01aac2;
    --primary-dark: #018a9e;
    --primary-light: #33b8cc;
    
    /* Secondary Colors */
    --secondary-color: #01a474;
    --secondary-dark: #018a5e;
    --secondary-light: #33b88a;
    
    /* Accent Colors */
    --accent-blue: #01aac2;
    --accent-teal: #01a474;
    --accent-navy: #018a9e;
    
    /* Neutral Colors */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray-100: #f1f3f4;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --dark: #000000;
    
    /* Typography */
    --font-primary: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Font Sizes */
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.25rem;
    --fs-2xl: 1.5rem;
    --fs-3xl: 1.875rem;
    --fs-4xl: 2.25rem;
    --fs-5xl: 3rem;
    --fs-6xl: 3.75rem;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-floating: 1080;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100%;
}

/* Fix horizontal scroll issues */
.container,
.container-fluid,
section {
    max-width: 100%;
}

/* Ensure all sections don't overflow */
section {
    overflow: hidden;
}

/* Fix row gutters if causing overflow */
.row {
    --bs-gutter-x: 1.5rem;
    margin-left: calc(var(--bs-gutter-x) * -0.5);
    margin-right: calc(var(--bs-gutter-x) * -0.5);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--gray-900);
}

a, a:hover{
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.display-1, .display-2, .display-3, .display-4 {
    font-family: var(--font-display);
    font-weight: 700;
}

.section-title {
    font-size: var(--fs-3xl);
    font-weight: 700;
    /* margin-bottom: var(--spacing-lg); */
	margin-bottom: 0;
    color: var(--gray-900);
}

.section-description {
    font-size: var(--fs-lg);
    color: var(--gray-600);
    margin-bottom: var(--spacing-xl);
}

.lead {
    font-size: var(--fs-lg);
    font-weight: 400;
    line-height: 1.7;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.min-vh-50 {
    min-height: 50vh;
}

/* ========================================
   HEADER STYLES
   ======================================== */
.top-header {
    font-size: var(--fs-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-header .social-links a {
    transition: color var(--transition-fast);
}

.top-header .social-links a:hover {
    color: var(--primary-light) !important;
}

.logo-bar {
    background: var(--white);
    border-bottom: 1px solid var(--light-gray);
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 100%;
}

.main-header {
    z-index: var(--z-fixed);
}

.navbar-brand {
    font-weight: 700;
    font-size: var(--fs-xl);
    text-decoration: none;
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

.brand-text {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--primary-color);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--gray-700);
    padding: var(--spacing-sm) var(--spacing-md);
    transition: color var(--transition-fast);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

/* Dropdown Menu Hover */
.navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu {
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    padding: var(--spacing-sm) 0;
    margin-top: 0;
}

.dropdown-item {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-weight: 500;
    color: var(--gray-700);
    transition: all var(--transition-normal);
}

.dropdown-item:hover {
    background: var(--primary-light);
    color: white;
}

/* ========================================
   MOBILE DRAWER STYLES
   ======================================== */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    display: none;
}

.mobile-drawer.active {
    display: block;
}

.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.mobile-drawer.active .drawer-overlay {
    opacity: 1;
}

.drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    height: 100%;
    background: var(--white);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.mobile-drawer.active .drawer-content {
    transform: translateX(0);
}

.drawer-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.drawer-logo {
    height: 50px;
    width: auto;
	filter: brightness(0) invert(1);
}

.navbar-toggler-icon{filter: brightness(0) invert(1);}

.drawer-close {
    background: none;
    border: none;
    font-size: var(--fs-xl);
    color: var(--white);
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: background var(--transition-normal);
}

.drawer-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-lg) 0;
}

.drawer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.drawer-nav-item {
    border-bottom: 1px solid var(--light-gray);
}

.drawer-nav-link {
    display: flex;
    align-items: center;
    padding: var(--spacing-lg);
    color: var(--gray-800);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-normal);
    position: relative;
}

.drawer-nav-link:hover {
    background: var(--light-gray);
    color: var(--primary-color);
    padding-left: calc(var(--spacing-lg) + 10px);
}

.drawer-nav-link i {
    color: var(--primary-color);
    width: 20px;
}

.drawer-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--gray-100);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.drawer-nav-item.active .drawer-submenu {
    max-height: 300px;
}

.drawer-submenu li {
    border-bottom: 1px solid var(--gray-200);
}

.drawer-submenu li:last-child {
    border-bottom: none;
}

.drawer-submenu a {
    display: block;
    padding: var(--spacing-md) var(--spacing-lg) var(--spacing-md) calc(var(--spacing-lg) + 30px);
    color: var(--gray-600);
    text-decoration: none;
    font-size: var(--fs-sm);
    transition: all var(--transition-normal);
}

.drawer-submenu a:hover {
    background: var(--white);
    color: var(--primary-color);
    padding-left: calc(var(--spacing-lg) + 40px);
}

.drawer-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--light-gray);
    background: var(--gray-100);
}

.drawer-contact {
    margin-bottom: var(--spacing-lg);
}

.drawer-contact .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    color: var(--gray-600);
    font-size: var(--fs-sm);
}

.drawer-contact .contact-item i {
    width: 20px;
    color: var(--primary-color);
    margin-right: var(--spacing-sm);
}

.drawer-contact .contact-item a {
    color: var(--gray-600);
    text-decoration: none;
}

.drawer-contact .contact-item a:hover {
    color: var(--primary-color);
}

.drawer-social {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

.drawer-social .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.drawer-social .social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.formLoader {
    overflow: hidden;
    position: absolute;
    width: 100%;
    height: 100%;
    min-height: 200px;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    display: none;
    z-index: 999;
    border-radius: 0.375rem;
    backdrop-filter: blur(5px);
}

.formLoading-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.formLoader .formLoading {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0 auto 20px;
    padding: 0;
    list-style: none;
}

.formLoader .formLoading li {
    background: var(--primary-color, #01aac2);
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.formLoader .formLoading li:nth-child(1) {
    animation-delay: -0.32s;
}

.formLoader .formLoading li:nth-child(2) {
    animation-delay: -0.16s;
}

.formLoader .formLoading li:nth-child(3) {
    animation-delay: 0s;
}

.formLoading-text {
    margin: 0;
    font-size: 14px;
    color: var(--gray-700, #495057);
    font-weight: 500;
    line-height: 1.5;
}

.loading > .formLoader {
    display: block;
}

@keyframes bounce {
    0%, 80%, 100% { 
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% { 
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .logo-img {
        height: 60px;
    }
    
    .navbar-nav {
        display: none;
    }
    
    .drawer-content {
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    .drawer-content {
        width: 100%;
    }
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ========================================
   HERO SLIDESHOW STYLES
   ======================================== */
.hero-slideshow {
    position: relative;
    height: 70vh;
    overflow: hidden;
}

.hero-slideshow .carousel {
    height: 100%;
}

.hero-slideshow .carousel-inner {
    height: 100%;
}

.hero-slideshow .carousel-item {
    height: 100%;
}

.hero-slide {
    position: relative;
    height: 100%;
    width: 100%;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Carousel Controls */
.hero-slideshow .carousel-control-prev,
.hero-slideshow .carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition-normal);
}

.hero-slideshow .carousel-control-prev {
    left: 30px;
}

.hero-slideshow .carousel-control-next {
    right: 30px;
}

.hero-slideshow .carousel-control-prev:hover,
.hero-slideshow .carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.hero-slideshow .carousel-control-prev-icon,
.hero-slideshow .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Carousel Indicators */
.hero-slideshow .carousel-indicators {
    bottom: 30px;
    margin-bottom: 0;
}

.hero-slideshow .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all var(--transition-normal);
}

.hero-slideshow .carousel-indicators .active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.2);
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .hero-slideshow {
        height: 40vh;
    }
    
    .hero-slideshow .carousel-control-prev,
    .hero-slideshow .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    
    .hero-slideshow .carousel-control-prev {
        left: 15px;
    }
    
    .hero-slideshow .carousel-control-next {
        right: 15px;
    }
    
    .hero-slideshow .carousel-indicators {
        bottom: 20px;
    }
    
    .hero-title {
        font-size: var(--fs-3xl);
    }
    
    .hero-description {
        font-size: var(--fs-base);
    }
}

/* Animation Effects */
.hero-slideshow .carousel-item {
    transition: transform 0.6s ease-in-out;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

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

/* Parallax Effect */
.hero-bg-image {
    transform: scale(1.1);
    transition: transform 0.6s ease-in-out;
}

.hero-slideshow:hover .hero-bg-image {
    transform: scale(1.05);
}

/* Loading Animation */
.hero-slideshow .carousel-item.active .hero-content {
    animation-delay: 0.3s;
}

.hero-slideshow .carousel-item.active .hero-content .hero-subtitle {
    animation-delay: 0.1s;
}

.hero-slideshow .carousel-item.active .hero-content .hero-title {
    animation-delay: 0.2s;
}

.hero-slideshow .carousel-item.active .hero-content .hero-description {
    animation-delay: 0.4s;
}

.hero-slideshow .carousel-item.active .hero-content .contact-info {
    animation-delay: 0.5s;
}

.hero-slideshow .carousel-item.active .hero-content .btn {
    animation-delay: 0.6s;
}

/* ========================================
   WELCOME SECTION
   ======================================== */
.welcome-section {
    padding: var(--spacing-4xl) 0;
}

.welcome-card {
    transition: transform var(--transition-normal);
}

.welcome-card:hover {
    transform: translateY(-5px);
}

.welcome-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.welcome-title {
    font-size: var(--fs-xl);
    font-weight: 600;
    color: var(--gray-800);
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services-section {
    background-color: var(--light-gray);
}

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

.service-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

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

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    flex-shrink: 0;
    margin-bottom: var(--spacing-md);
}

.service-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.service-title {
    font-size: var(--fs-lg);
    font-weight: 600;
    margin-bottom: 0;
    color: var(--gray-900);
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   APPOINTMENT SECTION
   ======================================== */
.appointment-section {
    padding: var(--spacing-4xl) 0;
}

.appointment-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
}

.appointment-form {
    background: var(--white);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.form-label {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: var(--spacing-sm);
}

.form-control,
.form-select {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--fs-base);
    transition: border-color var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(32, 201, 151, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-section {
    background-color: var(--white) !important;
}

.about-images img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.about-description {
    font-size: var(--fs-lg);
    color: var(--gray-600);
    margin-bottom: var(--spacing-xl);
}

.feature-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(1, 170, 194, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    font-size: var(--fs-2xl);
    color: var(--primary-color);
    flex-shrink: 0;
}

.feature-title {
    font-size: var(--fs-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--gray-900);
}

.feature-description {
    color: var(--gray-600);
    font-size: var(--fs-sm);
    margin-bottom: 0;
    flex-grow: 1;
}

/* ========================================
   PROMOTIONS SECTION
   ======================================== */
.promotions-section {
    position: relative;
    overflow: hidden;
}

.promotions-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="teeth" patternUnits="userSpaceOnUse" width="40" height="40"><path d="M20,10 Q30,5 40,10 Q35,20 30,25 Q25,20 20,10 Z" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23teeth)"/></svg>');
    opacity: 0.1;
    pointer-events: none;
}

.promotions-form {
    position: relative;
    z-index: 2;
}

.promotions-form .form-control {
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--gray-800);
}

.promotions-form .form-control::placeholder {
    color: var(--gray-500);
}

.promotions-form .form-control:focus {
    background-color: var(--white);
    border-color: var(--white);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

/* ========================================
   CUSTOMER STORIES SECTION
   ======================================== */
.customer-stories-section {
    padding: var(--spacing-4xl) 0;
}

.story-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.story-image {
    flex-shrink: 0;
    margin-bottom: var(--spacing-lg);
}

.story-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.story-title {
    font-size: var(--fs-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--gray-900);
}

.story-description {
    color: var(--gray-600);
    margin-bottom: var(--spacing-lg);
    flex-grow: 1;
}

/* ========================================
   VIDEO SECTION
   ======================================== */
.video-section {
    padding: var(--spacing-4xl) 0;
}

.video-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    flex-shrink: 0;
    margin-bottom: var(--spacing-lg);
}

.video-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.video-thumbnail:hover img {
    transform: scale(1.05);
}

.video-title {
    font-size: var(--fs-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--gray-900);
}

.video-description {
    color: var(--gray-600);
    margin-bottom: var(--spacing-lg);
    flex-grow: 1;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-xl);
    color: var(--primary-color);
    transition: all var(--transition-normal);
}

.play-button:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-title {
    font-size: var(--fs-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--gray-900);
}

.video-description {
    color: var(--gray-600);
    margin-bottom: var(--spacing-lg);
}

/* ========================================
   NEWS SECTION - PROFESSIONAL LAYOUT
   ======================================== */
.news-section {
    background-color: var(--light-gray);
}

/* Featured News - Tin chÃ­nh */
.featured-news-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.featured-news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.featured-news-image {
    position: relative;
    overflow: hidden;
}

.featured-news-image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.news-badge {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    background: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-news-content {
    padding: var(--spacing-xl);
}

.news-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.news-date {
    color: var(--gray-600);
    font-size: var(--fs-sm);
    font-weight: 500;
}

.news-category {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-news-title {
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.featured-news-excerpt {
    color: var(--gray-600);
    font-size: var(--fs-base);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

/* Sidebar News - Tin phá»¥ */
.sidebar-news {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    height: fit-content;
}

.sidebar-title {
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--primary-color);
}

.sidebar-news-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.sidebar-news-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    cursor: pointer;
    min-height: 100px;
    align-items: center;
}

.sidebar-news-item:hover {
    background: var(--light-gray);
    transform: translateX(5px);
}

.sidebar-news-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.sidebar-news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-news-title {
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-news-meta {
    display: flex;
    align-items: center;
}

.sidebar-news-date {
    color: var(--gray-500);
    font-size: var(--fs-sm);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 991px) {
    .featured-news-title {
        font-size: var(--fs-xl);
    }
    
    .featured-news-image img {
        height: 250px;
    }
    
    .sidebar-news {
        margin-top: var(--spacing-xl);
    }
}

@media (max-width: 767px) {
    .featured-news-content {
        padding: var(--spacing-lg);
    }
    
    .featured-news-title {
        font-size: var(--fs-lg);
    }
    
    .featured-news-image img {
        height: 200px;
    }
    
    .sidebar-news {
        padding: var(--spacing-lg);
    }
    
    .sidebar-news-item {
        padding: var(--spacing-sm);
    }
    
    .sidebar-news-thumbnail {
        width: 60px;
        height: 60px;
    }
}


.news-address {
    font-size: var(--fs-sm);
    margin-bottom: var(--spacing-md);
}

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

.news-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-icon {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: var(--fs-lg);
}

.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-title {
    font-size: var(--fs-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--gray-900);
}

.news-excerpt {
    color: var(--gray-600);
    font-size: var(--fs-sm);
    margin-bottom: 0;
}

/* ========================================
   FOOTER STYLES
   ======================================== */
.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.footer-logo {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-title {
    font-size: var(--fs-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--white);
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-lg);
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white) !important;
}

.contact-item {
    margin-bottom: var(--spacing-sm);
}

.contact-item i {
    width: 20px;
    text-align: center;
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: var(--spacing-lg);
}

.map-container iframe {
    border-radius: var(--radius-lg);
}

.copyright {
    color: var(--gray-400);
    font-size: var(--fs-sm);
}

/* ========================================
   FLOATING ELEMENTS
   ======================================== */
.floating-buttons {
    position: fixed;
    right: var(--spacing-lg);
    bottom: var(--spacing-lg);
    z-index: var(--z-floating);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    font-size: var(--fs-lg);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

.floating-btn:hover {
    transform: scale(1.1);
    color: var(--white);
}

.floating-btn-primary {
    background-color: var(--primary-color);
}

.floating-btn-danger {
    background-color: #dc3545;
}

.back-to-top {
    position: fixed;
    bottom: var(--spacing-lg);
    left: var(--spacing-lg);
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-lg);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    z-index: var(--z-floating);
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* ========================================
   LIST PAGES STYLES
   ======================================== */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.page-title {
    font-size: var(--fs-3xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.page-description {
    font-size: var(--fs-lg);
    opacity: 0.9;
}

.page-stats {
    display: flex;
    gap: var(--spacing-xl);
    justify-content: flex-end;
}

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

.stat-number {
    display: block;
    font-size: var(--fs-2xl);
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: var(--fs-sm);
    opacity: 0.8;
}

/* Filter Section */
.filter-section {
    border-bottom: 1px solid var(--gray-200);
}

.filter-tabs {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--white);
    border: 2px solid var(--gray-300);
    color: var(--gray-600);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-full);
    font-weight: 500;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.search-sort {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.search-sort .form-control {
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-300);
}

.search-sort .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(1, 170, 194, 0.25);
}

.search-sort .form-select {
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-300);
    min-width: 150px;
}

.search-sort .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(1, 170, 194, 0.25);
}

/* Service Cards for List Pages */
.service-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 0;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.service-badge {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    background: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-content {
    padding: var(--spacing-lg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: var(--fs-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--gray-900);
}

.service-description {
    color: var(--gray-600);
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
    line-height: 1.6;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm) 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.service-price {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--primary-color);
}

.service-duration {
    font-size: var(--fs-sm);
    color: var(--gray-500);
}

.service-features {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.feature-tag {
    background: var(--light-gray);
    color: var(--gray-600);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: var(--fs-xs);
    font-weight: 500;
}

/* News Cards for List Pages */
.news-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 0;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.news-badge {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    background: var(--secondary-color);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-date {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    text-align: center;
    min-width: 50px;
}

.news-date .day {
    display: block;
    font-size: var(--fs-lg);
    font-weight: 700;
    line-height: 1;
}

.news-date .month {
    display: block;
    font-size: var(--fs-xs);
    opacity: 0.8;
    margin-top: 2px;
}

.news-content {
    padding: var(--spacing-lg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    font-size: var(--fs-sm);
}

.news-category {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.news-author {
    color: var(--gray-500);
}

.news-title {
    font-size: var(--fs-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--gray-900);
    line-height: 1.4;
}

.news-excerpt {
    color: var(--gray-600);
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
    line-height: 1.6;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--gray-200);
}

.news-stats {
    display: flex;
    gap: var(--spacing-md);
}

.news-stats .stat-item {
    font-size: var(--fs-xs);
    color: var(--gray-500);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
}

.cta-title {
    font-size: var(--fs-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.cta-description {
    font-size: var(--fs-lg);
    opacity: 0.9;
}

/* Responsive Design for List Pages */
@media (max-width: 991px) {
    .page-stats {
        justify-content: center;
        margin-top: var(--spacing-lg);
    }
    
    .search-sort {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .search-sort .form-select {
        width: 100%;
    }
    
    .filter-tabs {
        justify-content: center;
    }
    
    .service-meta {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: flex-start;
    }
    
    .news-footer {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
	.logo-img{height: 45px}
    .page-title {
        font-size: var(--fs-2xl);
    }
    
    .page-description {
        font-size: var(--fs-md);
    }
    
    .page-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .filter-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
}

/* Mobile First - Base styles already mobile */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .hero-title {
        font-size: var(--fs-4xl);
    }
    
    .section-title {
        font-size: var(--fs-3xl);
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .hero-section {
        padding: var(--spacing-4xl) 0;
    }
    
    .hero-title {
        font-size: var(--fs-5xl);
    }
    
    .section-title {
        font-size: var(--fs-4xl);
    }
    
    .welcome-image img,
    .service-image img,
    .news-image img {
        height: 250px;
    }
    
    .about-images img {
        height: 250px;
    }
    
    .testimonial-image img {
        height: 350px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-section {
        padding: var(--spacing-4xl) 0;
    }
    
    .hero-title {
        font-size: var(--fs-6xl);
    }
    
    .section-title {
        font-size: var(--fs-4xl);
    }
    
    .navbar-nav .nav-link {
        padding: var(--spacing-sm) var(--spacing-lg);
    }
    
    .welcome-image img,
    .service-image img,
    .news-image img {
        height: 300px;
    }
    
    .about-images img {
        height: 300px;
    }
    
    .testimonial-image img {
        height: 400px;
    }
    
    .appointment-form {
        padding: var(--spacing-3xl);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section {
        padding: var(--spacing-4xl) 0;
    }
    
    .section-title {
        font-size: var(--fs-5xl);
    }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */
.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.visually-hidden-focusable:focus {
    position: static !important;
    width: auto !important;
    height: auto !important;
    padding: inherit !important;
    margin: inherit !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: inherit !important;
}

/* Focus styles */
.btn:focus,
.form-control:focus,
.form-select:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0066cc;
        --primary-dark: #004499;
        --gray-600: #333333;
        --gray-700: #222222;
        --gray-800: #111111;
        --gray-900: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .floating-buttons,
    .back-to-top,
    .navbar,
    .footer {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
    }
    
    .section-title {
        color: black !important;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* ========================================
   ANIMATION KEYFRAMES
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* ========================================
   LOADING STATES
   ======================================== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ========================================
   CUSTOM UTILITIES
   ======================================== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) 1;
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(32, 201, 151, 0.2);
}

.bg-pattern {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" patternUnits="userSpaceOnUse" width="20" height="20"><circle cx="10" cy="10" r="1" fill="currentColor" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */

/* Toast animation */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Toast notification styles */
.alert.position-fixed {
    animation: slideInRight 0.3s ease-out;
}

.alert.position-fixed.fade:not(.show) {
    animation: slideOutRight 0.3s ease-out;
}

.alert.position-fixed.alert-success {
    background-color: #28a745;
    color: white;
    border: none;
}

.alert.position-fixed.alert-info {
    background-color: #17a2b8;
    color: white;
    border: none;
}

.alert.position-fixed.alert-warning {
    background-color: #ffc107;
    color: #212529;
    border: none;
}

.alert.position-fixed.alert-danger {
    background-color: #dc3545;
    color: white;
    border: none;
}

.alert.position-fixed .btn-close {
    filter: brightness(0) invert(1);
}

/* Mobile toast positioning */
@media (max-width: 576px) {
    .alert.position-fixed {
        top: 10px !important;
        right: 10px !important;
        left: 10px !important;
        max-width: calc(100% - 20px) !important;
    }
}

/* ========================================
   END OF CUSTOM CSS
   ======================================== */