/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme - AnhdepHD.vn Clone
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/* ============================================
   FORCE OVERRIDE - Critical Fixes
   ============================================ */

/* Force images to display */
.anhdephd-homepage img,
.anhdephd-homepage .anhdephd-img,
img.anhdephd-img {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
}

/* Force hero images */
.anhdephd-hero-image img,
.anhdephd-hero-image .anhdephd-img {
    height: 100% !important;
    object-fit: cover !important;
}

/* Force card images */
.anhdephd-card-image img,
.anhdephd-featured-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Force related posts images */
.anhdephd-related-posts img,
.anhdephd-related-image img,
.anhdephd-related-item img {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-width: none !important;
}

/* Force trending and sidebar images */
.anhdephd-trending-image img,
.anhdephd-sidebar img {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ============================================
   AnhdepHD.vn Clone Styles
   ============================================ */

/* Reset và Base Styles */
.anhdephd-homepage * {
    box-sizing: border-box;
}

.anhdephd-homepage a {
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Header Styles */
.anhdephd-header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.anhdephd-header .header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}

.anhdephd-logo-link {
    text-decoration: none;
}

.anhdephd-logo {
    font-size: 28px;
    font-weight: 800;
    color: #000;
    letter-spacing: -0.5px;
}

.anhdephd-logo .logo-hd {
    background: #0073aa;
    color: #fff;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 24px;
    margin-left: 2px;
}

/* Navigation Menu */
.anhdephd-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.anhdephd-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 35px;
}

.anhdephd-menu li {
    margin: 0;
    padding: 0;
}

.anhdephd-menu a {
    color: #333;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 5px;
    display: block;
    position: relative;
}

.anhdephd-menu a:hover,
.anhdephd-menu .current-menu-item a {
    color: #0073aa;
}

.anhdephd-menu a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #0073aa;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.anhdephd-menu a:hover::after,
.anhdephd-menu .current-menu-item a::after {
    transform: scaleX(1);
}

/* Header Search */
.anhdephd-search-form {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 25px;
    overflow: hidden;
    background: #f5f5f5;
}

.anhdephd-search-input {
    border: none;
    background: transparent;
    padding: 10px 20px;
    outline: none;
    font-size: 14px;
    min-width: 200px;
}

.anhdephd-search-submit {
    border: none;
    background: transparent;
    padding: 10px 15px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
}

.anhdephd-search-submit:hover {
    color: #0073aa;
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    margin-left: 15px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0;
}

.dark-mode-toggle:hover {
    background: #e5e5e5;
    transform: scale(1.1) rotate(15deg);
}

.dark-mode-toggle i {
    font-size: 20px;
    color: #fbbf24;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-mode-toggle:active i {
    transform: scale(0.9);
}

/* Dark mode styles */
body.dark-mode .dark-mode-toggle {
    background: #374151;
    border-color: #4b5563;
}

body.dark-mode .dark-mode-toggle:hover {
    background: #4b5563;
}

body.dark-mode .dark-mode-toggle i {
    color: #60a5fa;
}

/* Language Switcher in Header */
.header-language-switcher {
    margin-left: 20px;
}

.header-language-switcher ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
}

.header-language-switcher li {
    margin: 0;
    padding: 0;
}

.header-language-switcher a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
    background: #f5f5f5;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.header-language-switcher a:hover {
    background: #e5e5e5;
    color: #333;
}

.header-language-switcher .current-lang a,
.header-language-switcher li.current-lang a {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.header-language-switcher img {
    width: 20px;
    height: auto;
    border-radius: 2px;
}

/* Hero Section - 3-column Grid (restored) */
.anhdephd-homepage .anhdephd-hero {
    background: #0a0a0a !important;
    padding: 40px 0 !important;
    margin: 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

.anhdephd-homepage .anhdephd-hero::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background:
        radial-gradient(circle at 20% 50%, rgba(16, 185, 129, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(5, 150, 105, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(34, 197, 94, 0.2) 0%, transparent 50%) !important;
    animation: pulseGradient 8s ease-in-out infinite !important;
}

.anhdephd-homepage .anhdephd-hero::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(16, 185, 129, 0.03) 2px, rgba(16, 185, 129, 0.03) 4px) !important;
    pointer-events: none !important;
}

@keyframes pulseGradient {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.anhdephd-homepage .anhdephd-hero-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
    position: relative !important;
    z-index: 1 !important;
}

.anhdephd-homepage .anhdephd-hero-grid {
    display: grid !important;
    grid-template-columns: 1.5fr 1fr !important;
    grid-template-rows: repeat(3, 1fr) !important;
    gap: 15px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    height: 450px !important;
}

.anhdephd-homepage .anhdephd-hero-item {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    margin: 0 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(139, 92, 246, 0.2) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    animation: floatIn 0.8s ease-out backwards !important;
    transform-style: preserve-3d !important;
}

/* Large hero card - Left side, spans all 3 rows */
.anhdephd-homepage .anhdephd-hero-large {
    grid-column: 1 !important;
    grid-row: 1 / 4 !important;
}

/* Small hero cards - Right side, 3 separate rows */
.anhdephd-homepage .anhdephd-hero-small {
    grid-column: 2 !important;
}

.anhdephd-homepage .anhdephd-hero-small:nth-of-type(2) {
    grid-row: 1 !important;
}

.anhdephd-homepage .anhdephd-hero-small:nth-of-type(3) {
    grid-row: 2 !important;
}

.anhdephd-homepage .anhdephd-hero-small:nth-of-type(4) {
    grid-row: 3 !important;
}

.anhdephd-homepage .anhdephd-hero-item::before {
    content: '' !important;
    position: absolute !important;
    top: -2px !important;
    left: -2px !important;
    right: -2px !important;
    bottom: -2px !important;
    background: linear-gradient(45deg, #8b5cf6, #ec4899, #3b82f6, #8b5cf6) !important;
    background-size: 400% 400% !important;
    border-radius: 20px !important;
    opacity: 0 !important;
    z-index: -1 !important;
    transition: opacity 0.5s ease !important;
    animation: gradientShift 6s ease infinite !important;
}

.anhdephd-homepage .anhdephd-hero-item:hover::before {
    opacity: 0.6 !important;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.anhdephd-homepage .anhdephd-hero-item:nth-child(1) { animation-delay: 0.1s !important; }
.anhdephd-homepage .anhdephd-hero-item:nth-child(2) { animation-delay: 0.3s !important; }
.anhdephd-homepage .anhdephd-hero-item:nth-child(3) { animation-delay: 0.5s !important; }
.anhdephd-homepage .anhdephd-hero-item:nth-child(4) { animation-delay: 0.7s !important; }

@keyframes floatIn {
    from { opacity: 0 !important; transform: translateY(60px) scale(0.95) !important; }
    to { opacity: 1 !important; transform: translateY(0) scale(1) !important; }
}

.anhdephd-homepage .anhdephd-hero-item:hover {
    transform: translateY(-15px) rotateX(5deg) !important;
    border-color: rgba(139, 92, 246, 0.6) !important;
    box-shadow:
        0 20px 60px rgba(139, 92, 246, 0.4),
        0 0 40px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.anhdephd-homepage .anhdephd-hero-link {
    display: block !important;
    height: 100% !important;
    text-decoration: none !important;
    color: inherit !important;
    position: relative !important;
    z-index: 1 !important;
}

.anhdephd-homepage .anhdephd-hero-image {
    position: relative !important;
    height: 100% !important;
    overflow: hidden !important;
}

.anhdephd-homepage .anhdephd-hero-image::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.3) 0%,
        rgba(236, 72, 153, 0.2) 50%,
        rgba(59, 130, 246, 0.3) 100%) !important;
    opacity: 0 !important;
    transition: opacity 0.5s ease !important;
    z-index: 1 !important;
    mix-blend-mode: overlay !important;
}

.anhdephd-homepage .anhdephd-hero-link:hover .anhdephd-hero-image::before {
    opacity: 0.7 !important;
}

.anhdephd-homepage .anhdephd-hero-image .anhdephd-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: block !important;
    filter: brightness(0.9) contrast(1.1) !important;
}

