/*
Theme Name: TuanEdu Theme
Author: TuanEdu
Version: 1.0
*/

/* TuanEdu - Video Education Portal */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Colors matching HaruTheme Vidio */
    --primary-color: #1a051d;
    --primary-dark: #120315;
    --accent-color: #e62b4c;
    --accent-hover: #cc1f3e;
    --text-dark: #333333;
    --text-body: #666666;
    --text-light: #999999;
    --text-white: #ffffff;
    --bg-white: #ffffff;
    --bg-light: #f5f5f5;
    --bg-section: #f9f9f9;
    --border-light: #e8e8e8;
    --border-subtle: #f0f0f0;
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, sans-serif;
    font-size: 16px;
    color: var(--text-body);
    background-color: var(--bg-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: none;
}

img {
    max-width: 100%;
    height: auto;
}

ul { list-style: none; }

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== TOP BAR ===== */
.top-bar {
    background-color: var(--primary-color);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar-social {
    display: flex;
    gap: 12px;
}

.top-bar-social a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    transition: var(--transition);
}

.top-bar-social a:hover {
    color: var(--accent-color);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-right a,
.top-bar-right button {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.top-bar-right a:hover,
.top-bar-right button:hover {
    color: var(--text-white);
}

.watch-later-btn {
    position: relative;
}

.wl-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: var(--accent-color);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== MAIN HEADER ===== */
.main-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 88px;
}

.header-logo a {
    display: flex;
    align-items: center;
    gap: 0;
}

.header-logo .logo-text {
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, sans-serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.header-logo .logo-text .logo-v {
    color: var(--primary-color);
}

.header-logo .logo-text .logo-idio {
    color: var(--accent-color);
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    height: 100%;
}

.main-nav > ul {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 0;
}

.main-nav > ul > li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.main-nav > ul > li > a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 18px;
    font-family: 'Inter', 'Be Vietnam Pro', -apple-system, sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    transition: var(--transition);
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active {
    color: var(--accent-color);
}

.main-nav > ul > li > a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 3px;
    background: var(--accent-color);
}

/* Dropdown */
.main-nav .dropdown-menu, .main-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: var(--bg-white);
    border: none;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
}

.main-nav .dropdown-menu::before, .main-nav .sub-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 30px;
    width: 12px;
    height: 12px;
    background: var(--bg-white);
    transform: rotate(45deg);
    z-index: -1;
    box-shadow: -3px -3px 5px rgba(0,0,0,0.02);
}

.main-nav > ul > li:hover > .dropdown-menu, .main-nav > ul > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li, .sub-menu li {
    display: block;
    height: auto;
    width: 100%;
}

.dropdown-menu a, .sub-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 15px;
    color: var(--text-body);
    text-transform: none;
    letter-spacing: 0;
    font-family: 'Inter', 'Be Vietnam Pro', -apple-system, sans-serif;
    height: auto;
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.dropdown-menu a:hover, .sub-menu a:hover {
    background: var(--bg-light);
    color: var(--accent-color);
    border-left-color: var(--accent-color);
    padding-left: 23px;
}

.has-dropdown, .menu-item-has-children > a::after,
.menu-item-has-children > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    margin-left: 6px;
}

/* Header Search */
.header-search-btn {
    cursor: pointer;
    color: var(--text-dark);
    font-size: 16px;
    padding: 8px;
    margin-left: 10px;
    transition: var(--transition);
}

.header-search-btn:hover {
    color: var(--accent-color);
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

.search-overlay-inner {
    width: 600px;
    max-width: 90vw;
}

.search-overlay-form {
    display: flex;
    border-bottom: 2px solid rgba(255,255,255,0.3);
}

.search-overlay-form input {
    flex: 1;
    background: transparent;
    color: white;
    font-size: 24px;
    padding: 16px 0;
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, sans-serif;
}

.search-overlay-form input::placeholder {
    color: rgba(255,255,255,0.4);
}

.search-overlay-form button {
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 16px;
}

.search-close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.search-close-btn:hover {
    color: var(--accent-color);
}

/* ===== HERO SLIDESHOW ===== */
.hero-section {
    padding: 30px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
    border-radius: 0;
    overflow: hidden;
    min-height: 420px;
}

.hero-main {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-main:hover img {
    transform: scale(1.03);
}

.hero-main .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.hero-category-badge {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    margin-bottom: 10px;
    align-self: flex-start;
}

.hero-title {
    color: white;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.7);
    font-size: 12px;
}

.hero-meta i {
    margin-right: 4px;
}

.hero-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    opacity: 0;
    transition: var(--transition);
    z-index: 5;
}

