/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B35;
    --secondary-color: #F7931E;
    --accent-color: #004E89;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-icon {
    font-size: 2rem;
}

.logo-tagline {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-light);
    margin-left: -5px;
}

.nav-logo-img {
    height: 50px;
    width: auto;
    transition: var(--transition);
    cursor: pointer;
}

.nav-logo-img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

.nav-search {
    display: flex;
    gap: 0.5rem;
}

#searchInput {
    padding: 0.5rem 1rem;
    border: 2px solid #E0E0E0;
    border-radius: 25px;
    outline: none;
    transition: var(--transition);
    width: 250px;
}

#searchInput:focus {
    border-color: var(--primary-color);
}

.search-btn {
    background: var(--primary-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.search-btn:hover {
    transform: scale(1.05);
}

/* Floating Language Switcher */
.floating-translate {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Google Translate Widget */
#google_translate_element {
    display: flex;
    align-items: center;
}

/* Main translate button styling */
#google_translate_element .goog-te-gadget-simple {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 0.8rem 1.5rem !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.5) !important;
    white-space: nowrap !important;
}

#google_translate_element .goog-te-gadget-simple:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(255, 107, 53, 0.7) !important;
}

/* Text color inside button */
#google_translate_element .goog-te-gadget-simple .goog-te-menu-value span {
    color: var(--white) !important;
    font-weight: 500 !important;
}

#google_translate_element .goog-te-gadget-simple .goog-te-menu-value span:first-child {
    color: var(--white) !important;
}

/* Arrow icon */
#google_translate_element .goog-te-gadget-simple .goog-te-menu-value span:last-child {
    border-left: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding-left: 8px !important;
    margin-left: 8px !important;
}

/* Link styling */
#google_translate_element .goog-te-gadget-simple a {
    text-decoration: none !important;
}

/* Icon before text */
#google_translate_element .goog-te-gadget-icon {
    display: none !important;
}

/* Dropdown menu styling */
.goog-te-menu-frame {
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid #E0E0E0 !important;
}

.goog-te-menu2 {
    border-radius: 12px !important;
    max-height: 400px !important;
    overflow-y: auto !important;
}

.goog-te-menu2-item div,
.goog-te-menu2-item:link div,
.goog-te-menu2-item:visited div,
.goog-te-menu2-item:active div {
    color: var(--text-dark) !important;
    font-family: 'Poppins', sans-serif !important;
    padding: 10px 15px !important;
}

.goog-te-menu2-item:hover {
    background-color: rgba(255, 107, 53, 0.1) !important;
}

.goog-te-menu2-item-selected {
    background-color: rgba(255, 107, 53, 0.2) !important;
}

/* Hide Google Translate banner and branding */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

.goog-te-gadget-simple .goog-te-menu-value span[style] {
    color: var(--white) !important;
}

/* Ensure body doesn't get pushed down */
body {
    top: 0 !important;
}

/* Remove "Powered by" text */
.goog-te-gadget-simple .goog-te-menu-value span:first-child::before {
    content: '🌐 ';
    font-size: 1.1em;
}

.goog-logo-link {
    display: none !important;
}

