/**
 * Homepage Sections CSS
 * Styles for dynamic homepage section builder
 * Version: 3.9.0
 */

/* ======================================
   SECTION BASE STYLES
   ====================================== */

.homepage-section {
    position: relative;
    overflow: hidden;
}

.homepage-section .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

/* Section Header */
.section-header {
    margin-bottom: 40px;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--theme-text, #1f2937);
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0;
    max-width: 600px;
}

.section-header.text-center .section-subtitle {
    margin: 0 auto;
}

/* Section Button */
.section-button {
    margin-top: 30px;
}

.btn-pos-top-right {
    position: absolute;
    top: 0;
    right: 0;
}

.btn-pos-bottom-center {
    text-align: center;
}

.btn-pos-bottom-right {
    text-align: right;
}

/* ======================================
   GRID LAYOUTS
   ====================================== */

.section-grid {
    display: grid;
    gap: 24px;
}

.grid-1-cols { grid-template-columns: 1fr; }
.grid-2-cols { grid-template-columns: repeat(2, 1fr); }
.grid-3-cols { grid-template-columns: repeat(3, 1fr); }
.grid-4-cols { grid-template-columns: repeat(4, 1fr); }
.grid-5-cols { grid-template-columns: repeat(5, 1fr); }
.grid-6-cols { grid-template-columns: repeat(6, 1fr); }

