/**
 * VFSTD Template CSS
 * Modern template with blue color scheme based on VFSTD logo
 */

/* CSS Variables */
:root {
    --vfstd-primary: #00AEEF;
    --vfstd-secondary: #0056B3;
    --vfstd-light: #E6F7FF;
    --vfstd-dark: #003366;
    --vfstd-gray: #F5F5F5;
    --vfstd-white: #FFFFFF;
    --vfstd-text: #333333;
    --vfstd-text-light: #666666;
    --vfstd-border: #E0E0E0;
    --vfstd-shadow: 0 2px 10px rgba(0, 174, 239, 0.1);
    --vfstd-shadow-hover: 0 4px 20px rgba(0, 174, 239, 0.2);
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--vfstd-text);
    background-color: var(--vfstd-white);
    margin: 0;
    padding: 0;
    font-size: 16px;
}
img {
    max-width: 100%;
    height: auto;
}

/* Top Bar */
.vfstd-topbar {
    background-color: var(--vfstd-dark);
    color: var(--vfstd-white);
    padding: 8px 0;
    font-size: 16px;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-links ul,
.topbar-links .mod-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.topbar-links ul li,
.topbar-links .mod-list li {
    display: inline-flex;
    align-items: center;
}

.topbar-links a,
.topbar-links a:link,
.topbar-links a:visited {
    color: var(--vfstd-white);
    text-decoration: none;
    margin-right: 20px;
    transition: color 0.3s ease;
    display: inline-block;
}

.topbar-links ul li:last-child > a,
.topbar-links .mod-list li:last-child > a,
.topbar-links a:last-child {
    margin-right: 0;
    padding: 0 20px;
}

.topbar-links a:hover,
.topbar-links a:focus,
.topbar-links a:active {
    color: var(--vfstd-primary);
    text-decoration: none;
}

.topbar-search {
    color: var(--vfstd-white);
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.topbar-search:hover {
    color: var(--vfstd-primary);
}

.topbar-search.active {
    color: var(--vfstd-primary);
}

/* Search Dropdown */
.search-dropdown {
    background-color: var(--vfstd-secondary);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
    position: relative;
    z-index: 999;
}

.search-dropdown.open {
    max-height: 80px;
    padding: 10px 0;
}

.search-dropdown-form {
    width: 100%;
}

.search-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-dropdown-input {
    flex: 1;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.search-dropdown-input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.search-dropdown-input:focus {
    background: rgba(255, 255, 255, 0.25);
}

.search-dropdown-btn {
    padding: 8px 20px;
    background: var(--vfstd-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    transition: background 0.2s;
}

.search-dropdown-btn:hover {
    background: #0099d6;
}

.search-dropdown-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 18px;
    padding: 4px 8px;
    flex-shrink: 0;
    transition: color 0.2s;
    line-height: 1;
}

.search-dropdown-close:hover {
    color: #fff;
}

/* Header */
.vfstd-header {
    background-color: var(--vfstd-white);
    padding: 20px 0;
    box-shadow: var(--vfstd-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.vfstd-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.vfstd-logo:hover {
    opacity: 0.8;
    text-decoration: none;
}

.logo-img {
    max-height: 60px;
    width: auto;
}

.logo-text {
    background: linear-gradient(135deg, var(--vfstd-primary), var(--vfstd-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 2px;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--vfstd-dark);
    margin: 0;
}

.site-description {
    font-size: 14px;
    color: var(--vfstd-text-light);
    margin: 5px 0 0 0;
}

/* Header Right Section */
.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

/* Navigation */
.vfstd-navigation {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.vfstd-navigation .nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

/* Navigation styles - support both .vfstd-navigation and .header-right .vfstd-menu */
.vfstd-navigation .nav-item,
.header-right .vfstd-menu .nav-item {
    position: relative;
}

/* Base style for all nav links */
.vfstd-navigation .nav-link,
.header-right .vfstd-menu .nav-link {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 4px;
    white-space: nowrap;
}

/* Apply gradient to all level 1 menu items */
.vfstd-navigation > .nav-pills > .nav-item > .nav-link,
.header-right .vfstd-menu > .nav-pills > .nav-item > .nav-link {
    padding: 8px 12px;
    font-size: 20px;
    color: #333;
}
.vfstd-navigation > .nav-pills > .nav-item.active > .nav-link,
.header-right .vfstd-menu > .nav-pills > .nav-item.show > .nav-link,
.header-right .vfstd-menu > .nav-pills > .nav-item.current > .nav-link,
.header-right .vfstd-menu > .nav-pills > .nav-item:hover > .nav-link {
    color: var(--vfstd-white) !important;
    background: linear-gradient(135deg, var(--vfstd-primary), var(--vfstd-secondary)) !important;
    box-shadow: 0 2px 8px rgba(0, 174, 239, 0.2);
}

/* Enhance gradient on hover/active */
.vfstd-navigation > .nav-pills > .nav-item > .nav-link:hover,
.vfstd-navigation > .nav-pills > .nav-item.active > .nav-link,
.vfstd-navigation > .nav-pills > .nav-item.current > .nav-link,
.vfstd-navigation > .nav-pills > .nav-item.dropdown.show > .nav-link,
.header-right .vfstd-menu > .nav-pills > .nav-item > .nav-link:hover,
.header-right .vfstd-menu > .nav-pills > .nav-item.active > .nav-link,
.header-right .vfstd-menu > .nav-pills > .nav-item.current > .nav-link,
.header-right .vfstd-menu > .nav-pills > .nav-item.dropdown.show > .nav-link {
    box-shadow: 0 4px 12px rgba(0, 174, 239, 0.4) !important;
    transform: translateY(-1px);
}

/* Dropdown menu styles */
.vfstd-navigation .nav-item.dropdown,
.header-right .vfstd-menu .nav-item.dropdown {
    position: relative;
}

/* Level 1 dropdown (main menu) */
.vfstd-navigation > .nav-pills > .nav-item.dropdown > .dropdown-menu,
.header-right .vfstd-menu > .nav-pills > .nav-item.dropdown > .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background-color: var(--vfstd-white);
    border: 1px solid var(--vfstd-border);
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    margin-top: 0;
    z-index: 1000;
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* Level 2+ dropdown (submenu) - show to the right */
.vfstd-navigation .dropdown-menu .nav-item.dropdown > .dropdown-menu,
.header-right .vfstd-menu .dropdown-menu .nav-item.dropdown > .dropdown-menu {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 250px;
    background-color: var(--vfstd-white);
    border: 1px solid var(--vfstd-border);
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    margin-left: 5px;
    z-index: 1001;
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.vfstd-navigation .nav-item.dropdown:hover > .dropdown-menu,
.vfstd-navigation .nav-item.dropdown.show > .dropdown-menu,
.header-right .vfstd-menu .nav-item.dropdown:hover > .dropdown-menu,
.header-right .vfstd-menu .nav-item.dropdown.show > .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.vfstd-navigation .dropdown-menu .nav-item.dropdown:hover > .dropdown-menu,
.vfstd-navigation .dropdown-menu .nav-item.dropdown.show > .dropdown-menu,
.header-right .vfstd-menu .dropdown-menu .nav-item.dropdown:hover > .dropdown-menu,
.header-right .vfstd-menu .dropdown-menu .nav-item.dropdown.show > .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.vfstd-navigation .dropdown-menu .nav-item,
.header-right .vfstd-menu .dropdown-menu .nav-item {
    display: block;
    width: 100%;
    position: relative;
}

.vfstd-navigation .dropdown-menu .nav-link,
.header-right .vfstd-menu .dropdown-menu .nav-link {
    padding: 12px 20px;
    font-size: 16px;
    color: var(--vfstd-text);
    border-radius: 0;
    white-space: nowrap;
    display: block;
    position: relative;
}

/* Add extra padding for dropdown items that have children */
.vfstd-navigation .dropdown-menu .nav-item.dropdown > .nav-link,
.header-right .vfstd-menu .dropdown-menu .nav-item.dropdown > .nav-link {
    padding-right: 40px;
}

/* Light background for dropdown items hover */
.vfstd-navigation .dropdown-menu .nav-link:hover,
.vfstd-navigation .dropdown-menu .nav-item.active > .nav-link,
.vfstd-navigation .dropdown-menu .nav-item.current > .nav-link,
.vfstd-navigation .dropdown-menu .nav-item.show > .nav-link,
.header-right .vfstd-menu .dropdown-menu .nav-link:hover,
.header-right .vfstd-menu .dropdown-menu .nav-item.active > .nav-link,
.header-right .vfstd-menu .dropdown-menu .nav-item.current > .nav-link{
    background-color: var(--vfstd-light);
    color: var(--vfstd-primary);
}

/* Icon for menu items with dropdown - Level 1 (down arrow) */
.vfstd-navigation > .nav-pills > .nav-item.dropdown > .nav-link::after,
.header-right .vfstd-menu > .nav-pills > .nav-item.dropdown > .nav-link::after {
    content: "";
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.3s ease;
}

.vfstd-navigation > .nav-pills > .nav-item.dropdown:hover > .nav-link::after,
.vfstd-navigation > .nav-pills > .nav-item.dropdown.show > .nav-link::after,
.header-right .vfstd-menu > .nav-pills > .nav-item.dropdown:hover > .nav-link::after,
.header-right .vfstd-menu > .nav-pills > .nav-item.dropdown.show > .nav-link::after {
    transform: rotate(180deg);
}

/* Icon for submenu items with dropdown - Level 2+ (right arrow) */
.vfstd-navigation .dropdown-menu .nav-item.dropdown > .nav-link::after,
.header-right .vfstd-menu .dropdown-menu .nav-item.dropdown > .nav-link::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid currentColor;
    transition: all 0.3s ease;
}

.vfstd-navigation .dropdown-menu .nav-item.dropdown:hover > .nav-link::after,
.vfstd-navigation .dropdown-menu .nav-item.dropdown.show > .nav-link::after,
.header-right .vfstd-menu .dropdown-menu .nav-item.dropdown:hover > .nav-link::after,
.header-right .vfstd-menu .dropdown-menu .nav-item.dropdown.show > .nav-link::after {
    transform: translateY(-50%) translateX(3px);
}

/* Hero Section */
.vfstd-hero {
    position: relative;
    height: 628px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--vfstd-primary), var(--vfstd-secondary));
}

.hero-article {
    position: relative;
    height: 628px;
    display: flex;
    align-items: center;
}

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

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.95), rgba(0, 174, 239, 0.95));
    z-index: 3;
    display: flex;
    align-items: center;
    padding: 30px;
    box-sizing: border-box;
    pointer-events: none;
}

.hero-overlay * {
    pointer-events: auto;
}

.hero-text {
    color: var(--vfstd-white);
    width: 70%;
}

.hero-text h2 {
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-text p {
    margin-bottom: 20px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-text .btn-vfstd {
    background-color: var(--vfstd-primary);
    color: var(--vfstd-white);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 14px;
}

.hero-text .btn-vfstd:hover {
    background-color: var(--vfstd-secondary);
    transform: translateY(-2px);
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 628px;
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
    user-select: none;
    -webkit-user-select: none;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 628px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
    z-index: 1;
    will-change: opacity, transform;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-dots {
    display: none !important;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--vfstd-white);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background: var(--vfstd-white);
}

.hero-prev,
.hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    color: var(--vfstd-primary);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

/* Articles Card Layout */
.vfstd-articles-card {
    background-color: var(--vfstd-white);
    border-radius: 8px;
    box-shadow: var(--vfstd-shadow);
    overflow: hidden;
    margin-bottom: 20px;
}

.vfstd-articles-card .vfstd-card-header {
    background: linear-gradient(135deg, var(--vfstd-primary), var(--vfstd-secondary));
    color: var(--vfstd-white);
    padding: 15px 20px;
    font-weight: bold;
    font-size: 16px;
    margin: 0;
}

.vfstd-articles-card .vfstd-card-body {
    padding: 20px;
}

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

.article-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--vfstd-border);
}

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

.article-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--vfstd-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vfstd-primary);
    font-size: 24px;
}

