/* ============================================
   ITTechSolution - Pages CSS
   All inner pages styles
   ============================================ */

/* ---- Page Banner ---- */
.page-banner {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0 70px;
    text-align: center;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.banner-overlay {
    display: none;
}

.banner-content {
    position: relative;
    z-index: 2;
    color: white;
}

.banner-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    line-height: 1.2;
}

.banner-content > p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.banner-category {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
    text-decoration: none;
    transition: background 0.3s;
}
.banner-category:hover {
    background: rgba(255,255,255,0.3);
}

/* Breadcrumb */
.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 15px;
}
.breadcrumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}
.breadcrumb a:hover { color: white; }
.breadcrumb i { font-size: 11px; opacity: 0.7; }
.breadcrumb span { color: white; }

/* Service banner icon */
.service-banner-icon {
    width: 90px;
    height: 90px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
    border: 2px solid rgba(255,255,255,0.3);
}

/* ---- Two-column Detail Layout ---- */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: flex-start;
}

.detail-featured-img,
.project-main-img,
.post-featured-img {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.detail-featured-img img,
.project-main-img img,
.post-featured-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* Detail body content */
.detail-body {
    font-size: 16px;
    line-height: 1.9;
    color: #444;
}
.detail-body h2 { font-size: 30px; color: #2c3e50; margin: 0 0 15px; }
.detail-body h3 { font-size: 22px; color: #2c3e50; margin: 30px 0 12px; }
.detail-body p  { margin-bottom: 18px; }
.detail-body ul, .detail-body ol { padding-left: 20px; margin-bottom: 18px; }
.detail-body li { margin-bottom: 8px; }
.detail-body blockquote {
    border-left: 4px solid #667eea;
    background: #f8f6ff;
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}
.detail-body img { max-width: 100%; border-radius: 8px; margin: 15px 0; }

/* Service Features List */
.service-features-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0 30px;
}
.service-features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #444;
}
.service-features-list i { color: #667eea; font-size: 16px; flex-shrink: 0; }

/* Process Steps */
.process-steps { margin: 20px 0 30px; }
.process-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
    transition: transform 0.2s;
}
.process-step:hover { transform: translateX(5px); }
.step-num {
    font-size: 32px;
    font-weight: 800;
    color: #667eea;
    opacity: 0.5;
    min-width: 60px;
    line-height: 1;
}
.step-content h4 { color: #2c3e50; margin-bottom: 5px; font-size: 17px; }
.step-content p  { color: #666; margin: 0; font-size: 14px; }

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 35px;
    border-radius: 12px;
    text-align: center;
    margin-top: 40px;
}
.cta-box h3 { font-size: 26px; margin-bottom: 10px; }
.cta-box p  { opacity: 0.9; margin-bottom: 25px; font-size: 16px; }
.cta-box .btn { margin: 5px; }

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
}
.btn-outline:hover {
    background: white;
    color: #667eea;
}
.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

/* Project Actions */
.project-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}
.project-actions .btn-outline {
    border-color: #667eea;
    color: #667eea;
}
.project-actions .btn-outline:hover {
    background: #667eea;
    color: white;
}

/* ---- Sidebar ---- */
.detail-sidebar { position: sticky; top: 100px; }

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

.widget-title {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #667eea;
    display: flex;
    align-items: center;
    gap: 8px;
}
.widget-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: linear-gradient(#667eea, #764ba2);
    border-radius: 2px;
    display: inline-block;
}

/* Sidebar Service List */
.sidebar-service-list {
    list-style: none;
    padding: 0;
}
.sidebar-service-list li a {
    display: flex;
    align-items: center;
    padding: 11px 15px;
    border-radius: 8px;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
    gap: 12px;
    font-size: 15px;
}
.sidebar-service-list li a:hover,
.sidebar-service-list li.active a {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}
.sidebar-service-list li a i:first-child { width: 20px; text-align: center; }
.sidebar-service-list li a .arrow { margin-left: auto; font-size: 12px; }

