/* ===== Ultimate CSS Styles ===== */
:root {
    --primary-green: #2ECC40;
    --secondary-green: #27AE60;
    --accent-purple: #764ba2;
    --light-gray: #F8F9FA;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --warning: #F39C12;
    --danger: #E74C3C;
    --info: #3498DB;
}

/* Hero Section with Animated Background */
.guide-hero {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    padding: 100px 0 120px;
    color: white;
    position: relative;
    overflow: hidden;
}

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

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(10px) translateX(-10px); }
    75% { transform: translateY(-10px) translateX(20px); }
}

/* Advanced Search Section */
.search-section {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 60px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    padding: 8px;
    position: relative;
}

.search-form {
    display: flex;
    align-items: center;
    position: relative;
}

.search-form input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    font-size: 1.1rem;
    background: transparent;
    outline: none;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 10px;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggestion-item:hover {
    background: var(--light-gray);
}

.voice-search-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s;
}

.voice-search-btn:hover {
    color: var(--primary-green);
}

.voice-search-btn.recording {
    color: var(--danger);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Quick Tips Carousel */
.tips-carousel {
    background: white;
    padding: 30px;
    margin: 40px 0;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.tips-container {
    display: flex;
    transition: transform 0.5s ease;
}

.tip-card {
    min-width: 100%;
    padding: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.tip-icon {
    font-size: 3rem;
}

.tip-content {
    flex: 1;
    text-align: left;
}

.tip-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.tip-text {
    color: var(--text-light);
    line-height: 1.6;
}

.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-light);
    opacity: 0.3;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: var(--primary-green);
    opacity: 1;
    transform: scale(1.2);
}

/* Carousel Navigation Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-green);
    transition: all 0.3s;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    user-select: none;
}

.carousel-arrow:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 15px rgba(46, 204, 64, 0.3);
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-arrow-prev {
    left: 10px;
}

.carousel-arrow-next {
    right: 10px;
}

@media (max-width: 768px) {
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .carousel-arrow-prev {
        left: 5px;
    }
    
    .carousel-arrow-next {
        right: 5px;
    }
}

/* Stats Bar Enhanced */
.stats-bar {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin: 40px auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
}

.stat-item {
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
}

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

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
    display: block;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Advanced Filter Section */
.filter-section {
    background: var(--light-gray);
    padding: 40px 0;
    margin-bottom: 40px;
    position: sticky;
    top: 60px;
    z-index: 100;
}

.filter-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 12px 24px;
    background: white;
    color: var(--text-dark);
    border: 2px solid transparent;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.filter-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 64, 0.2);
    border-color: var(--primary-green);
}

.filter-pill.active {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

.filter-count {
    background: rgba(0,0,0,0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-left: 5px;
}

/* Difficulty Filter */
.difficulty-filter {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.diff-btn {
    padding: 8px 20px;
    border: 2px solid #E0E0E0;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.diff-btn:hover {
    transform: translateY(-2px);
}

.diff-btn[data-level="easy"].active { 
    background: var(--primary-green); 
    color: white; 
    border-color: var(--primary-green);
}

.diff-btn[data-level="medium"].active { 
    background: var(--warning); 
    color: white;
    border-color: var(--warning);
}

.diff-btn[data-level="hard"].active { 
    background: var(--danger); 
    color: white;
    border-color: var(--danger);
}

/* Tags Cloud */
.tags-cloud {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
}

.tags-cloud h3 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.tag-item {
    display: inline-block;
    padding: 8px 16px;
    margin: 5px;
    background: var(--light-gray);
    color: var(--text-dark);
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.tag-item:hover {
    background: var(--primary-green);
    color: white;
    transform: scale(1.05);
}

.tag-item .tag-count {
    opacity: 0.6;
    font-size: 0.85rem;
}

/* Popular & Trending Section */
.trending-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    border-radius: 20px;
    color: white;
    margin: 40px 0;
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* ⭐ TRENDING RESPONSIVE ⭐ */
@media (max-width: 768px) {
    .trending-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .trending-card {
        padding: 15px;
        border-radius: 12px;
    }
    
    .trending-title {
        font-size: 1rem;
    }
    
    .trending-meta {
        font-size: 0.75rem;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .trending-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .trending-card {
        padding: 12px;
    }
    
    .trending-title {
        font-size: 0.9rem;
        line-height: 1.2;
    }
    
    .trending-badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    
    .trending-meta {
        font-size: 0.7rem;
    }
}

.trending-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s;
    cursor: pointer;
}

.trending-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
}

.trending-badge {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 15px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.trending-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.trending-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 15px;
}

/* Enhanced Guide Cards */
.guide-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.guide-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.guide-card:active {
    transform: translateY(-4px) scale(1.01);
}

.guide-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--secondary-green), var(--accent-purple));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.guide-card:hover::before {
    transform: scaleX(1);
}

/* Filter Results Counter */
.filter-results {
    transition: all 0.3s ease;
    margin-top: -10px;
}

.results-counter {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 20px;
    font-weight: 500;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

/* Hidden class for filtering */
.guide-card.hidden {
    display: none !important;
}

.guide-thumbnail {
    height: 220px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    position: relative;
    overflow: hidden;
}

.guide-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.guide-card:hover .guide-thumbnail img {
    transform: scale(1.1);
}

.guide-video-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.guide-card:hover .guide-video-preview {
    display: block;
}

.bookmark-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 10;
}

.bookmark-btn:hover {
    transform: scale(1.1);
    background: var(--primary-green);
    color: white;
}

.bookmark-btn.saved {
    background: var(--primary-green);
    color: white;
}

.guide-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guide-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.badge-category {
    background: white;
    color: var(--text-dark);
}

.badge-new {
    background: var(--info);
    color: white;
}

.badge-trending {
    background: var(--danger);
    color: white;
}

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

.guide-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.guide-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.guide-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #F0F0F0;
}

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