.article-content {
    flex: 1;
}

.article-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.article-title a {
    color: var(--vfstd-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: var(--vfstd-primary);
}

.article-intro {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: var(--vfstd-text-light);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--vfstd-text-light);
}

.article-date {
    color: var(--vfstd-primary);
    font-weight: 500;
}

.article-category {
    color: var(--vfstd-text-light);
}

/* Announcements Layout */
.vfstd-announcements {
    margin-bottom: 20px;
}

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

.announcement-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--vfstd-border);
}

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

.announcement-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.announcement-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.announcement-thumb .thumb-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--vfstd-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vfstd-primary);
    font-size: 24px;
}

.announcement-content {
    flex: 1;
}

.announcement-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.announcement-title a {
    color: var(--vfstd-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.announcement-title a:hover {
    color: var(--vfstd-primary);
}

.announcement-intro {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: var(--vfstd-text-light);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.announcement-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--vfstd-text-light);
}

.announcement-date {
    color: var(--vfstd-primary);
    font-weight: 500;
}

.announcement-category {
    color: var(--vfstd-text-light);
}

/* Announcements List Layout */
.vfstd-announcements-list {
    margin-bottom: 20px;
}

.vfstd-announcements-list .vfstd-card-header {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: var(--vfstd-white);
    padding: 15px 20px;
    font-weight: bold;
    font-size: 16px;
    margin: 0;
    border-radius: 8px 8px 0 0;
}

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

.vfstd-announcements-list .announcement-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--vfstd-border);
    align-items: flex-start;
}

.vfstd-announcements-list .announcement-item:last-child {
    border-bottom: none;
}

.vfstd-announcements-list .announcement-date {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--vfstd-primary), var(--vfstd-secondary));
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--vfstd-white);
    text-align: center;
}