.goog-te-gadget {
    color: transparent !important;
    font-size: 0 !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: var(--white);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%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");
    opacity: 0.1;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    color: #FFE66D;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Search */
.hero-search {
    max-width: 600px;
    margin: 0 auto 2.5rem;
    display: flex;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.hero-search input {
    flex: 1;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-radius: 50px;
    outline: none;
    background: transparent;
}

.hero-search input::placeholder {
    color: #999;
}

.hero-search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
}

.hero-search-btn span {
    font-size: 1.2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFE66D;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.section-header-content > div:first-child {
    flex: 1;
    min-width: 250px;
}

.sort-dropdown-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.sort-dropdown-container:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.sort-dropdown-container::before {
    content: '🔄';
    font-size: 1.1rem;
    animation: rotate-icon 2s ease-in-out infinite;
}

@keyframes rotate-icon {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.sort-dropdown-container label {
    font-size: 0.9rem;
    color: var(--white);
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.sort-dropdown {
    padding: 0.5rem 1rem 0.5rem 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    min-width: 160px;
    backdrop-filter: blur(10px);
}

.sort-dropdown:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.sort-dropdown:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.35);
    border-color: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.sort-dropdown option {
    background: var(--white);
    color: var(--text-dark);
    padding: 0.5rem;
    font-weight: 500;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Categories Section */
.categories {
    background: var(--bg-light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.category-count {
    color: var(--text-light);
    font-size: 0.9rem;
}

.category-description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* Tutorials Section */
.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.tutorial-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.tutorial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.tutorial-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.tutorial-content {
    padding: 1.5rem;
}

.tutorial-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.badge-beginner {
    background: #D4EDDA;
    color: #155724;
}

.badge-intermediate {
    background: #FFF3CD;
    color: #856404;
}

.badge-advanced {
    background: #F8D7DA;
    color: #721C24;
}

/* Category Badges */
.tutorial-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.category-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.category-career {
    background: #E3F2FD;
    color: #1565C0;
}

.category-home-repairs {
    background: #FFF9C4;
    color: #F57C00;
}

.category-crafts-decor {
    background: #F3E5F5;
    color: #7B1FA2;
}

.category-lifestyle {
    background: #E8F5E9;
    color: #2E7D32;
}

.category-food-recipes {
    background: #FFEBEE;
    color: #C62828;
}

.category-tech-electronics {
    background: #E0F2F1;
    color: #00695C;
}

.category-education {
    background: #FFF3E0;
    color: #E65100;
}

.tutorial-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.tutorial-description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tutorial-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-light);
    border-top: 1px solid #E0E0E0;
    padding-top: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* About Section */
.about {
    background: var(--bg-light);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.features-list {
    list-style: none;
    margin-top: 2rem;
}

.features-list li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-section a {
    display: block;
    color: var(--white);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
}

.modal-content {
    background-color: var(--white);
    margin: 2% auto;
    padding: 2rem;
    border-radius: var(--radius);
    width: 90%;
    max-width: 900px;
    position: relative;
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary-color);
}

/* Tutorial Detail in Modal */
.tutorial-detail-header {
    margin-bottom: 2rem;
}

.tutorial-detail-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.tutorial-detail-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tutorial-detail-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.tutorial-section {
    margin-bottom: 2rem;
}

.tutorial-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.steps-list {
    list-style: none;
    counter-reset: step-counter;
}

.step-item {
    counter-increment: step-counter;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius);
    position: relative;
}

.step-item::before {
    content: counter(step-counter);
    position: absolute;
    left: -15px;
    top: -15px;
    background: var(--primary-color);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.step-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Video Embed Styles */
#tutorial-video-container {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.video-embed-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow);
}

.video-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
    border: none;
}

.video-attribution {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.video-attribution strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Reading Progress Bar */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 2px 8px rgba(var(--primary-color-rgb), 0.4);
}

/* Tutorial Page Styles */
.tutorial-page {
    padding: 4rem 0;
    min-height: 60vh;
}

/* Breadcrumb Navigation */
.breadcrumb {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.breadcrumb-item {
    font-size: 0.95rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.breadcrumb-item a:hover {
    background: var(--primary-color);
    color: white;
}

.breadcrumb-separator {
    color: #6c757d;
    user-select: none;
}

.breadcrumb-current {
    color: var(--text-dark);
    font-weight: 500;
}

.tutorial-description-large {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.tutorial-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--bg-light);
    flex-wrap: wrap;
}

.actions-left {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--bg-light);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.share-btn svg {
    width: 20px;
    height: 20px;
    color: var(--text-dark);
}

.share-facebook svg {
    color: #1877F2;
}

.share-facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
}

.share-facebook:hover svg {
    color: var(--white);
}

.share-whatsapp svg {
    color: #25D366;
}

.share-whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
}

.share-whatsapp:hover svg {
    color: var(--white);
}

.share-twitter svg {
    color: #1DA1F2;
}

.share-twitter:hover {
    background: #1DA1F2;
    border-color: #1DA1F2;
}

.share-twitter:hover svg {
    color: var(--white);
}

.share-copy svg {
    color: var(--primary-color);
}

.share-copy:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.share-copy:hover svg {
    color: var(--white);
}

/* Reading Time Badge */
.reading-time-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white) !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem !important;
    display: inline-block;
}