.guide-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #F0F0F0;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
    padding: 5px 10px;
    border-radius: 20px;
}

.action-btn:hover {
    background: var(--light-gray);
    color: var(--primary-green);
}

.action-btn.liked {
    color: var(--danger);
}

.read-more {
    color: var(--primary-green);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.read-more:hover {
    gap: 10px;
}

/* Progress Tracker */
.progress-tracker {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.progress-bar {
    background: var(--light-gray);
    height: 10px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-green), var(--secondary-green));
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

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

.progress-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

.progress-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Interactive Tools */
.tools-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    margin: 40px 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.tool-card {
    background: var(--light-gray);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-green);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.tool-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.tool-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Calculator Modal */
.calculator-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.calculator-modal.active {
    display: flex;
}

.calculator-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.calculator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select {
    padding: 12px;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    font-size: 1rem;
}

.calculate-btn {
    background: var(--primary-green);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.calculate-btn:hover {
    background: var(--secondary-green);
}

.calculator-result {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
    display: none;
}

.calculator-result.show {
    display: block;
}

/* Newsletter Section Enhanced */
.newsletter-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 40px;
    border-radius: 20px;
    color: white;
    text-align: center;
    margin: 60px 0;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: rgba(255,255,255,0.05);
    transform: rotate(45deg);
}

.newsletter-form {
    max-width: 600px;
    margin: 30px auto 0;
    display: flex;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.newsletter-input {
    flex: 1;
    padding: 18px 25px;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    background: rgba(255,255,255,0.9);
}

.newsletter-btn {
    padding: 18px 40px;
    background: white;
    color: var(--accent-purple);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255,255,255,0.3);
}

.newsletter-incentive {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ===================================
   RESPONSIVE DESIGN - COMPLETE VERSION
   =================================== */

/* Tablet (≤ 768px) */
@media (max-width: 768px) {
    /* Hero Section */
    .guide-hero {
        padding: 60px 0 80px !important;
    }
    
    .guide-hero h1 {
        font-size: 2rem !important;
    }
    
    .guide-hero p {
        font-size: 1rem !important;
    }
    
    #welcomeMessage {
        font-size: 0.9rem !important;
    }
    
    /* Search Section */
    .search-container {
        padding: 6px !important;
        border-radius: 40px !important;
    }
    
    .search-form input {
        padding: 14px 18px !important;
        font-size: 1rem !important;
    }
    
    .search-form button[type="submit"] {
        padding: 12px 25px !important;
        font-size: 0.95rem !important;
    }
    
    .voice-search-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
    }
    
    /* Filter Section */
    .filter-row {
        flex-wrap: wrap !important;
        gap: 8px !important;
        justify-content: center !important;
    }
    
    .filter-pill {
        padding: 8px 16px !important;
        font-size: 0.9rem !important;
        white-space: nowrap !important;
    }
    
    .filter-count {
        font-size: 0.85rem !important;
    }
    
    /* Grid - ⭐ 2 COLUMNS ON MOBILE ⭐ */
    .guide-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    /* Stats Bar */
    .stats-bar {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    /* Newsletter */
    .newsletter-form {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .newsletter-form input {
        width: 100% !important;
    }
    
    /* Tools Grid */
    .tools-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Mobile (≤ 480px) */
@media (max-width: 480px) {
    /* Hero Section */
    .guide-hero {
        padding: 40px 0 60px !important;
    }
    
    .guide-hero h1 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }
    
    .guide-hero p {
        font-size: 0.9rem !important;
        padding: 0 10px !important;
    }
    
    #welcomeMessage {
        font-size: 0.8rem !important;
        padding: 8px 15px !important;
        display: block !important;
    }
    
    #welcomeMessage span {
        display: block !important;
        margin: 2px 0 !important;
    }
    
    /* Search Section */
    .search-section {
        margin-top: -40px !important;
    }
    
    .search-container {
        padding: 5px !important;
        border-radius: 30px !important;
    }
    
    .search-form {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    
    .search-form input {
        padding: 12px 15px !important;
        font-size: 14px !important;
        min-width: 0 !important;
        flex: 1 1 100% !important;
    }
    
    .voice-search-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 1.1rem !important;
        position: absolute !important;
        right: 60px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
    
    .search-form button[type="submit"] {
        padding: 10px 20px !important;
        font-size: 14px !important;
        border-radius: 25px !important;
        flex: 0 0 auto !important;
        width: 100% !important;
    }
    
    /* Tips Carousel */
    .tips-carousel h3 {
        font-size: 1.2rem !important;
    }
    
    .tip-card {
        padding: 15px !important;
    }
    
    .tip-title {
        font-size: 1rem !important;
    }
    
    .tip-text {
        font-size: 0.85rem !important;
    }
    
    /* Filter Section */
    .filter-section {
        padding: 20px 0 !important;
    }
    
    .filter-container {
        padding: 0 10px !important;
    }
    
    .filter-row {
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
    
    .filter-pill {
        padding: 6px 12px !important;
        font-size: 0.85rem !important;
        border-radius: 20px !important;
    }
    
    .filter-pill span {
        font-size: 0.75rem !important;
    }
    
    .difficulty-filter {
        margin-top: 15px !important;
    }
    
    .difficulty-filter select {
        font-size: 0.9rem !important;
        padding: 10px !important;
    }
    
    /* Stats Bar */
    .stats-bar {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 15px !important;
    }
    
    .stat-number {
        font-size: 1.5rem !important;
    }
    
    .stat-label {
        font-size: 0.85rem !important;
    }
    
    /* Guide Cards */
    .guide-card {
        border-radius: 12px !important;
    }
    
    .guide-image {
        height: 180px !important;
    }
    
    .guide-content {
        padding: 15px !important;
    }
    
    .guide-title {
        font-size: 1.1rem !important;
    }
    
    .guide-meta {
        font-size: 0.8rem !important;
        gap: 8px !important;
    }
    
    .guide-description {
        font-size: 0.85rem !important;
    }
    
    .guide-footer {
        padding: 12px 15px !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    
    .action-btn {
        padding: 8px 16px !important;
        font-size: 0.85rem !important;
    }
    
    /* Newsletter */
    .newsletter-section {
        padding: 40px 0 !important;
    }
    
    .newsletter-section h2 {
        font-size: 1.5rem !important;
    }
    
    .newsletter-form input {
        font-size: 0.9rem !important;
        padding: 12px 15px !important;
    }
    
    .newsletter-btn {
        padding: 12px 25px !important;
        font-size: 0.9rem !important;
    }
}

/* Extra Small Mobile (≤ 360px) */
@media (max-width: 360px) {
    /* Hero */
    .guide-hero h1 {
        font-size: 1.3rem !important;
    }
    
    .guide-hero p {
        font-size: 0.85rem !important;
    }
    
    #welcomeMessage {
        font-size: 0.75rem !important;
    }
    
    /* Search */
    .search-form input {
        font-size: 13px !important;
        padding: 10px 12px !important;
    }
    
    .search-form button[type="submit"] {
        font-size: 13px !important;
        padding: 8px 16px !important;
    }
    
    /* Filter Pills */
    .filter-pill {
        padding: 5px 10px !important;
        font-size: 0.8rem !important;
    }
    
    .filter-count {
        font-size: 0.7rem !important;
    }
    
    /* Cards */
    .guide-card {
        border-radius: 10px !important;
    }
    
    .guide-title {
        font-size: 1rem !important;
    }
    
    .guide-meta {
        font-size: 0.75rem !important;
    }
}

/* Landscape Mode (Small Height) */
@media (max-width: 768px) and (max-height: 500px) and (orientation: landscape) {
    .guide-hero {
        padding: 30px 0 50px !important;
    }
    
    .guide-hero h1 {
        font-size: 1.5rem !important;
    }
    
    .guide-hero p {
        font-size: 0.9rem !important;
    }
    
    #welcomeMessage {
        display: none !important;
    }
    
    .search-section {
        margin-top: -30px !important;
    }
}

/* Touch Enhancements */
@media (max-width: 768px) {
    /* Better touch targets */
    .filter-pill,
    .action-btn,
    .bookmark-btn,
    button {
        min-height: 44px !important;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1) !important;
        touch-action: manipulation !important;
    }
    
    /* Smooth scrolling */
    html {
        -webkit-overflow-scrolling: touch !important;
        scroll-behavior: smooth !important;
    }
    
    /* Prevent zoom on input focus (iOS) */
    input[type="search"],
    input[type="text"],
    input[type="email"],
    select {
        font-size: 16px !important;
    }
    
    /* Better scrollbar for filter overflow */
    .filter-row::-webkit-scrollbar {
        display: none !important;
    }
    
    .filter-row {
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }
}