.vfstd-announcements-list .announcement-date .day {
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

.vfstd-announcements-list .announcement-date .month {
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
}

.vfstd-announcements-list .announcement-content {
    flex: 1;
}

.vfstd-announcements-list .announcement-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.vfstd-announcements-list .announcement-title a {
    color: var(--vfstd-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.vfstd-announcements-list .announcement-title a:hover {
    color: var(--vfstd-primary);
}

.vfstd-announcements-list .announcement-intro {
    margin: 0;
    font-size: 14px;
    color: var(--vfstd-text-light);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Three Columns Section */
.vfstd-three-columns {
    padding: 40px 0;
    background-color: var(--vfstd-gray);
}

/* Quick Links */
.vfstd-quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.quick-link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--vfstd-white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: var(--vfstd-dark);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-left: 3px solid var(--vfstd-primary);
}

.quick-link-item:hover {
    background: var(--vfstd-primary);
    color: var(--vfstd-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 174, 239, 0.3);
}

.quick-link-item i {
    font-size: 18px;
    color: var(--vfstd-primary);
    min-width: 20px;
    text-align: center;
    transition: color 0.3s ease;
}

.quick-link-item:hover i {
    color: var(--vfstd-white);
}

.quick-link-item span {
    line-height: 1.3;
}

.vfstd-card {
    height: 100%;
    margin-bottom: 30px;
    background-color: var(--vfstd-white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.vfstd-card-header {
    background: linear-gradient(135deg, var(--vfstd-primary), var(--vfstd-secondary));
    color: var(--vfstd-white);
    padding: 15px 20px;
    font-weight: bold;
    font-size: 16px;
    margin: 0;
}

.vfstd-card-body {
    padding: 20px;
}

.intro-image {
    margin-bottom: 20px;
}

.intro-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
}

.news-list {
    margin-bottom: 20px;
}

.news-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--vfstd-border);
}

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

.news-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background-color: var(--vfstd-light);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vfstd-primary);
    font-size: 20px;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.news-content h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--vfstd-dark);
    line-height: 1.3;
}

.news-content p {
    margin: 0;
    font-size: 12px;
    color: var(--vfstd-text-light);
    line-height: 1.3;
}

.events-list {
    margin-bottom: 20px;
}

.event-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--vfstd-border);
}

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

.event-date {
    width: 50px;
    text-align: center;
    flex-shrink: 0;
}

.event-day {
    background-color: var(--vfstd-primary);
    color: var(--vfstd-white);
    padding: 6px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
    display: block;
}

.event-month {
    font-size: 10px;
    color: var(--vfstd-text-light);
    margin-top: 2px;
    display: block;
}

.event-content h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--vfstd-dark);
    line-height: 1.3;
}

.btn-link {
    color: var(--vfstd-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: var(--vfstd-secondary);
}

/* Mission and Vision Section */
.vfstd-mission-vision {
    padding: 40px;
    background-color: var(--vfstd-white);
}

.mission-content {
    padding-right: 40px;
}

.mission-item {
    margin-bottom: 40px;
}

.mission-item h3 {
    color: var(--vfstd-dark);
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.mission-item p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--vfstd-text);
}

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

.mission-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--vfstd-shadow);
}

/* Statistics Section */
.vfstd-statistics {
    padding: 80px 0 60px 0;
    background-color: var(--vfstd-gray);
    background: url(../images/bg-city.webp) center no-repeat;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    will-change: background-position;
    transform: translateZ(0);
}

.vfstd-statistics::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.vfstd-statistics .container {
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: transparent;
    border-radius: 8px;
    transition: transform 0.3s ease;
    color: var(--vfstd-white);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.stat-item:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.4);
}

.stat-item .stat-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
    opacity: 0.9;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: var(--vfstd-white);
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    color: var(--vfstd-white);
    font-weight: 500;
    line-height: 1.3;
    opacity: 0.9;
}

.stats-title {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 20px;
}

.stats-title h3 {
    font-size: 20px;
    font-weight: bold;
    color: var(--vfstd-white);
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stats-title img {
    max-width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
}

/* Media Section */
.vfstd-media {
    padding: 60px 0;
    background-color: var(--vfstd-white);
}

.media-video h3,
.media-gallery h3 {
    color: var(--vfstd-dark);
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
}

.video-thumbnail {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--vfstd-shadow);
    cursor: pointer;
    height: 484px; /* Cân bằng với gallery height */
}

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

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    z-index: 2;
}

.video-thumbnail:hover .video-overlay {
    background-color: rgba(0, 0, 0, 0.2);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(0, 174, 239, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vfstd-white);
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--vfstd-shadow);
    transition: transform 0.3s ease;
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item {
    cursor: pointer;
}

/* Universal Lightbox */
.universal-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.universal-lightbox.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.universal-lightbox .lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    text-align: center;
}

.universal-lightbox .lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.universal-lightbox .lightbox-close:hover {
    color: var(--vfstd-primary);
}

.lightbox-media {
    position: relative;
    width: 100%;
    height: 100%;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Video Container in Universal Lightbox */
.universal-lightbox .video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background-color: black;
    border-radius: 8px;
    overflow: hidden;
    min-width: 800px; /* Larger minimum width */
    min-height: 450px; /* Larger minimum height */
}

.universal-lightbox .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background-color: black;
}

/* Mobile responsive for video */
@media (max-width: 768px) {
    .video-thumbnail {
        height: 250px; /* Adjust for mobile */
    }
    
    .video-lightbox .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 24px;
        text-shadow: 0 0 5px rgba(0,0,0,0.5);
    }
    
    .video-lightbox .lightbox-content {
        width: 95vw; /* Full width on mobile */
        max-width: 95vw;
    }
    
    .video-container {
        min-width: 300px; /* Smaller on mobile */
        min-height: 169px; /* 16:9 ratio for mobile */
    }
}

/* Tablet responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .video-lightbox .lightbox-content {
        width: 90vw;
        max-width: 90vw;
    }
    
    .video-container {
        min-width: 600px;
        min-height: 338px;
    }
}

/* Projects Section */
.vfstd-projects {
    padding: 60px 0;
    background-color: var(--vfstd-gray);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.project-item {
    background: var(--vfstd-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--vfstd-shadow);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--vfstd-primary), var(--vfstd-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vfstd-white);
    font-size: 48px;
}

.project-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.4;
}

.project-title a {
    color: var(--vfstd-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-title a:hover {
    color: var(--vfstd-primary);
}

.project-intro {
    color: var(--vfstd-text);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.project-date {
    color: var(--vfstd-text);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-link {
    width: 35px;
    height: 35px;
    background: var(--vfstd-primary);
    color: var(--vfstd-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--vfstd-secondary);
    transform: scale(1.1);
}

.no-projects {
    text-align: center;
    color: var(--vfstd-text);
    font-style: italic;
    padding: 40px 0;
}

/* Mobile responsive for projects */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-image {
        height: 150px;
    }
    
    .project-content {
        padding: 20px;
    }
    
    .project-title {
        font-size: 16px;
    }
}

.section-title {
    text-align: center;
    color: var(--vfstd-dark);
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 50px;
}

.training-carousel {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.training-item {
    text-align: center;
    padding: 40px 30px;
    background-color: var(--vfstd-white);
    border-radius: 12px;
    box-shadow: var(--vfstd-shadow);
    transition: all 0.3s ease;
    max-width: 300px;
    flex: 1;
}

.training-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--vfstd-shadow-hover);
}

.training-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--vfstd-primary), var(--vfstd-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--vfstd-white);
    font-size: 32px;
}