.anhdephd-homepage .anhdephd-hero-link:hover .anhdephd-img {
    transform: scale(1.1) !important;
    filter: brightness(1.1) contrast(1.2) saturate(1.2) !important;
}

.anhdephd-homepage .anhdephd-hero-overlay {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(to top,
        rgba(10, 10, 10, 0.95) 0%,
        rgba(10, 10, 10, 0.7) 40%,
        transparent 100%) !important;
    padding: 20px 18px !important;
    color: #fff !important;
    z-index: 2 !important;
    backdrop-filter: blur(8px) !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.anhdephd-homepage .anhdephd-hero-link:hover .anhdephd-hero-overlay {
    padding-bottom: 32px !important;
    background: linear-gradient(to top,
        rgba(139, 92, 246, 0.3) 0%,
        rgba(10, 10, 10, 0.8) 40%,
        transparent 100%) !important;
}

.anhdephd-homepage .anhdephd-hero-badge {
    display: inline-block !important;
    font-size: 11px !important;
    margin-bottom: 12px !important;
    padding: 6px 16px !important;
    background: rgba(139, 92, 246, 0.2) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(139, 92, 246, 0.4) !important;
    border-radius: 30px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    color: #c4b5fd !important;
}

.anhdephd-homepage .anhdephd-hero-badge i {
    margin-right: 6px !important;
}

.anhdephd-homepage .anhdephd-hero-title {
    font-size: 17px !important;
    font-weight: 800 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    background: linear-gradient(135deg, #fff 0%, #c4b5fd 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* Container & Layout */
.anhdephd-homepage {
    background: #fff;
    padding: 0;
}

.anhdephd-homepage .anhdephd-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 40px 15px !important;
    display: flex !important;
    gap: 30px !important;
}

.anhdephd-homepage .anhdephd-main-content {
    flex: 1 !important;
    min-width: 0 !important;
}

.anhdephd-homepage .anhdephd-sidebar {
    width: 350px !important;
    flex-shrink: 0 !important;
    align-self: flex-start !important;
    transition: none !important;
}

.anhdephd-homepage .anhdephd-sidebar.is-sticky {
    position: sticky !important;
    bottom: 20px !important;
    align-self: flex-end !important;
}

/* Section Titles */
.anhdephd-section {
    margin-bottom: 40px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.anhdephd-section-title {
    margin-bottom: 20px;
    padding: 12px 20px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid #0073aa;
}

.anhdephd-title-text {
    font-size: 24px; 
    font-weight: 700;
    color: #0073aa;
    text-decoration: none;
}

/* Trending title - blue color */
.anhdephd-trending-title .anhdephd-title-text {
    font-size: 24px; 
    font-weight: 700;
    color: #0073aa;
    text-decoration: none;
}

/* Featured Post - Horizontal Layout */
.anhdephd-featured-post {
    margin-bottom: 30px !important;
}

.anhdephd-featured-link {
    display: flex !important;
    gap: 20px !important;
    text-decoration: none !important;
    color: inherit !important;
}

.anhdephd-featured-image {
    position: relative !important;
    width: 365px !important;
    height: 205px !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    border-radius: 8px !important;
}

.anhdephd-featured-image .anhdephd-img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

.anhdephd-featured-link:hover .anhdephd-img {
    transform: scale(1.05) !important;
}

.anhdephd-badge {
    position: absolute !important;
    bottom: 10px !important;
    right: 10px !important;
    background: #0073aa !important;
    color: #fff !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
}

.anhdephd-featured-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    padding: 0 !important;
}

.anhdephd-date {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.view-icon {
    font-size: 11px;
    display: inline-block;
    vertical-align: middle;
}

.anhdephd-featured-title {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
}

.anhdephd-excerpt {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.anhdephd-read-more {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.anhdephd-read-more:hover {
    background: #005a87;
    color: #fff;
}

/* Posts List Layout (like trending items) */
.anhdephd-posts-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0 30px !important;
    margin-bottom: 30px !important;
}

.anhdephd-list-item {
    margin-bottom: 20px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid #eee !important;
}

.anhdephd-list-item:last-child {
    border-bottom: none !important;
}

.anhdephd-list-link {
    display: flex !important;
    gap: 12px !important;
    align-items: flex-start !important;
    text-decoration: none !important;
    color: inherit !important;
}

.anhdephd-list-thumb {
    width: 80px !important;
    height: 80px !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    border-radius: 6px !important;
}

.anhdephd-list-thumb .anhdephd-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.3s ease !important;
}

.anhdephd-list-link:hover .anhdephd-img {
    transform: scale(1.05) !important;
}

.anhdephd-list-content {
    flex: 1 !important;
    min-width: 0 !important;
}

.anhdephd-list-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #000 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

.anhdephd-list-link:hover .anhdephd-list-title {
    color: #0073aa !important;
}

.anhdephd-list-excerpt {
    display: none !important;
}

.anhdephd-homepage .anhdephd-list-content .anhdephd-date {
    font-size: 12px !important;
    color: #999 !important;
    margin-bottom: 5px !important;
}

/* Old Posts Grid - Keep for other sections */
.anhdephd-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.anhdephd-post-card {
    background: #fff;
}

.anhdephd-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.anhdephd-card-image {
    width: 100%;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 1;
}

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

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

.anhdephd-card-content {
    padding: 0 5px;
}

.anhdephd-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #000;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
}

/* Trending Sidebar */
.anhdephd-homepage .anhdephd-trending-featured {
    margin-bottom: 25px !important;
    padding: 0 5px !important;
}

.anhdephd-homepage .anhdephd-trending-link {
    display: block !important;
    text-decoration: none !important;
    color: inherit !important;
}

.anhdephd-homepage .anhdephd-trending-image {
    position: relative !important;
    width: 100% !important;
    margin-bottom: 15px !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    aspect-ratio: 16/9 !important;
    height: auto !important;
}

.anhdephd-homepage .anhdephd-trending-image .anhdephd-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.3s ease !important;
}

.anhdephd-homepage .anhdephd-trending-link:hover .anhdephd-img {
    transform: scale(1.05) !important;
}

.anhdephd-homepage .anhdephd-trending-featured .anhdephd-trending-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #000 !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.5 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
}

