/* ----------------------------------------------------
   Styles for Kien Thanh WordPress Subpages
   Theme: Flatsome Child Custom
   ---------------------------------------------------- */

/* Common Subpage Header/Hero Banner */
.subpage-banner {
    position: relative;
    padding: 140px 0 80px;
    background: linear-gradient(rgba(11, 15, 25, 0.85), rgba(11, 15, 25, 0.95)), 
                url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.subpage-banner .title {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #ffffff !important;
}

.breadcrumbs {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.breadcrumbs a {
    transition: var(--transition);
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs .current {
    color: #ffffff;
}

/* About Page Custom Styles */
.about-detailed {
    background-color: transparent;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.value-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-10px);
    border-color: rgba(235, 99, 0, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.value-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 25px;
}

.value-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #ffffff !important;
}

.value-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Services Page Custom Styles */
.services-detailed-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    margin-top: 50px;
}

.service-block {
    display: flex;
    align-items: center;
    gap: 60px;
    background: var(--card-bg);
    padding: 50px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.service-block:nth-child(even) {
    flex-direction: row-reverse;
}

.service-block:hover {
    border-color: rgba(235, 99, 0, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-block-img {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    aspect-ratio: 4/3;
}

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

.service-block:hover .service-block-img img {
    transform: scale(1.05);
}

.service-block-info {
    flex: 1.2;
}

.service-block-info .icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-block-info h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #ffffff !important;
}

.service-block-info p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.service-features-list {
    margin-bottom: 30px;
}

.service-features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-main);
    font-weight: 500;
}

.service-features-list i {
    color: var(--primary);
}

/* Pricing Page Custom Styles */
.pricing-section {
    background-color: transparent;
}

.pricing-table-container {
    max-width: 900px;
    margin: 50px auto 80px;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.pricing-table th, .pricing-table td {
    padding: 22px 30px;
}

.pricing-table th {
    background: rgba(235, 99, 0, 0.1);
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(235, 99, 0, 0.2);
}

.pricing-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.pricing-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.pricing-table td h4 {
    font-size: 1.15rem;
    margin-bottom: 5px;
}

.pricing-table td p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.pricing-table .price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}

/* Material List Styles */
.materials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.material-box {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.material-box h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--primary) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 15px;
}

.material-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.material-list li:last-child {
    border-bottom: none;
}

.material-list span.name {
    color: var(--text-main);
    font-weight: 600;
}

.material-list span.brand {
    color: var(--text-muted);
}


/* Projects Page Filter Navigation */
.projects-filter-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* Contact Page Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    margin-top: 50px;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-card-item {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    display: flex;
    gap: 20px;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.contact-card-item:hover {
    border-color: rgba(235, 99, 0, 0.3);
    transform: translateX(5px);
}

.contact-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(235, 99, 0, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.contact-card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Glassmorphism Contact Form */
.contact-form-panel {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.form-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
}

.contact-form .form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 14px 20px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 10px rgba(235, 99, 0, 0.2);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

.contact-form .btn-submit {
    width: 100%;
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.contact-form .btn-submit:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 20px rgba(235, 99, 0, 0.4);
}

.contact-map {
    margin-top: 80px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    height: 400px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

/* Responsive Custom Pages styles */
@media (max-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .subpage-banner {
        padding: 120px 0 60px;
    }
    .subpage-banner .title {
        font-size: 2.3rem;
    }
    .service-block {
        flex-direction: column !important;
        padding: 30px;
        gap: 30px;
    }
    .materials-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .contact-form-panel {
        padding: 30px;
    }
    .pricing-table th, .pricing-table td {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
    .pricing-table-container {
        overflow-x: auto;
    }
}

/* Policy Pages Custom Styles */
.policy-wrapper {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.entry-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: #ffffff !important;
}

.entry-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.entry-content ul {
    list-style-type: disc !important;
    padding-left: 24px !important;
    margin-bottom: 30px !important;
}

.entry-content li {
    margin-bottom: 10px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .policy-wrapper {
        padding: 30px 20px;
    }
    .entry-content h3 {
        font-size: 1.25rem;
        margin-top: 30px;
    }
}

/* ----------------------------------------------------
   Premium Light Mode styling for Blog and Archives
   ---------------------------------------------------- */
body.single-post, 
body.category, 
body.archive,
body.single-post #wrapper,
body.category #wrapper,
body.archive #wrapper,
body.single-post #main,
body.category #main,
body.archive #main {
    background-color: #f8fafc !important; /* Premium clean light background */
    background-image: none !important;
    color: #1e293b !important; /* Dark charcoal text for optimal readability */
    font-family: 'Roboto', sans-serif !important;
}

/* Ensure headings on blog/archive pages are dark charcoal */
body.single-post h1, body.single-post h2, body.single-post h3, body.single-post h4, body.single-post h5, body.single-post h6,
body.category h1, body.category h2, body.category h3, body.category h4, body.category h5, body.category h6,
body.archive h1, body.archive h2, body.archive h3, body.archive h4, body.archive h5, body.archive h6 {
    color: #0f172a !important; /* Dark slate headers */
    font-family: 'Montserrat', sans-serif !important;
}

/* Style the standard blog post layout */
body.single-post .blog-single {
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 20px 80px; /* Leave space for sticky header */
}

/* Post Content styling */
body.single-post .entry-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #334155 !important; /* Slate grey for content text */
    margin-bottom: 24px;
}

body.single-post .entry-content img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin: 15px 0;
}

/* Category & Archive page layouts */
body.category .blog-archive,
body.archive .blog-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 20px 80px; /* Space for sticky header */
}