.tutorial-content-html h2 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.tutorial-content-html h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.tutorial-content-html h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.tutorial-content-html p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.tutorial-content-html ul,
.tutorial-content-html ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.tutorial-content-html li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.tutorial-content-html strong {
    color: var(--primary-color);
    font-weight: 600;
}

.tutorial-content-html a {
    color: var(--primary-color);
    text-decoration: underline;
}

.tutorial-content-html a:hover {
    color: var(--secondary-color);
}

.tutorial-content-html code {
    background: var(--bg-light);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.tutorial-content-html pre {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.tutorial-content-html blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-light);
}

.tutorial-content-html table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.tutorial-content-html th,
.tutorial-content-html td {
    border: 1px solid var(--bg-light);
    padding: 0.75rem;
    text-align: left;
}

.tutorial-content-html th {
    background: var(--bg-light);
    font-weight: 600;
}

/* Related Articles Section */
.related-articles {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--bg-light);
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* Tag Styles */
.tutorial-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.tag {
    display: inline-block;
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.tag:hover {
    background: var(--primary-color);
    color: var(--white);
}

.tag-more {
    display: inline-block;
    background: var(--bg-light);
    color: var(--text-light);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-style: italic;
}

.tutorial-detail-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bg-light);
}

.tag-link {
    display: inline-block;
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.tag-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    min-height: 200px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        padding: 0.6rem 20px;
        position: relative;
        flex-wrap: wrap;
    }

    .nav-logo-img {
        height: 40px;
    }

    .hamburger-menu {
        display: flex;
        order: 2;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        border-radius: 0 0 var(--radius) var(--radius);
        width: 100%;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 1rem 20px;
        border-bottom: 1px solid var(--bg-light);
        display: block;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link:hover {
        background: var(--bg-light);
    }

    .nav-logo {
        font-size: 1rem;
    }

    .logo-icon {
        font-size: 1.3rem;
    }

    .logo-tagline {
        display: none;
    }

    .nav-search {
        gap: 0.3rem;
    }

    #searchInput {
        width: 160px;
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .search-btn {
        padding: 0.4rem 0.6rem;
        font-size: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-header-content {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .section-header-content > div:first-child {
        width: 100%;
    }

    .sort-dropdown-container {
        width: calc(100% - 40px);
        justify-content: center;
        padding: 0.65rem 1.25rem;
    }

    .sort-dropdown-container::before {
        font-size: 1rem;
    }

    .sort-dropdown-container label {
        font-size: 0.85rem;
    }

    .sort-dropdown {
        flex: 1;
        max-width: 180px;
        font-size: 0.85rem;
        padding: 0.45rem 0.75rem;
    }

    .tutorials-grid,
    .categories-grid {
        grid-template-columns: 1fr;
    }

    /* Pagination mobile styles */
    .pagination {
        gap: 0.5rem;
        padding: 1rem 1.25rem;
    }

    .page-btn {
        min-width: 44px;
        height: 44px;
        padding: 0.625rem 0.875rem;
        font-size: 0.95rem;
        border-radius: 10px;
    }

    .page-prev,
    .page-next {
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
    }

    .page-dots {
        padding: 0 0.375rem;
        font-size: 1.1rem;
    }

    .floating-translate {
        bottom: 20px;
        right: 20px;
    }

    #google_translate_element .goog-te-gadget-simple {
        padding: 0.7rem 1.3rem !important;
        font-size: 0.95rem !important;
    }

    /* Mobile video styles */
    #tutorial-video-container {
        margin-top: 1rem;
        margin-bottom: 1.5rem;
    }

    .video-embed-container {
        border-radius: 8px;
    }

    .video-embed-container iframe {
        border-radius: 8px;
    }

    .video-attribution {
        font-size: 0.85rem;
    }

    .tutorial-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .actions-left {
        width: 100%;
    }

    .share-buttons {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 0.5rem 15px;
    }

    .nav-logo {
        font-size: 0.9rem;
        gap: 8px;
    }

    .logo-icon {
        font-size: 1.2rem;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .logo-tagline {
        display: none;
    }

    .nav-search {
        gap: 0.2rem;
    }

    #searchInput {
        width: 100px;
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
    }

    .search-btn {
        padding: 0.35rem 0.5rem;
        font-size: 0.9rem;
    }

    .floating-translate {
        bottom: 15px;
        right: 15px;
    }

    #google_translate_element .goog-te-gadget-simple {
        font-size: 0.85rem !important;
        padding: 0.65rem 1.1rem !important;
        border-radius: 40px !important;
    }

    /* Small mobile video styles */
    #tutorial-video-container {
        margin-top: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .video-embed-container {
        border-radius: 6px;
        margin-left: -15px;
        margin-right: -15px;
        max-width: calc(100% + 30px);
    }

    .video-embed-container iframe {
        border-radius: 6px;
    }

    .video-attribution {
        font-size: 0.8rem;
        padding: 0 15px;
    }

    #google_translate_element .goog-te-gadget-simple .goog-te-menu-value span:last-child {
        padding-left: 6px !important;
        margin-left: 6px !important;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(44, 62, 80, 0.98);
    color: var(--white);
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-consent-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-consent-content a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.cookie-consent-content a:hover {
    color: var(--primary-color);
}