.training-item h4 {
    color: var(--vfstd-dark);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

/* Partners Section */
.vfstd-partners {
    padding: 60px 0;
    background-color: var(--vfstd-white);
}

.vfstd-partners h3 {
    text-align: center;
    color: var(--vfstd-dark);
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 50px;
}

.partners-logos {
    overflow: hidden;
    position: relative;
    width: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
}

.partners-scroll {
    overflow: hidden;
    width: 100%;
}

.partners-track {
    display: flex;
    align-items: center;
    gap: 60px;
    animation: scrollLogos 20s linear infinite;
    width: max-content;
}

.partner-logo {
    height: 90px;
    width: auto;
    opacity: 1;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.partner-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Pause animation on hover */
.partners-logos:hover .partners-track {
    animation-play-state: paused;
}

/* Scroll animation */
@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Sidebar */
.vfstd-sidebar {
    padding-left: 20px;
}

.vfstd-sidebar .module {
    background-color: var(--vfstd-white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--vfstd-shadow);
    margin-bottom: 20px;
}

.vfstd-sidebar .module-title {
    color: var(--vfstd-dark);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--vfstd-primary);
}

/* Main Content Area */
.vfstd-main {
    padding: 40px 0;
    background-color: var(--vfstd-white);
    min-height: 60vh;
}

.vfstd-content {
    background-color: var(--vfstd-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--vfstd-shadow);
}

/* Component Pages Styling */
.vfstd-component .vfstd-content {
    padding: 40px;
}

/* Hide Prev/Next Navigation */
.pagenavigation,
.com-content-article .pagination {
    display: none !important;
}

/* Article Info - Inline Display */
.article-info-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.article-info-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
}

.article-info-item i {
    color: var(--vfstd-primary);
    font-size: 14px;
}

.article-info-item a {
    color: var(--vfstd-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-info-item a:hover {
    color: var(--vfstd-secondary);
    text-decoration: underline;
}

.vfstd-component .vfstd-content h1,
.vfstd-component .vfstd-content h2,
.vfstd-component .vfstd-content h3 {
    color: var(--vfstd-dark);
    margin-bottom: 20px;
}

.vfstd-component .vfstd-content h1 {
    font-size: 32px;
    font-weight: bold;
    border-bottom: 3px solid var(--vfstd-primary);
    padding-bottom: 15px;
}

.vfstd-component .vfstd-content h2 {
    font-size: 28px;
    font-weight: bold;
}

.vfstd-component .vfstd-content h3 {
    font-size: 24px;
    font-weight: 600;
}

.vfstd-component .vfstd-content p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--vfstd-text);
}

.vfstd-component .vfstd-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: var(--vfstd-shadow);
}

.vfstd-component .vfstd-content ul,
.vfstd-component .vfstd-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.vfstd-component .vfstd-content li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.vfstd-component .vfstd-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.vfstd-component .vfstd-content table th,
.vfstd-component .vfstd-content table td {
    padding: 12px;
    border: 1px solid var(--vfstd-border);
    text-align: left;
}

.vfstd-component .vfstd-content table th {
    background-color: var(--vfstd-primary);
    color: var(--vfstd-white);
    font-weight: 600;
}

.vfstd-component .vfstd-content table tr:nth-child(even) {
    background-color: var(--vfstd-gray);
}

/* Footer */
.vfstd-footer {
    background-color: var(--vfstd-dark);
    color: var(--vfstd-white);
    padding: 40px 0 0;
}

.footer-left {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.footer-logo {
    flex-shrink: 0;
}

.logo-square {
    width: 60px;
    height: 60px;
    background-color: var(--vfstd-primary);
    color: var(--vfstd-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    border-radius: 8px;
}

.footer-info h4 {
    color: var(--vfstd-white);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.footer-info p {
    color: var(--vfstd-white);
    margin-bottom: 8px;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--vfstd-primary);
    color: var(--vfstd-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--vfstd-secondary);
    transform: translateY(-2px);
}

.footer-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--vfstd-white);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--vfstd-primary);
}

.footer-bottom {
    background-color: var(--vfstd-secondary);
    padding: 15px 0;
    text-align: center;
    font-size: 14px;
    margin-top: 30px;
}

.footer-bottom p {
    margin: 0;
    color: var(--vfstd-white);
}

/* Scroll to Top Button */
.vfstd-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--vfstd-primary);
    color: var(--vfstd-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: var(--vfstd-shadow);
}

.vfstd-scroll-top:hover {
    background-color: var(--vfstd-secondary);
    transform: translateY(-2px);
    box-shadow: var(--vfstd-shadow-hover);
}

.vfstd-scroll-top.show {
    display: flex;
}

/* Buttons */
.btn-vfstd {
    background-color: var(--vfstd-primary);
    color: var(--vfstd-white);
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-vfstd:hover {
    background-color: var(--vfstd-secondary);
    color: var(--vfstd-white);
    transform: translateY(-2px);
    box-shadow: var(--vfstd-shadow-hover);
}

.btn-vfstd-outline {
    background-color: transparent;
    color: var(--vfstd-primary);
    border: 2px solid var(--vfstd-primary);
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

/* Cards */
.vfstd-card {
    background-color: var(--vfstd-white);
    border-radius: 8px;
    box-shadow: var(--vfstd-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

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

.vfstd-card-header {
    background: linear-gradient(135deg, var(--vfstd-primary), var(--vfstd-secondary));
    color: var(--vfstd-white);
    padding: 20px;
    font-weight: bold;
    font-size: 18px;
}

.vfstd-card-body {
    padding: 20px;
}

/* News Items */
.vfstd-news-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--vfstd-border);
}

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

.vfstd-news-thumb {
    width: 80px;
    height: 80px;
    background-color: var(--vfstd-light);
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vfstd-primary);
    font-size: 24px;
}

.vfstd-news-content h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--vfstd-dark);
}

.vfstd-news-content p {
    margin: 0;
    font-size: 14px;
    color: var(--vfstd-text-light);
    line-height: 1.4;
}

/* Events */
.vfstd-event-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--vfstd-border);
}

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

.vfstd-event-date {
    width: 60px;
    text-align: center;
    flex-shrink: 0;
}

.vfstd-event-day {
    background-color: var(--vfstd-primary);
    color: var(--vfstd-white);
    padding: 8px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 18px;
    display: block;
}

.vfstd-event-month {
    font-size: 12px;
    color: var(--vfstd-text-light);
    margin-top: 4px;
    display: block;
}

.vfstd-event-content h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--vfstd-dark);
}

.vfstd-event-content p {
    margin: 0;
    font-size: 14px;
    color: var(--vfstd-text-light);
}

/* Statistics */
.vfstd-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.vfstd-stat-item {
    text-align: center;
    padding: 20px;
    background-color: var(--vfstd-white);
    border-radius: 8px;
    box-shadow: var(--vfstd-shadow);
}

.vfstd-stat-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--vfstd-primary);
    display: block;
    margin-bottom: 10px;
}

.vfstd-stat-label {
    font-size: 14px;
    color: var(--vfstd-text-light);
    font-weight: 500;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10002;
    position: relative;
    margin-left: auto;
    transition: transform 0.3s ease;
}

/* Ẩn mobile menu header và search trên desktop */
.mobile-menu-header,
.mobile-search-box {
    display: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        z-index: 1;
    }
    
    .menu-toggle.active {
        z-index: 1;
    }
}

