/*!
 * VNPT WordPress Child Theme Styles
 *
 * CSS FILE ORGANIZATION:
 * ======================
 *
 * 📁 Main Files:
 * - style.css (this file)        : General styles, homepage, content sections
 * - assets/css/header-menu.css   : Header, navigation, mega menu, dropdown styles
 * - assets/css/footer.css        : Footer styles
 *
 * 📁 JavaScript Files:
 * - mega-center-fix.js          : Perfect center positioning for mega menu
 *
 * ⚠️  IMPORTANT NOTES:
 * ====================
 *
 * 🚫 DO NOT add header/menu CSS to this file - use assets/css/header-menu.css
 * 🚫 DO NOT add footer CSS to this file - use assets/css/footer.css
 * ✅ This file is for: homepage, content, cards, buttons, general layout
 *
 * 📋 CSS Loading Order:
 * 1. Bootstrap 5.3.2
 * 2. FontAwesome 6.5.1
 * 3. Header/Menu CSS (header-menu.css)
 * 4. Main styles (style.css - this file)
 * 5. Footer CSS (footer.css)
 */

/* ========================================
   CSS VARIABLES & ROOT STYLES
   ======================================== */

/**
 * Theme Name: Astra Child
 * Theme URI: http://example.com/
 * Description: Astra Child Theme
 * Author: Your Name
 * Author URI: http://example.com
 * Template: astra
 * Version: 1.0.0
 * License: GNU General Public License v2 or later
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: astra-child
 */

/* =Theme customization starts here
------------------------------------------------------- */

/* Color Palette - VNPT Brand Colors */
:root {
    /* Primary Colors */
    --primary-color: #0066CC;      /* VNPT Blue - Màu chính */
    --primary-light: #3399ff;      /* Light Blue */
    --primary-dark: #004499;       /* Dark Blue */

    /* Secondary Colors */
    --secondary-color: #00A8CC;    /* VNPT Secondary Blue */
    --secondary-light: #33c4e0;
    --secondary-dark: #007599;

    /* Neutral Colors */
    --text-primary: #1f2937;       /* Dark Gray - Text chính */
    --text-secondary: #6b7280;     /* Medium Gray - Text phụ */
    --text-light: #9ca3af;         /* Light Gray */

    /* Background Colors */
    --bg-primary: #ffffff;         /* White */
    --bg-secondary: #f9fafb;       /* Light Gray */
    --bg-tertiary: #f3f4f6;        /* Lighter Gray */

    /* Accent Colors */
    --accent-color: #f59e0b;       /* Orange - Điểm nhấn */
    --success-color: #10b981;      /* Green */
    --warning-color: #f59e0b;      /* Orange */
    --error-color: #ef4444;        /* Red */

    /* Borders & Shadows */
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);

    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: Georgia, Cambria, 'Times New Roman', serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --bg-primary: #111827;
        --bg-secondary: #1f2937;
        --bg-tertiary: #374151;
        --border-color: #374151;
    }
}