/* Contact Widget */
.contact-widget .contact-widget-body { text-align: center; }
.contact-widget-icon {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 15px;
    display: block;
}
.contact-widget p { color: #666; margin-bottom: 20px; font-size: 15px; }
.contact-widget .btn-primary { background: linear-gradient(135deg, #667eea, #764ba2); color: white; }

/* Brochure widget */
.brochure-widget { background: linear-gradient(135deg, #667eea, #764ba2); color: white; }
.brochure-widget h4 { color: white; margin-bottom: 10px; }
.brochure-widget p  { color: rgba(255,255,255,0.85); margin-bottom: 15px; font-size: 14px; }
.brochure-widget .btn-outline { border-color: white; color: white; }
.brochure-widget .btn-outline:hover { background: white; color: #667eea; }

/* Project Info List */
.project-info-list { list-style: none; padding: 0; }
.project-info-list li {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 4px;
}
.project-info-list li:last-child { border-bottom: none; }
.info-label { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: 0.5px; }
.info-label i { margin-right: 5px; color: #667eea; }
.info-value { font-size: 15px; color: #2c3e50; font-weight: 500; }
.info-value a { color: #667eea; text-decoration: none; }
.info-value a:hover { text-decoration: underline; }
.badge-featured { background: #fff3cd; color: #856404; padding: 2px 10px; border-radius: 20px; font-size: 12px; }

/* Share Buttons */
.share-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: white;
    transition: opacity 0.2s;
}
.share-btn:hover { opacity: 0.85; }
.share-btn.facebook  { background: #1877f2; }
.share-btn.twitter   { background: #1da1f2; }
.share-btn.linkedin  { background: #0a66c2; }
.share-btn.whatsapp  { background: #25d366; }

/* Post Share (full width version) */
.post-share {
    margin: 35px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
}
.post-share h4 { color: #2c3e50; margin-bottom: 15px; font-size: 16px; }

/* ---- Portfolio Pages ---- */
.portfolio-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    text-align: center;
}
.pstat-num {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: white;
    line-height: 1;
}
.pstat-label {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin-top: 5px;
}

/* Portfolio Filter */
.portfolio-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}
.filter-btn {
    padding: 9px 22px;
    border-radius: 25px;
    border: 2px solid #e0e0e0;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    background: white;
}
.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    color: white;
}

/* Results info */
.results-info, .results-count {
    color: #888;
    font-size: 14px;
    margin-bottom: 25px;
}
.results-info strong, .results-count strong { color: #2c3e50; }

/* Portfolio Grid */
.portfolio-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.portfolio-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}
.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(102,126,234,0.2);
}

.portfolio-card-img {
    position: relative;
    overflow: hidden;
    height: 240px;
}
.portfolio-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.portfolio-card:hover .portfolio-card-img img { transform: scale(1.08); }

.portfolio-no-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #ccc;
}

.portfolio-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102,126,234,0.92), rgba(118,75,162,0.92));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.portfolio-card:hover .portfolio-card-overlay { opacity: 1; }

.featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ffc107;
    color: #333;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.overlay-actions { display: flex; gap: 12px; }
.overlay-btn {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 18px;
    text-decoration: none;
    transition: background 0.2s;
}
.overlay-btn:hover { background: white; }

.portfolio-card-body { padding: 22px; }
.category-tag {
    display: inline-block;
    background: #f0eeff;
    color: #667eea;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}
.portfolio-card-body h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.4;
}
.portfolio-card-body h3 a { color: inherit; text-decoration: none; }
.portfolio-card-body h3 a:hover { color: #667eea; }

.client-name {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}
.client-name i { margin-right: 5px; color: #667eea; }

.tech-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.tech-tag {
    background: #f0f0f0;
    color: #555;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
}
.tech-tags.large .tech-tag {
    padding: 5px 14px;
    font-size: 13px;
    background: #f0eeff;
    color: #667eea;
    border: 1px solid #d4ceff;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 40px;
}
.page-btn {
    padding: 10px 18px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
    background: white;
}
.page-btn:hover, .page-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    color: white;
}

/* No items / Empty state */
.no-items {
    text-align: center;
    padding: 80px 20px;
    color: #888;
}
.no-items > i { font-size: 64px; color: #ddd; margin-bottom: 20px; display: block; }
.no-items h3 { font-size: 24px; color: #2c3e50; margin-bottom: 10px; }
.no-items p  { margin-bottom: 25px; }

/* Related Section */
.related-section { background: #f8f9fa; }

/* ---- Blog Pages ---- */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: flex-start;
}

.blog-grid-main { display: flex; flex-direction: column; gap: 30px; }

.blog-post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    display: grid;
    grid-template-columns: 280px 1fr;
    transition: transform 0.3s;
}
.blog-post-card:hover { transform: translateY(-4px); }

.blog-post-img {
    position: relative;
    overflow: hidden;
}
.blog-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.blog-post-card:hover .blog-post-img img { transform: scale(1.05); }

.blog-no-img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: rgba(255,255,255,0.4);
}

.post-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.blog-post-body { padding: 28px; display: flex; flex-direction: column; justify-content: center; }

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}
.post-meta span { display: flex; align-items: center; gap: 5px; }
.post-meta i { color: #667eea; }

.blog-post-body h2 { font-size: 20px; color: #2c3e50; margin-bottom: 12px; line-height: 1.4; }
.blog-post-body h2 a { color: inherit; text-decoration: none; }
.blog-post-body h2 a:hover { color: #667eea; }

.post-excerpt { color: #666; font-size: 15px; line-height: 1.7; margin-bottom: 18px; }

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: gap 0.2s;
}
.read-more-btn:hover { gap: 12px; }

/* Active filters */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f0eeff;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #555;
}
.filter-tag {
    background: white;
    border: 1px solid #d4ceff;
    padding: 4px 12px;
    border-radius: 20px;
    color: #667eea;
    font-size: 13px;
}
.filter-tag a { color: #667eea; font-weight: 700; margin-left: 5px; text-decoration: none; }
.clear-filters { color: #dc3545; font-size: 13px; text-decoration: none; margin-left: auto; }

/* Blog Sidebar */
.blog-sidebar { position: sticky; top: 100px; }

/* Search Form */
.search-form .search-input-wrap {
    display: flex;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s;
}
.search-form .search-input-wrap:focus-within { border-color: #667eea; }
.search-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    outline: none;
    font-size: 14px;
}
.search-form button {
    padding: 10px 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.2s;
}
.search-form button:hover { opacity: 0.85; }

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
}
.category-list li {
    border-bottom: 1px solid #f0f0f0;
}
.category-list li:last-child { border-bottom: none; }
.category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.category-list li.active a,
.category-list li a:hover { color: #667eea; }
.category-list li a span {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    color: #888;
}
.category-list li.active a span {
    background: #f0eeff;
    color: #667eea;
}

/* Recent Posts */
.recent-posts-list { list-style: none; padding: 0; }
.recent-posts-list li {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}
.recent-posts-list li:last-child { border-bottom: none; }
.recent-posts-list img {
    width: 65px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.rp-no-img {
    width: 65px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    flex-shrink: 0;
}
.rp-info a {
    font-size: 13px;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
    display: block;
    margin-bottom: 4px;
}
.rp-info a:hover { color: #667eea; }
.rp-info span { font-size: 12px; color: #888; }

/* Tags Cloud */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-link {
    display: inline-block;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    color: #555;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s;
}
.tag-link:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

/* Sidebar CTA */
.sidebar-cta {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}
.sidebar-cta h4 { color: white; margin-bottom: 10px; }
.sidebar-cta p  { color: rgba(255,255,255,0.85); font-size: 14px; margin-bottom: 18px; }
.sidebar-cta .btn-primary { background: white; color: #667eea; }
.sidebar-cta .btn-primary:hover { background: #f0eeff; }

/* ---- Blog Detail Page ---- */
.post-banner { padding: 80px 0 60px; }
.post-banner-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 15px;
}
.post-banner-meta span { display: flex; align-items: center; gap: 6px; }

/* Post Excerpt Box */
.post-excerpt-box {
    background: linear-gradient(135deg, #f0eeff, #fff);
    border-left: 5px solid #667eea;
    padding: 20px 25px;
    border-radius: 0 10px 10px 0;
    margin-bottom: 30px;
}
.post-excerpt-box p {
    font-size: 17px;
    font-style: italic;
    color: #555;
    margin: 0;
    line-height: 1.7;
}

/* Post Content */
.post-content {
    font-size: 16px;
    line-height: 1.9;
    color: #444;
    margin-bottom: 35px;
}
.post-content h1, .post-content h2 { color: #2c3e50; margin: 30px 0 15px; }
.post-content h3, .post-content h4 { color: #2c3e50; margin: 25px 0 12px; }
.post-content p { margin-bottom: 18px; }
.post-content ul, .post-content ol { padding-left: 25px; margin-bottom: 18px; }
.post-content li { margin-bottom: 8px; }
.post-content img { max-width: 100%; border-radius: 8px; margin: 15px 0; }
.post-content blockquote {
    border-left: 4px solid #667eea;
    background: #f8f6ff;
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}
.post-content a { color: #667eea; }
.post-content pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}
.post-content code { font-family: monospace; font-size: 14px; }

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    margin-bottom: 25px;
}
.post-tags i { color: #667eea; }

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 30px 0;
    padding-top: 25px;
    border-top: 1px solid #eee;
}
.post-nav-link {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px 20px;
    text-decoration: none;
    transition: background 0.2s;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.post-nav-link:hover { background: #f0eeff; }
.post-nav-link.next { text-align: right; }
.nav-direction { font-size: 12px; color: #667eea; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.nav-title { font-size: 14px; color: #2c3e50; line-height: 1.4; }

/* Author Box */
.author-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 35px;
}
.author-avatar {
    font-size: 64px;
    color: #667eea;
    flex-shrink: 0;
    line-height: 1;
}
.author-info h4 { color: #2c3e50; margin-bottom: 8px; }
.author-info p  { color: #666; font-size: 14px; margin: 0; }

/* Category Link */
.category-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    padding: 5px 0;
}
.category-link:hover { text-decoration: underline; }

/* ---- CMS Page ---- */
.cms-page-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: flex-start;
}

.page-content-body {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    font-size: 16px;
    line-height: 1.9;
    color: #444;
}
.page-content-body h1, .page-content-body h2 { color: #2c3e50; margin: 20px 0 12px; }
.page-content-body h3, .page-content-body h4 { color: #2c3e50; margin: 18px 0 10px; }
.page-content-body p  { margin-bottom: 16px; }
.page-content-body ul, .page-content-body ol { padding-left: 25px; margin-bottom: 16px; }
.page-content-body a { color: #667eea; }

.page-updated {
    padding: 12px 20px;
    background: #f0f0f0;
    border-radius: 8px;
    font-size: 13px;
    color: #888;
    margin-top: 20px;
}
.page-updated i { margin-right: 6px; color: #667eea; }

.cms-page-sidebar { position: sticky; top: 100px; }

.sidebar-links { list-style: none; padding: 0; }
.sidebar-links li { border-bottom: 1px solid #f0f0f0; }
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 5px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.sidebar-links li a:hover { color: #667eea; }
.sidebar-links li a i { color: #667eea; width: 16px; }

/* ---- 404 Error ---- */
.error-404 { padding: 50px 0; }
.error-num {
    font-size: 120px;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

/* ---- Newsletter Section ---- */
.newsletter-section {
    background: linear-gradient(135deg, #2c3e50, #3d5a80);
    padding: 60px 0;
    text-align: center;
    color: white;
}
.newsletter-content h2 {
    font-size: 32px;
    margin-bottom: 10px;
}
.newsletter-content p {
    font-size: 16px;
    opacity: 0.8;
    margin-bottom: 25px;
}
.newsletter-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}
.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form input:focus { border-color: rgba(255,255,255,0.7); }
.btn-white {
    background: white;
    color: #667eea;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s;
    white-space: nowrap;
}
.btn-white:hover {
    background: #f0eeff;
    transform: translateY(-2px);
}

/* ---- Footer Enhancements ---- */
.footer-social { margin-top: 20px; }
.contact-info-list { list-style: none; padding: 0; }
.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #ccc;
    margin-bottom: 12px;
    font-size: 14px;
}
.contact-info-list i { color: #667eea; margin-top: 2px; flex-shrink: 0; }
.footer-bottom p { margin: 5px 0; }
.footer-bottom a { color: #ccc; text-decoration: none; margin: 0 5px; }
.footer-bottom a:hover { color: #667eea; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .detail-layout,
    .blog-layout,
    .cms-page-layout {
        grid-template-columns: 1fr;
    }
    .detail-sidebar,
    .blog-sidebar,
    .cms-page-sidebar {
        position: static;
    }
    .portfolio-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .banner-content h1 { font-size: 32px; }
    .blog-post-card { grid-template-columns: 1fr; }
    .blog-post-img { height: 200px; }
    .service-features-list { grid-template-columns: 1fr; }
    .portfolio-grid-full { grid-template-columns: 1fr; }
    .post-navigation { grid-template-columns: 1fr; }
    .portfolio-stats { grid-template-columns: repeat(2, 1fr); }
    .author-box { flex-direction: column; text-align: center; }
    .newsletter-form { flex-direction: column; }
    .project-actions { flex-direction: column; }
    .process-step { flex-direction: column; gap: 10px; }
    .step-num { font-size: 24px; }
}

@media (max-width: 480px) {
    .portfolio-stats { grid-template-columns: 1fr 1fr; }
    .pstat-num { font-size: 28px; }
    .error-num { font-size: 80px; }
    .page-banner { padding: 70px 0 50px; }
}