/* Muted meta text style */
body.single-post .entry-meta,
body.single-post .entry-category,
body.category .archive-page-header {
    color: #64748b !important;
}

/* Styling sidebar links and widgets on light pages */
body.single-post .widget a,
body.category .widget a,
body.archive .widget a {
    color: #334155 !important;
    transition: var(--transition);
}

body.single-post .widget a:hover,
body.category .widget a:hover,
body.archive .widget a:hover {
    color: var(--primary) !important;
}

body.single-post .widget-title,
body.category .widget-title,
body.archive .widget-title {
    color: #0f172a !important;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 8px;
    margin-bottom: 15px;
}

/* ----------------------------------------------------
   Premium Light Mode styling for Mẫu Thiết Kế Đẹp Page
   ---------------------------------------------------- */
body.page-template-template-mau-nha,
body.page-template-template-mau-nha #wrapper,
body.page-template-template-mau-nha #main {
    background-color: #f8fafc !important; /* Premium clean light background */
    background-image: none !important;
    color: #1e293b !important;
    font-family: 'Roboto', sans-serif !important;
}

body.page-template-template-mau-nha h1,
body.page-template-template-mau-nha h2,
body.page-template-template-mau-nha h3,
body.page-template-template-mau-nha h4,
body.page-template-template-mau-nha h5,
body.page-template-template-mau-nha h6 {
    color: #0f172a !important;
    font-family: 'Montserrat', sans-serif !important;
}

/* Section Wrapper */
.portfolio-page-wrapper {
    padding: 140px 0 80px; /* Space for fixed header */
}

/* Filter Navigation */
.portfolio-nav-wrapper {
    margin-bottom: 45px;
    display: flex;
    justify-content: center;
}

.portfolio-nav {
    display: flex;
    gap: 10px;
    padding: 6px;
    background: #ffffff;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    list-style: none;
    margin: 0;
}

.portfolio-nav li {
    margin: 0;
    padding: 0;
}

.portfolio-nav a {
    display: inline-block;
    padding: 10px 24px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #64748b !important;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.portfolio-nav li.active a,
.portfolio-nav a:hover {
    background-color: var(--primary);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(235, 99, 0, 0.3);
}

/* Pinterest Masonry Grid Container */
.design-grid-container {
    column-count: 3;
    column-gap: 25px;
    width: 100%;
}

@media (max-width: 992px) {
    .design-grid-container {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .design-grid-container {
        column-count: 1;
    }
}

/* Masonry Card */
.design-card {
    display: inline-block; /* Crucial for masonry column-count layout to prevent card splitting */
    width: 100%;
    margin-bottom: 25px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.design-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(235, 99, 0, 0.3);
}

.design-card-image {
    position: relative;
    overflow: hidden;
}

/* CAD Crosshairs target on hover */
.design-card-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    border: 1px dashed rgba(235, 99, 0, 0.6);
    border-radius: 50%;
    background: 
        linear-gradient(to right, transparent 29px, rgba(235, 99, 0, 0.6) 29px, rgba(235, 99, 0, 0.6) 31px, transparent 31px),
        linear-gradient(to bottom, transparent 29px, rgba(235, 99, 0, 0.6) 29px, rgba(235, 99, 0, 0.6) 31px, transparent 31px);
    background-size: 60px 60px;
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 3;
    pointer-events: none;
}

/* CAD Drafting Grid and Blueprint Scale Ruler on hover */
.design-card-image::after {
    content: 'SCALE 1:100';
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: rgba(235, 99, 0, 0.85);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 12px;
    box-sizing: border-box;
    
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(rgba(235, 99, 0, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(235, 99, 0, 0.08) 1px, transparent 1px),
        linear-gradient(to right, rgba(235, 99, 0, 0.4) 1px, transparent 1px) bottom left / 10px 8px repeat-x;
    background-size: 20px 20px, 20px 20px, 10px 8px;
    border-bottom: 2px solid rgba(235, 99, 0, 0.4);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.design-card-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
}

.design-card:hover .design-card-image img {
    transform: scale(1.06);
    filter: contrast(1.05) brightness(0.9);
}

.design-card:hover .design-card-image::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(90deg);
}

.design-card:hover .design-card-image::after {
    opacity: 1;
}

.design-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary);
    color: #ffffff;
    padding: 6px 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(235, 99, 0, 0.3);
}