.anhdephd-homepage .anhdephd-trending-item {
    margin-bottom: 20px !important;
    padding: 0 5px 20px 5px !important;
    border-bottom: 1px solid #eee !important;
}

.anhdephd-homepage .anhdephd-trending-item:last-child {
    border-bottom: none !important;
}

.anhdephd-homepage .anhdephd-trending-item .anhdephd-trending-link {
    display: flex !important;
    gap: 15px !important;
    align-items: flex-start !important;
}

.anhdephd-homepage .anhdephd-trending-thumb {
    width: 100px !important;
    height: 100px !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    border-radius: 8px !important;
}

.anhdephd-homepage .anhdephd-trending-thumb .anhdephd-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.anhdephd-homepage .anhdephd-trending-content {
    flex: 1 !important;
    min-width: 0 !important;
}

.anhdephd-homepage .anhdephd-trending-item-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #000 !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
}

.anhdephd-homepage .anhdephd-trending-item .anhdephd-date {
    font-size: 12px !important;
    color: #999 !important;
}

/* Placeholders */
.anhdephd-placeholder,
.anhdephd-placeholder-small {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    font-weight: 600;
}

.anhdephd-placeholder::before {
    content: "📷";
    font-size: 48px;
}

.anhdephd-placeholder {
    width: 100% !important;
    height: 100% !important;
    min-height: 205px;
}

.anhdephd-placeholder-small::before {
    content: "📷";
    font-size: 24px;
}

.anhdephd-placeholder-small {
    aspect-ratio: 1;
    min-height: 80px;
}

/* Buttons */
.anhdephd-load-more {
    text-align: center;
    margin-top: 30px;
}

.anhdephd-button {
    display: inline-block;
    padding: 12px 30px;
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.anhdephd-button:hover {
    background: #f5f5f5;
    border-color: #0073aa;
    color: #0073aa;
}

/* Responsive */
@media only screen and (max-width: 48em) {
    .anhdephd-header .header-inner {
        flex-wrap: wrap;
    }
    
    .anhdephd-nav {
        display: none;
    }
    
    .anhdephd-search-form {
        margin-top: 10px;
        width: 100%;
    }
    
    .anhdephd-search-input {
        min-width: 100%;
    }
    
    .anhdephd-homepage .anhdephd-hero-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        gap: 15px !important;
        height: auto !important;
    }
    
    .anhdephd-homepage .anhdephd-hero-large,
    .anhdephd-homepage .anhdephd-hero-small {
        grid-column: 1 !important;
        grid-row: auto !important;
        height: 250px !important;
    }
    
    .anhdephd-container {
        flex-direction: column;
        padding: 15px 10px;
    }
    
    .anhdephd-sidebar {
        width: 100%;
    }
    
    .anhdephd-posts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .anhdephd-wallpaper-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .anhdephd-featured-title {
        font-size: 22px;
    }
    
    .anhdephd-section-title {
        font-size: 20px;
    }
    
    .anhdephd-title-text {
        font-size: 20px;
    }
}

/* Wallpaper Grid Section */
.anhdephd-wallpaper-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.anhdephd-wallpaper-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 280px;
}

.anhdephd-wallpaper-link {
    display: block;
    height: 100%;
    text-decoration: none;
}

.anhdephd-wallpaper-image {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.anhdephd-wallpaper-image .anhdephd-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.anhdephd-wallpaper-link:hover .anhdephd-img {
    transform: scale(1.1);
}

.anhdephd-wallpaper-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    padding: 20px;
    color: #fff;
}

.anhdephd-wallpaper-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: #fff;
}

@media only screen and (min-width: 48em) and (max-width: 64em) {
    .anhdephd-wallpaper-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .anhdephd-hero-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .anhdephd-container {
        gap: 20px;
    }
    
    .anhdephd-sidebar {
        width: 300px;
    }
}

/* Additional Category Sections */
.anhdephd-category-section {
    margin-top: 50px;
}

/* Section Spacing */
.anhdephd-section + .anhdephd-section {
    margin-top: 50px;
}

/* Link Hover Effects */
.anhdephd-featured-link:hover .anhdephd-featured-title,
.anhdephd-card-link:hover .anhdephd-card-title,
.anhdephd-trending-link:hover .anhdephd-trending-title,
.anhdephd-trending-link:hover .anhdephd-trending-item-title {
    color: #0073aa;
}

/* Loading States */
.anhdephd-img {
    opacity: 0;
    animation: fadeIn 0.3s ease-in forwards;
}

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

/* Print Styles */
@media print {
    .anhdephd-sidebar,
    .anhdephd-load-more,
    .anhdephd-read-more {
        display: none;
    }
}

/* Footer Styles */
.anhdephd-footer {
    background: #2c2c2c;
    color: #fff;
    padding: 50px 0 30px;
}

