/* ===== PORTFOLIO PAGE SECTION ===== */
.portfolio-page-section {
    padding: 80px 0 100px;
    background: var(--bg-white);
}

/* ===== PORTFOLIO TOOLBAR ===== */
.portfolio-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 50px;
    padding: 25px 30px;
    background: var(--bg-light);
    border-radius: 14px;
    border: 1px solid var(--border);
}

.portfolio-search {
    position: relative;
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.portfolio-search i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.portfolio-search input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--bg-white);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232, 133, 59, 0.1);
}

.portfolio-search input::placeholder {
    color: var(--text-muted);
}

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ===== FILTER BUTTONS ===== */
.filter-btn {
    padding: 9px 22px;
    border: 2px solid var(--border);
    border-radius: 50px;
    background: var(--bg-white);
    font-family: var(--font-main);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50px;
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(232, 133, 59, 0.15);
}

.filter-btn.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 14px rgba(232, 133, 59, 0.3);
    transform: translateY(-1px);
}

/* ===== PORTFOLIO PAGE GRID ===== */
.portfolio-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ===== PORTFOLIO PAGE CARD ===== */
.portfolio-page-card {
    background: var(--bg-white);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.portfolio-page-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.portfolio-page-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.portfolio-page-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-page-card:hover .portfolio-page-img img {
    transform: scale(1.05);
}

.portfolio-page-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(27, 42, 74, 0.85);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.portfolio-page-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-page-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.portfolio-page-tag {
    padding: 4px 12px;
    background: var(--bg-cream);
    color: var(--accent);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.portfolio-page-body h3 {
    margin-bottom: 12px;
}

.portfolio-page-body h3 a {
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.portfolio-page-body h3 a:hover {
    color: var(--accent);
}

.portfolio-page-body>p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
    flex: 1;
}

.portfolio-page-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.portfolio-page-publisher {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.portfolio-page-publisher i {
    color: var(--accent);
    font-size: 0.8rem;
}

.portfolio-page-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.portfolio-page-link:hover {
    gap: 10px;
}

/* ===== NO RESULTS ===== */
.portfolio-no-results {
    text-align: center;
    padding: 80px 20px;
}

.portfolio-no-results i {
    font-size: 3rem;
    color: var(--border);
    margin-bottom: 20px;
}

.portfolio-no-results h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.portfolio-no-results p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ============================================
   PROJECT DETAIL PAGE STYLES
   ============================================ */

/* ===== PROJECT HERO ===== */
.project-hero {
    position: relative;
    padding: 220px 0 80px;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
}

.project-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.project-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 26, 48, 0.3) 0%, rgba(15, 26, 48, 0.85) 70%, rgba(15, 26, 48, 0.95) 100%);
}

.project-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.project-hero-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.project-hero-tags .portfolio-page-tag {
    background: rgba(232, 133, 59, 0.2);
    color: var(--accent-light);
    border: 1px solid rgba(232, 133, 59, 0.3);
    padding: 5px 14px;
    font-size: 0.8rem;
}

.project-hero-content h1 {
    font-family: 'Cairo', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--text-white);
    line-height: 1.4;
    margin-bottom: 20px;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.2);
}

.project-meta {
    display: flex;
    gap: 25px;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.project-meta i {
    color: var(--accent-light);
}

/* ===== PROJECT LAYOUT ===== */
.project-section {
    padding: 60px 0 100px;
    background: var(--bg-white);
}

.project-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 50px;
    align-items: start;
}

/* ===== PROJECT CONTENT ===== */
.project-content h2 {
    font-family: 'Cairo', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin: 35px 0 15px;
    position: relative;
    padding-right: 18px;
}

.project-summary-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 26px 28px;
    margin-bottom: 28px;
    background: linear-gradient(145deg, #ffffff 0%, #fff9f2 100%);
    border: 1px solid rgba(232, 133, 59, 0.16);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.project-summary-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(232, 133, 59, 0.12);
    color: var(--accent);
    flex-shrink: 0;
    font-size: 1.15rem;
}

.project-summary-content {
    flex: 1;
}

.project-summary-label {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 800;
}

.project-summary-content p {
    margin: 0;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 2;
}

.project-content h2::before {
    content: '';
    position: absolute;
    right: 0;
    top: 5px;
    bottom: 5px;
    width: 4px;
    background: var(--accent-gradient);
    border-radius: 4px;
}

.project-content p {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--text-body);
    margin-bottom: 18px;
}

/* ===== PROJECT SHARE ===== */
.project-share {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--bg-cream);
}

.project-share h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.project-share-links {
    display: flex;
    gap: 10px;
}

.share-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.share-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.share-twitter {
    background: #1DA1F2;
}

.share-facebook {
    background: #4267B2;
}

.share-linkedin {
    background: #0A66C2;
}

.share-whatsapp {
    background: #25D366;
}