.design-card-info {
    padding: 24px;
}

.design-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    color: #0f172a !important;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.design-card:hover .design-card-title {
    color: var(--primary) !important;
}

/* Card Specifications Row */
.design-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 0.8rem;
    color: #475569;
}

.card-spec-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f1f5f9;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 600;
    line-height: 1;
}

.card-spec-item i {
    color: var(--primary);
    font-size: 0.85rem;
}

.design-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: #64748b;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

.design-card-link {
    color: var(--primary) !important;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
    text-decoration: none;
}

.design-card-link:hover {
    gap: 10px;
}

/* ----------------------------------------------------
   Premium Light Mode styling for Blog Category Archives
   ---------------------------------------------------- */
.blog-category-banner {
    background: linear-gradient(rgba(11, 15, 25, 0.82), rgba(11, 15, 25, 0.92)), 
                url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1920&q=80') center/cover !important;
}

.blog-category-banner .category-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 10px auto 15px;
    line-height: 1.5;
}

.blog-archive-section {
    padding: 60px 0 100px;
    background-color: #f8fafc;
}

.blog-archive-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

@media (max-width: 992px) {
    .blog-archive-layout {
        grid-template-columns: 1fr;
    }
}

.blog-main-content {
    display: flex;
    flex-direction: column;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

@media (max-width: 650px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.blog-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
    border-color: rgba(235, 99, 0, 0.3);
}

.blog-card-image {
    overflow: hidden;
    aspect-ratio: 16/10;
}

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

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

.blog-card-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-date {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    color: #0f172a !important;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.blog-card-title-link {
    text-decoration: none;
}

.blog-card:hover .blog-card-title {
    color: var(--primary) !important;
}

.blog-card-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569 !important;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-card-readmore {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary) !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: gap 0.3s ease;
    margin-top: auto;
}

.blog-card-readmore:hover {
    gap: 10px;
}

/* Sidebar Widgets */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.sidebar-widget {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

.sidebar-widget .widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a !important;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Search form widget */
.search-widget .search-group {
    display: flex;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.search-widget .search-group:focus-within {
    border-color: var(--primary);
}

.search-widget .search-field {
    flex-grow: 1;
    border: none;
    padding: 10px 15px;
    outline: none;
    font-size: 0.95rem;
    color: #334155;
    background: transparent;
    width: 100%;
}

.search-widget .search-submit {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-widget .search-submit:hover {
    background: var(--primary-hover);
}

/* Categories Widget */
.categories-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-widget li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.categories-widget li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.categories-widget a {
    display: flex;
    justify-content: space-between;
    color: #334155 !important;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.categories-widget li.current-cat a,
.categories-widget a:hover {
    color: var(--primary) !important;
    padding-left: 5px;
}

.categories-widget .count {
    color: #64748b;
    font-size: 0.88rem;
}

/* Recent Posts Widget */
.recent-posts-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recent-post-link {
    display: flex;
    gap: 15px;
    text-decoration: none;
    align-items: center;
}

.recent-post-link img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.recent-post-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    color: #0f172a !important;
    margin: 5px 0 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.recent-post-link:hover h4 {
    color: var(--primary) !important;
}

.recent-post-info .date {
    font-size: 0.8rem;
    color: #64748b;
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.blog-pagination .nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155 !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
    background: var(--primary);
    color: #ffffff !important;
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(235, 99, 0, 0.3);
}

/* Contact Card Links Styling */
.contact-card-content p a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.contact-card-content p a:hover {
    color: var(--primary);
}

/* ----------------------------------------------------
   Premium Light Mode styling for Blog Single Posts
   ---------------------------------------------------- */
.blog-post-banner {
    background: linear-gradient(rgba(11, 15, 25, 0.82), rgba(11, 15, 25, 0.92)), 
                url('https://images.unsplash.com/photo-1457369804613-52c61a468e7d?auto=format&fit=crop&w=1920&q=80') center/cover !important;
}

.blog-post-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    margin-bottom: 30px;
}

.blog-post-featured-image {
    max-height: 480px;
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
}

.blog-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post-body {
    padding: 40px;
}

@media (max-width: 768px) {
    .blog-post-body {
        padding: 25px;
    }
}

.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 30px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 15px;
}

.blog-post-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.blog-post-meta .meta-item i {
    color: var(--primary);
}

.blog-post-meta .meta-item a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.blog-post-meta .meta-item a:hover {
    color: var(--primary);
}

.blog-post-content {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #334155;
}

.blog-post-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 40px 0 20px;
    color: #0f172a !important;
}

.blog-post-content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 35px 0 15px;
    color: #1e293b !important;
}