.anhdephd-footer .footer-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.anhdephd-footer .footer-col {
    padding: 0;
}

.anhdephd-footer .widget-title,
.anhdephd-footer h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #444;
}

.anhdephd-footer p,
.anhdephd-footer a {
    color: #ccc;
    text-decoration: none;
    line-height: 1.8;
}

.anhdephd-footer a:hover {
    color: #0073aa;
}

.anhdephd-footer .footer-logo {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
}

.anhdephd-footer .footer-logo .logo-hd {
    background: #0073aa;
    padding: 4px 12px;
    border-radius: 4px;
    margin-left: 3px;
}

.anhdephd-footer .footer-description {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #aaa;
}

.anhdephd-footer .footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.anhdephd-footer .footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #444;
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}

.anhdephd-footer .footer-social a:hover {
    background: #0073aa;
    transform: translateY(-3px);
    color: #fff;
}

.anhdephd-footer .footer-latest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.anhdephd-footer .footer-latest-item {
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 1;
    transition: transform 0.3s ease;
}

.anhdephd-footer .footer-latest-item:hover {
    transform: scale(1.05);
}

.anhdephd-footer .footer-latest-item a {
    display: block;
    height: 100%;
}

.anhdephd-footer .footer-latest-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.anhdephd-footer .footer-placeholder {
    width: 100%;
    height: 100%;
    background: #444;
    display: block;
}

.anhdephd-footer .footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.anhdephd-footer .footer-tag {
    display: inline-block;
    padding: 6px 14px;
    background: #444;
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.anhdephd-footer .footer-tag:hover {
    background: #0073aa;
    color: #fff;
    transform: translateY(-2px);
}

/* Absolute Footer (Copyright) */
.absolute-footer {
    background: #1a1a1a;
    padding: 20px 0;
    border-top: 1px solid #444;
}

.absolute-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.absolute-footer .footer-primary,
.absolute-footer .footer-secondary {
    color: #999;
    font-size: 14px;
}

.absolute-footer .copyright-footer {
    margin: 0;
}

.absolute-footer a {
    color: #0073aa;
    text-decoration: none;
}

.absolute-footer a:hover {
    text-decoration: underline;
}

.absolute-footer .footer-nav a {
    color: #999;
    margin: 0 8px;
}

.absolute-footer .footer-nav a:hover {
    color: #0073aa;
}

@media only screen and (max-width: 48em) {
    .anhdephd-footer .footer-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .anhdephd-footer .footer-latest-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .absolute-footer .container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .absolute-footer .footer-primary,
    .absolute-footer .footer-secondary {
        width: 100%;
    }
}

/* ============================================
   CATEGORY PAGE STYLES - AnhdepHD Clone
   ============================================ */

.anhdephd-category-page {
    padding: 40px 0;
    background: #f8f9fa;
    width: 100%;
    overflow-x: hidden;
}

.anhdephd-category-page .container {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
    box-sizing: border-box !important;
    width: 100%;
}

.anhdephd-category-page .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: 0;
    margin-right: 0;
}