/* Responsive Grid */
@media (max-width: 1200px) {
    .grid-5-cols, .grid-6-cols { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1024px) {
    .grid-4-cols, .grid-5-cols, .grid-6-cols { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .grid-3-cols, .grid-4-cols, .grid-5-cols, .grid-6-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .section-grid { grid-template-columns: 1fr !important; }
}

/* ======================================
   HORIZONTAL SCROLL LAYOUT
   ====================================== */

.scroll-container {
    position: relative;
    padding: 0 50px;
}

.scroll-wrapper {
    overflow: hidden;
}

.scroll-content {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
    --items-per-row: 4; /* default value */
}

.scroll-content::-webkit-scrollbar {
    display: none;
}

.scroll-content .card {
    /* Calculate width based on items per row: (100% - gaps) / items */
    flex: 0 0 calc((100% - (var(--items-per-row) - 1) * 20px) / var(--items-per-row));
    min-width: 200px; /* minimum width for readability */
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #374151;
    transition: all 0.3s ease;
    z-index: 10;
}

.scroll-btn:hover {
    background: var(--theme-primary, #6366f1);
    color: white;
    border-color: var(--theme-primary, #6366f1);
}

.scroll-left { left: 0; }
.scroll-right { right: 0; }

@media (max-width: 768px) {
    .scroll-container {
        padding: 0;
    }

    .scroll-btn {
        display: none;
    }

    .scroll-content .card {
        /* On mobile, show 2 items or use fixed width if fewer */
        flex: 0 0 calc((100% - 20px) / 2);
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    .scroll-content .card {
        /* On small mobile, show 1.2 items to indicate scrollability */
        flex: 0 0 85%;
        min-width: 200px;
    }
}

/* ======================================
   CAROUSEL LAYOUT
   ====================================== */

.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    flex: 0 0 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-nav-prev,
.carousel-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    font-size: 18px;
    color: #374151;
    transition: all 0.3s;
    z-index: 10;
}

.carousel-nav-prev:hover,
.carousel-nav-next:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav-prev { left: 20px; }
.carousel-nav-next { right: 20px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding-bottom: 10px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: var(--theme-primary, #6366f1);
    transform: scale(1.2);
}

/* Carousel Card Height Options */
.carousel-height-small .carousel-slide .card-image {
    aspect-ratio: 16/6;
    min-height: 200px;
}

.carousel-height-medium .carousel-slide .card-image {
    aspect-ratio: 16/9;
    min-height: 300px;
}

.carousel-height-large .carousel-slide .card-image {
    aspect-ratio: 16/10;
    min-height: 400px;
}

.carousel-height-xlarge .carousel-slide .card-image {
    aspect-ratio: 16/12;
    min-height: 500px;
}

/* Full image card height adjustments for carousel */
.carousel-height-small .carousel-slide .card-full_image {
    min-height: 200px;
}

.carousel-height-medium .carousel-slide .card-full_image {
    min-height: 300px;
}

.carousel-height-large .carousel-slide .card-full_image {
    min-height: 400px;
}

.carousel-height-xlarge .carousel-slide .card-full_image {
    min-height: 500px;
}

@media (max-width: 768px) {
    .carousel-height-small .carousel-slide .card-image {
        min-height: 150px;
    }

    .carousel-height-medium .carousel-slide .card-image {
        min-height: 200px;
    }

    .carousel-height-large .carousel-slide .card-image {
        min-height: 280px;
    }

    .carousel-height-xlarge .carousel-slide .card-image {
        min-height: 350px;
    }

    .carousel-height-small .carousel-slide .card-full_image {
        min-height: 150px;
    }

    .carousel-height-medium .carousel-slide .card-full_image {
        min-height: 200px;
    }

    .carousel-height-large .carousel-slide .card-full_image {
        min-height: 280px;
    }

    .carousel-height-xlarge .carousel-slide .card-full_image {
        min-height: 350px;
    }
}

/* Carousel Content Alignment */
.carousel-align-left .carousel-slide .card-content {
    text-align: left;
    align-items: flex-start;
}

.carousel-align-center .carousel-slide .card-content {
    text-align: center;
    align-items: center;
}

.carousel-align-right .carousel-slide .card-content {
    text-align: right;
    align-items: flex-end;
}

/* Carousel Content Padding */
.carousel-padding-20px .carousel-slide .card-content {
    padding: 20px;
}

.carousel-padding-40px .carousel-slide .card-content {
    padding: 40px;
}

.carousel-padding-60px .carousel-slide .card-content {
    padding: 60px;
}

.carousel-padding-80px .carousel-slide .card-content {
    padding: 80px;
}

@media (max-width: 768px) {
    .carousel-padding-60px .carousel-slide .card-content,
    .carousel-padding-80px .carousel-slide .card-content {
        padding: 30px;
    }
}

/* Carousel Image Vertical Position */
/* These styles control which part of the image is shown when cropped */

/* Ensure carousel images have proper dimensions for object-position to work */
.carousel-container .carousel-slide .card-image {
    position: relative;
    overflow: hidden;
}

.carousel-container .carousel-slide .card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Top position - show top of image */
.carousel-container.carousel-img-top .carousel-slide .card-image img {
    object-position: center top;
}

/* Center position - show center of image (default) */
.carousel-container.carousel-img-center .carousel-slide .card-image img {
    object-position: center center;
}

/* Bottom position - show bottom of image */
.carousel-container.carousel-img-bottom .carousel-slide .card-image img {
    object-position: center bottom;
}

/* Hide navigation buttons based on style */
.carousel-nav-hidden .carousel-nav-prev,
.carousel-nav-hidden .carousel-nav-next {
    display: none !important;
}

.carousel-nav-left-only .carousel-nav-next {
    display: none !important;
}

.carousel-nav-right-only .carousel-nav-prev {
    display: none !important;
}

/* ======================================
   MASONRY LAYOUT
   ====================================== */

.masonry-grid {
    columns: 4 280px;
    column-gap: 20px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .masonry-grid {
        columns: 2 200px;
    }
}

/* ======================================
   LIST LAYOUT
   ====================================== */

.list-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.list-item .card {
    flex-direction: row;
    align-items: center;
}

.list-item .card-image {
    width: 200px;
    flex-shrink: 0;
}

.list-item .card-content {
    flex: 1;
}

@media (max-width: 768px) {
    .list-item .card {
        flex-direction: column;
    }

    .list-item .card-image {
        width: 100%;
    }
}

/* ======================================
   CARD STYLES
   ====================================== */

.card {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-clickable {
    cursor: pointer;
}

.card-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
}

/* Default hover - will be overridden by specific hover classes */
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* ======================================
   CARD HOVER EFFECTS
   ====================================== */

/* No hover effect */
.card.hover-none:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Lift hover effect (default) */
.card.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Grow hover effect */
.card.hover-grow:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Glow hover effect */
.card.hover-glow:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3),
                0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Border glow hover effect */
.card.hover-border-glow {
    position: relative;
}

.card.hover-border-glow::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--theme-primary, #6366f1), var(--theme-secondary, #8b5cf6));
    border-radius: 14px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card.hover-border-glow:hover::before {
    opacity: 1;
}

.card.hover-border-glow:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* ======================================
   CARD BORDER & SHADOW MODIFIERS
   ====================================== */

/* Card with border */
.card.card-bordered {
    border: 1px solid #e5e7eb;
}

.card.card-bordered:hover {
    border-color: var(--theme-primary, #6366f1);
}

/* Card without shadow */
.card.card-no-shadow {
    box-shadow: none !important;
}

.card.card-no-shadow:hover {
    box-shadow: none !important;
}

/* Card border radius options */
.card.card-radius-none {
    border-radius: 0;
}

.card.card-radius-none .card-image {
    border-radius: 0;
}

.card.card-radius-small {
    border-radius: 6px;
}

.card.card-radius-large {
    border-radius: 20px;
}

.card.card-radius-large .card-image {
    border-radius: 20px 20px 0 0;
}

/* Card Image */
.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--card-bg-color, #f3f4f6);
    flex-shrink: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

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

.card-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

/* Image Fit Options */
.card-img-contain .card-image img {
    object-fit: contain;
}

.card-img-fill .card-image img {
    object-fit: fill;
}

/* Ensure card-image maintains background for all fit modes */
.card-img-contain .card-image,
.card-img-fill .card-image {
    background: var(--card-bg-color, #f3f4f6);
}

/* For full_image and overlay cards with contain fit */
.card-full_image.card-img-contain .card-image,
.card-overlay.card-img-contain .card-image {
    background: var(--card-bg-color, #ffffff);
}

.card-full_image.card-img-fill .card-image img,
.card-overlay.card-img-fill .card-image img {
    object-fit: fill;
}

.card-full_image.card-img-contain .card-image img,
.card-overlay.card-img-contain .card-image img {
    object-fit: contain;
}

/* Card background color support */
.card-full_image .card-image,
.card-overlay .card-image {
    background: var(--card-bg-color, #ffffff);
}

/* Placeholder for cards without images */
.card-image-placeholder {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image-placeholder .placeholder-icon {
    color: #9ca3af;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.card:hover .card-image-placeholder .placeholder-icon {
    color: var(--theme-primary, #6366f1);
    opacity: 0.8;
    transform: scale(1.1);
}

/* Card Content */
.card-content {
    padding: 20px;
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--theme-primary, #6366f1), var(--theme-secondary, #8b5cf6));
    color: white;
    border-radius: 12px;
    margin-bottom: 15px;
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--section-title-color, var(--section-text-color, var(--theme-text, #1f2937)));
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--section-text-color, var(--theme-primary, #6366f1));
    margin: 0 0 8px;
    font-weight: 500;
    opacity: 0.85;
}

.card-description {
    font-size: 0.875rem;
    color: var(--section-text-color, #6b7280);
    margin: 0 0 15px;
    line-height: 1.6;
    opacity: 0.8;
}

/* Card Styles Variations */

/* Standard - Default */
.card-standard {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Full Image */
.card-full_image {
    position: relative;
    overflow: hidden;
    min-height: 280px;
}

.card-full_image .card-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    aspect-ratio: auto;
}

.card-full_image .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-full_image .card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    pointer-events: none;
}

.card-full_image .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: white;
    z-index: 2;
    padding: 20px;
}

.card-full_image .card-title,
.card-full_image .card-subtitle,
.card-full_image .card-description {
    color: white;
}

.card-full_image .card-title {
    font-size: 1.25rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.card-full_image .card-subtitle {
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.9);
}

.card-full_image .card-description {
    opacity: 0.9;
    font-size: 0.85rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.85);
}

/* Full Image with no content - hide overlay and content */
.card-full_image.card-no-content .card-image::after {
    display: none;
}

.card-full_image.card-no-content .card-content {
    display: none;
}

/* Hide overlay when disabled via admin setting */
.card-full_image.card-no-overlay .card-image::after,
.card-overlay.card-no-overlay .card-image::after {
    display: none;
}

/* Full Image with Placeholder - show content normally */
.card-full_image .card-image-placeholder + .card-content {
    position: relative;
    color: var(--theme-text, #1f2937);
}

.card-full_image .card-image-placeholder + .card-content .card-title,
.card-full_image .card-image-placeholder + .card-content .card-subtitle,
.card-full_image .card-image-placeholder + .card-content .card-description {
    color: var(--theme-text, #1f2937);
}

.card-full_image .card-image-placeholder + .card-content .card-subtitle {
    opacity: 1;
    color: var(--theme-primary, #6366f1);
}

/* Overlay */
.card-overlay {
    position: relative;
}

.card-overlay .card-image {
    aspect-ratio: auto;
    min-height: 280px;
}

.card-overlay .card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.card-overlay .card-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 90%;
}

.card-overlay .card-title {
    color: white;
    font-size: 1.5rem;
}

.card-overlay .card-subtitle,
.card-overlay .card-description {
    color: white;
    opacity: 0.9;
}

/* Overlay with no content - hide overlay and content */
.card-overlay.card-no-content .card-image::after {
    display: none;
}

.card-overlay.card-no-content .card-content {
    display: none;
}

/* Overlay with Placeholder - show content normally */
.card-overlay .card-image-placeholder + .card-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    text-align: left;
    width: auto;
    color: var(--theme-text, #1f2937);
}

.card-overlay .card-image-placeholder + .card-content .card-title,
.card-overlay .card-image-placeholder + .card-content .card-subtitle,
.card-overlay .card-image-placeholder + .card-content .card-description {
    color: var(--theme-text, #1f2937);
}

.card-overlay .card-image-placeholder + .card-content .card-title {
    font-size: 1.125rem;
}

.card-overlay .card-image-placeholder + .card-content .card-subtitle {
    opacity: 1;
    color: var(--theme-primary, #6366f1);
}

/* Horizontal */
.card-horizontal {
    display: flex;
    flex-direction: row;
}

.card-horizontal .card-image {
    width: 40%;
    aspect-ratio: auto;
    min-height: 150px;
}

.card-horizontal .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Minimal */
.card-minimal {
    background: transparent;
    box-shadow: none;
    border-left: 3px solid var(--theme-primary, #6366f1);
    border-radius: 0;
    padding-left: 20px;
}

.card-minimal:hover {
    transform: none;
    box-shadow: none;
}

/* Bordered */
.card-bordered {
    border: 2px solid #e5e7eb;
    box-shadow: none;
}

.card-bordered:hover {
    border-color: var(--theme-primary, #6366f1);
    box-shadow: none;
}

/* Icon Style */
.card-icon-style {
    text-align: center;
    padding: 30px 20px;
}

.card-icon-style .card-icon {
    margin: 0 auto 15px;
}

/* ======================================
   STATS SECTION
   ====================================== */

.stats-section {
    background: white;
}

.stats-grid {
    display: grid;
    gap: 30px;
}

.stats-2-cols { grid-template-columns: repeat(2, 1fr); }
.stats-3-cols { grid-template-columns: repeat(3, 1fr); }
.stats-4-cols { grid-template-columns: repeat(4, 1fr); }

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--theme-primary, #6366f1), var(--theme-secondary, #8b5cf6));
    color: white;
    border-radius: 16px;
}

.stat-icon svg {
    width: 28px;
    height: 28px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--theme-primary, #6366f1);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-prefix,
.stat-suffix {
    font-size: 1.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Professional Stats Bar (Floating Card Style) */
.stats-bar-section {
    position: relative;
    margin-top: -60px;
    padding: 0 20px 80px;
    z-index: 100;
}

.stats-bar-card {
    background: white;
    border-radius: 16px;
    padding: 40px 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1),
                0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.stats-bar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        var(--theme-primary, #6366f1) 0%,
        var(--theme-secondary, #8b5cf6) 50%,
        var(--theme-accent, #ec4899) 100%);
}

.stat-item-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex: 1;
    padding: 0 20px;
    min-width: 0;
}

.stats-bar-card .stat-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.1) 0%,
        rgba(139, 92, 246, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-primary, #6366f1);
    transition: all 0.3s ease;
    margin: 0;
}

.stat-item-modern:hover .stat-icon {
    background: linear-gradient(135deg,
        var(--theme-primary, #6366f1) 0%,
        var(--theme-secondary, #8b5cf6) 100%);
    color: white;
    transform: scale(1.05);
}

.stat-content {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.stats-bar-card .stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
    font-family: var(--font-heading, 'Inter', sans-serif);
    line-height: 1;
    white-space: nowrap;
}

.stats-bar-card .stat-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-divider {
    width: 1px;
    height: 50px;
    flex-shrink: 0;
    background: linear-gradient(to bottom,
        transparent,
        #e5e7eb 20%,
        #e5e7eb 80%,
        transparent);
}

/* Stats Bar Responsive */
@media (max-width: 1024px) {
    .stats-bar-card {
        padding: 30px 20px;
    }

    .stat-item-modern {
        padding: 0 15px;
    }

    .stats-bar-card .stat-number {
        font-size: 24px;
    }

    .stats-bar-card .stat-label {
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .stats-bar-section {
        margin-top: -40px;
        padding: 0 16px 60px;
    }

    .stats-bar-card {
        flex-wrap: wrap;
        gap: 20px;
        padding: 25px 20px;
    }

    .stat-item-modern {
        flex: 0 0 calc(50% - 10px);
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 10px;
    }

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

    .stat-divider {
        display: none;
    }

    .stats-bar-card .stat-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .stats-bar-card .stat-icon svg {
        width: 24px;
        height: 24px;
    }

    .stats-bar-card .stat-number {
        font-size: 22px;
    }

    .stats-bar-card .stat-label {
        font-size: 10px;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .stats-bar-card {
        flex-direction: column;
        gap: 0;
    }

    .stat-item-modern {
        flex: none;
        width: 100%;
        flex-direction: row;
        text-align: left;
        padding: 15px 10px;
        border-bottom: 1px solid #e5e7eb;
        gap: 12px;
    }

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

    .stat-content {
        text-align: left;
    }

    .stats-bar-card .stat-number {
        font-size: 20px;
    }

    .stats-bar-card .stat-label {
        font-size: 10px;
    }
}

/* ======================================
   CTA SECTION
   ====================================== */

.cta-section {
    text-align: center;
    background: linear-gradient(135deg, var(--theme-primary, #6366f1), var(--theme-secondary, #8b5cf6));
    color: white;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px;
    color: white;
}

.cta-subtitle {
    font-size: 1.125rem;
    margin: 0 0 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ======================================
   TESTIMONIALS
   ====================================== */

.card-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.author-image {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--theme-text, #1f2937);
}

.author-title {
    font-size: 0.75rem;
    color: #6b7280;
}

.rating {
    margin-bottom: 10px;
}

.rating .star {
    color: #d1d5db;
    font-size: 1rem;
}

.rating .star.filled {
    color: #fbbf24;
}

/* ======================================
   BUTTONS
   ====================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-primary {
    background: var(--theme-primary, #6366f1);
    color: white;
    border-color: var(--theme-primary, #6366f1);
}

.btn-primary:hover {
    background: var(--theme-primary-dark, #4f46e5);
    border-color: var(--theme-primary-dark, #4f46e5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--theme-secondary, #8b5cf6);
    color: white;
    border-color: var(--theme-secondary, #8b5cf6);
}

.btn-outline {
    background: transparent;
    color: var(--theme-primary, #6366f1);
    border-color: var(--theme-primary, #6366f1);
}

.btn-outline:hover {
    background: var(--theme-primary, #6366f1);
    color: white;
}

.btn-white {
    background: white;
    color: var(--theme-primary, #6366f1);
    border-color: white;
}

.btn-white:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-dark {
    background: #1f2937;
    color: white;
    border-color: #1f2937;
}

.btn-dark:hover {
    background: #111827;
}

.btn-link {
    background: transparent;
    color: var(--theme-primary, #6366f1);
    padding: 0;
    border: none;
}

.btn-link:hover {
    text-decoration: underline;
}

/* ======================================
   ANIMATIONS
   ====================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal.slide-up {
    transform: translateY(50px);
}

.reveal.slide-left {
    transform: translateX(-50px);
}

.reveal.zoom {
    transform: scale(0.9);
}

/* Staggered animations for grid items */
.section-grid .card:nth-child(1) { transition-delay: 0.1s; }
.section-grid .card:nth-child(2) { transition-delay: 0.2s; }
.section-grid .card:nth-child(3) { transition-delay: 0.3s; }
.section-grid .card:nth-child(4) { transition-delay: 0.4s; }
.section-grid .card:nth-child(5) { transition-delay: 0.5s; }
.section-grid .card:nth-child(6) { transition-delay: 0.6s; }

/* ======================================
   NO CONTENT STATE
   ====================================== */

.no-content {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
    font-style: italic;
}

/* ======================================
   RESPONSIVE TYPOGRAPHY
   ====================================== */

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .card-content {
        padding: 15px;
    }
}