.menu-toggle:hover {
    transform: scale(1.1);
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--vfstd-primary);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.menu-toggle.active {
    transform: rotate(90deg);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
    background-color: var(--vfstd-primary);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -9px);
    background-color: var(--vfstd-primary);
}

/* Mobile Menu Backdrop Overlay - Disabled */
@media (max-width: 768px) {
    .mobile-menu-overlay {
        display: none !important;
    }
    
    /* Ẩn icon search ở topbar trên mobile */
    .topbar-search {
        display: none !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .vfstd-header {
        position: relative;
    }
    
    .vfstd-header .row {
        flex-wrap: wrap;
    }
    
    .vfstd-header .col-md-3,
    .vfstd-header .col-md-9 {
        flex: 0 0 auto;
        max-width: none;
    }
    
    .vfstd-header .col-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
    
    .vfstd-header .col-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    .vfstd-logo {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 10px;
    }
    
    .site-info {
        display: block;
    }
    
    .site-title {
        font-size: 14px;
        line-height: 1.2;
    }
    
    .header-right {
        justify-content: flex-end;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .vfstd-navigation {
        justify-content: flex-start;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: #ffffff;
        box-shadow: none;
        overflow-y: auto;
        overflow-x: hidden;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
        padding: 0;
        z-index: 9999 !important;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
        transform: translateX(100%);
        opacity: 0;
    }
    
    .vfstd-navigation.active {
        transform: translateX(0);
        opacity: 1;
    }
    
    /* Scrollbar styling for mobile menu */
    .vfstd-navigation::-webkit-scrollbar {
        width: 4px;
    }
    
    .vfstd-navigation::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .vfstd-navigation::-webkit-scrollbar-thumb {
        background: #ddd;
        border-radius: 10px;
    }
    
    .vfstd-navigation::-webkit-scrollbar-thumb:hover {
        background: #00AEEF;
    }
    
    /* Mobile Menu Header - Hiển thị trên mobile */
    .mobile-menu-header {
        position: sticky;
        top: 0;
        width: 100%;
        height: 55px;
        background: #ffffff;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
        flex-shrink: 0;
        box-shadow: none;
        z-index: 10;
        border-bottom: 1px solid #eee;
    }
    
    /* Mobile Search Box - Hiển thị trên mobile */
    .mobile-search-box {
        display: block !important;
        padding: 15px 20px;
        background: #f5f5f5;
        border-bottom: 1px solid #eee;
        width: 100%;
    }
    
    .mobile-search-form {
        display: flex;
        align-items: center;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 8px;
        overflow: hidden;
        transition: all 0.25s ease;
    }
    
    .mobile-search-form:focus-within {
        border-color: var(--vfstd-primary);
        box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.1);
    }
    
    .mobile-search-input {
        flex: 1;
        padding: 12px 15px;
        border: none;
        outline: none;
        font-size: 15px;
        background: transparent;
        color: #333;
    }
    
    .mobile-search-input::placeholder {
        color: #999;
    }
    
    .mobile-search-btn {
        width: 48px;
        height: 44px;
        background: var(--vfstd-primary);
        border: none;
        color: #fff;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        transition: background 0.25s ease;
    }
    
    .mobile-search-btn:hover {
        background: var(--vfstd-secondary);
    }
    
    .vfstd-navigation .nav,
    .header-right .vfstd-menu .nav {
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 0;
        margin: 0;
    }
    
    .mobile-menu-title {
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 1px;
        color: #333;
        text-transform: uppercase;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .mobile-menu-title::before {
        content: '☰';
        font-size: 18px;
        font-weight: 400;
        color: #666;
    }
    
    .mobile-menu-close {
        width: 36px;
        height: 36px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
        transition: all 0.3s ease;
        border-radius: 50%;
    }
    
    .mobile-menu-close:hover {
        background: #f5f5f5;
    }
    
    .mobile-menu-close:active {
        transform: scale(0.95);
    }
    
    .mobile-menu-close span {
        position: absolute;
        width: 20px;
        height: 2px;
        background: #333;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-close span:first-child {
        transform: rotate(45deg);
    }
    
    .mobile-menu-close span:last-child {
        transform: rotate(-45deg);
    }
    
    .vfstd-navigation,
    .header-right .vfstd-menu {
        width: 100% !important;
    }
    
    .vfstd-navigation .nav,
    .header-right .vfstd-menu .nav {
        flex-direction: column;
        width: 100% !important;
        gap: 0;
        padding: 15px 0;
        margin: 0;
        flex: 1;
        overflow-y: auto;
        align-items: stretch !important;
    }
    
    .vfstd-navigation .nav-pills,
    .header-right .vfstd-menu .nav-pills {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 0;
    }
    
    /* Staggered animation for menu items */
    .vfstd-navigation.active .nav-item {
        animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) backwards;
    }
    
    .vfstd-navigation.active .nav-item:nth-child(1) { animation-delay: 0.05s; }
    .vfstd-navigation.active .nav-item:nth-child(2) { animation-delay: 0.08s; }
    .vfstd-navigation.active .nav-item:nth-child(3) { animation-delay: 0.11s; }
    .vfstd-navigation.active .nav-item:nth-child(4) { animation-delay: 0.14s; }
    .vfstd-navigation.active .nav-item:nth-child(5) { animation-delay: 0.17s; }
    .vfstd-navigation.active .nav-item:nth-child(6) { animation-delay: 0.2s; }
    .vfstd-navigation.active .nav-item:nth-child(7) { animation-delay: 0.23s; }
    .vfstd-navigation.active .nav-item:nth-child(8) { animation-delay: 0.26s; }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .vfstd-navigation .nav-item {
        width: 100% !important;
        margin: 0;
        padding: 0;
        display: block !important;
        text-align: left !important;
    }
    
    .vfstd-navigation .nav-link {
        padding: 18px 25px;
        text-align: left !important;
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        font-size: 16px;
        font-weight: 400;
        transition: all 0.25s ease;
        position: relative;
        border-radius: 0 !important;
        margin: 0;
        letter-spacing: 0;
        line-height: 1.5;
        box-sizing: border-box;
        background: transparent !important;
    }
    
    /* Mobile: Clean DEKAO-style design - Menu cấp 1 */
    .vfstd-navigation > .nav-pills > .nav-item,
    .header-right .vfstd-menu > .nav-pills > .nav-item {
        width: 100% !important;
        margin: 0;
        position: relative;
        border-bottom: 1px solid #eee;
        display: block !important;
    }
    
    .vfstd-navigation > .nav-pills > .nav-item:last-child,
    .header-right .vfstd-menu > .nav-pills > .nav-item:last-child {
        border-bottom: none;
    }
    
    .vfstd-navigation > .nav-pills > .nav-item > .nav-link,
    .header-right .vfstd-menu > .nav-pills > .nav-item > .nav-link {
        background: transparent !important;
        color: #333;
        box-shadow: none !important;
        border-bottom: none;
        padding: 16px 20px;
        width: 100% !important;
        box-sizing: border-box;
        font-size: 16px;
        font-weight: 400;
        position: relative;
        transition: all 0.25s ease;
        border-radius: 0 !important;
        text-align: left !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .vfstd-navigation > .nav-pills > .nav-item > .nav-link:hover,
    .header-right .vfstd-menu > .nav-pills > .nav-item > .nav-link:hover {
        background: #f9f9f9 !important;
        color: var(--vfstd-primary);
    }
    
    .vfstd-navigation > .nav-pills > .nav-item.active > .nav-link,
    .vfstd-navigation > .nav-pills > .nav-item.current > .nav-link,
    .header-right .vfstd-menu > .nav-pills > .nav-item.active > .nav-link,
    .header-right .vfstd-menu > .nav-pills > .nav-item.current > .nav-link,
    .header-right .vfstd-menu > .nav-pills > .nav-item.show > .nav-link {
        background: var(--vfstd-light) !important;
        color: var(--vfstd-primary) !important;
        font-weight: 500;
        box-shadow: none !important;
    }
    
    .vfstd-navigation > .nav-pills > .nav-item > .nav-link:active,
    .header-right .vfstd-menu > .nav-pills > .nav-item > .nav-link:active {
        background: #f0f0f0 !important;
    }
    
    /* Mobile dropdown - inline vertical, no popup */
    .vfstd-navigation .nav-item.dropdown > .dropdown-menu,
    .header-right .vfstd-menu .nav-item.dropdown > .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100% !important;
        display: none;
        max-height: 0;
        overflow: hidden;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #f5f5f5;
        transition: max-height 0.35s ease;
        border-top: none;
        transform: none !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .vfstd-navigation .nav-item.dropdown.show > .dropdown-menu,
    .header-right .vfstd-menu .nav-item.dropdown.show > .dropdown-menu {
        display: block !important;
        max-height: 1000px;
        padding: 5px 0;
    }
    
    /* Menu cấp 3 - Level 2+ dropdown on mobile */
    .vfstd-navigation .dropdown-menu .nav-item.dropdown > .dropdown-menu,
    .header-right .vfstd-menu .dropdown-menu .nav-item.dropdown > .dropdown-menu {
        position: static !important;
        float: none !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        max-height: 0;
        margin: 0 !important;
        padding: 0 !important;
        background: #f8f8f8;
        border-left: none;
        transition: max-height 0.35s ease;
        border-top: none;
        width: 100% !important;
        box-shadow: none;
        transform: none !important;
        display: block !important;
        overflow: hidden;
    }
    
    .vfstd-navigation .dropdown-menu .nav-item.dropdown.show > .dropdown-menu,
    .header-right .vfstd-menu .dropdown-menu .nav-item.dropdown.show > .dropdown-menu {
        max-height: 500px;
        padding: 5px 0;
    }
    
    .vfstd-navigation .dropdown-menu .dropdown-menu .nav-link,
    .header-right .vfstd-menu .dropdown-menu .dropdown-menu .nav-link {
        padding: 12px 20px 12px 55px;
        font-size: 14px;
        color: #666;
    }
    
    .vfstd-navigation .dropdown-menu .dropdown-menu .nav-link::before,
    .header-right .vfstd-menu .dropdown-menu .dropdown-menu .nav-link::before {
        content: '–';
        left: 38px;
        font-size: 12px;
        color: #ccc;
    }
    
    .vfstd-navigation .dropdown-menu .dropdown-menu .nav-link:hover,
    .header-right .vfstd-menu .dropdown-menu .dropdown-menu .nav-link:hover {
        background: #fff;
        color: var(--vfstd-primary);
    }
    
    .vfstd-navigation .dropdown-menu .dropdown-menu .nav-link:hover::before,
    .header-right .vfstd-menu .dropdown-menu .dropdown-menu .nav-link:hover::before {
        color: var(--vfstd-primary);
    }
    
    .vfstd-navigation .dropdown-menu .dropdown-menu .nav-item.active > .nav-link,
    .header-right .vfstd-menu .dropdown-menu .dropdown-menu .nav-item.active > .nav-link {
        color: var(--vfstd-primary);
    }
    
    .vfstd-navigation .dropdown-menu .nav-item {
        width: 100% !important;
        margin: 0;
        padding: 0;
        display: block !important;
    }
    
    /* Menu cấp 2 */
    .vfstd-navigation .dropdown-menu .nav-link,
    .header-right .vfstd-menu .dropdown-menu .nav-link {
        padding: 14px 20px 14px 40px;
        font-size: 15px;
        color: #555;
        margin: 0;
        width: 100% !important;
        border-bottom: none;
        font-weight: 400;
        position: relative;
        line-height: 1.5;
        transition: all 0.25s ease;
        box-sizing: border-box;
        border-radius: 0 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .vfstd-navigation .dropdown-menu .nav-link::before,
    .header-right .vfstd-menu .dropdown-menu .nav-link::before {
        content: '–';
        position: absolute;
        left: 22px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 14px;
        color: #bbb;
        transition: all 0.25s ease;
    }
    
    .vfstd-navigation .dropdown-menu .nav-link:hover,
    .header-right .vfstd-menu .dropdown-menu .nav-link:hover {
        background: #fff;
        color: var(--vfstd-primary);
    }
    
    .vfstd-navigation .dropdown-menu .nav-link:hover::before,
    .header-right .vfstd-menu .dropdown-menu .nav-link:hover::before {
        color: var(--vfstd-primary);
    }
    
    .vfstd-navigation .dropdown-menu .nav-item.active > .nav-link,
    .vfstd-navigation .dropdown-menu .nav-item.current > .nav-link,
    .header-right .vfstd-menu .dropdown-menu .nav-item.active > .nav-link,
    .header-right .vfstd-menu .dropdown-menu .nav-item.current > .nav-link {
        background: transparent;
        color: var(--vfstd-primary);
        font-weight: 500;
    }
    
    .vfstd-navigation .dropdown-menu .nav-item.active > .nav-link::before,
    .vfstd-navigation .dropdown-menu .nav-item.current > .nav-link::before,
    .header-right .vfstd-menu .dropdown-menu .nav-item.active > .nav-link::before,
    .header-right .vfstd-menu .dropdown-menu .nav-item.current > .nav-link::before {
        color: var(--vfstd-primary);
    }
    
    /* Icon adjustments for mobile - Simple */
    .vfstd-navigation > .nav-pills > .nav-item.dropdown > .nav-link::after,
    .header-right .vfstd-menu > .nav-pills > .nav-item.dropdown > .nav-link::after {
        content: '';
        margin-left: auto;
        border: none;
        width: 8px;
        height: 8px;
        border-right: 2px solid #999;
        border-bottom: 2px solid #999;
        transform: rotate(45deg);
        transition: transform 0.3s ease;
        flex-shrink: 0;
        position: relative;
        top: -2px;
    }
    
    .vfstd-navigation > .nav-pills > .nav-item.dropdown.show > .nav-link::after,
    .header-right .vfstd-menu > .nav-pills > .nav-item.dropdown.show > .nav-link::after {
        transform: rotate(-135deg);
        border-color: var(--vfstd-primary);
    }
    
    .vfstd-navigation .dropdown-menu .nav-item.dropdown > .nav-link::after,
    .header-right .vfstd-menu .dropdown-menu .nav-item.dropdown > .nav-link::after {
        content: '';
        margin-left: auto;
        border: none;
        width: 7px;
        height: 7px;
        border-right: 2px solid #999;
        border-bottom: 2px solid #999;
        transform: rotate(45deg);
        transition: transform 0.3s ease;
        flex-shrink: 0;
        position: relative;
        top: -1px;
    }
    
    .vfstd-navigation .dropdown-menu .nav-item.dropdown.show > .nav-link::after,
    .header-right .vfstd-menu .dropdown-menu .nav-item.dropdown.show > .nav-link::after {
        transform: rotate(-135deg);
        border-color: var(--vfstd-primary);
    }
    
    .vfstd-main {
        padding: 20px 0;
    }
    
    .vfstd-hero {
        height: auto;
    }
    
    .hero-article {
        height: auto;
        flex-direction: column;
    }
    
    .hero-image {
        width: 100%;
        height: 300px;
        position: relative;
    }
    
    .hero-overlay {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
        background: linear-gradient(135deg, rgba(0, 86, 179, 0.95), rgba(0, 174, 239, 0.95));
        padding: 20px;
    }
    
    .hero-text {
        width: 100% !important;
    }
    
    
    .hero-carousel {
        min-height: auto;
        height: auto;
    }
    
    .hero-slides {
        height: auto;
        min-height: auto;
        position: relative;
    }
    
    .hero-slide {
        height: auto;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.5s ease, visibility 0.5s ease;
        z-index: 1;
    }
    
    .hero-slide.active {
        position: relative;
        opacity: 1;
        visibility: visible;
        z-index: 2;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .gallery-item {
        aspect-ratio: 4/3;
    }
    
    /* Mobile Carousel */
    .vfstd-mobile-carousel {
        position: relative;
        overflow: hidden;
    }
    
    .carousel-container {
        position: relative;
        width: 100%;
        height: 100%;
    }
    
    .carousel-wrapper {
        display: flex;
        transition: transform 0.5s ease;
    }
    
    .carousel-slide {
        min-width: 100%;
        display: none;
    }
    
    .carousel-slide.active {
        display: block;
    }
    
    .carousel-dots {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 10px;
        z-index: 10;
    }
    
    .carousel-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        border: 2px solid var(--vfstd-white);
        background: transparent;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .carousel-dot.active {
        background: var(--vfstd-white);
    }
    
    .carousel-prev,
    .carousel-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.5);
        color: var(--vfstd-white);
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        font-size: 20px;
        cursor: pointer;
        z-index: 10;
        transition: all 0.3s ease;
    }
    
    .carousel-prev {
        left: 20px;
    }
    
    .carousel-next {
        right: 20px;
    }
    
    .carousel-prev:hover,
    .carousel-next:hover {
        background: rgba(0, 0, 0, 0.7);
    }
    
    .vfstd-content {
        padding: 20px;
    }
    
    .vfstd-sidebar {
        padding-left: 0;
        margin-top: 30px;
    }
    
    .news-item,
    .event-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .news-thumb {
        width: 100%;
        height: 120px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .vfstd-mission-vision {
        padding: 0;
    }
    
    .mission-content {
        padding: 0 15px;
        margin-bottom: 30px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .training-carousel {
        flex-direction: column;
        align-items: center;
    }
    
    .partners-logos {
        overflow: hidden;
    }
    
    .partners-track {
        gap: 40px;
        animation-duration: 15s;
    }
    
    .partner-logo {
        height: 70px;
    }
    
    .footer-left {
        flex-direction: column;
    }
    
    .footer-right {
        justify-content: center;
        margin-top: 30px;
    }
    
}

@media (max-width: 480px) {
    .vfstd-header {
        padding: 15px 0;
    }
    
    .site-title {
        font-size: 20px;
    }

    
    .vfstd-content {
        padding: 15px;
    }
    
    .vfstd-component .vfstd-content {
        padding: 20px 15px;
    }
    
    .vfstd-component .vfstd-content h1 {
        font-size: 24px;
    }
    
    .vfstd-component .vfstd-content h2 {
        font-size: 20px;
    }
    
    .vfstd-component .vfstd-content h3 {
        font-size: 18px;
    }
    
    .article-info-inline {
        gap: 15px;
        font-size: 13px;
    }
    
    .article-info-item {
        font-size: 13px;
    }
    
    .article-info-item i {
        font-size: 12px;
    }
    
    .vfstd-stats {
        grid-template-columns: 1fr;
    }
    
    /* Adjust mobile menu for smaller screens */
    .vfstd-navigation {
        width: 100%;
    }
    
    .mobile-menu-title {
        font-size: 13px;
        letter-spacing: 1px;
    }
    
    .mobile-menu-title::before {
        font-size: 16px;
    }
    
    .vfstd-navigation > .nav-pills > .nav-item > .nav-link {
        padding: 18px 20px;
        font-size: 15px;
    }
}

/* Utility Classes */
.text-primary { color: var(--vfstd-primary) !important; }
.text-secondary { color: var(--vfstd-secondary) !important; }
.bg-primary { background-color: var(--vfstd-primary) !important; }
.bg-secondary { background-color: var(--vfstd-secondary) !important; }
.bg-light { background-color: var(--vfstd-light) !important; }
.bg-gray { background-color: var(--vfstd-gray) !important; }

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

.vfstd-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* =============================================
   Category Blog & List View (card grid style)
   ============================================= */
.vfstd-category-blog,
.vfstd-category-list {
    padding: 20px 0;
}

.vfstd-category-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--vfstd-dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--vfstd-primary);
}

.vfstd-category-blog .category-desc,
.vfstd-category-list .category-desc {
    margin-bottom: 30px;
    color: var(--vfstd-text);
    line-height: 1.7;
}

.vfstd-category-blog .projects-grid,
.vfstd-category-list .projects-grid {
    margin-top: 0;
}

.vfstd-category-blog .items-more {
    margin-top: 30px;
}

.vfstd-category-blog .items-more ol {
    padding-left: 20px;
}

.vfstd-category-blog .items-more li {
    margin-bottom: 8px;
}

.vfstd-category-blog .items-more a {
    color: var(--vfstd-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.vfstd-category-blog .items-more a:hover {
    color: var(--vfstd-secondary);
}

.vfstd-category-blog .cat-children,
.vfstd-category-list .cat-children {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.vfstd-category-blog .cat-children h3,
.vfstd-category-list .cat-children h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--vfstd-dark);
}

/* Pagination styling */
.com-content-category-blog__pagination,
.com-content-category__pagination-links {
    margin-top: 20px;
}

.com-content-category-blog__pagination .pagination,
.com-content-category__pagination-links .pagination {
    justify-content: center;
}

.com-content-category-blog__pagination .page-link,
.com-content-category__pagination-links .page-link {
    color: var(--vfstd-primary);
    border-color: #dee2e6;
    padding: 8px 16px;
    margin: 0 2px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.com-content-category-blog__pagination .page-link:hover,
.com-content-category__pagination-links .page-link:hover {
    background-color: var(--vfstd-primary);
    border-color: var(--vfstd-primary);
    color: #fff;
}

.com-content-category-blog__pagination .page-item.active .page-link,
.com-content-category__pagination-links .page-item.active .page-link {
    background-color: var(--vfstd-primary);
    border-color: var(--vfstd-primary);
    color: #fff;
}

.com-content-category-blog__counter,
.com-content-category__counter {
    color: var(--vfstd-text-light);
    font-size: 14px;
}

/* Related articles section styling */
.vfstd-related-articles {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.related-articles-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--vfstd-dark);
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .vfstd-category-title {
        font-size: 22px;
    }
}

/* ========================
   CONTACT PAGE STYLES
   ======================== */

/* Override content wrapper for contact page */
.vfstd-content:has(.vfstd-contact-page) {
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

/* Fallback for browsers without :has() support */
.vfstd-contact-page {
    margin: -30px;
}

.vfstd-content:has(.vfstd-contact-page) .vfstd-contact-page {
    margin: 0;
}

/* Page Header Banner */
.vfstd-contact-page {
    background-color: #f8f9fa;
}

.contact-page-header {
    position: relative;
    background: linear-gradient(135deg, var(--vfstd-dark) 0%, var(--vfstd-secondary) 50%, var(--vfstd-primary) 100%);
    padding: 80px 0 60px;
    text-align: center;
    overflow: hidden;
}

.contact-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

.contact-header-content {
    position: relative;
    z-index: 2;
}

.contact-page-title {
    color: var(--vfstd-white);
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.contact-page-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    margin: 0;
    font-weight: 300;
}

/* Main Contact Section */
.contact-main-section {
    padding: 60px 0;
}

.contact-section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--vfstd-dark);
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 15px;
}

.contact-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--vfstd-primary), var(--vfstd-secondary));
    border-radius: 2px;
}