.hero-main:hover .hero-play-icon {
    opacity: 1;
}

.hero-side {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    min-height: 208px;
}

.hero-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-side:hover img {
    transform: scale(1.05);
}

.hero-side .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
}

.hero-side .hero-title {
    font-size: 14px;
    font-weight: 600;
}

.hero-side .hero-play-icon {
    width: 40px;
    height: 40px;
    font-size: 14px;
}

.hero-side:hover .hero-play-icon {
    opacity: 1;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    padding: 30px 0;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-color);
}

.section-head h2 {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.section-head-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-head .view-all-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-head .view-all-link:hover {
    color: var(--primary-color);
}

/* Content Layout - 2 columns (main + sidebar) */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
}

.content-layout.sidebar-left {
    grid-template-columns: 340px 1fr;
}

.content-main {}

.content-sidebar {}

/* ===== VIDEO CARDS ===== */
/* Style 1: Horizontal Card (list style) */
.video-card-h {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    cursor: pointer;
}

.video-card-h .vc-thumb {
    flex: 0 0 220px;
    position: relative;
    overflow: hidden;
    border-radius: 3px;
}

.video-card-h .vc-thumb img {
    width: 100%;
    height: 125px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card-h:hover .vc-thumb img {
    transform: scale(1.05);
}

.vc-duration {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0,0,0,0.8);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 2px;
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, sans-serif;
}

.vc-duration.live {
    background: var(--accent-color);
}

.vc-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.video-card-h:hover .vc-play-overlay,
.video-card-v:hover .vc-play-overlay {
    opacity: 1;
}

.vc-play-overlay i {
    color: white;
    font-size: 24px;
}

.video-card-h .vc-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vc-category {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    margin-bottom: 6px;
}

.vc-title {
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition);
}

.video-card-h:hover .vc-title,
.video-card-v:hover .vc-title {
    color: var(--accent-color);
}

.vc-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-light);
}

.vc-meta i {
    font-size: 11px;
}

.vc-meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-light);
}

.vc-channel {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.vc-channel img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.vc-channel-name {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 400;
}

/* Style 2: Vertical Card (grid style) */
.video-card-v {
    cursor: pointer;
    transition: var(--transition);
}

.video-card-v .vc-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    margin-bottom: 12px;
}

.video-card-v .vc-thumb img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card-v:hover .vc-thumb img {
    transform: scale(1.05);
}

.video-card-v .vc-info {
    padding: 0 2px;
}

.video-card-v .vc-title {
    font-size: 15px;
    margin-bottom: 5px;
}

/* Style 3: Small Card (sidebar) */
.video-card-sm {
    display: flex;
    gap: 14px;
    padding: 8px;
    border-radius: 12px;
    transition: var(--transition);
    cursor: pointer;
    background: transparent;
    border: 1px solid transparent;
}

.video-card-sm:hover {
    background: var(--bg-light);
    border-color: var(--border-light);
    box-shadow: 0 4px 12px rgba(26, 5, 29, 0.02);
}

.video-card-sm .vc-thumb {
    flex: 0 0 110px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 16 / 10;
}

.video-card-sm .vc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.video-card-sm:hover .vc-thumb img {
    transform: scale(1.08);
}

.video-card-sm .vc-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-card-sm .vc-title {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 4px;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition);
}

.video-card-sm:hover .vc-title {
    color: var(--accent-color);
}

/* Video Grid Layouts */
.video-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.video-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.video-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Category Tag Pills */
.category-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 25px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    padding: 10px 18px;
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-body);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.category-tab:hover {
    color: var(--accent-color);
}

.category-tab.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* ===== SIDEBAR WIDGETS ===== */
.sidebar-widget {
    margin-bottom: 35px;
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-subtle);
    margin-bottom: 20px;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

/* Channel Card Widget */
.channel-widget-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: var(--transition);
}

.channel-widget-card:last-child {
    border-bottom: none;
}

.channel-widget-card:hover .cw-name {
    color: var(--accent-color);
}

.channel-widget-card img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.cw-info { flex: 1; min-width: 0; }

.cw-name {
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
}

.cw-subs {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 2px;
}

/* Subscribe Button */
.subscribe-btn {
    background: var(--accent-color);
    color: white;
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 3px;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    white-space: nowrap;
}