#acceptCookies {
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }

    #acceptCookies {
        width: 100%;
    }
}

/* Recipe Selection Modal */
.recipe-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.recipe-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.recipe-modal-content {
    position: relative;
    max-width: 600px;
    margin: 10vh auto;
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.recipe-modal-title {
    font-size: 2rem;
    color: var(--text-color);
    margin: 0 0 10px 0;
    text-align: center;
}

.recipe-modal-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin: 0 0 30px 0;
    text-align: center;
}

.recipe-modal-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.recipe-option-btn {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.recipe-option-btn:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.recipe-option-btn .option-icon {
    font-size: 3rem;
    display: block;
}

.recipe-option-btn .option-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    display: block;
}

.recipe-option-btn .option-description {
    font-size: 0.9rem;
    color: #666;
    display: block;
}

.recipe-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 2.5rem;
    color: #999;
    cursor: pointer;
    padding: 5px 15px;
    line-height: 1;
    transition: all 0.2s ease;
}

.recipe-modal-close:hover {
    color: var(--text-color);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .recipe-modal-content {
        margin: 5vh 20px;
        padding: 30px 20px;
    }

    .recipe-modal-options {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .recipe-modal-title {
        font-size: 1.5rem;
    }

    .recipe-modal-subtitle {
        font-size: 1rem;
    }

    .recipe-option-btn {
        padding: 25px 15px;
    }

    .recipe-option-btn .option-icon {
        font-size: 2.5rem;
    }

    .recipe-option-btn .option-title {
        font-size: 1.1rem;
    }
}

.site-stats {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
    font-weight: 400;
}

/* ========================================
   NEW LANDING PAGE ENHANCEMENTS - 2025
   ======================================== */

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
    }
}

/* Logo Text Container */
.logo-text-container {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

/* Hero Badge */
.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

/* Hero Search */
.hero-search {
    display: flex;
    gap: 0.5rem;
    max-width: 700px;
    margin: 2rem auto;
    background: var(--white);
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
}

#heroSearchInput {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    outline: none;
    font-size: 1rem;
    border-radius: 50px;
}

.hero-search-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    white-space: nowrap;
}

.hero-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .hero-search {
        flex-direction: column;
        border-radius: 12px;
    }

    #heroSearchInput,
    .hero-search-btn {
        border-radius: 12px;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* Popular Topics Section */
.popular-topics {
    padding: 2rem 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--white) 100%);
}

