/*
Theme Name: VideoEditor Pro
Theme URI: https://narayanbajagain.me/videoeditor-pro
Author: Narayan Bajagain
Author URI: https://narayanbajagain.me
Description: A clean, modern, and professional WordPress theme for video editors. Features a minimalist design with focus on showcasing video work through portfolio galleries, project pages, and integrated video playback.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: videoeditor-pro
Tags: portfolio, video, creative, minimal, modern, responsive, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #f5f5f5;
    --accent-color: #ff6b6b;
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

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

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

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
    gap: 2rem;
}

.site-branding {
    flex-shrink: 0;
}

.site-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.site-name:hover {
    color: rgba(255, 255, 255, 0.8);
}

.main-navigation {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 0;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-transform: capitalize;
    letter-spacing: 0.3px;
    position: relative;
    padding: 0.6rem 0.8rem;
    border-radius: 0;
    transition: var(--transition);
    background: transparent;
}

.main-navigation a:hover {
    background: transparent;
    color: var(--white);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 80%;
}

.main-navigation .current-menu-item a,
.main-navigation .current_page_item a {
    background: transparent;
    color: var(--accent-color);
}

.main-navigation .current-menu-item a::after,
.main-navigation .current_page_item a::after {
    width: 80%;
}

.main-navigation .current-menu-item a:hover,
.main-navigation .current_page_item a:hover {
    background: transparent;
    color: var(--accent-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 5px;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-top: 70px;
}

@media (max-width: 968px) and (min-width: 769px) {
    .hero-section {
        min-height: 100vh;
        height: auto;
        margin-top: 70px;
        display: flex;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        margin-bottom: 0;
    }

    /* Remove top padding from first section after hero on mobile */
    .hero-section + .section {
        padding-top: 0;
    }

    .hero-section + .section .section-title {
        padding-top: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        height: auto;
        margin-top: 70px;
        display: block;
        overflow: visible;
        background: transparent;
        margin-bottom: 0;
    }

    /* Remove top padding from first section after hero on mobile */
    .hero-section + .section {
        padding-top: 0;
    }

    .hero-section + .section .section-title {
        padding-top: 0;
    }
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-video-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

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

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 968px) {
    .hero-content {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 1.5rem 1rem;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        max-width: 90%;
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

@media (max-width: 968px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
}

.hero-tagline {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 968px) {
    .hero-tagline {
        font-size: 1.3rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 600px) {
    .hero-tagline {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 2px solid var(--accent-color);
}

@media (max-width: 600px) {
    .btn {
        padding: 0.9rem 2rem;
        font-size: 0.9rem;
    }
}

.btn:hover {
    background: var(--white);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

.btn-play {
    background: #FF0000;
    border-color: #FF0000;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-play:hover {
    background: #cc0000;
    border-color: #cc0000;
    color: var(--white);
}

.btn-play i {
    font-size: 1.2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    margin-left: 1rem;
}

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

/* ==========================================================================
   Hero Slider
   ========================================================================== */

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100vh;
}

@media (max-width: 968px) and (min-width: 769px) {
    .hero-slider {
        min-height: 100vh;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        min-height: auto;
        height: auto;
        padding-top: 0;
    }
}

@media (max-width: 600px) {
    .hero-slider {
        min-height: auto;
        height: auto;
        position: relative;
        padding-top: 0;
    }
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 10vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #1a1a2e;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

/* Hero slide image - hidden on desktop, shown on mobile */
.hero-slide-img {
    display: none;
}

@media (max-width: 768px) {
    .hero-slide {
        position: relative !important;
        min-height: 0;
        height: auto;
        background-image: none !important;
        background-color: #1a1a2e;
        opacity: 1 !important;
        visibility: visible !important;
        top: auto;
        left: auto;
        padding: 0;
    }

    .hero-slide-img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: contain;
        max-width: 100%;
    }

    .hero-slide:not(.active) {
        display: none;
    }

    .hero-slide .hero-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

@media (max-width: 600px) {
    .hero-overlay {
        background: transparent;
    }
}

.hero-slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
    padding: 0 2rem;
}

.hero-prev,
.hero-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    pointer-events: all;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.hero-prev {
    left: 2rem;
}

.hero-next {
    right: 2rem;
}

@media (max-width: 968px) {
    .hero-prev {
        left: 1rem;
    }

    .hero-next {
        right: 1rem;
    }

    .hero-prev,
    .hero-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .hero-slider-nav {
        padding: 0 0.5rem;
    }

    .hero-prev {
        left: 0.5rem;
    }

    .hero-next {
        right: 0.5rem;
    }

    .hero-prev,
    .hero-next {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
        background: rgba(255, 255, 255, 0.3);
    }
}

.hero-slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.75rem;
}

@media (max-width: 968px) {
    .hero-slider-dots {
        bottom: 1.5rem;
    }
}

@media (max-width: 600px) {
    .hero-slider-dots {
        bottom: 1rem;
        gap: 0.5rem;
    }
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.hero-dot.active {
    background: var(--white);
    width: 30px;
    border-radius: 6px;
}

/* ==========================================================================
   Portfolio Grid
   ========================================================================== */

.category-section {
    margin-bottom: 4rem;
}

.category-section:last-child {
    margin-bottom: 0;
}

.category-section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    padding-bottom: 0.8rem;
    border-bottom: 3px solid var(--accent-color);
    display: inline-block;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    cursor: pointer;
    background: var(--white);
}

.portfolio-item a {
    display: block;
    text-decoration: none;
    line-height: 0;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.portfolio-thumbnail {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    line-height: 0;
}

.portfolio-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

.portfolio-item:hover .portfolio-thumbnail img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    padding: 2rem;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-title {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.portfolio-category {
    color: var(--accent-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   Featured Work Section - Category Tabs
   ========================================================================== */

.featured-work-section {
    padding: 4rem 0;
    background: #f5f5f5;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0 2.5rem;
    flex-wrap: wrap;
    border-bottom: 2px solid #e0e0e0;
}

.category-tab {
    padding: 0.75rem 2rem;
    background: transparent;
    color: #6c757d;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
}

.category-tab:hover {
    color: #1976d2;
    border-bottom-color: #bbdefb;
}

.category-tab.active {
    color: #1976d2;
    border-bottom-color: #1976d2;
}

.category-tab.active:hover {
    color: #1565c0;
    border-bottom-color: #1565c0;
}

/* Work Items Container */
.work-items-container {
    position: relative;
    min-height: 400px;
}

.work-items-grid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.work-items-grid.active {
    display: grid !important;
    animation: fadeIn 0.5s ease;
}

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

/* Work Card Styling */
.work-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.work-card.animate-on-scroll {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
}

.work-card.animate-on-scroll.animate-in {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.work-card.animate-on-scroll:nth-child(1).animate-in { transition: opacity 0.6s ease-out 0.1s, transform 0.6s ease-out 0.1s; }
.work-card.animate-on-scroll:nth-child(2).animate-in { transition: opacity 0.6s ease-out 0.2s, transform 0.6s ease-out 0.2s; }
.work-card.animate-on-scroll:nth-child(3).animate-in { transition: opacity 0.6s ease-out 0.3s, transform 0.6s ease-out 0.3s; }
.work-card.animate-on-scroll:nth-child(4).animate-in { transition: opacity 0.6s ease-out 0.4s, transform 0.6s ease-out 0.4s; }
.work-card.animate-on-scroll:nth-child(5).animate-in { transition: opacity 0.6s ease-out 0.5s, transform 0.6s ease-out 0.5s; }
.work-card.animate-on-scroll:nth-child(6).animate-in { transition: opacity 0.6s ease-out 0.6s, transform 0.6s ease-out 0.6s; }
.work-card.animate-on-scroll:nth-child(7).animate-in { transition: opacity 0.6s ease-out 0.7s, transform 0.6s ease-out 0.7s; }
.work-card.animate-on-scroll:nth-child(8).animate-in { transition: opacity 0.6s ease-out 0.8s, transform 0.6s ease-out 0.8s; }

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.work-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.work-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

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

.work-card:hover .work-card-image img {
    transform: scale(1.05);
}

.work-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-card:hover .work-card-overlay {
    opacity: 1;
}

.work-card-overlay i {
    font-size: 4rem;
    color: #ffffff;
}

.work-card-content {
    padding: 1.5rem;
}

.work-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.work-card-category {
    display: inline-block;
    font-size: 0.875rem;
    color: #667eea;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.no-work-items {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
}

.no-work-items p {
    font-size: 1.125rem;
    color: #6c757d;
}

/* ==========================================================================
   Services Section
   ========================================================================== */

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

.service-card {
    background: var(--secondary-color);
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-description {
    color: var(--text-light);
    line-height: 1.8;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

/* Desktop: Title spans both columns at top */
.about-title-wrapper {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 2rem;
}

/* Desktop: Text on left, Image on right */
.about-text {
    grid-column: 1;
    grid-row: 2;
}

.about-image {
    grid-column: 2;
    grid-row: 2;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    list-style: none;
}

.skills-list li {
    padding: 0.75rem 1rem;
    background: var(--secondary-color);
    border-radius: 5px;
    font-weight: 500;
}

.skills-list li::before {
    content: "✓ ";
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* ==========================================================================
   Contact Form
   ========================================================================== */

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-info {
    background: var(--secondary-color);
    padding: 3rem;
    border-radius: 8px;
}

.contact-info h3 {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */

.testimonials-slider-wrapper {
    position: relative;
    max-width: 900px;
    margin: 3rem auto 0;
    padding: 2rem 0;
}

.testimonials-slider {
    position: relative;
    min-height: 400px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: opacity 0.6s ease, visibility 0.6s ease, transform 0.6s ease;
}

.testimonial-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    position: relative;
}

.testimonial-card-modern {
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
}

.quote-icon {
    font-size: 3rem;
    color: var(--accent-color);
    opacity: 0.2;
    margin-bottom: 1rem;
}

.testimonial-rating {
    color: #ffd700;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.testimonial-rating i {
    margin: 0 0.15rem;
}

.testimonial-content {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-content p {
    margin-bottom: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.testimonial-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--accent-color);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-avatar-placeholder {
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 2rem;
}

.testimonial-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.client-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.client-position {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Testimonials Navigation */
.testimonials-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

.testimonial-prev,
.testimonial-next {
    position: absolute;
    background: var(--white);
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    pointer-events: all;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: scale(1.1);
}

.testimonial-prev {
    left: -70px;
}

.testimonial-next {
    right: -70px;
}

/* Testimonials Dots */
.testimonials-dots {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 2.5rem;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.testimonial-dot:hover {
    background: rgba(255, 107, 107, 0.5);
    transform: scale(1.2);
}

.testimonial-dot.active {
    background: var(--accent-color);
    width: 30px;
    border-radius: 6px;
}

/* Old grid style - keep for backward compatibility */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

/* ==========================================================================
   Get in Touch Section
   ========================================================================== */

.get-in-touch-section {
    background: var(--white);
    padding: 5rem 2rem;
    text-align: center;
    color: #333;
}

.get-in-touch-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.get-in-touch-title.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.get-in-touch-title.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.get-in-touch-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #555;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.get-in-touch-description.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s;
}

.get-in-touch-description.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.get-in-touch-btn {
    display: inline-block;
    padding: 1rem 3rem;
    background: #2c3e50;
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.get-in-touch-btn.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out 0.4s, transform 0.8s ease-out 0.4s;
}

.get-in-touch-btn.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.get-in-touch-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #34495e;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 3rem 0 2rem;
    margin-top: 0;
    text-align: center;
    color: var(--white);
}

/* Footer Social Icons */
.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--white);
    transition: var(--transition);
    text-decoration: none;
    background: #ffffff;
    color: #000000;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: var(--white);
}

.social-icon.linkedin:hover {
    background: #0077b5;
    color: var(--white);
}

.social-icon.facebook:hover {
    background: #1877f2;
    color: var(--white);
}

.social-icon.youtube:hover {
    background: #FF0000;
    color: var(--white);
}

/* Footer Links */
.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-links .separator {
    margin: 0 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Footer Copyright */
.footer-copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

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

/* Old footer styles - keep for backward compatibility */
.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Single Project Page
   ========================================================================== */

.project-header {
    text-align: center;
    padding: 8rem 0 3rem;
    background: var(--secondary-color);
}

.project-video {
    margin: 3rem 0;
}

.project-video video,
.project-video iframe {
    width: 100%;
    height: auto;
    min-height: 500px;
    border-radius: 8px;
}

.project-details {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.project-info-grid {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 8px;
}

.info-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

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

.info-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.info-value {
    color: var(--text-light);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 968px) {
    .site-header {
        top: 0;
        left: 0;
        right: 0;
    }

    .header-content {
        padding: 1rem 1.5rem;
    }

    .main-navigation {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        height: auto;
        max-height: calc(100vh - 70px);
        background: var(--white);
        transition: var(--transition);
        padding: 2rem;
        border-radius: 0;
        overflow-y: auto;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .main-navigation.active {
        top: 70px;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        width: 100%;
    }

    .main-navigation li {
        width: 100%;
        text-align: center;
    }

    .main-navigation a {
        display: block;
        text-align: center;
        padding: 1rem 2rem;
        width: 100%;
        color: var(--primary-color);
        transition: all 0.3s ease;
        border-radius: 8px;
        position: relative;
        overflow: hidden;
    }

    .main-navigation a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 0;
        height: 100%;
        background: linear-gradient(90deg, rgba(255, 107, 107, 0.1) 0%, rgba(255, 107, 107, 0.2) 100%);
        transition: width 0.4s ease;
        z-index: -1;
    }

    .main-navigation a:hover {
        color: var(--accent-color);
        background: rgba(255, 107, 107, 0.08);
        transform: translateX(5px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .main-navigation a:hover::before {
        width: 100%;
    }

    .main-navigation .current-menu-item a,
    .main-navigation .current_page_item a {
        color: var(--accent-color);
        background: rgba(255, 107, 107, 0.1);
        font-weight: 600;
    }

    .main-navigation a::after {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-slider {
        min-height: 100vh;
    }

    .hero-slide {
        background-attachment: scroll;
    }

    .hero-content {
        padding: 2rem 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-tagline {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

    .hero-prev,
    .hero-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .hero-prev {
        left: 1rem;
    }

    .hero-next {
        right: 1rem;
    }

    .hero-slider-dots {
        bottom: 1rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    /* Featured Work Tabs - Mobile */
    .category-tabs {
        gap: 0.5rem;
        margin: 2rem 0 1.5rem;
    }

    .category-tab {
        padding: 0.6rem 1.2rem;
        font-size: 0.875rem;
        border-bottom-width: 2px;
    }

    .work-items-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .work-card-title {
        font-size: 1.125rem;
    }

    .about-content,
    .contact-wrapper,
    .project-details {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 0;
    }

    .section-title {
        padding-top: 2rem;
    }

    .hero-slider {
        min-height: 10vh;
    }

    .hero-slide {
        background-size: cover;
        background-position: center center;
    }

    .hero-content {
        padding: 1.5rem;
    }

    /* Mobile About Section Order: Title -> Image -> Content */
    .about-content {
        display: flex !important;
        flex-direction: column;
        gap: 0 !important;
    }

    .about-title-wrapper {
        order: -2;
        text-align: center;
        margin-bottom: 1rem;
        grid-column: unset !important;
    }

    .about-image {
        order: -1;
        margin-bottom: 1rem;
        grid-column: unset !important;
        grid-row: unset !important;
    }

    .about-text {
        order: 0;
        grid-column: unset !important;
        grid-row: unset !important;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-tagline {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-outline {
        margin-left: 0;
        margin-top: 0;
    }

    .hero-prev,
    .hero-next {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .hero-slider-dots {
        gap: 0.5rem;
        bottom: 0.75rem;
    }

    .hero-dot {
        width: 8px;
        height: 8px;
    }

    .hero-dot.active {
        width: 20px;
    }

    .footer-social {
        gap: 0.75rem;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .footer-links {
        font-size: 0.9rem;
    }

    .footer-copyright {
        font-size: 0.85rem;
    }

    .get-in-touch-section {
        padding: 3rem 1.5rem;
    }

    .get-in-touch-title {
        font-size: 1.8rem;
    }

    .get-in-touch-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .get-in-touch-btn {
        padding: 0.9rem 2.5rem;
        font-size: 1rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-slider-wrapper {
        padding: 1rem 0;
    }

    .testimonial-card-modern {
        padding: 2rem 1.5rem;
    }

    .testimonial-prev,
    .testimonial-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .testimonial-prev {
        left: -5px;
    }

    .testimonial-next {
        right: -5px;
    }

    .testimonials-dots {
        gap: 0.5rem;
        margin-top: 2rem;
    }

    .testimonial-dot {
        width: 8px;
        height: 8px;
    }

    .testimonial-dot.active {
        width: 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .skills-list {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

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

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    display: block;
}

.section-title.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-title.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    margin: 1rem auto 0;
    border-radius: 2px;
    position: relative;
    clear: both;
}

.section-title.animate-on-scroll::after {
    width: 0;
    opacity: 0;
    transition: width 0.6s ease-out 0.4s, opacity 0.6s ease-out 0.4s;
}

.section-title.animate-on-scroll.animate-in::after {
    width: 60px;
    opacity: 1;
}

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

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-subtitle.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s;
}

.section-subtitle.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Category Page
   ========================================================================== */

.page-header {
    background: var(--secondary-color);
    padding: 4rem 2rem;
    text-align: center;
    color: var(--primary-color);
    margin-top: 80px;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.category-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
}

.category-content {
    padding: 4rem 2rem;
    background: #f8f9fa;
}

.category-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.category-main {
    min-width: 0;
}

.category-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.category-post-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.category-post-card.animate-on-scroll {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
}

.category-post-card.animate-on-scroll.animate-in {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.category-post-card.animate-on-scroll:nth-child(1).animate-in { transition: opacity 0.6s ease-out 0.1s, transform 0.6s ease-out 0.1s; }
.category-post-card.animate-on-scroll:nth-child(2).animate-in { transition: opacity 0.6s ease-out 0.2s, transform 0.6s ease-out 0.2s; }
.category-post-card.animate-on-scroll:nth-child(3).animate-in { transition: opacity 0.6s ease-out 0.3s, transform 0.6s ease-out 0.3s; }
.category-post-card.animate-on-scroll:nth-child(4).animate-in { transition: opacity 0.6s ease-out 0.4s, transform 0.6s ease-out 0.4s; }
.category-post-card.animate-on-scroll:nth-child(5).animate-in { transition: opacity 0.6s ease-out 0.5s, transform 0.6s ease-out 0.5s; }
.category-post-card.animate-on-scroll:nth-child(6).animate-in { transition: opacity 0.6s ease-out 0.6s, transform 0.6s ease-out 0.6s; }
.category-post-card.animate-on-scroll:nth-child(7).animate-in { transition: opacity 0.6s ease-out 0.7s, transform 0.6s ease-out 0.7s; }
.category-post-card.animate-on-scroll:nth-child(8).animate-in { transition: opacity 0.6s ease-out 0.8s, transform 0.6s ease-out 0.8s; }

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

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

.post-card-link {
    display: block;
    text-decoration: none;
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
    background: #e9ecef;
    aspect-ratio: 16/9;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.post-card-content {
    padding: 1.5rem;
}

/* Hide any embeds or unwanted content in category cards - but NOT in thumbnail area */
.post-card-content iframe,
.post-card-content .wp-block-embed,
.post-card-content .wp-embed-responsive,
.post-card-content .entry-content,
.post-card-content .post-excerpt {
    display: none !important;
}

.post-card-title {
    font-size: 1.3rem;
    margin: 0;
    line-height: 1.4;
    color: var(--text-color);
    transition: var(--transition);
}

.category-post-card:hover .post-card-title {
    color: var(--accent-color);
}

/* Video Category Cards - Mobile Video Display */
.post-video-mobile {
    display: none; /* Hidden on desktop */
}

.post-thumbnail-desktop {
    display: block; /* Show on desktop */
}

.post-video-mobile .video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.post-video-mobile .video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Sidebar Styles */
.category-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-widget {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid var(--accent-color);
    color: var(--text-color);
}

.categories-list {
    list-style: none;
}

.category-item {
    margin-bottom: 0.5rem;
}

.category-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: var(--text-color);
    transition: var(--transition);
}

.category-item a:hover,
.category-item.active a {
    background: var(--accent-color);
    color: var(--white);
    transform: translateX(5px);
}

.category-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.category-item.active .category-count {
    background: rgba(255, 255, 255, 0.3);
}

.recent-posts-list {
    list-style: none;
}

.recent-post-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #e9ecef;
}

.recent-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-post-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.recent-post-thumb:hover img {
    transform: scale(1.1);
}

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

.recent-post-title {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.recent-post-title a {
    color: var(--text-color);
    transition: var(--transition);
}

.recent-post-title a:hover {
    color: var(--accent-color);
}

.recent-post-date {
    font-size: 0.8rem;
    color: #6c757d;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tag-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    color: var(--text-color);
    border-radius: 20px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.tag-link:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Pagination */
.pagination-wrapper {
    margin-top: 3rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0.5rem 1rem;
    background: var(--white);
    color: var(--text-color);
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
}

.pagination .dots {
    cursor: default;
}

.pagination .dots:hover {
    background: var(--white);
    color: var(--text-color);
    transform: none;
}

.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: 12px;
}

.no-posts h2 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.no-posts p {
    color: #6c757d;
}

/* Responsive */
@media (max-width: 968px) {
    .category-layout {
        grid-template-columns: 1fr;
    }

    .category-sidebar {
        position: static;
    }

    .category-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .page-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {
    .page-header {
        padding: 3rem 1.5rem;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .category-content {
        padding: 2rem 1rem;
    }

    .category-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .category-layout {
        gap: 2rem;
    }

    /* Show videos on mobile for video categories, hide thumbnails */
    .post-video-mobile {
        display: block;
    }

    .post-thumbnail-desktop {
        display: none !important;
    }

    .video-category-card .post-thumbnail {
        display: none !important;
    }

    .sidebar-widget {
        padding: 1.5rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ==========================================================================
   Loading Animation
   ========================================================================== */

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Single Post Page (Blog Detail)
   ========================================================================== */

.single-post {
    background: #f8f9fa;
}

.single-post-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Post Header */
.single-post-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 5rem 2rem 3rem;
    margin-top: 0;
    text-align: center;
    color: var(--white);
}

.post-category-badges {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.category-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.category-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.single-post-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-weight: 700;
}

.single-post-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-item i {
    font-size: 1rem;
}

/* Featured Image */
.single-post-featured-image {
    margin-top: -2rem;
    padding: 0 2rem 1.5rem;
}

.video-category-featured-image {
    display: block; /* Show on desktop */
}

.single-post-featured-image .featured-img {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: block;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Post Content Layout */
.single-post-content {
    padding: 2rem 2rem 0; /* Removed bottom padding */
}

/* Video and Project Details Section */
.video-project-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.video-column {
    min-width: 0;
}

.video-column .video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-column .video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.video-column .post-video {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-details-column {
    min-width: 0;
}

.project-details-column .project-details-widget {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.project-details-column .widget-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #2d3748;
}

.single-post-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.post-main-content {
    min-width: 0;
    max-width: 800px;
    margin: 0 auto;
}

/* Justify text in single posts */
.single .post-main-content,
.single .post-main-content p,
.single .post-main-content li {
    text-align: justify;
}

/* Project Details Box */
.project-details-box {
    background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%);
    border-left: 4px solid var(--accent-color);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
}

.project-details-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.project-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-full {
    grid-column: 1 / -1;
}

.detail-label {
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    color: #6c757d;
    font-size: 1rem;
}

/* Video Wrapper */
.post-video-wrapper {
    margin-bottom: 0;
}

.video-error {
    background: #fff3cd;
    color: #856404;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    margin-bottom: 2rem;
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.post-video {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Entry Content */
.post-entry-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-color);
}

.post-entry-content h2,
.post-entry-content h3,
.post-entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.post-entry-content h2 {
    font-size: 2rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.post-entry-content h3 {
    font-size: 1.6rem;
}

.post-entry-content p {
    margin-bottom: 1.5rem;
}

.post-entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.post-entry-content ul,
.post-entry-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-entry-content li {
    margin-bottom: 0.8rem;
}

.post-entry-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6c757d;
}

.post-entry-content code {
    background: #f8f9fa;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
}

.post-entry-content pre {
    background: #1a1a2e;
    color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

/* Page Links */
.post-page-links {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.page-links-title {
    font-weight: 700;
    margin-right: 1rem;
}

.post-page-links span {
    display: inline-block;
    margin: 0.3rem;
}

.post-page-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--white);
    color: var(--text-color);
    border-radius: 6px;
    transition: var(--transition);
}

.post-page-links a:hover {
    background: var(--accent-color);
    color: var(--white);
}

/* Tags Section */
.post-tags-section {
    margin-top: 2.5rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.tags-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

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

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tag-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: var(--white);
    color: var(--text-color);
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.tag-badge:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Author Bio */
.author-bio-box {
    margin-top: 3rem;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    display: flex;
    gap: 1.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.author-description {
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* Post Navigation */
.post-navigation {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.nav-post {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.nav-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.nav-prev {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.nav-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-title {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 600;
    line-height: 1.4;
}

.nav-post:hover .nav-title {
    color: var(--accent-color);
}

/* Sidebar */
.post-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.btn-back {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Share Buttons */
.share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem;
    border-radius: 8px;
    color: var(--white);
    font-size: 1.1rem;
    transition: var(--transition);
}

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

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

.share-btn.twitter {
    background: #1da1f2;
}

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

.share-btn.email {
    background: #6c757d;
}

/* Project Details Widget */
.project-details-widget {
    height: auto;
    padding: 2rem;
    position: relative;
    overflow: visible;
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.project-details-widget .widget-title {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    margin: 0 0 1.5rem 0;
    z-index: 1;
}

.project-details-widget .project-details-list {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    overflow-y: visible;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding-right: 0;
}

.project-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #e9ecef;
}

.project-detail-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.project-detail-item .detail-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-detail-item .detail-label i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.project-detail-item .detail-value {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.5;
}

.project-detail-item .video-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.project-detail-item .video-link:hover {
    color: #764ba2;
    transform: translateX(3px);
}

/* Comments Section */
.post-comments-section {
    background: var(--white);
    padding: 3rem 2rem;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 968px) {
    .video-project-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .single-post-layout {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }

    .post-main-content {
        order: 1;
    }

    .post-sidebar {
        position: static;
        order: 2;
    }

    .single-post-title {
        font-size: 2.2rem;
    }

    .post-entry-content {
        padding: 2rem;
    }

    .author-bio-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    /* Reset project details height for mobile */
    .project-details-widget {
        height: auto;
        padding-bottom: 0;
        position: static;
    }

    .project-details-widget .widget-title {
        position: static;
        margin-bottom: 1.5rem;
    }

    .project-details-widget .project-details-list {
        position: static;
        overflow-y: visible;
        padding-right: 0;
    }

    /* Hide thumbnails only on homepage in mobile view */
    body.home .post-thumbnail {
        display: none !important;
    }

    /* Keep thumbnails visible for blog category and single posts (except video categories) */
    body.category .blog-category-card .post-thumbnail,
    body.single .post-thumbnail {
        display: block !important;
    }

    /* Show featured image for non-video category posts */
    body.single .single-post-featured-image:not(.video-category-featured-image) {
        display: block !important;
    }
}

@media (max-width: 600px) {
    .single-post-header {
        padding: 3rem 1.5rem 2rem;
    }

    .single-post-title {
        font-size: 1.6rem;
        line-height: 1.3;
        margin-bottom: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .single-post-meta {
        display: none !important;
    }

    .single-post-content {
        padding: 1.5rem 1rem 0;
    }

    /* Hide featured image on mobile for video categories */
    .video-category-featured-image {
        display: none !important;
    }

    .single-post-layout {
        gap: 2rem;
    }

    /* Full width sidebar on mobile */
    .post-sidebar {
        margin-left: -1rem;
        margin-right: -1rem;
    }

    .sidebar-widget {
        border-radius: 0;
        margin-bottom: 0;
        padding: 1.5rem;
    }

    .post-entry-content {
        padding: 1.5rem;
        font-size: 1rem;
    }

    .project-details-box {
        padding: 1.5rem;
    }

    .project-details-grid {
        grid-template-columns: 1fr;
    }

    /* Fix Project Details Widget on Mobile */
    .project-details-widget {
        height: auto !important;
        padding-bottom: 0 !important;
        position: static !important;
        margin-bottom: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #f8f9fa !important;
    }

    .project-details-widget .widget-title {
        position: static !important;
        margin-bottom: 1.5rem !important;
        font-size: 1.4rem !important;
        padding-bottom: 0.8rem !important;
        color: #2c3e50 !important;
        font-weight: 700 !important;
    }

    .project-details-widget .project-details-list {
        position: static !important;
        overflow-y: visible !important;
        padding-right: 0 !important;
        max-height: none !important;
        gap: 1.5rem !important;
    }

    .project-detail-item {
        padding-bottom: 1.5rem !important;
        gap: 0.5rem !important;
        border-bottom: 1px solid #dee2e6 !important;
    }

    .project-detail-item:last-child {
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }

    .project-detail-item .detail-label {
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        color: #6c757d !important;
    }

    .project-detail-item .detail-value {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        color: #2c3e50 !important;
        font-weight: 500 !important;
    }

    .project-detail-item .detail-label i {
        font-size: 0.9rem !important;
        margin-right: 0.3rem !important;
    }

    .project-detail-item .video-link {
        font-size: 1rem !important;
        font-weight: 600 !important;
    }

    .share-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

    .author-bio-box {
        padding: 1.5rem;
    }
}