.subscribe-btn:hover {
    background: var(--accent-hover);
}

.subscribe-btn.subscribed {
    background: var(--text-light);
}

/* ===== FOOTER ===== */
.site-footer {
    background: linear-gradient(to bottom, #1d0721 0%, #0c020e 100%);
    color: rgba(255, 255, 255, 0.7);
    padding: 70px 0 40px;
    margin-top: 60px;
    border-top: 3px solid var(--accent-color);
    font-family: 'Inter', 'Be Vietnam Pro', -apple-system, sans-serif;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand .footer-logo {
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.footer-brand .footer-logo span {
    color: var(--accent-color);
}

.footer-brand p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.footer-social a:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: translateY(-4px) scale(1.1) rotate(8deg);
    box-shadow: 0 5px 15px rgba(230, 43, 76, 0.4);
}

.footer-col h4 {
    color: white;
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 2px;
    background: var(--accent-color);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col ul a:hover {
    color: var(--accent-color);
    transform: translateX(6px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
}

/* Footer Widget: Latest Videos */
.footer-video-item {
    display: flex;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px 0;
}

.footer-video-item:hover {
    transform: translateX(4px);
}

.footer-video-item img {
    width: 70px;
    height: 44px;
    object-fit: cover;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-video-item:hover img {
    border-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(230, 43, 76, 0.3);
}

.footer-video-title {
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.footer-video-item:hover .footer-video-title {
    color: var(--accent-color);
}

.footer-video-views {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin-top: 3px;
}

/* Footer Widget: Consultancy Channels */
.footer-author-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px 0;
}

.footer-author-item:hover {
    transform: translateX(4px);
}

.footer-author-item img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-author-item:hover img {
    border-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(230, 43, 76, 0.3);
}

.footer-author-name {
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-author-item:hover .footer-author-name {
    color: var(--accent-color);
}

.footer-author-subs {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin-top: 2px;
}

/* ===== VIDEO PLAY PAGE ===== */
.play-page-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    padding: 30px 0;
}

.play-page-layout > * {
    min-width: 0;
}

.video-player-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 3px;
}

.video-player-wrap iframe,
.video-player-wrap video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-detail-info {
    padding: 20px 0;
}

.vd-tags {
    margin-bottom: 8px;
}

.vd-tag {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    font-size: 10px;
    font-weight: 700;
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 10px;
    margin-right: 6px;
}

.vd-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.vd-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.vd-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-light);
}

.vd-stats i {
    margin-right: 4px;
}

.vd-actions {
    display: flex;
    gap: 4px;
}

.vd-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    color: var(--text-body);
    cursor: pointer;
    border-radius: 3px;
    transition: var(--transition);
}

.vd-action-btn:hover {
    background: var(--bg-light);
    color: var(--accent-color);
}

.vd-action-btn.active {
    color: var(--accent-color);
}

.vd-action-btn i {
    font-size: 14px;
}

/* Channel Info Bar */
.channel-info-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-light);
}

.channel-info-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.channel-info-left img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
}

.ci-name {
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
}

.ci-name:hover {
    color: var(--accent-color);
}

.ci-subs {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

/* Description styling improvements */
.vd-description {
    padding: 35px 40px;
    margin: 30px 0;
    border-radius: 16px;
    border: 1px solid rgba(26, 5, 29, 0.06);
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(26, 5, 29, 0.03);
    font-size: 16.5px;
    line-height: 1.85;
    color: #3a3a3a;
}

.vd-description h2 {
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    border-left: 5px solid var(--accent-color);
    padding-left: 16px;
    line-height: 1.4;
    background: linear-gradient(90deg, rgba(230, 43, 76, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    padding-top: 8px;
    padding-bottom: 8px;
    border-radius: 0 8px 8px 0;
}

.vd-description h2:first-of-type {
    margin-top: 10px;
}

.vd-description h3 {
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, sans-serif;
    font-size: 18.5px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-top: 30px;
    margin-bottom: 14px;
}

.vd-description p {
    margin-bottom: 20px;
}

.vd-description strong {
    color: var(--primary-dark);
    font-weight: 700;
}

.vd-description ul {
    margin-bottom: 20px;
    padding-left: 0;
}

.vd-description ul li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
    list-style-type: none;
}

.vd-description ul li::before {
    content: "•";
    color: var(--accent-color);
    font-size: 24px;
    position: absolute;
    left: 8px;
    top: -2px;
    line-height: 1;
}

.vd-description ol {
    margin-bottom: 20px;
    padding-left: 0;
    counter-reset: step-counter;
    list-style-type: none;
}

.vd-description ol li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 32px;
    margin-bottom: 14px;
}

.vd-description ol li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 4px;
    background: var(--accent-color);
    color: white;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vd-description blockquote {
    background: rgba(230, 43, 76, 0.03);
    border-left: 4px solid var(--accent-color);
    padding: 24px 30px;
    margin: 30px 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 17px;
    line-height: 1.8;
    color: #4a4a4a;
    position: relative;
}

.vd-description blockquote::before {
    content: "“";
    font-family: Georgia, serif;
    font-size: 60px;
    color: rgba(230, 43, 76, 0.12);
    position: absolute;
    left: 10px;
    top: -10px;
    line-height: 1;
}

/* Responsive Table styling for articles */
.vd-table-responsive {
    width: 100%;
    max-width: 100%;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 35px 0;
    border-radius: 12px;
    border: 1px solid rgba(26, 5, 29, 0.08);
    box-shadow: 0 4px 15px rgba(26, 5, 29, 0.01);
}

.vd-description table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 15px;
    min-width: 650px; /* Prevent columns from shrinking too much on mobile */
    background: #ffffff;
}

