/* ===================================
   Portfolio Pages Styles
   ================================== */

/* Portfolio Hero Section */
.portfolio-hero {
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.95) 0%,
            rgba(30, 58, 138, 0.92) 50%,
            rgba(59, 130, 246, 0.9) 100%),
        url("../images/services/fesability-study.jpg") center center / cover no-repeat;
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
}

.portfolio-hero .container {
    position: relative;
    z-index: 2;
}

.portfolio-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.portfolio-hero .hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.portfolio-hero .hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* ===================================
   Portfolio Listing Section
   ================================== */
.portfolio-listing-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.portfolio-listing-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Portfolio Grid - 3 columns */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

/* Portfolio Card */
.portfolio-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(30, 58, 138, 0.08);
    display: flex;
    flex-direction: column;
}

/* Portfolio Card Image */
.portfolio-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.portfolio-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Category Badge */
.portfolio-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #ffffff;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    z-index: 2;
}

/* Portfolio Card Content */
.portfolio-card-content {
    padding: 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Portfolio Meta Info */
.portfolio-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.portfolio-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.portfolio-meta-item i {
    color: #ff6b35;
    font-size: 0.85rem;
}

/* Portfolio Title */
.portfolio-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Portfolio Excerpt */
.portfolio-card-excerpt {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    flex: 1;
}

/* Read More Button */
.portfolio-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #ffffff;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
    align-self: flex-start;
}

.portfolio-read-more:hover {
    background: linear-gradient(135deg, #f7931e 0%, #e85a2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
    color: #ffffff;
}

.portfolio-read-more i {
    transition: transform 0.3s ease;
}

.portfolio-read-more:hover i {
    transform: translateX(-5px);
}

/* ===================================
   Pagination
   ================================== */
.portfolio-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.portfolio-pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: #ffffff;
    color: #1e3a8a;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.portfolio-pagination .page-link:hover,
.portfolio-pagination .page-link.active {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.portfolio-pagination .page-arrow {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: #ffffff;
    border: none;
}

.portfolio-pagination .page-arrow:hover {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
}

/* ===================================
   Portfolio Show Page - Project Detail
   ================================== */
.portfolio-project-section {
    padding: 4rem 0;
    background: #ffffff;
}

.portfolio-project-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Project Layout - Two Column Grid */
.project-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
}

/* Main Content Area (Right Side) */
.project-main-content {
    min-width: 0;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(30, 58, 138, 0.08);
}

/* Project Header */
.project-header {
    background: #ffffff;
    padding: 2rem;
    border-bottom: 2px solid #f1f5f9;
    text-align: center;
}

.project-category {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #ffffff;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.project-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3a8a;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.project-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    color: #6b7280;
    font-size: 1rem;
}

.project-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-meta-item i {
    color: #ff6b35;
}

/* Project Featured Image */
.project-featured-image {
    border-radius: 0;
    overflow: hidden;
    margin: 0 0 2rem 0;
    box-shadow: none;
}

.project-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Project Featured Image Block - New Styled Block */
.project-featured-image-block {
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-featured-image-container {
    max-width: 800px;
    max-height: 500px;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(30, 58, 138, 0.15),
        0 4px 15px rgba(0, 0, 0, 0.1);
    border: 4px solid #ffffff;
    background: #ffffff;
}

.project-featured-image-container .project-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

/* Project Content */
.project-content {
    font-size: 1.15rem;
    line-height: 2;
    color: #374151;
    padding: 0 2rem 2rem 2rem;
}

.project-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e3a8a;
    margin: 2.5rem 0 1rem;
}

.project-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e40af;
    margin: 2rem 0 1rem;
}

.project-content p {
    margin-bottom: 1.5rem;
}

.project-content ul,
.project-content ol {
    margin-bottom: 1.5rem;
    padding-right: 1.5rem;
}

.project-content li {
    margin-bottom: 0.75rem;
}

.project-content blockquote {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-right: 4px solid #ff6b35;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 12px;
    font-style: italic;
    color: #1e40af;
}

.project-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
}

/* Share Section */
.project-share {
    margin: 0;
    padding: 2rem;
    border-top: 2px solid #f1f5f9;
    text-align: center;
}