.blog-post-content p {
    margin-bottom: 25px;
}

.blog-post-content ul, .blog-post-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

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

.blog-post-tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px dashed #e2e8f0;
    font-size: 0.95rem;
}

.blog-post-tags .tags-label {
    font-weight: 700;
    color: #0f172a;
}

.blog-post-tags a {
    background: #f1f5f9;
    color: #475569 !important;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    text-decoration: none;
    margin-left: 5px;
    transition: all 0.3s ease;
}

.blog-post-tags a:hover {
    background: var(--primary);
    color: #ffffff !important;
}

/* Post Navigation Card */
.post-navigation-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

.nav-links-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 650px) {
    .nav-links-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.nav-prev-link, .nav-next-link {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-next-link {
    text-align: right;
    align-items: flex-end;
}

.nav-meta {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-prev-link a, .nav-next-link a {
    font-weight: 700;
    color: #0f172a !important;
    font-size: 1.05rem;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-prev-link a:hover, .nav-next-link a:hover {
    color: var(--primary) !important;
}

/* Author Box Styling */
.post-author-box {
    display: flex;
    gap: 25px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    align-items: center;
}

.author-avatar {
    width: 90px;
    height: 90px;
    flex-shrink: 0; /* Prevent flex container from compressing the avatar */
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar img {
    width: 90px !important;
    height: 90px !important;
    max-width: 90px !important;
    max-height: 90px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid #f1f5f9;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: block;
}

.author-socials {
    display: flex;
    gap: 8px;
    margin-top: 5px;
    margin-bottom: 8px;
}

.author-socials a {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.author-socials a:hover {
    background: var(--primary);
    color: #ffffff !important;
    transform: translateY(-2px);
}

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

.author-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.author-name a {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.author-name a:hover {
    color: var(--primary) !important;
}

.author-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569 !important;
    margin-top: 8px;
    margin-bottom: 0 !important;
}

@media (max-width: 600px) {
    .post-author-box {
        flex-direction: column;
        text-align: center;
        padding: 25px;
        gap: 15px;
    }
    .author-info {
        text-align: center;
    }
}

/* ----------------------------------------------------
   Author Profile Page Styling
   ---------------------------------------------------- */
body.author {
    background-color: #f8fafc !important;
    color: #1e293b !important;
}

body.author #wrapper,
body.author #main {
    background-color: #f8fafc !important;
    color: #1e293b !important;
}

.author-profile-banner {
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.95)), 
                url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1920&q=80') center/cover !important;
    padding: 160px 0 80px !important;
    text-align: left !important;
    border-bottom: none !important;
}

.author-profile-header {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.author-profile-avatar {
    width: 130px;
    height: 130px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.author-profile-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

.author-profile-info {
    flex-grow: 1;
}

.author-profile-info .profile-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
}

.author-profile-info .profile-name {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff !important;
    margin: 0 0 15px 0;
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
}

.author-profile-info .profile-bio {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #e2e8f0 !important;
    margin-bottom: 25px;
    max-width: 800px;
}

.profile-socials {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.profile-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-social-link i {
    font-size: 1rem;
}

.profile-social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(235, 99, 0, 0.4);
    transform: translateY(-2px);
    color: #ffffff !important;
}

.archive-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a !important;
    margin-bottom: 35px;
    position: relative;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.archive-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--primary);
}

/* Responsive Author Archive Page */
@media (max-width: 768px) {
    .author-profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .author-profile-banner {
        padding: 140px 0 60px !important;
    }
    
    .author-profile-info .profile-name {
        font-size: 2rem;
    }
    
    .profile-socials {
        justify-content: center;
}

/* Prevent light-mode important body styles from leaking into the footer */
.kt-footer {
    background-color: #06080d !important;
    color: #9ca3af !important;
}
.kt-footer p, 
.kt-footer span, 
.kt-footer li {
    color: #9ca3af !important;
}
.kt-footer h3 {
    color: #ffffff !important;
}
.kt-footer a {
    color: #9ca3af !important;
}
.kt-footer a:hover {
    color: #EB6300 !important;
}
.kt-footer-bottom p {
    color: #6b7280 !important;
}