.section-title-sm {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.topics-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    max-width: 900px;
    margin: 0 auto;
}

.topic-tag {
    padding: 0.6rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.topic-tag:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border: 2px solid #E0E0E0;
    color: var(--text-dark);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-color: transparent;
}

/* View More Container */
/* WordPress-style Pagination - Brand Styled */
.pagination-container {
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.pagination {
    display: inline-flex;
    gap: 0.625rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1.5rem 2rem;
    background: var(--white);
    border-radius: 50px;
    box-shadow: var(--shadow);
}

.page-btn {
    min-width: 48px;
    height: 48px;
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border: 2px solid transparent;
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.page-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(247, 147, 30, 0.1));
    opacity: 0;
    transition: var(--transition);
}

.page-btn:hover:not(.active) {
    background: var(--white);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.page-btn:hover:not(.active)::before {
    opacity: 1;
}

.page-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-color: transparent;
    cursor: default;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    transform: scale(1.05);
}

.page-btn:active:not(.active) {
    transform: translateY(-1px);
}

.page-prev,
.page-next {
    min-width: auto;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(247, 147, 30, 0.1));
    color: var(--primary-color);
}

.page-prev:hover,
.page-next:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-color: transparent;
}

.page-dots {
    color: var(--primary-color);
    padding: 0 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    user-select: none;
    opacity: 0.4;
}