.vd-description th,
.vd-description td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(26, 5, 29, 0.06);
    line-height: 1.5;
}

.vd-description th {
    background: #faf7fa;
    color: var(--primary-color);
    font-weight: 700;
    border-bottom: 2px solid rgba(26, 5, 29, 0.08);
}

.vd-description tr:last-child td {
    border-bottom: none;
}

.vd-description tr:nth-child(even) {
    background: rgba(230, 43, 76, 0.01);
}

/* Custom CTA Banner styling */
.vd-cta-banner {
    display: flex;
    gap: 24px;
    background: linear-gradient(135deg, rgba(26, 5, 29, 0.02) 0%, rgba(230, 43, 76, 0.04) 100%);
    border: 1px solid rgba(230, 43, 76, 0.12);
    border-radius: 16px;
    padding: 30px;
    margin: 40px 0 20px 0;
    box-shadow: 0 8px 30px rgba(230, 43, 76, 0.02);
    align-items: flex-start;
}

.vd-cta-icon {
    flex: 0 0 54px;
    height: 54px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(230, 43, 76, 0.3);
}

.vd-cta-content {
    flex: 1;
}

.vd-cta-content h4 {
    font-size: 19px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 8px;
}

.vd-cta-content p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.vd-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.vd-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-color);
    color: white !important;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 30px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(230, 43, 76, 0.2);
}

.vd-cta-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(230, 43, 76, 0.3);
}

.vd-cta-btn.btn-secondary {
    background: var(--primary-color);
    box-shadow: 0 4px 12px rgba(26, 5, 29, 0.2);
}

.vd-cta-btn.btn-secondary:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 18px rgba(26, 5, 29, 0.3);
}

@media (max-width: 768px) {
    .vd-cta-banner {
        flex-direction: column;
        padding: 24px;
        gap: 16px;
    }
    .vd-cta-icon {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}

/* Table of Contents (TOC) Accordion */
.vd-toc-accordion {
    background: #faf7fa;
    border: 1px solid rgba(26, 5, 29, 0.05);
    border-radius: 12px;
    margin-bottom: 30px;
    overflow: hidden;
    transition: var(--transition);
}

.vd-toc-trigger {
    width: 100%;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: 'Be Vietnam Pro', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 15.5px;
    color: var(--primary-color);
    text-align: left;
    transition: var(--transition);
}

.vd-toc-trigger:hover {
    background: rgba(26, 5, 29, 0.02);
}

.vd-toc-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vd-toc-title i {
    color: var(--accent-color);
    font-size: 16px;
}

.vd-toc-toggle-icon {
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    color: var(--text-light);
    font-size: 14px;
}

.vd-toc-accordion.active .vd-toc-toggle-icon {
    transform: rotate(180deg);
    color: var(--accent-color);
}

.vd-toc-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
    padding: 0 24px;
}

.vd-toc-accordion.active .vd-toc-content {
    max-height: 1000px;
    padding: 0 24px 20px 24px;
}

.vd-toc-content ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vd-toc-content ul li {
    margin: 0;
    padding-left: 0 !important;
}

.vd-toc-content ul li::before {
    display: none !important; /* override default ul li bullet styling */
}