.contact-section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.contact-intro-text {
    color: var(--vfstd-text-light);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* Contact Info Cards */
.contact-info-wrapper {
    background: var(--vfstd-white);
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    height: 100%;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px;
    background: var(--vfstd-gray);
    border-radius: 12px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.contact-info-card:hover {
    background: var(--vfstd-light);
    border-left-color: var(--vfstd-primary);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 174, 239, 0.1);
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, var(--vfstd-primary), var(--vfstd-secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vfstd-white);
    font-size: 20px;
    box-shadow: 0 3px 10px rgba(0, 174, 239, 0.3);
}

.contact-card-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--vfstd-dark);
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-card-content p {
    margin: 0;
    color: var(--vfstd-text);
    font-size: 15px;
    line-height: 1.5;
}

.contact-card-content a {
    color: var(--vfstd-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card-content a:hover {
    color: var(--vfstd-primary);
    text-decoration: underline;
}

/* Working Hours */
.contact-working-hours {
    background: linear-gradient(135deg, var(--vfstd-dark), var(--vfstd-secondary));
    border-radius: 12px;
    padding: 25px;
    color: var(--vfstd-white);
}

.contact-working-hours h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px;
    color: var(--vfstd-white);
}

.contact-working-hours h4 i {
    margin-right: 8px;
    color: var(--vfstd-primary);
}

.contact-working-hours ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-working-hours li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 14px;
}