.anhdephd-category-page .col {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

.anhdephd-category-page .large-8 {
    flex: 0 0 66.66667%;
    max-width: 66.66667%;
}

.anhdephd-category-page .large-4 {
    flex: 0 0 33.33333%;
    max-width: 33.33333%;
}

/* Breadcrumb */
.anhdephd-breadcrumb {
    padding: 12px 20px;
    margin-bottom: 25px;
    font-size: 14px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.anhdephd-breadcrumb a {
    color: #0073aa;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.anhdephd-breadcrumb a:hover {
    color: #005a87;
}

.anhdephd-breadcrumb .breadcrumb-home i {
    font-size: 16px;
}

.anhdephd-breadcrumb .separator {
    color: #ccc;
    font-weight: 300;
}

.anhdephd-breadcrumb .current {
    color: #333;
    font-weight: 600;
}

/* Category Header */
.anhdephd-category-header {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.anhdephd-category-title {
    font-size: 36px;
    font-weight: 700;
    color: #000;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.anhdephd-category-description {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
}

.anhdephd-category-description p {
    margin: 0;
}

/* Main Content Area */
.anhdephd-category-main {
    /* padding handled by col class */
}

/* Category Posts List */
.anhdephd-category-posts {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Individual Post Item */
.anhdephd-category-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.anhdephd-category-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Featured Post (First Post) */
.anhdephd-category-item.anhdephd-featured-post {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.anhdephd-category-item.anhdephd-featured-post .anhdephd-post-image {
    width: 320px;
    position: relative;
    flex-shrink: 0;
}

.anhdephd-category-item.anhdephd-featured-post .anhdephd-post-content {
    padding: 20px 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.anhdephd-category-item.anhdephd-featured-post .anhdephd-post-title {
    font-size: 20px;
    margin-bottom: 10px;
}

/* Regular Posts (Not First) */
.anhdephd-category-item:not(.anhdephd-featured-post) {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.anhdephd-category-item:not(.anhdephd-featured-post) .anhdephd-post-image {
    width: 320px;
    flex-shrink: 0;
}

.anhdephd-category-item:not(.anhdephd-featured-post) .anhdephd-post-content {
    padding: 20px 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.anhdephd-category-item:not(.anhdephd-featured-post) .anhdephd-post-title {
    font-size: 20px;
    margin-bottom: 10px;
}

/* Post Image */
.anhdephd-post-image {
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    height: 100%;
}

.anhdephd-post-image a {
    display: flex;
    width: 100%;
    height: 100%;
}

.anhdephd-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block !important;
    transition: transform 0.3s ease;
}

.anhdephd-category-item:hover .anhdephd-post-image img {
    transform: scale(1.05);
}

/* Date Badge for Featured Post */
.anhdephd-post-date-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 115, 170, 0.95);
    color: #fff;
    padding: 10px 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.anhdephd-post-date-badge .date-day {
    display: block;
    font-size: 24px;
    margin-bottom: 2px;
}

.anhdephd-post-date-badge .date-month {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
}

/* Post Content */
.anhdephd-post-content {
    display: flex;
    flex-direction: column;
}

.anhdephd-post-meta {
    margin-bottom: 10px;
    font-size: 13px;
    color: #999;
}

.anhdephd-post-meta i {
    margin-right: 5px;
}

.anhdephd-post-title {
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    word-wrap: break-word;
    word-break: break-word;
}

.anhdephd-post-title a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
}

.anhdephd-post-title a:hover {
    color: #0073aa;
}

.anhdephd-post-excerpt {
    color: #555;
    font-size: 15px;
    line-height: 1.7;
    margin: 15px 0;
}

.anhdephd-post-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.anhdephd-read-more {
    display: inline-block;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background 0.3s ease;
    align-self: flex-start;
}

.anhdephd-read-more:hover {
    background: #005a87;
}

/* Sidebar */
.anhdephd-category-sidebar {
    /* padding handled by col class */
}

/* Sidebar Widgets */
.anhdephd-sidebar-widget {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.anhdephd-widget-title {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    margin: 0 0 15px 0;
}

.anhdephd-widget-divider {
    height: 3px;
    background: linear-gradient(90deg, #0073aa 0%, transparent 100%);
    margin-bottom: 20px;
    border-radius: 2px;
}

/* Hide widget load more button */
.anhdephd-sidebar .anhdephd-load-more {
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Trending Widget */
.anhdephd-trending-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.anhdephd-trending-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 20px;
}

.anhdephd-trending-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.anhdephd-trending-link {
    display: flex !important;
    gap: 15px !important;
    align-items: flex-start !important;
    text-decoration: none !important;
}

.anhdephd-trending-thumb {
    width: 100px !important;
    height: 100px !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    border-radius: 8px !important;
}

.anhdephd-trending-thumb .anhdephd-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.3s ease;
}

.anhdephd-trending-item:hover .anhdephd-trending-thumb .anhdephd-img {
    transform: scale(1.1);
}

.anhdephd-trending-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.anhdephd-trending-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block !important;
    transition: transform 0.3s ease;
}

.anhdephd-trending-item:hover .anhdephd-trending-image img {
    transform: scale(1.1);
}

.anhdephd-trending-content {
    flex: 1;
    min-width: 0;
}

.anhdephd-trending-item-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #000 !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.anhdephd-trending-link:hover .anhdephd-trending-item-title {
    color: #0073aa !important;
}

.anhdephd-trending-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px 0;
}

.anhdephd-trending-title a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.anhdephd-trending-title a:hover {
    color: #0073aa;
}

.anhdephd-trending-date,
.anhdephd-trending-item .anhdephd-date {
    font-size: 12px !important;
    color: #999 !important;
}

.anhdephd-trending-date i,
.anhdephd-trending-item .anhdephd-date i {
    margin-right: 5px;
}

/* Recent Posts Widget */
.anhdephd-recent-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.anhdephd-recent-item {
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
}

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

.anhdephd-recent-item a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.anhdephd-recent-item a:hover {
    color: #0073aa;
}

/* Search Widget */
.anhdephd-search-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff !important;
    padding: 20px !important;
}

.anhdephd-search-widget .anhdephd-widget-title {
    color: #fff !important;
    margin: 0 0 8px 0 !important;
    font-size: 20px !important;
}

.anhdephd-search-widget .anhdephd-widget-divider {
    background: rgba(255, 255, 255, 0.3) !important;
    margin-bottom: 12px !important;
    height: 2px !important;
}

.anhdephd-search-form {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

.anhdephd-search-input {
    flex: 1 !important;
    padding: 14px 56px 14px 20px !important;
    border: none !important;
    border-radius: 50px !important;
    font-size: 14px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    line-height: 1.5 !important;
    height: 50px !important;
    width: 100% !important;
}

.anhdephd-search-input:focus {
    outline: none !important;
    background: #fff !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

.anhdephd-search-input::placeholder {
    color: #999 !important;
}

.anhdephd-search-button {
    position: absolute !important;
    right: 4px !important;
    top: 4px !important;
    padding: 0 !important;
    background: #0073aa !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-size: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 3px 10px rgba(0, 115, 170, 0.3) !important;
    height: 42px !important;
    width: 42px !important;
}

.anhdephd-search-button:hover {
    background: #005a87 !important;
    transform: scale(1.05) !important;
    box-shadow: 0 5px 15px rgba(0, 115, 170, 0.4) !important;
}

.anhdephd-search-button i {
    font-size: 14px !important;
}

/* Pagination */
.anhdephd-pagination {
    margin-top: 40px;
    text-align: center;
}

.anhdephd-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.anhdephd-pagination .page-numbers {
    padding: 10px 15px;
    background: #fff;
    color: #333;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.anhdephd-pagination .page-numbers:hover,
.anhdephd-pagination .page-numbers.current {
    background: #0073aa;
    color: #fff;
}

/* No Posts Message */
.anhdephd-no-posts {
    background: #fff;
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.anhdephd-no-posts p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .anhdephd-category-page .large-8 {
        flex: 0 0 60%;
        max-width: 60%;
    }
    
    .anhdephd-category-page .large-4 {
        flex: 0 0 40%;
        max-width: 40%;
    }
    
    .anhdephd-category-item.anhdephd-featured-post .anhdephd-post-image {
        height: 300px;
    }
    
    .anhdephd-category-item:not(.anhdephd-featured-post) .anhdephd-post-image {
        width: 220px;
        height: 160px;
    }
}

@media (max-width: 768px) {
    .anhdephd-category-page .large-8,
    .anhdephd-category-page .large-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .anhdephd-category-sidebar {
        margin-top: 30px;
    }
    
    .anhdephd-sidebar-sticky {
        position: static;
    }
    
    .anhdephd-category-item:not(.anhdephd-featured-post) {
        flex-direction: column;
    }
    
    .anhdephd-category-item:not(.anhdephd-featured-post) .anhdephd-post-image {
        width: 100%;
        height: 200px;
    }
    
    .anhdephd-category-title {
        font-size: 28px;
    }
    
    .anhdephd-category-header {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .anhdephd-category-item.anhdephd-featured-post .anhdephd-post-image {
        height: 250px;
    }
    
    .anhdephd-category-item.anhdephd-featured-post .anhdephd-post-content {
        padding: 20px;
    }
    
    .anhdephd-category-item.anhdephd-featured-post .anhdephd-post-title {
        font-size: 22px;
    }
    
    .anhdephd-trending-image {
        width: 70px;
        height: 70px;
    }
    
    .anhdephd-trending-title {
        font-size: 14px;
    }
}

/* ============================================
   SINGLE POST PAGE STYLES - AnhdepHD Clone
   ============================================ */

.anhdephd-single-page {
    padding: 40px 0;
    background: #f8f9fa;
    width: 100%;
    overflow-x: hidden;
}

.anhdephd-single-page .container {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
    box-sizing: border-box !important;
    width: 100%;
}

.anhdephd-single-page .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: 0;
    margin-right: 0;
}

.anhdephd-single-page .col {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

.anhdephd-single-page .large-8 {
    flex: 0 0 66.66667%;
    max-width: 66.66667%;
}

.anhdephd-single-page .large-4 {
    flex: 0 0 33.33333%;
    max-width: 33.33333%;
}

/* Single Post Article */
.anhdephd-single-post {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.anhdephd-post-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.anhdephd-single-post .anhdephd-post-title {
    font-size: 36px;
    font-weight: 700;
    color: #000;
    line-height: 1.3;
    margin: 0 0 15px 0;
}

.anhdephd-single-post .anhdephd-post-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #999;
}

.anhdephd-single-post .anhdephd-post-meta i {
    margin-right: 5px;
}

.anhdephd-single-post .anhdephd-post-meta span {
    display: flex;
    align-items: center;
}

/* Post Content */
.anhdephd-single-post .anhdephd-post-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
}

.anhdephd-single-post .anhdephd-post-content p {
    margin-bottom: 20px;
}

.anhdephd-single-post .anhdephd-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 20px 0;
    display: block !important;
}

.anhdephd-single-post .anhdephd-post-content h2,
.anhdephd-single-post .anhdephd-post-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
    color: #000;
}

.anhdephd-single-post .anhdephd-post-content h2 {
    font-size: 28px;
}

.anhdephd-single-post .anhdephd-post-content h3 {
    font-size: 24px;
}

.anhdephd-single-post .anhdephd-post-content ul,
.anhdephd-single-post .anhdephd-post-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.anhdephd-single-post .anhdephd-post-content li {
    margin-bottom: 10px;
}

.anhdephd-single-post .anhdephd-post-content blockquote {
    border-left: 4px solid #0073aa;
    padding: 15px 20px;
    margin: 20px 0;
    background: #f8f9fa;
    font-style: italic;
}

/* Share Section */
.anhdephd-share-section {
    text-align: center;
    margin: 40px 0 0 0;
}

.anhdephd-share-divider {
    height: 1px;
    background: #e5e5e5;
    margin-bottom: 30px;
}

.anhdephd-share-title {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.anhdephd-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.anhdephd-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
}

.anhdephd-share-facebook {
    background: #1877f2;
}

.anhdephd-share-facebook:hover {
    background: #145dbf;
}

.anhdephd-share-x {
    background: #000;
}

.anhdephd-share-x:hover {
    background: #333;
}

.anhdephd-share-linkedin {
    background: #0077b5;
}

.anhdephd-share-linkedin:hover {
    background: #005a87;
}

.anhdephd-share-pinterest {
    background: #e60023;
}

.anhdephd-share-pinterest:hover {
    background: #ad001a;
}

/* Related Posts Section */
.anhdephd-related-posts {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.anhdephd-related-title {
    font-size: 26px;
    font-weight: 700;
    color: #000;
    margin: 0 0 15px 0;
}

.anhdephd-related-divider {
    height: 3px;
    background: linear-gradient(90deg, #0073aa 0%, transparent 100%);
    margin-bottom: 30px;
    border-radius: 2px;
}

/* Related Posts List */
.anhdephd-related-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.anhdephd-related-item {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.anhdephd-related-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.anhdephd-related-link {
    display: flex !important;
    gap: 15px !important;
    align-items: flex-start !important;
    text-decoration: none !important;
}

.anhdephd-related-thumb {
    width: 100px !important;
    height: 100px !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    border-radius: 8px !important;
}

.anhdephd-related-thumb .anhdephd-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.3s ease;
}

.anhdephd-related-item:hover .anhdephd-related-thumb .anhdephd-img {
    transform: scale(1.1);
}

.anhdephd-related-content {
    flex: 1;
    min-width: 0;
}

.anhdephd-related-post-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #000 !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.anhdephd-related-link:hover .anhdephd-related-post-title {
    color: #0073aa !important;
}

.anhdephd-related-item .anhdephd-date {
    font-size: 12px !important;
    color: #999 !important;
}

.anhdephd-related-item .anhdephd-date i {
    margin-right: 5px;
}

/* Legacy styles for grid (keeping for compatibility) */
.anhdephd-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.anhdephd-related-date i {
    margin-right: 5px;
}

/* Placeholder for related posts without images */
.anhdephd-placeholder-related {
    width: 100% !important;
    height: 100% !important;
    background: #f0f0f0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    font-weight: 600;
}

.anhdephd-placeholder-related::before {
    content: "📷";
    font-size: 48px;
}

/* Sidebar Sticky for Single Post */
.anhdephd-single-sidebar .anhdephd-sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
    align-self: flex-start;
}

/* Sidebar Sticky for Category Page */
.anhdephd-category-sidebar .anhdephd-sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
    align-self: flex-start;
}

/* Responsive Design for Single Post */
@media (max-width: 1024px) {
    .anhdephd-single-page .large-8 {
        flex: 0 0 60%;
        max-width: 60%;
    }
    
    .anhdephd-single-page .large-4 {
        flex: 0 0 40%;
        max-width: 40%;
    }
    
    .anhdephd-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .anhdephd-single-page .large-8,
    .anhdephd-single-page .large-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .anhdephd-single-sidebar {
        margin-top: 30px;
    }
    
    .anhdephd-single-sidebar .anhdephd-sidebar-sticky {
        position: static;
    }
    
    .anhdephd-single-post {
        padding: 25px;
    }
    
    .anhdephd-single-post .anhdephd-post-title {
        font-size: 28px;
    }
    
    .anhdephd-related-posts {
        padding: 25px;
    }
    
    .anhdephd-related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .anhdephd-single-post {
        padding: 20px;
    }
    
    .anhdephd-single-post .anhdephd-post-title {
        font-size: 24px;
    }
    
    .anhdephd-single-post .anhdephd-post-content {
        font-size: 15px;
    }
    
    .anhdephd-related-posts {
        padding: 20px;
    }
    
    .anhdephd-related-title {
        font-size: 22px;
    }
}

/* ============================================
   DARK MODE STYLES
   ============================================ */

/* Remove transitions to make instant switch */
body * {
    transition: none !important;
}

/* Only add transition to body background for smooth fade */
body {
    transition: background-color 0.3s ease !important;
}

/* Add transition only to specific UI elements */
.dark-mode-toggle,
.dark-mode-toggle *,
.anhdephd-header,
.header-wrapper,
button,
a {
    transition: all 0.3s ease !important;
}

body.dark-mode {
    background: #111827 !important;
    color: #e5e7eb !important;
}

body.dark-mode * {
    border-color: #374151 !important;
}

/* Header Dark Mode */
body.dark-mode .anhdephd-header {
    background: #1f2937 !important;
    border-bottom-color: #374151 !important;
}

body.dark-mode #header,
body.dark-mode .header-wrapper,
body.dark-mode .header-main,
body.dark-mode .header-inner {
    background: #1f2937 !important;
}

body.dark-mode .anhdephd-logo {
    color: #f9fafb !important;
}

body.dark-mode #logo a,
body.dark-mode .logo a {
    color: #f9fafb !important;
}

body.dark-mode .anhdephd-menu a,
body.dark-mode .primary-menu > li > a,
body.dark-mode .header-nav a {
    color: #d1d5db !important;
}

body.dark-mode .anhdephd-menu a:hover,
body.dark-mode .anhdephd-menu .current-menu-item a,
body.dark-mode .primary-menu > li > a:hover {
    color: #10b981 !important;
}

body.dark-mode .anhdephd-menu a::after {
    background: #10b981 !important;
}

body.dark-mode .anhdephd-search-form {
    background: #374151 !important;
    border-color: #4b5563 !important;
}

body.dark-mode .anhdephd-search-input {
    color: #e5e7eb !important;
}

body.dark-mode .anhdephd-search-input::placeholder {
    color: #9ca3af !important;
}

body.dark-mode .anhdephd-search-submit {
    color: #9ca3af !important;
}

body.dark-mode .anhdephd-search-submit:hover {
    color: #10b981 !important;
}

/* Hero Section Dark Mode */
body.dark-mode .anhdephd-hero {
    background: #0f172a !important;
}

body.dark-mode .anhdephd-hero-title {
    color: #f9fafb !important;
}

body.dark-mode .anhdephd-hero-overlay,
body.dark-mode .anhdephd-hero-link,
body.dark-mode .anhdephd-hero-item h1,
body.dark-mode .anhdephd-hero-item h2,
body.dark-mode .anhdephd-hero-item h3 {
    color: #f9fafb !important;
}

/* Content Dark Mode */
body.dark-mode .anhdephd-container,
body.dark-mode .anhdephd-main-content,
body.dark-mode .page-wrapper {
    background: #111827 !important;
}

body.dark-mode .anhdephd-section {
    background: #1f2937 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
}

body.dark-mode .anhdephd-section-title,
body.dark-mode .anhdephd-section-title .anhdephd-title-text {
    color: #10b981 !important;
    background: transparent !important;
    border-left-color: #10b981 !important;
    box-shadow: none !important;
}

body.dark-mode .anhdephd-featured-post,
body.dark-mode .anhdephd-list-item,
body.dark-mode .anhdephd-card,
body.dark-mode .anhdephd-category-item {
    background: #1f2937 !important;
    border-color: #374151 !important;
}

body.dark-mode .anhdephd-featured-post:hover,
body.dark-mode .anhdephd-list-item:hover {
    background: #252f3f !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2) !important;
}

body.dark-mode .anhdephd-featured-title,
body.dark-mode .anhdephd-list-title,
body.dark-mode .anhdephd-post-title,
body.dark-mode .anhdephd-hero-title,
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3,
body.dark-mode h4, body.dark-mode h5, body.dark-mode h6 {
    color: #f9fafb !important;
}

body.dark-mode .anhdephd-featured-title a,
body.dark-mode .anhdephd-list-title a,
body.dark-mode .anhdephd-post-title a,
body.dark-mode h1 a, body.dark-mode h2 a, body.dark-mode h3 a,
body.dark-mode h4 a, body.dark-mode h5 a, body.dark-mode h6 a {
    color: #f9fafb !important;
}

body.dark-mode .anhdephd-excerpt,
body.dark-mode .anhdephd-list-excerpt,
body.dark-mode .anhdephd-date,
body.dark-mode p,
body.dark-mode span,
body.dark-mode time {
    color: #9ca3af !important;
}

body.dark-mode .anhdephd-badge {
    background: rgba(16, 185, 129, 0.2) !important;
    color: #10b981 !important;
}

body.dark-mode .anhdephd-button {
    background: #374151 !important;
    color: #e5e7eb !important;
    border-color: #4b5563 !important;
}

body.dark-mode .anhdephd-button:hover {
    background: #4b5563 !important;
    color: #10b981 !important;
}

/* Sidebar Dark Mode */
body.dark-mode .anhdephd-sidebar {
    background: #111827 !important;
}

body.dark-mode .anhdephd-trending,
body.dark-mode .anhdephd-sidebar-widget {
    background: #1f2937 !important;
    border-color: #374151 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
}

body.dark-mode .anhdephd-trending-item,
body.dark-mode .anhdephd-recent-item {
    border-color: #374151 !important;
}

body.dark-mode .anhdephd-trending-item:hover,
body.dark-mode .anhdephd-recent-item:hover {
    background: rgba(16, 185, 129, 0.05) !important;
}

body.dark-mode .anhdephd-trending-title,
body.dark-mode .anhdephd-widget-title {
    color: #f9fafb !important;
}

body.dark-mode .anhdephd-trending-item-title {
    color: #ffffff !important;
}

body.dark-mode .anhdephd-trending-title .anhdephd-title-text {
    color: #10b981 !important;
}

body.dark-mode .anhdephd-trending-item h1,
body.dark-mode .anhdephd-trending-item h2,
body.dark-mode .anhdephd-trending-item h3,
body.dark-mode .anhdephd-trending-item h4,
body.dark-mode .anhdephd-trending-featured h1,
body.dark-mode .anhdephd-trending-featured h2,
body.dark-mode .anhdephd-trending-featured h3 {
    color: #f9fafb !important;
}

body.dark-mode .anhdephd-trending-featured .anhdephd-trending-title {
    color: #ffffff !important;
}

body.dark-mode .anhdephd-trending-title,
body.dark-mode .anhdephd-widget-title {
    border-bottom-color: #374151 !important;
}

body.dark-mode .anhdephd-trending-item-title a {
    color: #ffffff !important;
}

body.dark-mode .anhdephd-recent-item a {
    color: #f9fafb !important;
}

/* Footer Dark Mode */
body.dark-mode .anhdephd-footer {
    background: #0f172a !important;
    border-top-color: #1f2937 !important;
}

body.dark-mode .footer-description,
body.dark-mode .anhdephd-footer p,
body.dark-mode .anhdephd-footer a,
body.dark-mode .footer-nav a {
    color: #ffffff !important;
}

body.dark-mode .anhdephd-footer a:hover,
body.dark-mode .footer-nav a:hover {
    color: #10b981 !important;
}

body.dark-mode .footer-tag {
    background: #374151 !important;
    color: #d1d5db !important;
    border-color: #4b5563 !important;
}

body.dark-mode .footer-tag:hover {
    background: #4b5563 !important;
    color: #10b981 !important;
}

body.dark-mode .absolute-footer {
    background: #0a0e1a !important;
    border-top-color: #1f2937 !important;
}

body.dark-mode .absolute-footer .container {
    color: #e5e7eb !important;
}

body.dark-mode .copyright-footer,
body.dark-mode .footer-secondary,
body.dark-mode .absolute-footer .footer-primary,
body.dark-mode .absolute-footer .footer-secondary {
    color: #e5e7eb !important;
}

body.dark-mode .absolute-footer a {
    color: #10b981 !important;
}

body.dark-mode .absolute-footer a:hover {
    color: #34d399 !important;
}

body.dark-mode .absolute-footer .footer-nav a {
    color: #e5e7eb !important;
}

body.dark-mode .absolute-footer .footer-nav a:hover {
    color: #10b981 !important;
}

body.dark-mode .absolute-footer .copyright-footer a {
    color: #10b981 !important;
}

/* Category & Single Page Dark Mode */
body.dark-mode .anhdephd-category-page,
body.dark-mode .anhdephd-single-page {
    background: #111827 !important;
}

body.dark-mode .anhdephd-breadcrumb {
    background: #1f2937 !important;
    color: #9ca3af !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
}

body.dark-mode .anhdephd-breadcrumb a {
    color: #10b981 !important;
}

body.dark-mode .anhdephd-breadcrumb .current {
    color: #e5e7eb !important;
}

body.dark-mode .anhdephd-breadcrumb .separator {
    color: #6b7280 !important;
}

body.dark-mode .anhdephd-category-header,
body.dark-mode .anhdephd-post-header {
    background: #1f2937 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
    border-bottom: none !important;
}

body.dark-mode .anhdephd-category-title,
body.dark-mode .anhdephd-post-title {
    color: #f9fafb !important;
}

body.dark-mode .anhdephd-category-description {
    color: #d1d5db !important;
}

body.dark-mode .anhdephd-single-post {
    background: #1f2937 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

body.dark-mode .anhdephd-post-content,
body.dark-mode .entry-content,
body.dark-mode .anhdephd-post-description {
    color: #d1d5db !important;
}

body.dark-mode .anhdephd-post-content h2,
body.dark-mode .anhdephd-post-content h3,
body.dark-mode .anhdephd-post-content h4,
body.dark-mode .entry-content h2,
body.dark-mode .entry-content h3,
body.dark-mode .entry-content h4 {
    color: #f9fafb !important;
}

body.dark-mode .anhdephd-post-content p,
body.dark-mode .entry-content p {
    color: #d1d5db !important;
}

body.dark-mode .anhdephd-post-content blockquote,
body.dark-mode .entry-content blockquote {
    background: #374151 !important;
    border-left-color: #10b981 !important;
    color: #e5e7eb !important;
}

body.dark-mode .anhdephd-post-meta,
body.dark-mode .anhdephd-post-meta span {
    color: #9ca3af !important;
}

body.dark-mode .anhdephd-share-section {
    background: #1f2937 !important;
    border-color: #374151 !important;
}

body.dark-mode .anhdephd-share-title {
    color: #f9fafb !important;
}

body.dark-mode .anhdephd-share-btn {
    background: #374151 !important;
    color: #d1d5db !important;
}

body.dark-mode .anhdephd-share-btn:hover {
    background: #4b5563 !important;
    transform: translateY(-2px);
}

body.dark-mode .anhdephd-related-posts {
    background: #1f2937 !important;
    border-color: #374151 !important;
}

body.dark-mode .anhdephd-related-title {
    color: #f9fafb !important;
}

body.dark-mode .anhdephd-related-post-title,
body.dark-mode .anhdephd-related-post-title a {
    color: #f9fafb !important;
}

/* Language Switcher Dark Mode */
body.dark-mode .header-language-switcher a {
    background: #374151 !important;
    color: #d1d5db !important;
}

body.dark-mode .header-language-switcher a:hover {
    background: #4b5563 !important;
    color: #e5e7eb !important;
}

body.dark-mode .header-language-switcher .current-lang a {
    background: #10b981 !important;
    color: white !important;
}

/* Language Dropdown Dark Mode */
body.dark-mode .nav-dropdown,
body.dark-mode .nav-dropdown-default,
body.dark-mode .lang-dropdown {
    background: #1f2937 !important;
    border-color: #374151 !important;
}

body.dark-mode .nav-dropdown li,
body.dark-mode .lang-dropdown li {
    background: #1f2937 !important;
    border-color: #374151 !important;
}

body.dark-mode .nav-dropdown li a,
body.dark-mode .lang-dropdown li a {
    color: #d1d5db !important;
}

body.dark-mode .nav-dropdown li:hover,
body.dark-mode .lang-dropdown li:hover,
body.dark-mode .nav-dropdown li a:hover,
body.dark-mode .lang-dropdown li a:hover {
    background: #374151 !important;
    color: #10b981 !important;
}

/* Flatsome Elements Dark Mode */
body.dark-mode .header-nav,
body.dark-mode .nav-wrapper {
    background: #1f2937 !important;
}

body.dark-mode .nav-top {
    background: #111827 !important;
}

/* Smooth Transitions */
body,
.anhdephd-header,
.anhdephd-featured-post,
.anhdephd-list-item,
.anhdephd-card,
.anhdephd-button,
.anhdephd-sidebar,
.anhdephd-footer {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}