.vd-toc-content ul li a {
    font-size: 14.5px;
    font-weight: 500;
    color: #555;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.vd-toc-content ul li a::before {
    content: "→";
    color: var(--accent-color);
    transition: transform 0.25s ease;
    font-weight: 700;
}

.vd-toc-content ul li a:hover {
    color: var(--accent-color);
    transform: translateX(4px);
}

.vd-toc-content ul li a:hover::before {
    transform: translateX(2px);
}

/* Comments */
.comments-section {
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
    margin-top: 40px;
}

.comments-count {
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

#reply-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, sans-serif;
}

#reply-title small a {
    font-size: 13px;
    font-weight: normal;
    color: var(--accent-color);
    margin-left: 10px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.comment-form p {
    margin: 0;
}

.comment-form .logged-in-as,
.comment-form .comment-notes {
    font-size: 14px;
    color: var(--text-body);
}

.comment-form .logged-in-as a {
    color: var(--accent-color);
    font-weight: 600;
}

.comment-form .comment-form-comment {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comment-form label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

.comment-form textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.comment-form textarea:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.05);
}

.comment-form .form-submit {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.comment-form #submit {
    background: var(--accent-color);
    color: white;
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form #submit:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.2);
}

/* Comment items */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}
.comment-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-body { flex: 1; }

.comment-author {
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.comment-time {
    font-size: 11px;
    color: var(--text-light);
    margin-left: 10px;
}

.comment-text {
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.5;
    margin-top: 5px;
}

.comment-actions {
    display: flex;
    gap: 14px;
    margin-top: 8px;
}

.comment-actions span {
    font-size: 12px;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.comment-actions span:hover {
    color: var(--accent-color);
}

/* ===== CHANNEL PAGE ===== */
.channel-banner-section {
    height: 220px;
    border-radius: 3px;
    margin-bottom: 20px;
}

.channel-profile-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 30px;
}

.channel-profile-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.channel-large-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
}

.channel-page-name {
    font-size: 22px;
    font-weight: 700;
}

.channel-page-desc {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
}

.channel-page-subs {
    font-size: 13px;
    color: var(--text-body);
    margin-top: 6px;
}

/* ===== SUBMIT VIDEO PAGE ===== */
.submit-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 0;
}

.submit-page h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-light);
    border-radius: 3px;
    font-size: 14px;
    color: var(--text-dark);
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--accent-color);
}

textarea.form-input {
    height: 100px;
    resize: vertical;
}