/* Print Styles */
@media print {
    .guide-hero,
    .search-section,
    .filter-section,
    .newsletter-section,
    .action-btn,
    .bookmark-btn {
        display: none !important;
    }
    
    .guide-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-right {
    opacity: 0;
    transform: translateX(20px);
    animation: slideInRight 0.6s ease forwards;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================================================
   ENHANCED MOBILE RESPONSIVE CSS - Version 2.0
   Added: 2025-11-21
   ======================================================================== */
/* ========================================================================
   CARE GUIDES ARCHIVE - IMPROVED MOBILE RESPONSIVE CSS
   Version: 2.0 Enhanced
   สำหรับ: https://kasetidea.com/care-guides/
   
   การปรับปรุง:
   ✅ Typography ที่อ่านง่ายขึ้นบนมือถือ
   ✅ Spacing และ Padding ที่เหมาะสม
   ✅ Card Design ที่สวยงามและทันสมัย
   ✅ Filter Pills ที่จัดเรียงดีขึ้น
   ✅ Smooth Animations
   ✅ Touch-Friendly Interface
   ======================================================================== */

/* ===================================================================
   GLOBAL IMPROVEMENTS
   =================================================================== */

/* เพิ่มความนุ่มนวลให้ทุก transition */
* {
    -webkit-tap-highlight-color: rgba(46, 204, 64, 0.1);
}

.container {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* ===================================================================
   HERO SECTION - IMPROVED
   =================================================================== */

@media (max-width: 768px) {
    .guide-hero {
        padding: 50px 0 70px !important;
        background: linear-gradient(135deg, #2ECC40 0%, #27AE60 100%);
    }
    
    .guide-hero h1 {
        font-size: 2.2rem !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
        text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .guide-hero p {
        font-size: 1.05rem !important;
        line-height: 1.6 !important;
        opacity: 0.95 !important;
        max-width: 90% !important;
        margin: 0 auto !important;
    }
    
    #welcomeMessage {
        font-size: 0.95rem !important;
        padding: 10px 20px !important;
        margin-top: 20px !important;
        border-radius: 25px !important;
        background: rgba(255,255,255,0.15) !important;
        backdrop-filter: blur(10px) !important;
    }
}

@media (max-width: 480px) {
    .guide-hero {
        padding: 40px 0 60px !important;
    }
    
    .guide-hero h1 {
        font-size: 1.75rem !important;
        padding: 0 15px !important;
    }
    
    .guide-hero p {
        font-size: 0.95rem !important;
        padding: 0 15px !important;
    }
    
    #welcomeMessage {
        font-size: 0.85rem !important;
        padding: 8px 16px !important;
        margin: 15px 15px 0 !important;
    }
}

/* ===================================================================
   SEARCH SECTION - IMPROVED
   =================================================================== */

@media (max-width: 768px) {
    .search-section {
        margin-top: -45px !important;
        padding: 0 15px !important;
    }
    
    .search-container {
        border-radius: 50px !important;
        padding: 6px !important;
        box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
        background: white !important;
    }
    
    .search-form {
        position: relative !important;
    }
    
    .search-form input {
        padding: 15px 20px !important;
        font-size: 1rem !important;
        border-radius: 45px !important;
        width: 100% !important;
    }
    
    .search-form input::placeholder {
        color: #95a5a6 !important;
        opacity: 1 !important;
    }
    
    /* ปรับปุ่มค้นหาให้สวยงาม */
    .search-form button[type="submit"] {
        padding: 12px 28px !important;
        font-size: 0.95rem !important;
        border-radius: 40px !important;
        background: linear-gradient(135deg, #2ECC40, #27AE60) !important;
        font-weight: 600 !important;
        box-shadow: 0 4px 12px rgba(46, 204, 64, 0.3) !important;
        transition: all 0.3s ease !important;
    }
    
    .search-form button[type="submit"]:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 16px rgba(46, 204, 64, 0.4) !important;
    }
    
    /* ปุ่ม Voice Search */
    .voice-search-btn {
        width: 42px !important;
        height: 42px !important;
        border-radius: 50% !important;
        background: rgba(46, 204, 64, 0.1) !important;
        color: #2ECC40 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1.2rem !important;
        transition: all 0.3s ease !important;
    }
    
    .voice-search-btn:hover {
        background: rgba(46, 204, 64, 0.2) !important;
        transform: scale(1.05) !important;
    }
}

@media (max-width: 480px) {
    .search-section {
        margin-top: -40px !important;
        padding: 0 12px !important;
    }
    
    .search-container {
        border-radius: 40px !important;
        padding: 5px !important;
    }
    
    .search-form {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .search-form input {
        padding: 13px 18px !important;
        font-size: 15px !important;
        border-radius: 35px !important;
    }
    
    .search-form button[type="submit"] {
        width: 100% !important;
        padding: 13px 24px !important;
        font-size: 15px !important;
        margin-top: 5px !important;
    }
    
    .voice-search-btn {
        position: absolute !important;
        right: 15px !important;
        top: 8px !important;
        width: 38px !important;
        height: 38px !important;
        font-size: 1.1rem !important;
    }
}

/* ===================================================================
   FILTER SECTION - IMPROVED
   =================================================================== */

@media (max-width: 768px) {
    .filter-section {
        padding: 30px 0 !important;
        background: var(--light-gray, #F8F9FA) !important;
    }
    
    .filter-container {
        max-width: 100% !important;
    }
    
    /* Filter Pills Row */
    .filter-row {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        justify-content: center !important;
        padding: 0 10px !important;
    }
    
    .filter-pill {
        padding: 10px 18px !important;
        font-size: 0.9rem !important;
        border-radius: 25px !important;
        background: white !important;
        border: 2px solid #e0e0e0 !important;
        color: #2C3E50 !important;
        font-weight: 500 !important;
        transition: all 0.3s ease !important;
        cursor: pointer !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        white-space: nowrap !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.05) !important;
    }
    
    .filter-pill:hover,
    .filter-pill:active {
        background: #2ECC40 !important;
        color: white !important;
        border-color: #2ECC40 !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 10px rgba(46, 204, 64, 0.3) !important;
    }
    
    .filter-pill.active {
        background: linear-gradient(135deg, #2ECC40, #27AE60) !important;
        color: white !important;
        border-color: transparent !important;
        box-shadow: 0 4px 12px rgba(46, 204, 64, 0.4) !important;
    }
    
    .filter-pill span:first-child {
        font-size: 1.1rem !important;
    }
    
    .filter-count {
        background: rgba(255,255,255,0.25) !important;
        padding: 2px 8px !important;
        border-radius: 12px !important;
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        margin-left: 4px !important;
    }
    
    .filter-pill.active .filter-count {
        background: rgba(255,255,255,0.3) !important;
    }
    
    /* Difficulty Filter */
    .difficulty-filter {
        margin-top: 20px !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        padding: 0 10px !important;
    }
    
    .difficulty-filter > span {
        width: 100% !important;
        text-align: center !important;
        font-size: 0.9rem !important;
        margin-bottom: 5px !important;
    }
    
    .diff-btn {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
        border-radius: 20px !important;
        background: white !important;
        border: 2px solid #e0e0e0 !important;
        color: #2C3E50 !important;
        font-weight: 500 !important;
        transition: all 0.3s ease !important;
        cursor: pointer !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.05) !important;
    }
    
    .diff-btn:hover,
    .diff-btn:active {
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    }
    
    .diff-btn.active {
        background: linear-gradient(135deg, #3498DB, #2980B9) !important;
        color: white !important;
        border-color: transparent !important;
        box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4) !important;
    }
}

@media (max-width: 480px) {
    .filter-section {
        padding: 25px 0 !important;
    }
    
    .filter-pill {
        padding: 9px 16px !important;
        font-size: 0.85rem !important;
    }
    
    .filter-count {
        font-size: 0.75rem !important;
        padding: 2px 6px !important;
    }
    
    .difficulty-filter > span {
        font-size: 0.85rem !important;
    }
    
    .diff-btn {
        padding: 9px 16px !important;
        font-size: 0.85rem !important;
    }
}

/* ===================================================================
   GUIDE CARDS GRID - IMPROVED
   =================================================================== */

@media (max-width: 768px) {
    /* ⭐ 2 COLUMNS ON MOBILE ⭐ */
    .guide-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        padding: 20px 10px !important;
    }
    
    .guide-card {
        background: white !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
        transition: all 0.3s ease !important;
        cursor: pointer !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .guide-card:hover,
    .guide-card:active {
        transform: translateY(-4px) !important;
        box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
    }
    
    /* Card Image */
    .guide-card-image {
        width: 100% !important;
        height: 150px !important;
        object-fit: cover !important;
        display: block !important;
    }
    
    /* Card Content */
    .guide-card-content {
        padding: 12px !important;
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .guide-card-category {
        display: inline-block !important;
        padding: 4px 10px !important;
        background: rgba(46, 204, 64, 0.1) !important;
        color: #2ECC40 !important;
        font-size: 0.7rem !important;
        font-weight: 600 !important;
        border-radius: 15px !important;
        margin-bottom: 8px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }
    
    .guide-card-title {
        font-size: 1rem !important;
        font-weight: 700 !important;
        color: #2C3E50 !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    
    .guide-card-excerpt {
        font-size: 0.95rem !important;
        color: #7F8C8D !important;
        line-height: 1.6 !important;
        margin-bottom: 15px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        flex: 1 !important;
    }
    
    /* Card Meta */
    .guide-card-meta {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding-top: 15px !important;
        border-top: 1px solid #ecf0f1 !important;
        font-size: 0.85rem !important;
        color: #95a5a6 !important;
    }
    
    .guide-card-meta span {
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
    }
    
    /* Difficulty Badge */
    .difficulty-badge {
        padding: 4px 10px !important;
        border-radius: 15px !important;
        font-size: 0.75rem !important;
        font-weight: 600 !important;
    }
    
    .difficulty-badge.easy {
        background: rgba(46, 204, 64, 0.1) !important;
        color: #27AE60 !important;
    }
    
    .difficulty-badge.medium {
        background: rgba(243, 156, 18, 0.1) !important;
        color: #F39C12 !important;
    }
    
    .difficulty-badge.hard {
        background: rgba(231, 76, 60, 0.1) !important;
        color: #E74C3C !important;
    }
}

@media (max-width: 480px) {
    .guide-grid {
        gap: 18px !important;
        padding: 25px 0 !important;
    }
    
    .guide-card {
        border-radius: 14px !important;
    }
    
    .guide-card-image {
        height: 180px !important;
    }
    
    .guide-card-content {
        padding: 18px !important;
    }
    
    .guide-card-title {
        font-size: 1.15rem !important;
    }
    
    .guide-card-excerpt {
        font-size: 0.9rem !important;
    }
    
    .guide-card-meta {
        font-size: 0.8rem !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
}

/* ===================================================================
   STATS & PROGRESS SECTION - IMPROVED
   =================================================================== */

@media (max-width: 768px) {
    .stats-bar {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        padding: 25px 15px !important;
        margin: 20px 0 !important;
    }
    
    .stat-item {
        background: white !important;
        padding: 20px !important;
        border-radius: 14px !important;
        text-align: center !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
        transition: all 0.3s ease !important;
    }
    
    .stat-item:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 6px 16px rgba(0,0,0,0.1) !important;
    }
    
    .stat-number {
        font-size: 2rem !important;
        font-weight: 700 !important;
        color: #2ECC40 !important;
        display: block !important;
        margin-bottom: 8px !important;
    }
    
    .stat-label {
        font-size: 0.85rem !important;
        color: #7F8C8D !important;
        font-weight: 500 !important;
    }
    
    /* Progress Bar */
    .progress-container {
        background: white !important;
        padding: 25px !important;
        border-radius: 16px !important;
        margin: 25px 0 !important;
        box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
    }
    
    .progress-bar-track {
        height: 12px !important;
        background: #ecf0f1 !important;
        border-radius: 10px !important;
        overflow: hidden !important;
        margin: 15px 0 !important;
    }
    
    .progress-bar-fill {
        height: 100% !important;
        background: linear-gradient(90deg, #2ECC40, #27AE60) !important;
        border-radius: 10px !important;
        transition: width 0.5s ease !important;
    }
}

@media (max-width: 480px) {
    .stats-bar {
        gap: 12px !important;
        padding: 20px 12px !important;
    }
    
    .stat-item {
        padding: 18px !important;
    }
    
    .stat-number {
        font-size: 1.75rem !important;
    }
    
    .stat-label {
        font-size: 0.8rem !important;
    }
}

/* ===================================================================
   TAGS CLOUD - IMPROVED
   =================================================================== */

@media (max-width: 768px) {
    .tags-cloud {
        background: white !important;
        padding: 25px 20px !important;
        border-radius: 16px !important;
        margin: 25px 0 !important;
        box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
    }
    
    .tags-cloud h3 {
        font-size: 1.3rem !important;
        margin-bottom: 20px !important;
        text-align: center !important;
    }
    
    .tags-list {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        justify-content: center !important;
    }
    
    .tag-item {
        padding: 8px 16px !important;
        background: linear-gradient(135deg, rgba(46, 204, 64, 0.1), rgba(39, 174, 96, 0.1)) !important;
        border: 1px solid rgba(46, 204, 64, 0.3) !important;
        border-radius: 20px !important;
        font-size: 0.85rem !important;
        color: #27AE60 !important;
        font-weight: 500 !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
    }
    
    .tag-item:hover,
    .tag-item:active {
        background: linear-gradient(135deg, #2ECC40, #27AE60) !important;
        color: white !important;
        border-color: transparent !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 10px rgba(46, 204, 64, 0.3) !important;
    }
    
    .tag-count {
        opacity: 0.7 !important;
        font-size: 0.8rem !important;
        margin-left: 4px !important;
    }
}

@media (max-width: 480px) {
    .tags-cloud {
        padding: 20px 15px !important;
    }
    
    .tags-cloud h3 {
        font-size: 1.2rem !important;
    }
    
    .tag-item {
        padding: 7px 14px !important;
        font-size: 0.8rem !important;
    }
    
    .tag-count {
        font-size: 0.75rem !important;
    }
}

/* ===================================================================
   TRENDING SECTION - IMPROVED
   =================================================================== */

@media (max-width: 768px) {
    .trending-section {
        padding: 30px 0 !important;
    }
    
    .trending-section h2 {
        font-size: 1.5rem !important;
        margin-bottom: 10px !important;
    }
    
    .trending-section > p {
        font-size: 0.95rem !important;
        margin-bottom: 25px !important;
    }
    
    .trending-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }
    
    .trending-card {
        background: linear-gradient(135deg, #FF6B6B, #FF8E53) !important;
        color: white !important;
        padding: 25px !important;
        border-radius: 16px !important;
        position: relative !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        overflow: hidden !important;
    }
    
    .trending-card::before {
        content: '' !important;
        position: absolute !important;
        top: -50% !important;
        right: -50% !important;
        width: 200% !important;
        height: 200% !important;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%) !important;
        animation: pulse 3s ease-in-out infinite !important;
    }
    
    .trending-card:hover,
    .trending-card:active {
        transform: translateY(-4px) scale(1.02) !important;
        box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4) !important;
    }
    
    .trending-badge {
        position: absolute !important;
        top: 15px !important;
        right: 15px !important;
        background: rgba(255,255,255,0.25) !important;
        backdrop-filter: blur(10px) !important;
        padding: 6px 12px !important;
        border-radius: 20px !important;
        font-size: 0.75rem !important;
        font-weight: 600 !important;
    }
    
    .trending-title {
        font-size: 1.25rem !important;
        font-weight: 700 !important;
        margin-bottom: 12px !important;
        position: relative !important;
        z-index: 1 !important;
    }
    
    .trending-card p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        margin-bottom: 15px !important;
        opacity: 0.95 !important;
        position: relative !important;
        z-index: 1 !important;
    }
    
    .trending-meta {
        display: flex !important;
        gap: 15px !important;
        flex-wrap: wrap !important;
        font-size: 0.85rem !important;
        opacity: 0.9 !important;
        position: relative !important;
        z-index: 1 !important;
    }
    
    .trending-meta span {
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
    }
}

@media (max-width: 480px) {
    .trending-section h2 {
        font-size: 1.35rem !important;
    }
    
    .trending-section > p {
        font-size: 0.9rem !important;
    }
    
    .trending-card {
        padding: 20px !important;
    }
    
    .trending-title {
        font-size: 1.15rem !important;
    }
    
    .trending-card p {
        font-size: 0.85rem !important;
    }
    
    .trending-meta {
        font-size: 0.8rem !important;
        gap: 12px !important;
    }
}

/* ===================================================================
   NEWSLETTER SECTION - IMPROVED
   =================================================================== */

@media (max-width: 768px) {
    .newsletter-section {
        background: linear-gradient(135deg, #667eea, #764ba2) !important;
        color: white !important;
        padding: 40px 20px !important;
        border-radius: 16px !important;
        margin: 30px 0 !important;
        text-align: center !important;
    }
    
    .newsletter-section h3 {
        font-size: 1.5rem !important;
        margin-bottom: 10px !important;
    }
    
    .newsletter-section p {
        font-size: 1rem !important;
        opacity: 0.95 !important;
        margin-bottom: 25px !important;
    }
    
    .newsletter-form {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        max-width: 100% !important;
    }
    
    .newsletter-form input {
        padding: 14px 20px !important;
        border-radius: 40px !important;
        border: none !important;
        font-size: 1rem !important;
        width: 100% !important;
    }
    
    .newsletter-form button {
        padding: 14px 30px !important;
        background: white !important;
        color: #764ba2 !important;
        border: none !important;
        border-radius: 40px !important;
        font-weight: 600 !important;
        font-size: 1rem !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
    }
    
    .newsletter-form button:hover,
    .newsletter-form button:active {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 16px rgba(255,255,255,0.3) !important;
    }
}

@media (max-width: 480px) {
    .newsletter-section {
        padding: 35px 18px !important;
    }
    
    .newsletter-section h3 {
        font-size: 1.3rem !important;
    }
    
    .newsletter-section p {
        font-size: 0.9rem !important;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        padding: 13px 18px !important;
        font-size: 0.95rem !important;
    }
}

/* ===================================================================
   PAGINATION - IMPROVED
   =================================================================== */

@media (max-width: 768px) {
    .pagination {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px !important;
        margin: 40px 0 !important;
        flex-wrap: wrap !important;
    }
    
    .page-numbers {
        min-width: 40px !important;
        height: 40px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: white !important;
        border: 2px solid #e0e0e0 !important;
        border-radius: 10px !important;
        color: #2C3E50 !important;
        font-weight: 600 !important;
        font-size: 0.95rem !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
        padding: 0 12px !important;
    }
    
    .page-numbers:hover,
    .page-numbers:active {
        background: #2ECC40 !important;
        color: white !important;
        border-color: #2ECC40 !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 10px rgba(46, 204, 64, 0.3) !important;
    }
    
    .page-numbers.current {
        background: linear-gradient(135deg, #2ECC40, #27AE60) !important;
        color: white !important;
        border-color: transparent !important;
        box-shadow: 0 4px 12px rgba(46, 204, 64, 0.4) !important;
    }
    
    .page-numbers.dots {
        border: none !important;
        background: transparent !important;
        pointer-events: none !important;
    }
}

@media (max-width: 480px) {
    .pagination {
        gap: 6px !important;
        margin: 35px 0 !important;
    }
    
    .page-numbers {
        min-width: 36px !important;
        height: 36px !important;
        font-size: 0.9rem !important;
        padding: 0 10px !important;
    }
}

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

@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.3;
    }
    50% {
        transform: translate(-20%, -20%);
        opacity: 0.6;
    }
}

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

/* Fade in animation สำหรับ cards */
.guide-card,
.trending-card,
.achievement-item {
    animation: fadeInUp 0.5s ease forwards;
}

/* ===================================================================
   UTILITIES
   =================================================================== */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth !important;
}

/* ป้องกัน text size adjustment บน iOS */
@media (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100% !important;
        text-size-adjust: 100% !important;
    }
}

/* Loading State */
.loading {
    opacity: 0.6 !important;
    pointer-events: none !important;
}

/* No Results Message */
.no-results {
    text-align: center !important;
    padding: 60px 20px !important;
    color: #7F8C8D !important;
}

.no-results-icon {
    font-size: 4rem !important;
    margin-bottom: 20px !important;
    opacity: 0.5 !important;
}

.no-results-text {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: #2C3E50 !important;
    margin-bottom: 10px !important;
}

.no-results-subtext {
    font-size: 1rem !important;
    opacity: 0.8 !important;
}

/* ===================================================================
   LANDSCAPE MODE OPTIMIZATIONS
   =================================================================== */

@media (max-width: 768px) and (max-height: 500px) and (orientation: landscape) {
    .guide-hero {
        padding: 30px 0 50px !important;
    }
    
    .guide-hero h1 {
        font-size: 1.5rem !important;
    }
    
    .guide-hero p {
        font-size: 0.85rem !important;
    }
    
    #welcomeMessage {
        display: none !important;
    }
    
    .search-section {
        margin-top: -35px !important;
    }
    
    .filter-section {
        padding: 20px 0 !important;
    }
}

/* ===================================================================
   PRINT STYLES
   =================================================================== */

@media print {
    .guide-hero,
    .search-section,
    .filter-section,
    .newsletter-section,
    .pagination,
    .voice-search-btn {
        display: none !important;
    }
    
    .guide-card {
        page-break-inside: avoid !important;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* ========================================================================
   HORIZONTAL SCROLL FILTERS - SPACE SAVING VERSION v1.2.3
   Added: 2024-11-21
   เปลี่ยนจาก wrap เป็น horizontal scroll เพื่อประหยัดพื้นที่
   ======================================================================== */

/* ===================================================================
   CATEGORY FILTERS - HORIZONTAL SCROLL (แถวเดียว)
   =================================================================== */

@media (max-width: 768px) {
    /* Filter Pills Row - Override เป็น horizontal scroll */
    .filter-row {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: thin !important;
        scrollbar-color: #2ECC40 #ecf0f1 !important;
        padding-bottom: 15px !important;
    }
    
    .filter-row::-webkit-scrollbar {
        height: 6px !important;
    }
    
    .filter-row::-webkit-scrollbar-track {
        background: #ecf0f1 !important;
        border-radius: 10px !important;
        margin: 0 10px !important;
    }
    
    .filter-row::-webkit-scrollbar-thumb {
        background: #2ECC40 !important;
        border-radius: 10px !important;
    }
    
    .filter-row::-webkit-scrollbar-thumb:hover {
        background: #27AE60 !important;
    }
    
    /* Gradient fade effect ที่ขอบ */
    .filter-container::before,
    .filter-container::after {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 30px !important;
        pointer-events: none !important;
        z-index: 2 !important;
    }
    
    .filter-container::before {
        left: 0 !important;
        background: linear-gradient(to right, #F8F9FA, transparent) !important;
    }
    
    .filter-container::after {
        right: 0 !important;
        background: linear-gradient(to left, #F8F9FA, transparent) !important;
    }
    
    .filter-pill {
        flex-shrink: 0 !important;
    }
}

/* ===================================================================
   DIFFICULTY FILTER - SELECT DROPDOWN
   =================================================================== */

@media (max-width: 768px) {
    .difficulty-filter {
        flex-wrap: nowrap !important;
    }
    
    .difficulty-filter > span {
        width: auto !important;
        text-align: left !important;
        margin-bottom: 0 !important;
        white-space: nowrap !important;
    }
    
    /* Custom Select Dropdown */
    .difficulty-select-wrapper {
        position: relative !important;
        flex: 1 !important;
        max-width: 280px !important;
    }
    
    .difficulty-select {
        width: 100% !important;
        padding: 12px 45px 12px 18px !important;
        font-size: 0.9rem !important;
        font-weight: 500 !important;
        color: #2C3E50 !important;
        background: white !important;
        border: 2px solid #e0e0e0 !important;
        border-radius: 25px !important;
        cursor: pointer !important;
        appearance: none !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.05) !important;
        outline: none !important;
    }
    
    .difficulty-select:hover {
        border-color: #2ECC40 !important;
        box-shadow: 0 4px 10px rgba(46, 204, 64, 0.15) !important;
    }
    
    .difficulty-select:focus {
        border-color: #2ECC40 !important;
        box-shadow: 0 0 0 3px rgba(46, 204, 64, 0.1) !important;
    }
    
    /* Custom dropdown arrow */
    .difficulty-select-wrapper::after {
        content: '▼' !important;
        position: absolute !important;
        right: 18px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        font-size: 0.7rem !important;
        color: #2ECC40 !important;
        pointer-events: none !important;
    }
}

@media (max-width: 480px) {
    .difficulty-select {
        padding: 11px 40px 11px 16px !important;
        font-size: 0.85rem !important;
    }
    
    .difficulty-select-wrapper {
        max-width: 100% !important;
    }
}

/* ===================================================================
   TAGS LIST - HORIZONTAL SCROLL (แถวเดียว)
   =================================================================== */

@media (max-width: 768px) {
    /* Tags List - Override เป็น horizontal scroll */
    .tags-list {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 15px !important;
        scrollbar-width: thin !important;
        scrollbar-color: #2ECC40 #ecf0f1 !important;
    }
    
    .tags-list::-webkit-scrollbar {
        height: 6px !important;
    }
    
    .tags-list::-webkit-scrollbar-track {
        background: #ecf0f1 !important;
        border-radius: 10px !important;
    }
    
    .tags-list::-webkit-scrollbar-thumb {
        background: #2ECC40 !important;
        border-radius: 10px !important;
    }
    
    .tags-list::-webkit-scrollbar-thumb:hover {
        background: #27AE60 !important;
    }
    
    /* Gradient fade effect ที่ขอบ */
    .tags-cloud {
        position: relative !important;
    }
    
    .tags-cloud::before,
    .tags-cloud::after {
        content: '' !important;
        position: absolute !important;
        top: 60px !important;
        bottom: 20px !important;
        width: 30px !important;
        pointer-events: none !important;
        z-index: 2 !important;
    }
    
    .tags-cloud::before {
        left: 0 !important;
        background: linear-gradient(to right, white, transparent) !important;
    }
    
    .tags-cloud::after {
        right: 0 !important;
        background: linear-gradient(to left, white, transparent) !important;
    }
    
    .tag-item {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
}

@media (max-width: 480px) {
    .tags-cloud::before,
    .tags-cloud::after {
        top: 55px !important;
    }
}

/* Touch improvements */
@media (max-width: 768px) {
    .filter-row,
    .tags-list {
        overscroll-behavior-x: contain !important;
    }
}


/* Toast Animation (moved from inline) */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.toast {
    animation: slideUp 0.3s ease;
}