.contact-working-hours li:last-child {
    border-bottom: none;
}

.contact-working-hours li span {
    color: rgba(255, 255, 255, 0.8);
}

.contact-working-hours li strong {
    color: var(--vfstd-white);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--vfstd-white);
    border-radius: 16px;
    padding: 40px 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    height: 100%;
}

.contact-form-intro {
    color: var(--vfstd-text-light);
    font-size: 15px;
    margin-bottom: 25px;
}

/* Override Joomla form styles for contact form */
.vfstd-contact-form .control-group {
    margin-bottom: 20px;
}

.vfstd-contact-form .control-label label,
.vfstd-contact-form label {
    font-weight: 600;
    color: var(--vfstd-dark);
    font-size: 14px;
    margin-bottom: 6px;
    display: block;
}

.vfstd-contact-form .form-control,
.vfstd-contact-form input[type="text"],
.vfstd-contact-form input[type="email"],
.vfstd-contact-form input[type="tel"],
.vfstd-contact-form textarea,
.vfstd-contact-form select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--vfstd-border);
    border-radius: 10px;
    font-size: 15px;
    color: var(--vfstd-text);
    background-color: var(--vfstd-gray);
    transition: all 0.3s ease;
    font-family: inherit;
}

.vfstd-contact-form .form-control:focus,
.vfstd-contact-form input[type="text"]:focus,
.vfstd-contact-form input[type="email"]:focus,
.vfstd-contact-form input[type="tel"]:focus,
.vfstd-contact-form textarea:focus,
.vfstd-contact-form select:focus {
    border-color: var(--vfstd-primary);
    background-color: var(--vfstd-white);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.1);
}