/* Value Proposition Section */
.value-prop {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-item {
    text-align: center;
    padding: 2rem;
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.value-item p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Features Grid (About Section) */
.about-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-check {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-item strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.feature-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Footer Enhancements */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-contact {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .value-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .filter-tabs {
        gap: 0.5rem;
    }

    .filter-tab {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .topics-tags {
        gap: 0.5rem;
    }

    .topic-tag {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
    pointer-events: none;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Tutorial Card Skeleton */
.tutorial-card.skeleton {
    cursor: default;
}

.tutorial-card.skeleton:hover {
    transform: none;
    box-shadow: var(--shadow);
}

.tutorial-card.skeleton .tutorial-image {
    background: linear-gradient(90deg, #e0e0e0 25%, #d0d0d0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.tutorial-card.skeleton .tutorial-content > * {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
    color: transparent;
    user-select: none;
}

.tutorial-card.skeleton .tutorial-badge {
    width: 80px;
    height: 24px;
    display: inline-block;
}

.tutorial-card.skeleton .tutorial-title {
    height: 24px;
    margin: 0.5rem 0;
}

.tutorial-card.skeleton .tutorial-description {
    height: 60px;
    margin: 0.5rem 0;
}

.tutorial-card.skeleton .tutorial-meta {
    height: 20px;
    margin-top: 1rem;
}

/* Category Card Skeleton */
.category-card.skeleton {
    cursor: default;
}

.category-card.skeleton:hover {
    transform: none;
    box-shadow: var(--shadow);
}

.category-card.skeleton .category-icon {
    background: linear-gradient(90deg, #e0e0e0 25%, #d0d0d0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    color: transparent;
    user-select: none;
    font-size: 0;
}

.category-card.skeleton .category-name,
.category-card.skeleton .category-count,
.category-card.skeleton .category-description {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
    color: transparent;
    user-select: none;
}

.category-card.skeleton .category-name {
    height: 24px;
    width: 60%;
    margin: 1rem auto 0.5rem;
}

.category-card.skeleton .category-count {
    height: 18px;
    width: 40%;
    margin: 0.5rem auto;
}

.category-card.skeleton .category-description {
    height: 40px;
    margin-top: 0.5rem;
}

/* Stat Counter Loading Animation */
.stat-loading {
    display: inline-block;
    min-width: 20px;
    background: linear-gradient(90deg, rgba(255,255,255,0.3) 25%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0.3) 75%);
    background-size: 200% 100%;
    animation: stat-pulse 1.5s infinite;
    border-radius: 4px;
    color: transparent !important;
}

@keyframes stat-pulse {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States for Keyboard Navigation */
.topic-tag:focus,
.filter-tab:focus,
.hero-search-btn:focus,
#heroSearchInput:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* ====================================================================
   MOBILE UX IMPROVEMENTS (Nov 2025)
   ==================================================================== */

/* Fix 1: Ensure all buttons meet 44x44px minimum tap target (WCAG 2.1 AA) */
@media (max-width: 768px) {
    button,
    .btn,
    .hero-search-btn,
    .search-btn,
    .filter-tab,
    .topic-tag {
        min-height: 44px;
        min-width: 44px;
        padding: 0.75rem 1rem;
    }

    /* Specific button sizing */
    .search-btn {
        min-width: 44px;
        min-height: 44px;
        padding: 0.75rem 1rem;
    }

    .hero-search-btn {
        min-height: 48px;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    /* Fix 2: Ensure all inputs meet 40px minimum height */
    input[type="text"],
    input[type="search"],
    input[type="email"],
    textarea,
    select {
        min-height: 44px;
        padding: 0.75rem 1rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    #searchInput {
        min-height: 44px;
        padding: 0.75rem 1rem;
        font-size: 16px;
        width: 140px;
    }

    #heroSearchInput {
        min-height: 48px;
        padding: 0.875rem 1rem;
        font-size: 16px;
    }

    .sort-dropdown {
        min-height: 44px;
        padding: 0.75rem 1rem;
        font-size: 16px;
    }

    /* Fix 3: Table responsiveness - horizontal scroll for wide tables */
    .tutorial-content-html table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        margin-bottom: 1.5rem;
    }

    /* Wrap tables in a scrollable container */
    .tutorial-content-html table {
        min-width: 600px; /* Force table to maintain minimum width */
    }

    .tutorial-content-html th,
    .tutorial-content-html td {
        white-space: nowrap; /* Prevent text wrapping in cells */
        padding: 0.75rem 0.5rem; /* Reduce padding on mobile */
        font-size: 0.875rem; /* Slightly smaller text */
    }

    /* Table scroll hint */
    .tutorial-content-html table::after {
        content: "← Scroll horizontally to see more →";
        display: block;
        text-align: center;
        font-size: 0.75rem;
        color: var(--text-muted);
        padding: 0.5rem;
        margin-top: -1rem;
    }

    /* Enhanced mobile typography */
    body {
        font-size: 16px; /* Base font size prevents zoom */
    }

    .tutorial-content-html {
        font-size: 1rem; /* 16px for readability */
        line-height: 1.7; /* Improved line spacing */
    }

    .tutorial-content-html h2 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }

    .tutorial-content-html h3 {
        font-size: 1.25rem;
        line-height: 1.4;
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .tutorial-content-html h4 {
        font-size: 1.125rem;
        margin-top: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .tutorial-content-html p {
        margin-bottom: 1.25rem;
        line-height: 1.7;
    }

    .tutorial-content-html ul,
    .tutorial-content-html ol {
        margin-bottom: 1.25rem;
        padding-left: 1.5rem;
    }

    .tutorial-content-html li {
        margin-bottom: 0.5rem;
        line-height: 1.6;
    }

    /* Enhanced blockquote for mobile */
    .tutorial-content-html blockquote {
        margin: 1.5rem 0;
        padding: 1rem 1rem 1rem 1.25rem;
        border-left: 4px solid var(--primary-color);
        background: var(--bg-light);
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Code blocks mobile optimization */
    .tutorial-content-html pre {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 1rem;
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .tutorial-content-html code {
        font-size: 0.875rem;
        padding: 0.2rem 0.4rem;
    }

    /* Image responsiveness */
    .tutorial-content-html img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 1.5rem auto;
        border-radius: 8px;
    }

    /* Tutorial cards - improve tap targets */
    .tutorial-card {
        min-height: 200px;
        padding: 1.25rem;
    }

    .tutorial-title {
        font-size: 1.125rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
    }

    .tutorial-description {
        font-size: 0.9375rem;
        line-height: 1.6;
    }

    /* Category badges larger tap target */
    .category-badge {
        padding: 0.5rem 0.875rem;
        font-size: 0.875rem;
        min-height: 32px;
    }

    /* Tutorial badge */
    .tutorial-badge {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }

    /* Meta items spacing */
    .meta-item {
        font-size: 0.875rem;
        padding: 0.25rem 0;
    }

    /* Improved spacing for hero section */
    .hero {
        padding: 2.5rem 20px;
    }

    .hero-content {
        gap: 2rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .hero-search {
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        gap: 1rem;
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }

    /* Section spacing */
    .section {
        padding: 3rem 20px;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .section-subtitle {
        font-size: 0.9375rem;
        line-height: 1.6;
    }

    /* Footer improvements */
    .footer {
        padding: 2.5rem 20px 2rem;
    }

    .footer-content {
        gap: 2.5rem;
    }

    .footer-section {
        width: 100%;
    }

    .footer-title {
        font-size: 1.125rem;
        margin-bottom: 1rem;
    }

    .footer-links {
        gap: 0.75rem;
    }

    .footer-link {
        padding: 0.5rem 0;
        min-height: 40px;
        display: flex;
        align-items: center;
    }

    /* Floating translate button */
    .floating-translate {
        bottom: 20px;
        right: 20px;
        z-index: 999;
    }

    #google_translate_element .goog-te-gadget-simple {
        padding: 0.875rem 1.25rem !important;
        font-size: 1rem !important;
        min-height: 44px !important;
    }

    /* Loading skeleton mobile optimization */
    .skeleton {
        min-height: 200px;
    }

    /* Tutorial page specific */
    .tutorial-header {
        padding: 2rem 20px;
    }

    #tutorial-title {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .tutorial-meta {
        flex-wrap: wrap;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .tutorial-content {
        padding: 0 20px;
    }

    /* Share buttons mobile */
    .share-button {
        min-width: 44px;
        min-height: 44px;
        padding: 0.75rem;
    }

    /* Related articles mobile */
    .related-articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Pagination mobile improvements */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-btn {
        min-width: 44px;
        min-height: 44px;
        font-size: 1rem;
    }

    .page-prev,
    .page-next {
        min-height: 44px;
        padding: 0.75rem 1.25rem;
    }

    /* Category grid mobile */
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .category-card {
        min-height: 120px;
        padding: 1.5rem;
    }

    .category-title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .category-count {
        font-size: 0.9375rem;
    }

    /* Filter tabs mobile */
    .filter-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
        margin-bottom: 2rem;
    }

    .filter-tab {
        min-width: 100px;
        min-height: 44px;
        padding: 0.75rem 1.25rem;
        white-space: nowrap;
        font-size: 0.9375rem;
    }

    /* Prevent text selection on buttons (better UX) */
    button,
    .btn,
    .filter-tab,
    .category-card {
        -webkit-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    /* Smooth scroll behavior */
    html {
        scroll-behavior: smooth;
    }

    /* Safe area insets for notched devices (iPhone X+) */
    .nav {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }

    .section,
    .hero,
    .tutorial-content {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
}

/* Extra small devices (< 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    #tutorial-title {
        font-size: 1.5rem;
    }

    .tutorial-content-html h2 {
        font-size: 1.25rem;
    }

    .tutorial-content-html h3 {
        font-size: 1.125rem;
    }

    /* Even more compact spacing */
    .tutorial-card {
        padding: 1rem;
    }

    .category-card {
        padding: 1.25rem;
    }

    /* Smaller buttons on very small screens */
    .btn-secondary {
        font-size: 0.9375rem;
        padding: 0.75rem 1rem;
    }

    /* Table even more compact */
    .tutorial-content-html th,
    .tutorial-content-html td {
        padding: 0.5rem 0.375rem;
        font-size: 0.8125rem;
    }
}

/* Landscape mode optimizations */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 2rem 20px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .section {
        padding: 2rem 20px;
    }

    .nav {
        padding: 0.5rem 20px;
    }

    .nav-logo-img {
        height: 32px;
    }
}