/* ===== PROJECT SIDEBAR ===== */
.project-sidebar {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-author-card {
    padding: 28px 26px;
    text-align: center;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 50%, #fff9f2 100%);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}

.sidebar-author-card img {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 3px solid rgba(232, 133, 59, 0.16);
    box-shadow: 0 6px 18px rgba(15, 26, 48, 0.08);
}

.sidebar-author-card h4 {
    font-family: 'Cairo', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.sidebar-author-title {
    display: block;
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.sidebar-author-card p {
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.9;
    margin-bottom: 18px;
}

.sidebar-author-card .btn {
    width: 100%;
}

.sidebar-project-info {
    padding: 30px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 50%, #fff9f2 100%);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}

.sidebar-project-info h4 {
    font-family: 'Cairo', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-project-info h4 i {
    color: var(--accent);
}

.project-info-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.project-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

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

.info-label {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
}

.info-value {
    font-size: 0.92rem;
    color: var(--text-dark);
    font-weight: 700;
}

.sidebar-more-works {
    padding: 25px;
    background: var(--bg-light);
    border-radius: 14px;
    border: 1px solid var(--border);
}

.sidebar-more-works h4 {
    font-family: 'Cairo', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-more-works h4 i {
    color: var(--accent);
}

.sidebar-works-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-work-item {
    display: flex;
    gap: 14px;
    text-decoration: none;
    padding: 12px;
    border-radius: 10px;
    background: var(--bg-white);
    transition: box-shadow 0.3s ease;
}

.sidebar-work-item:hover {
    box-shadow: var(--shadow-sm);
}

.sidebar-work-item img {
    width: 70px;
    height: 55px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.sidebar-work-item h5 {
    font-family: 'Cairo', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 4px;
}

.sidebar-work-item span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ===== PARTNER CARD ===== */
.sidebar-partner-section {
    margin-top: 25px;
}

.partner-card {
    background: linear-gradient(145deg, #ffffff 0%, #fff9f2 100%);
    border: 1px solid rgba(232, 133, 59, 0.2);
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(232, 133, 59, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(232, 133, 59, 0.12);
}

.partner-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(232, 133, 59, 0.3);
}

.partner-card-header i {
    color: var(--accent);
    font-size: 1.2rem;
}

.partner-card-header span {
    font-family: 'Cairo', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
}

.partner-card-body {
    display: flex;
    align-items: center;
    gap: 15px;
}

.partner-logo {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.partner-details {
    flex: 1;
}

.partner-name {
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.partner-type {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(232, 133, 59, 0.1);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .portfolio-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .project-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-project-info,
    .sidebar-more-works {
        flex: 1;
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .portfolio-page-section {
        padding: 50px 0 70px;
    }

    .portfolio-toolbar {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .portfolio-search {
        max-width: 100%;
    }

    .portfolio-filters {
        justify-content: center;
    }

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

    .project-hero {
        padding: 160px 0 50px;
        min-height: 350px;
    }

    .project-hero-content h1 {
        font-size: 1.8rem;
    }

    .project-content h2 {
        font-size: 1.3rem;
    }

    .project-content p {
        font-size: 0.95rem;
    }

    .sidebar-project-info,
    .sidebar-author-card,
    .sidebar-more-works {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .project-hero-content h1 {
        font-size: 1.5rem;
    }

    .portfolio-page-img {
        height: 180px;
    }

    .project-summary-card {
        padding: 22px 18px;
        flex-direction: column;
    }
}

/* ===== EXTERNAL PROJECT CARD ===== */
.external-article-card {
    text-align: center;
    padding: 50px 35px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 50%, #fff9f2 100%);
    border: 2px solid rgba(232, 133, 59, 0.15);
    border-radius: 16px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.external-article-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(232, 133, 59, 0.06), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.external-article-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(27, 42, 74, 0.04), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.external-article-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E8853B, #F5A862);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 25px rgba(232, 133, 59, 0.3);
    animation: externalIconPulse 3s ease-in-out infinite;
}

.external-article-card-icon i {
    font-size: 1.5rem;
    color: white;
}

@keyframes externalIconPulse {
    0%, 100% { box-shadow: 0 8px 25px rgba(232, 133, 59, 0.3); }
    50% { box-shadow: 0 8px 35px rgba(232, 133, 59, 0.45); }
}

.external-article-card h3 {
    font-family: 'Cairo', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary, #1B2A4A);
    margin-bottom: 10px;
}

.external-article-card p {
    font-size: 0.95rem;
    color: var(--text-muted, #7a7a7a);
    line-height: 1.7;
    margin-bottom: 25px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.external-article-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 35px;
    background: linear-gradient(135deg, #E8853B, #F5A862);
    color: white !important;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(232, 133, 59, 0.3);
    position: relative;
    z-index: 1;
}

.external-article-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(232, 133, 59, 0.4);
    color: white !important;
}

.external-article-cta i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.external-article-cta:hover i {
    transform: translate(-3px, -3px);
}

.external-article-url {
    display: block;
    margin-top: 15px;
    font-size: 0.8rem;
    color: var(--text-muted, #aaa);
    direction: ltr;
    font-weight: 500;
}

@media (max-width: 768px) {
    .external-article-card {
        padding: 35px 20px;
    }

    .external-article-card h3 {
        font-size: 1.2rem;
    }

    .external-article-card-icon {
        width: 60px;
        height: 60px;
    }

    .external-article-card-icon i {
        font-size: 1.2rem;
    }

    .external-article-cta {
        padding: 12px 28px;
        font-size: 0.9rem;
    }
}