/* Basic theme styles using CSS variables */
body {
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-family: var(--font-primary);
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

/* Button styles */
.button,
.wp-block-button__link,
input[type="submit"],
input[type="button"] {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Container */
.site-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

/* Cards */
.card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

/* Header styles moved to assets/css/header-menu.css */

/* Legacy CSS removed - now using Bootstrap classes */

/* Bootstrap Override for WordPress/Astra */
.ast-header-break-point .ast-header-custom-item,
.ast-header-break-point .ast-header-account-wrap,
.ast-header-break-point .ast-header-woo-cart,
.ast-header-break-point .ast-header-search,
.ast-header-break-point .ast-site-identity,
.ast-header-break-point .ast-site-title-wrap,
.ast-header-break-point .site-title,
.ast-header-break-point .ast-logo-title-inline .site-logo-img,
.ast-header-break-point .ast-logo-title-inline .site-title,
.ast-header-break-point .ast-menu-toggle,
.ast-header-break-point .main-header-menu,
.ast-header-break-point .ast-mobile-menu-trigger-minimal,
.site-header .ast-builder-menu,
.site-header .ast-above-header,
.site-header .ast-below-header {
    display: none !important;
}

/* Reset Astra Header Styles */
.site-header,
#masthead {
    position: relative !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    min-height: auto !important;
    line-height: normal !important;
    padding: 0 !important;
    margin: 0 !important;
}

.main-header-bar,
.ast-primary-header {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ast-container,
.ast-main-header-wrap {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}

/* VNPT Top Bar Styles */
.vnpt-top-bar {
    font-size: 0.875rem;
}

.vnpt-slogan {
    font-style: italic;
    opacity: 0.95;
}

/* VNPT Logo */
/* ========================================
   ALL HEADER/MENU CSS MOVED TO: assets/css/header-menu.css
   ======================================== */

/* All header/navigation/mega menu CSS moved to assets/css/header-menu.css */

/* ========================================
   HOMEPAGE & CONTENT STYLES
   ======================================== */

/* ========================================
   VNPT HOMEPAGE STYLES
   ======================================== */

/* Hero Banner */
.vnpt-hero-banner {
  position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 100px 0;
    overflow: hidden;
}

.vnpt-slider {
    position: relative;
}

.vnpt-slide {
    display: none;
}

.vnpt-slide.active {
    display: block;
}

.vnpt-slide-content {
    max-width: 600px;
}

.vnpt-slide-content h1 {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.vnpt-slide-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.vnpt-slide-buttons {
    display: flex;
    gap: 15px;
}

.vnpt-btn {
    display: inline-block;
    padding: 14px 30px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-align: center;
}

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

.vnpt-btn-primary:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.vnpt-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.vnpt-btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.vnpt-slider-dots {
  position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.vnpt-slider-dots .dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
  cursor: pointer;
    transition: all 0.3s ease;
}

.vnpt-slider-dots .dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* Quick Access */
.vnpt-quick-access {
    background: white;
    padding: 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.vnpt-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.vnpt-quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-decoration: none;
    color: var(--text-primary);
    border-right: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.vnpt-quick-item:last-child {
    border-right: none;
}

.vnpt-quick-item:hover {
    background: var(--primary-color);
    color: white;
}

.vnpt-quick-item i {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.vnpt-quick-item:hover i {
    color: white;
}

.vnpt-quick-item span {
    font-weight: 600;
    font-size: 16px;
}

/* Section Styles */
.vnpt-section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-primary);
    position: relative;
}

.vnpt-section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.vnpt-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
    margin-bottom: 40px;
}

.vnpt-section-header .vnpt-section-title {
    margin-bottom: 0;
}

.vnpt-section-header .vnpt-section-title::after {
    display: none;
}

/* Promotions */
.vnpt-promotions {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.vnpt-promo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.vnpt-promo-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.vnpt-promo-image {
    height: 200px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.vnpt-promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vnpt-promo-content {
  padding: 20px;
}

.vnpt-promo-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.vnpt-promo-content p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.vnpt-link {
    color: var(--primary-color);
  font-weight: 600;
    text-decoration: none;
}

.vnpt-link:hover {
    color: var(--primary-dark);
}

/* Featured Services */
.vnpt-featured-services {
    padding: 80px 0;
}

.vnpt-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.vnpt-service-col h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.vnpt-service-col ul {
  list-style: none;
  padding: 0;
    margin: 0;
}

.vnpt-service-col li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.vnpt-service-col li:last-child {
  border-bottom: none;
}

.vnpt-service-col a {
    color: var(--text-primary);
  text-decoration: none;
    display: block;
    padding-left: 20px;
    position: relative;
}

.vnpt-service-col a::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.vnpt-service-col a:hover {
    color: var(--primary-color);
    padding-left: 25px;
}

/* Packages */
.vnpt-packages {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.vnpt-package-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.vnpt-package-card {
    background: white;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.vnpt-package-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.vnpt-package-card:hover {
    box-shadow: var(--shadow-lg);
}

.vnpt-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.vnpt-package-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.vnpt-package-price {
    margin-bottom: 30px;
}

.vnpt-package-price .price {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
}

.vnpt-package-price .unit {
  font-size: 16px;
    color: var(--text-secondary);
}

.vnpt-package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.vnpt-package-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.vnpt-package-features li:last-child {
    border-bottom: none;
}

/* News */


.vnpt-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.vnpt-news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.vnpt-news-card:hover {
    box-shadow: var(--shadow-lg);
}

.vnpt-news-image {
    height: 180px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

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

.vnpt-news-content {
  padding: 20px;
}

.vnpt-news-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.vnpt-news-content h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.vnpt-news-content h3 a:hover {
    color: var(--primary-color);
}

.vnpt-news-meta {
    color: var(--text-light);
  font-size: 14px;
    margin-bottom: 10px;
}

/* Help Section */
.vnpt-help {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.vnpt-help-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
}

.vnpt-help-item {
    background: white;
    padding: 30px 20px;
    text-align: center;
    border-radius: 8px;
  text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.vnpt-help-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.vnpt-help-item i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.vnpt-help-item:hover i {
    color: white;
}

.vnpt-help-item h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: inherit;
}

.vnpt-help-item p {
    font-size: 14px;
    color: inherit;
    opacity: 0.8;
    margin: 0;
}

/* Responsive Homepage */
@media (max-width: 1024px) {
    .vnpt-quick-grid {
        grid-template-columns: repeat(2, 2fr);
    }

    .vnpt-promo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vnpt-services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .vnpt-package-grid {
        grid-template-columns: 1fr;
    gap: 20px;
  }

    .vnpt-package-card.featured {
        transform: none;
    }

    .vnpt-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vnpt-help-grid {
        grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
    .vnpt-hero-banner {
        padding: 60px 0;
    }

    .vnpt-slide-content h1 {
        font-size: 32px;
    }

    .vnpt-slide-content p {
        font-size: 16px;
    }

    .vnpt-slide-buttons {
        flex-direction: column;
    }

    .vnpt-quick-grid {
        grid-template-columns: 1fr;
        margin-top: 0;
    }

    .vnpt-quick-item {
        padding: 20px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

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

    .vnpt-section-title {
        font-size: 28px;
    }

    .vnpt-promo-grid,
    .vnpt-news-grid {
        grid-template-columns: 1fr;
    }

    .vnpt-help-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/*
Theme Name: Astra Child VNPT
Description: Enhanced child theme for VNPT with modern search functionality and FontAwesome icons
Author: VNPT Development Team
Template: astra
Version: 1.0.3
Text Domain: astra-child
*/

/* Parent theme styles */
@import url("../astra/style.css");

/* ===== GLOBAL VNPT OVERRIDES ===== */
:root {
    --vnpt-primary: #0066CC;
    --vnpt-secondary: #00A8CC;
    --vnpt-accent: #FF6B35;
    --vnpt-success: #10B981;
    --vnpt-warning: #F59E0B;
    --vnpt-error: #EF4444;
    --vnpt-text: #1e293b;
    --vnpt-text-light: #64748b;
    --vnpt-bg: #ffffff;
    --vnpt-bg-light: #f8fafc;
}

/* ===== FONTAWESOME ICON IMPROVEMENTS ===== */
.fas, .far, .fab {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
}

/* Ensure FontAwesome icons are properly styled */
i.fas, i.far, i.fab {
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

/* ===== SEARCH PAGE SPECIFIC OVERRIDES ===== */
body.search .site-content {
    padding: 0;
}

body.search .ast-container {
    max-width: 100%;
    padding: 0;
}

/* Fix for Astra theme conflicts */
.vnpt-search-page .site-main {
    background: none;
    padding: 0;
    margin: 0;
}

.vnpt-search-page .ast-article-post {
    background: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
}

/* ===== ENHANCED SEARCH BUTTON STYLES ===== */
.vnpt-search-btn {
    position: relative;
    overflow: hidden;
}

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

.vnpt-search-btn:hover::before {
    left: 100%;
}

/* ===== SEARCH INPUT ENHANCEMENTS ===== */
.vnpt-search-input::-webkit-input-placeholder {
    color: #94a3b8;
    font-style: italic;
}

.vnpt-search-input::-moz-placeholder {
    color: #94a3b8;
    font-style: italic;
    opacity: 1;
}

.vnpt-search-input:-ms-input-placeholder {
    color: #94a3b8;
    font-style: italic;
}

.vnpt-search-input::placeholder {
    color: #94a3b8;
    font-style: italic;
}

/* ===== IMPROVED ACCESSIBILITY ===== */
.vnpt-search-input:focus,
.vnpt-search-filter select:focus,
.vnpt-search-btn:focus {
    outline: 2px solid var(--vnpt-primary);
    outline-offset: 2px;
}

/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ===== SEARCH RESULT HOVER EFFECTS ===== */
.vnpt-search-result-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vnpt-search-result-item:hover .vnpt-result-thumbnail img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.vnpt-search-result-item:hover .vnpt-result-title a {
    transform: translateX(4px);
    transition: transform 0.3s ease;
}

/* ===== LOADING STATES ===== */
.vnpt-search-loading {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--vnpt-bg);
    padding: 1rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 0.75rem 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.vnpt-search-loading.show {
    display: block;
}

/* ===== ENHANCED TOOLTIPS ===== */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

[data-tooltip]:hover:before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

/* ===== SEARCH STATISTICS ===== */
.vnpt-search-stats {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #bae6fd;
    border-radius: 0.75rem;
    padding: 1rem;
    margin: 1rem 0;
    font-size: 0.875rem;
    color: #0369a1;
}

.vnpt-search-stats i {
    color: var(--vnpt-secondary);
    margin-right: 0.5rem;
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
    .vnpt-search-page {
        padding: 1rem 0;
    }

    .vnpt-search-container {
        padding: 1rem;
    }

    .vnpt-search-form {
        padding: 1rem;
    }

    .vnpt-search-title h1 {
        font-size: 1.5rem;
    }

    .vnpt-search-filters {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .vnpt-search-actions {
        flex-direction: column;
    }

    .vnpt-search-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== DARK MODE ENHANCEMENTS ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --vnpt-bg: #1e293b;
        --vnpt-bg-light: #0f172a;
        --vnpt-text: #f1f5f9;
        --vnpt-text-light: #94a3b8;
    }

    .vnpt-search-page {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    }

    .vnpt-search-input,
    .vnpt-search-filter select {
        background: var(--vnpt-bg);
        color: var(--vnpt-text);
        border-color: #334155;
    }

    .vnpt-search-result-item {
        background: var(--vnpt-bg);
        border-color: #334155;
    }

    .vnpt-result-title a {
        color: var(--vnpt-text);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .vnpt-search-form,
    .vnpt-search-pagination,
    .vnpt-search-history {
        display: none !important;
    }

    .vnpt-search-result-item {
        page-break-inside: avoid;
        margin-bottom: 1rem;
        border: 1px solid #ccc;
        box-shadow: none;
    }

    .vnpt-result-title a {
        color: #000 !important;
        text-decoration: underline;
    }

    .vnpt-search-page {
        background: white !important;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    .vnpt-search-result-item {
        border: 2px solid;
    }

    .vnpt-search-btn {
        border-width: 3px;
    }

    .vnpt-result-type {
        background: #000 !important;
        color: #fff !important;
    }
}

/* ===== REDUCE MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .vnpt-search-result-item:hover .vnpt-result-thumbnail img,
    .vnpt-search-result-item:hover .vnpt-result-title a {
        transform: none;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.vnpt-search-result-item img {
    will-change: transform;
    backface-visibility: hidden;
}

.vnpt-search-btn {
    will-change: transform;
    backface-visibility: hidden;
}

/* ===== CUSTOM SCROLLBAR FOR AUTOCOMPLETE ===== */
.vnpt-autocomplete-dropdown::-webkit-scrollbar {
    width: 8px;
}

.vnpt-autocomplete-dropdown::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.vnpt-autocomplete-dropdown::-webkit-scrollbar-thumb {
    background: var(--vnpt-primary);
    border-radius: 4px;
}

.vnpt-autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--vnpt-secondary);
}

/* ===== FINAL TOUCH ANIMATIONS ===== */
@keyframes searchSuccess {
    0% { background-color: var(--vnpt-bg); }
    50% { background-color: rgba(16, 185, 129, 0.1); }
    100% { background-color: var(--vnpt-bg); }
}

.vnpt-search-result-item.search-success {
    animation: searchSuccess 1s ease-in-out;
}

/* ===== UTILITY CLASSES ===== */
.vnpt-hidden { display: none !important; }
.vnpt-visible { display: block !important; }
.vnpt-text-center { text-align: center !important; }
.vnpt-text-left { text-align: left !important; }
.vnpt-text-right { text-align: right !important; }

.vnpt-mt-1 { margin-top: 0.25rem !important; }
.vnpt-mt-2 { margin-top: 0.5rem !important; }
.vnpt-mt-3 { margin-top: 0.75rem !important; }
.vnpt-mt-4 { margin-top: 1rem !important; }

.vnpt-mb-1 { margin-bottom: 0.25rem !important; }
.vnpt-mb-2 { margin-bottom: 0.5rem !important; }
.vnpt-mb-3 { margin-bottom: 0.75rem !important; }
.vnpt-mb-4 { margin-bottom: 1rem !important; }

.vnpt-text-primary { color: var(--vnpt-primary) !important; }
.vnpt-text-secondary { color: var(--vnpt-secondary) !important; }
.vnpt-text-accent { color: var(--vnpt-accent) !important; }
.vnpt-text-success { color: var(--vnpt-success) !important; }
.vnpt-text-warning { color: var(--vnpt-warning) !important; }
.vnpt-text-error { color: var(--vnpt-error) !important; }

/* ========================================
   VNPT NEWS & EVENTS STYLES
   Custom styles for archive.php and single.php
   ======================================== */

/* Archive Page Styles */
.vnpt-archive-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

.vnpt-archive-hero::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="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.vnpt-archive-hero .container {
    position: relative;
    z-index: 2;
}

.vnpt-archive-hero h1 {
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Filter Section */
.vnpt-archive-filters {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.vnpt-archive-filters .btn-group .btn {
    border-radius: 20px;
    margin-right: 0.5rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.vnpt-archive-filters .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.vnpt-archive-filters .btn-outline-primary:hover,
.vnpt-archive-filters .btn-outline-primary.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.3);
}

/* Post Cards */
.vnpt-post-card .card {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    overflow: hidden;
    height: 100%;
}

.vnpt-post-card .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 102, 204, 0.15) !important;
    border-color: var(--primary-color);
}

.vnpt-post-card.featured .card {
    border: 2px solid var(--primary-color);
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
}

.vnpt-post-card.featured .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.vnpt-post-image {
    position: relative;
    overflow: hidden;
}

.vnpt-post-image img {
    transition: transform 0.4s ease;
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.vnpt-post-card:hover .vnpt-post-image img {
    transform: scale(1.08);
}

.vnpt-featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
}

.vnpt-featured-badge .badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    background: var(--primary-color) !important;
}

/* Post Meta */
.vnpt-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.vnpt-post-meta .text-primary {
    color: var(--primary-color) !important;
    font-weight: 700;
    background: rgba(0, 102, 204, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* Read More Link */
.vnpt-read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0;
}

.vnpt-read-more:hover {
    color: var(--secondary-color);
    transform: translateX(8px);
}

.vnpt-read-more i {
    transition: transform 0.3s ease;
    margin-left: 0.5rem;
}

.vnpt-read-more:hover i {
    transform: translateX(5px);
}

/* Pagination */
.vnpt-pagination .pagination {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

.vnpt-pagination .page-link {
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.875rem 1.25rem;
    transition: all 0.3s ease;
}

.vnpt-pagination .page-link:hover {
    background-color: var(--bg-secondary);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.vnpt-pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
}

/* Sidebar Widgets */
.vnpt-widget {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.vnpt-widget:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.vnpt-widget-title {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
    font-size: 1.1rem;
}

.vnpt-widget-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* Featured Posts in Sidebar */
.vnpt-featured-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.vnpt-featured-item:hover {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 1rem;
    margin: 0 -1rem;
}

.vnpt-featured-thumb img {
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

.vnpt-featured-item:hover .vnpt-featured-thumb img {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

/* Tags */
.vnpt-tags .badge {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    font-weight: 600;
}

.vnpt-tags .badge:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 102, 204, 0.4);
}

/* Single Post Styles */
.vnpt-single-nav {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.vnpt-single-nav .breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.vnpt-single-nav .breadcrumb-item a:hover {
    color: var(--secondary-color);
    transform: translateX(3px);
}

/* Article Header */
.vnpt-single-header {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.vnpt-article-meta .badge {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
}

.vnpt-article-title {
    line-height: 1.2;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.vnpt-article-excerpt {
    border-left: 5px solid var(--primary-color);
    background: var(--bg-secondary) !important;
    position: relative;
    border-radius: 10px;
}

.vnpt-article-excerpt::before {
    content: '"';
    position: absolute;
    top: -15px;
    left: 25px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: Georgia, serif;
}

/* Share Buttons */
.vnpt-share-buttons .btn {
    margin-right: 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: 25px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-facebook {
    background-color: #1877f2;
    color: white;
}

.btn-facebook:hover {
    background-color: #166fe5;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(24, 119, 242, 0.4);
}

.btn-info {
    background-color: #1da1f2;
    color: white;
}

.btn-info:hover {
    background-color: #0d8bd9;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(29, 161, 242, 0.4);
}

/* Featured Image */
.vnpt-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.vnpt-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    margin: 0;
}

/* Article Content */
.vnpt-content-wrapper {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
    position: relative;
}

.vnpt-content.prose {
    line-height: 1.8;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.vnpt-content.prose h2,
.vnpt-content.prose h3,
.vnpt-content.prose h4 {
    color: var(--text-primary);
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.vnpt-content.prose h2 {
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.75rem;
    position: relative;
}

.vnpt-content.prose h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

.vnpt-content.prose p {
    margin-bottom: 1.8rem;
    text-align: justify;
}

.vnpt-content.prose img {
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    margin: 2rem 0;
    width: 100%;
}

.vnpt-content.prose blockquote {
    border-left: 5px solid var(--primary-color);
    background: var(--bg-secondary);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 15px 15px 0;
    font-style: italic;
    position: relative;
}

.vnpt-content.prose blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
}

/* Author Box */
.vnpt-author-box {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    border-radius: 15px;
}

.vnpt-author-box:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.15);
    transform: translateY(-3px);
}

/* Table of Contents */
.vnpt-toc {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.vnpt-toc a {
    color: var(--text-primary);
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: block;
    text-decoration: none;
    margin-bottom: 0.25rem;
}

.vnpt-toc a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(8px);
}

/* Related Posts */
.vnpt-related-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.vnpt-related-item:hover {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 1rem;
    margin: 0 -1rem;
}

.vnpt-related-thumb img {
    border-radius: 8px;
    transition: all 0.3s ease;
}

.vnpt-related-item:hover .vnpt-related-thumb img {
    transform: scale(1.05);
}

/* Newsletter Widget */
.vnpt-newsletter-form .form-control {
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.15);
    color: white;
    border-radius: 25px 0 0 25px;
    padding: 0.75rem 1.25rem;
}

.vnpt-newsletter-form .form-control::placeholder {
    color: rgba(255,255,255,0.8);
}

.vnpt-newsletter-form .form-control:focus {
    border-color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.25);
    box-shadow: none;
    color: white;
}

.vnpt-newsletter-form .btn-light {
    border-radius: 0 25px 25px 0;
    border: 2px solid rgba(255,255,255,0.3);
    border-left: none;
    padding: 0.75rem 1.25rem;
}

/* Post Navigation */
.vnpt-post-navigation {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.vnpt-nav-item h6 a {
    color: var(--text-primary);
    transition: all 0.3s ease;
    text-decoration: none;
}

.vnpt-nav-item h6 a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .vnpt-archive-hero {
        padding: 2rem 0;
    }

    .vnpt-archive-hero .display-4 {
        font-size: 1.75rem;
    }

    .vnpt-archive-filters .btn-group {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .vnpt-single-header {
        padding: 1.5rem 0;
    }

    .vnpt-article-title {
        font-size: 1.5rem;
    }

    .vnpt-content-wrapper {
        padding: 1.5rem;
    }

    .vnpt-widget {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .vnpt-content-wrapper {
        padding: 1rem;
        border-radius: 10px;
    }

    .vnpt-widget {
        padding: 1rem;
    }

    .vnpt-share-buttons {
        text-align: center;
    }

    .vnpt-share-buttons .btn {
        margin: 0.25rem;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Animation for Cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vnpt-post-card {
    animation: fadeInUp 0.6s ease-out;
}

.vnpt-post-card:nth-child(1) { animation-delay: 0.1s; }
.vnpt-post-card:nth-child(2) { animation-delay: 0.2s; }
.vnpt-post-card:nth-child(3) { animation-delay: 0.3s; }
.vnpt-post-card:nth-child(4) { animation-delay: 0.4s; }
.vnpt-post-card:nth-child(5) { animation-delay: 0.5s; }
.vnpt-post-card:nth-child(6) { animation-delay: 0.6s; }

/* VNPT News Page - Full Width Background Override */
body.vnpt-news-beautiful-page .site-content,
body.vnpt-news-beautiful-page #content.site-content,
body.vnpt-news-beautiful-page .site #content,
body.vnpt-news-beautiful-page .ast-container,
html body.vnpt-news-beautiful-page .site-content {
    background: linear-gradient(to bottom, #fafbfc 0%, #f5f7fa 100%) !important;
    min-height: 100vh !important;
    width: 100vw !important;
    max-width: none !important;
    position: relative !important;
    padding: 0 !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
}

/* Ensure containers inside maintain proper width */
.vnpt-news-beautiful-page .site-content .container,
.vnpt-news-beautiful-page .site-content > .container,
.vnpt-news-beautiful-page .vnpt-news-beautiful .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: auto !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
}

/* Override any theme padding/margin on body */
body.vnpt-news-beautiful-page {
    overflow-x: hidden !important;
}