select.form-input {
    appearance: auto;
    background: white;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.btn-submit {
    background: var(--accent-color);
    color: white;
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 3px;
    cursor: pointer;
    transition: var(--transition);
    display: block;
    width: 100%;
    margin-top: 10px;
}

.btn-submit:hover {
    background: var(--accent-hover);
}

/* ===== WATCH LATER PAGE ===== */
.watch-later-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.watch-later-header h2 {
    font-size: 22px;
    font-weight: 700;
}

.btn-outline {
    border: 1px solid var(--border-light);
    padding: 8px 18px;
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-body);
    border-radius: 3px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 48px;
    color: var(--border-light);
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 15px;
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    z-index: 99999;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.active {
    transform: translateX(-50%) translateY(0);
}

.toast i {
    color: var(--accent-color);
}

/* ===== LIGHTS OUT ===== */
.lights-out-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

body.lights-out .lights-out-overlay {
    opacity: 1;
    pointer-events: all;
}

body.lights-out .video-player-wrap {
    position: relative;
    z-index: 901;
}

/* Page Views */
.page-view {
    display: none;
}

.page-view.active {
    display: block;
    animation: viewFadeIn 0.3s ease;
}

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

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

/* ===== MOBILE HEADER ===== */
.mobile-header {
    display: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 12px 15px;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-btn {
    font-size: 20px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 6px;
}

.mobile-header .header-logo .logo-text {
    font-size: 22px;
}

.mobile-nav-icons {
    display: flex;
    gap: 16px;
}

.mobile-nav-icons a,
.mobile-nav-icons button {
    color: var(--text-dark);
    font-size: 16px;
    cursor: pointer;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    display: none;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: var(--bg-white);
    z-index: 9999;
    overflow-y: auto;
    transition: left 0.3s ease;
    padding: 20px;
}

.mobile-menu-panel.active {
    left: 0;
}

.mobile-menu-close {
    text-align: right;
    margin-bottom: 20px;
}

.mobile-menu-close span {
    font-size: 20px;
    cursor: pointer;
    color: var(--text-dark);
}

.mobile-menu-panel .nav-link, .mobile-menu-panel li a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-family: 'Inter', 'Be Vietnam Pro', -apple-system, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.mobile-menu-panel .nav-link:hover,
.mobile-menu-panel li a:hover,
.mobile-menu-panel .nav-link.active,
.mobile-menu-panel li a.active {
    color: var(--accent-color);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        min-height: 350px;
    }
    .hero-main {
        grid-column: 1 / -1;
        grid-row: auto;
    }
    .content-layout,
    .content-layout.sidebar-left {
        grid-template-columns: 1fr;
    }
    .play-page-layout {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .video-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    .main-header { display: none; }
    .mobile-header { display: flex; }

    /* Hero */
    .hero-section {
        padding: 15px 0;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .hero-main {
        grid-column: auto;
    }
    .hero-side {
        min-height: 160px;
    }
    .hero-title {
        font-size: 16px;
    }
    .hero-main .hero-overlay {
        padding: 20px;
    }
    .hero-category-badge {
        font-size: 9px;
        padding: 3px 8px;
    }
    .hero-play-icon {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    /* Section Head - stack vertically */
    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 18px;
        padding-bottom: 10px;
    }
    .section-head h2 {
        font-size: 16px;
    }
    .section-head-actions {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* Content sections */
    .content-section {
        padding: 20px 0;
    }

    /* Video cards - horizontal */
    .video-card-h .vc-thumb {
        flex: 0 0 130px;
    }
    .video-card-h .vc-thumb img {
        height: 80px;
    }
    .video-card-h .vc-title {
        font-size: 13px;
    }
    .video-card-h .vc-meta {
        font-size: 11px;
    }
    .video-card-h .vc-channel img {
        width: 18px;
        height: 18px;
    }
    .video-card-h .vc-channel-name {
        font-size: 11px;
    }

    /* Video cards - vertical */
    .video-card-v .vc-title {
        font-size: 13px;
    }
    .video-card-v .vc-meta {
        font-size: 11px;
    }

    /* Video Grids */
    .video-grid-2 {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .video-grid-3 {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .video-grid-4 {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    /* Category tabs */
    .category-tabs {
        margin-bottom: 18px;
        width: 100%;
        max-width: 100vw;
        flex-wrap: wrap;
        border-bottom: none;
    }
    .category-tab {
        padding: 8px 12px;
        font-size: 11px;
        white-space: normal;
        flex: 1 1 auto;
        text-align: center;
        border-bottom: 2px solid transparent;
        margin-bottom: 4px;
        border-radius: 4px;
        background: rgba(0,0,0,0.03);
    }
    .category-tab.active {
        background: var(--accent-color);
        color: white;
        border-bottom-color: transparent;
    }

    /* Sidebar widget cards */
    .channel-widget-card {
        gap: 10px;
        padding: 10px 0;
    }
    .channel-widget-card img {
        width: 40px;
        height: 40px;
    }
    .cw-name {
        font-size: 12px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Play page */
    .play-page-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px 0;
    }
    .vd-title {
        font-size: 18px;
    }
    .vd-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .vd-actions {
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
    }
    .vd-action-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    .vd-stats {
        font-size: 12px;
    }
    .channel-info-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* Channel page */
    .channel-banner-section {
        height: 140px;
        margin-bottom: 15px;
    }
    .channel-profile-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
        padding: 15px 0;
        margin-bottom: 20px;
    }
    .channel-profile-left {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .channel-large-avatar {
        width: 64px;
        height: 64px;
    }
    .channel-page-name {
        font-size: 18px;
    }

    /* Footer */
    .site-footer {
        padding: 40px 0 30px;
        margin-top: 30px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-brand .footer-logo {
        font-size: 24px;
    }
    .footer-brand p {
        font-size: 13px;
    }

    /* Search overlay */
    .search-overlay-form input {
        font-size: 18px;
        padding: 12px 0;
    }
    .search-overlay-form button {
        font-size: 18px;
        padding: 12px;
    }
    .search-close-btn {
        top: 20px;
        right: 20px;
    }

    /* Form */
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Watch Later */
    .watch-later-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* Widget title */
    .widget-title {
        font-size: 14px;
    }

    /* Comments */
.comments-section {
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
    margin-top: 40px;
}

.comments-count {
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

#reply-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, sans-serif;
}

#reply-title small a {
    font-size: 13px;
    font-weight: normal;
    color: var(--accent-color);
    margin-left: 10px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.comment-form p {
    margin: 0;
}

.comment-form .logged-in-as,
.comment-form .comment-notes {
    font-size: 14px;
    color: var(--text-body);
}

.comment-form .logged-in-as a {
    color: var(--accent-color);
    font-weight: 600;
}

.comment-form .comment-form-comment {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comment-form label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

.comment-form textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.comment-form textarea:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.05);
}

.comment-form .form-submit {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.comment-form #submit {
    background: var(--accent-color);
    color: white;
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form #submit:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.2);
}

/* Comment items */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}
.comment-item img {
        width: 32px;
        height: 32px;
    }
    .comment-author {
        font-size: 12px;
    }
    .comment-text {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .video-grid-3,
    .video-grid-4 {
        grid-template-columns: 1fr;
    }
    .video-card-h {
        flex-direction: column;
    }
    .video-card-h .vc-thumb {
        flex: none;
    }
    .video-card-h .vc-thumb img {
        height: auto;
        aspect-ratio: 16/9;
    }
    .video-card-h .vc-title {
        font-size: 14px;
    }
    .hero-main .hero-overlay {
        padding: 15px;
    }
    .hero-title {
        font-size: 15px;
    }
    .hero-meta {
        font-size: 11px;
    }
    .hero-side .hero-overlay {
        padding: 12px;
    }
    .vd-title {
        font-size: 16px;
    }
    .vd-action-btn {
        padding: 5px 8px;
        font-size: 11px;
    }
    .section-head h2 {
        font-size: 14px;
    }
    .mobile-header {
        padding: 10px 12px;
    }
    .mobile-header .header-logo .logo-text {
        font-size: 20px;
    }
    .container {
        padding: 0 12px;
    }
    .container-wide {
        padding: 0 12px;
    }
    .channel-profile-section {
        padding: 12px 0;
    }
    .footer-social a {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* Custom Responsive Overrides for Post/Article Descriptions */
@media (max-width: 768px) {
    .vd-description {
        padding: 20px 15px !important;
        margin: 20px 0 !important;
        font-size: 15px !important;
        max-width: 100% !important;
        overflow-x: hidden !important; /* Force parent container to wrap and not overflow */
        box-sizing: border-box !important;
    }
    
    .vd-description h2 {
        font-size: 18px !important;
        margin-top: 25px !important;
        margin-bottom: 12px !important;
        padding-left: 12px !important;
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }
    
    .vd-description h3 {
        font-size: 16px !important;
        margin-top: 20px !important;
        margin-bottom: 10px !important;
    }
    
    .vd-description blockquote {
        padding: 16px 20px !important;
        margin: 20px 0 !important;
        font-size: 15px !important;
    }
    
    .vd-description img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .vd-description iframe {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .vd-table-responsive {
        max-width: 100% !important;
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        margin: 20px 0 !important;
    }
}

/* Floating Action Group */
.floating-action-group {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}
.fab-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: none;
    cursor: pointer;
}
.fab-item:hover {
    transform: scale(1.1) translateY(-5px);
    color: white;
}
.fab-register { background: linear-gradient(135deg, #f59e0b, #d97706); }
.fab-zalo { background: #fff; }
.fab-messenger { background: linear-gradient(135deg, #00B2FF, #006AFF); }
.fab-phone { background: linear-gradient(135deg, #10b981, #059669); }
.fab-map { background: linear-gradient(135deg, #ef4444, #dc2626); }
.fab-totop { 
    background: #475569; 
    font-size: 20px; 
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(20px);
    transition: all 0.3s ease;
}
.fab-totop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Tooltip */
.fab-tooltip {
    position: absolute;
    right: 65px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    transform: translateX(10px);
}
.fab-item:hover .fab-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}
.fab-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    border-width: 5px 0 5px 5px;
    border-style: solid;
    border-color: transparent transparent transparent rgba(0,0,0,0.8);
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Modal Quick Register */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: white;
    width: 90%;
    max-width: 450px;
    border-radius: 16px;
    padding: 35px;
    position: relative;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.modal-overlay.active .modal-content {
    transform: scale(1);
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
}
.modal-close:hover { color: #0f172a; }
.modal-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
    text-align: center;
}
.modal-desc {
    font-size: 14px;
    color: #475569;
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.5;
}
.form-group {
    margin-bottom: 15px;
}
.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    background: #f8fafc;
}
.form-control:focus {
    outline: none;
    border-color: #2b5a9e;
    background: white;
    box-shadow: 0 0 0 3px rgba(43, 90, 158, 0.1);
}
.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #2b5a9e, #1e3f70);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(43, 90, 158, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(43, 90, 158, 0.4);
}

/* Mobile adjustment */
@media (max-width: 768px) {
    .floating-action-group {
        bottom: 80px;
        right: 15px;
        gap: 10px;
        z-index: 999999;
    }
    .fab-item {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }
    .fab-item img {
        width: 22px !important;
        height: 22px !important;
    }
    .fab-tooltip {
        display: none !important;
    }
    @keyframes pulse-ring {
        0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
        70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
        100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
    }
}

/* WP Mobile menu list resets */
.mobile-menu-panel ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu-panel li { display: block; }

/* Speed Dial Fab Menu */
.fab-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: absolute;
    bottom: 130px; /* Adjust depending on totop visibility, but we can fix position */
    right: 0;
}
.floating-action-group .fab-menu {
    position: relative;
    bottom: 0;
}
.fab-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.fab-toggle {
    background: linear-gradient(135deg, #e62b4c, #b91d3c);
    animation: pulse-ring-red 2s infinite;
    z-index: 2;
}
@keyframes pulse-ring-red {
    0% { box-shadow: 0 0 0 0 rgba(230, 43, 76, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(230, 43, 76, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 43, 76, 0); }
}


/* Premium Swiper Reviews Styles */
.reviews-section {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Be Vietnam Pro', 'Inter', sans-serif;
    color: #333;
    padding: 20px 0 60px;
}
.reviews-hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    border-radius: 24px;
    margin-bottom: 40px;
}
.reviews-hero h2 {
    font-size: 40px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.2;
}
.reviews-hero p {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}
.reviews-hero .highlight {
    color: #e62b4c;
}
.swiper-container.mySwiper {
    width: 100%;
    padding: 20px 10px 60px; /* Space for shadow and pagination */
    overflow: hidden;
    position: relative;
}
.swiper-slide {
    height: auto !important; /* Make slides stretch to equal height */
}
.review-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    height: 100%;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}
.review-card:hover {
    transform: translateY(-5px);
}
.review-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 80px;
    color: rgba(230,43,76,0.06);
    font-family: Georgia, serif;
    line-height: 1;
}
.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}
.review-avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.review-meta h4 {
    margin: 0 0 5px 0;
    font-size: 19px;
    color: #111;
    font-weight: 700;
}
.review-meta span {
    font-size: 14px;
    color: #e62b4c;
    font-weight: 600;
}
.review-stars {
    color: #fbbf24;
    font-size: 15px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}
.review-text {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    font-style: italic;
    flex-grow: 1;
}
.swiper-pagination-bullet {
    background: #ccc !important;
    opacity: 1 !important;
    width: 10px !important;
    height: 10px !important;
    transition: all 0.3s !important;
}
.swiper-pagination-bullet-active {
    background: #e62b4c !important;
    width: 25px !important;
    border-radius: 10px !important;
}
.review-cta {
    text-align: center;
    margin-top: 20px;
    padding: 60px 30px;
    background: #1a1a1a;
    border-radius: 24px;
    color: white;
}
.review-cta h3 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 800;
}
.review-cta p {
    color: #a1a1aa;
    margin-bottom: 35px;
    font-size: 16px;
}
.btn-primary {
    display: inline-block;
    background: #e62b4c;
    color: white;
    padding: 18px 45px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background: #ff3355;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(230,43,76,0.4);
    color: white;
}
@media (max-width: 768px) {
    .reviews-hero h2 { font-size: 28px; }
    .review-cta h3 { font-size: 24px; }
}


/* ===== FIX RESPONSIVE CHO TẤT CẢ BÀI VIẾT ===== */

.wp-caption,
.wp-block-image {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
}

.wp-caption img,
.entry-content img,
.vd-description img,
#view-play img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
}

.entry-content table,
.vd-description table,
#view-play table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

.entry-content iframe,
.vd-description iframe,
#view-play iframe {
    max-width: 100%;
}

.entry-content pre,
.vd-description pre {
    max-width: 100%;
    overflow-x: auto;
}

/* Dùng trên html thay vì body để không ảnh hưởng position:fixed */
html {
    overflow-x: clip;
}

@media (max-width: 768px) {
    .wp-caption {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .wp-caption-text {
        font-size: 13px;
        padding: 8px 5px;
    }
    .vd-description {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .vd-description img {
        display: block;
        margin: 15px auto;
    }
}