.vfstd-contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-fieldset {
    margin-bottom: 10px;
}

.fieldset-legend {
    font-size: 16px;
    font-weight: 600;
    color: var(--vfstd-dark);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--vfstd-light);
}

.contact-form-submit {
    margin-top: 25px;
    text-align: right;
}

.vfstd-btn-primary {
    background: linear-gradient(135deg, var(--vfstd-primary), var(--vfstd-secondary));
    color: var(--vfstd-white);
    border: none;
    padding: 14px 35px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 174, 239, 0.3);
}

.vfstd-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 174, 239, 0.4);
    background: linear-gradient(135deg, var(--vfstd-secondary), var(--vfstd-primary));
    color: var(--vfstd-white);
}

.vfstd-btn-primary:active {
    transform: translateY(0);
}

.vfstd-btn-primary i {
    margin-right: 8px;
}

/* Map Section */
.contact-map-section {
    padding: 60px 0;
    background: var(--vfstd-white);
}

.contact-map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.contact-map-container iframe {
    width: 100%;
    min-height: 400px;
    border: 0;
    display: block;
}

/* Links Section */
.contact-links-section {
    padding: 40px 0;
}

/* Articles Section */
.contact-articles-section {
    padding: 40px 0;
    background: var(--vfstd-white);
}

/* ========================
   CONTACT PAGE RESPONSIVE
   ======================== */
@media (max-width: 991px) {
    .contact-page-header {
        padding: 60px 20px 45px;
    }

    .contact-page-title {
        font-size: 32px;
    }

    .contact-main-section {
        padding: 40px 0;
    }

    .contact-info-wrapper {
        margin-bottom: 30px;
    }

    .contact-form-wrapper {
        padding: 30px 25px;
    }
}

@media (max-width: 767px) {
    .contact-page-header {
        padding: 50px 15px 35px;
    }

    .contact-page-title {
        font-size: 26px;
        letter-spacing: 1px;
    }

    .contact-page-subtitle {
        font-size: 15px;
    }

    .contact-section-title {
        font-size: 22px;
    }

    .contact-info-wrapper,
    .contact-form-wrapper {
        padding: 25px 20px;
        border-radius: 12px;
    }

    .contact-info-card {
        padding: 14px;
    }

    .contact-card-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 18px;
    }

    .contact-form-submit {
        text-align: center;
    }

    .vfstd-btn-primary {
        width: 100%;
        padding: 14px 20px;
    }

    .contact-map-container iframe {
        min-height: 280px;
    }

    .contact-working-hours li {
        flex-direction: column;
        gap: 2px;
    }
}

/* Print Styles */
@media print {
    .vfstd-scroll-top,
    .vfstd-navigation,
    .vfstd-footer {
        display: none !important;
    }
    
    .vfstd-main {
        background-color: transparent !important;
    }
    
    .vfstd-content {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}