.project-share h4 {
    font-size: 1.2rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Share buttons (reused from blog usually, but copying here too) */
.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #165ed0 100%);
}

.share-btn.twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0c85d0 100%);
}

.share-btn.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.share-btn.linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

/* Sidebar Styles (Left Side) */
.project-sidebar {
    position: relative;
}

/* Reusing generic sidebar classes or renaming */
.sidebar-sticky {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(30, 58, 138, 0.08);
}

.sidebar-card-header {
    background: #ffffff;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
}

.sidebar-card-header i {
    font-size: 1.3rem;
    color: #ff6b35;
}

.sidebar-card-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: #1e3a8a;
}

.sidebar-card-content {
    padding: 1.5rem;
}

/* Contact Items (Reused) */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.contact-item:last-of-type {
    border-bottom: none;
}

.contact-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: #ffffff;
    font-size: 1.1rem;
}

.contact-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.contact-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

.contact-value {
    font-size: 0.95rem;
    color: #1e3a8a;
    font-weight: 600;
    word-break: break-word;
}

.contact-value a,
a.contact-value {
    color: #1e3a8a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value a:hover,
a.contact-value:hover {
    color: #ff6b35;
}

.sidebar-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.sidebar-cta-btn:hover {
    background: linear-gradient(135deg, #f7931e 0%, #e85a2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
    color: #ffffff;
}

.sidebar-cta-btn i {
    font-size: 1rem;
}

/* Quick Links */
.quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links li {
    margin-bottom: 0.75rem;
}

.quick-links li:last-child {
    margin-bottom: 0;
}

.quick-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 12px;
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.quick-links a:hover {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #ffffff;
    transform: translateX(-5px);
    border-color: #ff6b35;
}

.quick-links a i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.quick-links a:hover i {
    transform: translateX(-3px);
}


/* Related Projects */
.related-projects-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.related-projects-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.related-projects-header {
    text-align: center;
    margin-bottom: 3rem;
}

.related-projects-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e3a8a;
    position: relative;
    display: inline-block;
}

.related-projects-header h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 2px;
}

.related-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Empty State */
.portfolio-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    grid-column: 1 / -1;
}

.portfolio-empty-state i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.portfolio-empty-state h3 {
    font-size: 1.5rem;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.portfolio-empty-state p {
    color: #64748b;
}

/* ===================================
   Responsive Design
   ================================== */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .related-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-layout {
        grid-template-columns: 1fr 300px;
        gap: 2rem;
    }

    .sidebar-sticky {
        top: 80px;
    }
}

@media (max-width: 900px) {
    .project-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .project-sidebar {
        order: 2;
    }

    .project-main-content {
        order: 1;
        width: 100%;
    }

    .sidebar-sticky {
        position: relative;
        top: 0;
    }

    .sidebar-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
}


@media (max-width: 768px) {
    .portfolio-listing-section .container {
        padding: 0 1rem;
    }

    .portfolio-project-section .container {
        padding: 0 1rem;
    }

    .project-main-content {
        border-radius: 8px;
    }

    .sidebar-card {
        border-radius: 8px;
    }

    .portfolio-hero .hero-title {
        font-size: 2.2rem;
    }

    .portfolio-hero .hero-subtitle {
        font-size: 1rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .portfolio-card {
        width: 100%;
    }

    .portfolio-card-image {
        height: 200px;
    }

    .portfolio-card-title {
        font-size: 1.25rem;
    }

    .project-title {
        font-size: 1.8rem;
    }

    .project-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .project-content {
        font-size: 1.05rem;
    }

    .related-projects-grid {
        grid-template-columns: 1fr;
    }

    /* Featured Image Block Responsive */
    .project-featured-image-block {
        padding: 1.5rem 1rem;
    }

    .project-featured-image-container {
        max-width: 100%;
        max-height: 400px;
        border-radius: 12px;
        border-width: 3px;
    }

    .project-featured-image-container .project-image {
        max-height: 400px;
    }
}

@media (max-width: 480px) {
    .portfolio-hero {
        padding: 6rem 0 3rem;
    }

    .portfolio-hero .hero-title {
        font-size: 1.8rem;
    }

    .portfolio-card-content {
        padding: 1.5rem;
    }

    .portfolio-meta {
        flex-wrap: wrap;
    }
}