:root {
    --primary: #0f172a;
    --primary-soft: #1e293b;
    --secondary: #d4a373;
    --accent: #1d4ed8;
    --bg-soft: #f8fafc;
    --border: #e2e8f0;
    --text: #334155;
    --muted: #64748b;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--text);
    background: var(--white);
    line-height: 1.75;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; color: inherit; }

.main-navbar {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226,232,240,0.85);
}
.brand-name {
    font-weight: 800;
    color: var(--primary) !important;
    letter-spacing: -0.02em;
}
.navbar-light .navbar-nav .nav-link {
    color: var(--primary-soft);
    font-weight: 600;
    padding: .85rem 1rem;
}
.navbar-light .navbar-nav .nav-link:hover {
    color: var(--accent);
}

.btn-brand,
.btn-outline-brand {
    border-radius: 14px;
    font-weight: 700;
    padding: 12px 22px;
    transition: all .25s ease;
}
.btn-brand {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: var(--white);
}
.btn-brand:hover {
    background: #111827;
    border-color: #111827;
    color: var(--white);
    transform: translateY(-1px);
}
.btn-outline-brand {
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--primary);
}
.btn-outline-brand:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.section-space { padding: 88px 0; }
.section-space-sm { padding: 64px 0; }
.bg-soft { background: var(--bg-soft); }
.section-pill,
.badge-soft {
    display: inline-block;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: .84rem;
    font-weight: 700;
    background: #e0e7ff;
    color: #3730a3;
}
.section-title,
.page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
}
.section-title-sm,
.mini-title,
.detail-title,
.card-mini-title { color: var(--primary); font-weight: 800; }
.section-subtitle,
.page-subtitle,
.section-text,
.hero-desc {
    color: var(--muted);
    max-width: 760px;
}

.hero-section {
    padding: 96px 0 48px;
    background:
      radial-gradient(circle at top right, rgba(212,163,115,0.14), transparent 28%),
      linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.4rem);
    line-height: 1.02;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: -0.04em;
}
.hero-position {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-soft);
}
.hero-photo-card,
.glass-card,
.stat-card,
.simple-card,
.skill-card,
.article-card,
.portfolio-card,
.timeline-card,
.testimonial-card,
.cta-box {
    background: var(--white);
    border: 1px solid rgba(226,232,240,0.9);
    box-shadow: var(--shadow);
    border-radius: var(--radius-lg);
}
.hero-photo-card {
    max-width: 430px;
    padding: 18px;
}
.hero-photo {
    border-radius: 20px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    width: 100%;
}
.hero-photo-placeholder {
    min-height: 420px;
    border-radius: 20px;
    background: linear-gradient(135deg, #e2e8f0, #f8fafc);
    color: var(--primary);
    font-size: 5rem;
}

.stat-card {
    padding: 28px 24px;
    text-align: center;
    height: 100%;
}
.stat-card h3 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
}
.stat-card p { margin: 0; color: var(--muted); font-weight: 600; }

.glass-card,
.simple-card,
.skill-card,
.testimonial-card,
.article-card,
.timeline-card,
.cta-box {
    padding: 28px;
}
.check-list { list-style: none; padding-left: 0; }
.check-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--text);
}
.check-list li::before {
    content: '\F26A';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
}

.portfolio-card { overflow: hidden; height: 100%; }
.portfolio-image-wrap {
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
}
.portfolio-image,
.detail-cover {
    width: 100%;
    object-fit: cover;
}
.portfolio-image { height: 220px; }
.detail-cover { border-radius: 20px; }
.portfolio-placeholder {
    height: 220px;
    font-size: 3.5rem;
    color: var(--primary);
}
.portfolio-body { padding: 24px; }
.portfolio-title,
.article-title { font-size: 1.18rem; line-height: 1.35; font-weight: 800; color: var(--primary); margin: 14px 0 10px; }
.portfolio-text,
.article-text { color: var(--muted); margin-bottom: 0; }
.article-date { color: var(--accent); font-weight: 700; font-size: .95rem; }
.link-arrow { font-weight: 700; color: var(--accent); }
.link-arrow i { margin-left: 6px; }

.modern-progress {
    height: 10px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}
.modern-progress .progress-bar {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 999px;
}
.skill-name,
.timeline-title,
.testimonial-name { font-weight: 800; color: var(--primary); }
.skill-percent,
.timeline-period,
.timeline-org,
.testimonial-role { color: var(--muted); }

.timeline-wrap {
    position: relative;
    padding-left: 28px;
}
.timeline-wrap::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dbeafe;
}
.timeline-item {
    position: relative;
    margin-bottom: 24px;
}
.timeline-dot {
    position: absolute;
    left: -28px;
    top: 24px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(29,78,216,0.12);
}
.timeline-card { padding: 24px; }

.cta-box {
    padding: 44px 28px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
}
.cta-title {
    color: var(--primary);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 12px;
}
.cta-text { color: var(--muted); max-width: 760px; margin: 0 auto 24px; }

.page-hero { border-bottom: 1px solid rgba(226,232,240,0.85); }
.rich-text,
.detail-section p { color: var(--text); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-item {
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    font-weight: 600;
    color: var(--primary-soft);
}
.detail-list li,
.contact-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.contact-list li {
    justify-content: flex-start;
    align-items: center;
}
.contact-list i {
    width: 24px;
    color: var(--accent);
    font-size: 1.1rem;
}
.related-item + .related-item { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.related-item a { color: var(--primary); font-weight: 700; }
.modern-input {
    border-radius: 14px;
    border: 1px solid var(--border);
    min-height: 48px;
    padding: 12px 16px;
    box-shadow: none !important;
}
.modern-input:focus {
    border-color: #93c5fd;
}
.gap-12 { gap: 12px; }

.site-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.76);
    padding: 72px 0 24px;
    margin-top: 40px;
}
.footer-title,
.footer-heading {
    color: #fff;
    font-weight: 800;
}
.footer-links li + li { margin-top: 10px; }
.footer-links a,
.footer-text { color: rgba(255,255,255,0.76); }
.footer-bottom {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

@media (max-width: 991.98px) {
    .section-space { padding: 72px 0; }
    .hero-section { padding: 72px 0 40px; }
}

@media (max-width: 767.98px) {
    .section-space { padding: 56px 0; }
    .section-space-sm { padding: 48px 0; }
    .hero-title { font-size: 2.3rem; }
    .hero-photo-placeholder { min-height: 300px; }
    .timeline-wrap { padding-left: 22px; }
    .timeline-dot { left: -22px; }
    .detail-list li { flex-direction: column; }
}
.page-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.section-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #0f172a;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
}

.page-title {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
    margin-bottom: 14px;
}

.page-subtitle {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.8;
}

.detail-subtitle {
    margin: 0;
    max-width: 100%;
}

.summary-box,
.portfolio-card,
.info-box,
.content-block,
.sidebar-card,
.empty-state {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.summary-title,
.section-title,
.content-block h2,
.sidebar-card h3 {
    color: #0f172a;
    font-weight: 700;
}

.summary-text,
.section-subtitle,
.content-block p,
.sidebar-card p,
.sidebar-card li,
.portfolio-desc,
.portfolio-meta,
.related-meta,
.back-link {
    color: #475569;
}

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

.filter-chip {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: .2s ease;
}

.filter-chip:hover,
.filter-chip.active {
    background: #0f172a;
    color: #ffffff;
    text-decoration: none;
}

.portfolio-card {
    height: 100%;
}

.featured-card {
    border: 1px solid #e2e8f0;
}

.portfolio-card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portfolio-category {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
}

.badge-highlight {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 12px;
    font-weight: 700;
}

.portfolio-title-sm {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}

.portfolio-title-sm a {
    color: #0f172a;
    text-decoration: none;
}

.portfolio-title-sm a:hover {
    color: #1d4ed8;
}

.portfolio-meta {
    font-size: 14px;
    margin-bottom: 10px;
}

.portfolio-desc {
    line-height: 1.7;
    margin-bottom: 14px;
}

.portfolio-mini-info {
    font-size: 14px;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 14px;
}

.portfolio-link {
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    margin-top: auto;
}

.portfolio-link:hover {
    color: #1d4ed8;
    text-decoration: none;
}

.info-box small {
    display: block;
    color: #64748b;
    margin-bottom: 6px;
}

.info-box strong {
    color: #0f172a;
    font-size: 15px;
    line-height: 1.5;
}

.content-block h2 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.content-block p {
    line-height: 1.9;
    margin-bottom: 0;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

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

.sidebar-list li strong {
    color: #0f172a;
    min-width: 110px;
}

.sidebar-list li span {
    text-align: right;
}

.related-item {
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.related-item a {
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
}

.related-item a:hover {
    color: #1d4ed8;
}

.related-meta {
    font-size: 13px;
    margin-top: 4px;
}

.empty-state {
    text-align: center;
    padding: 50px 24px;
}

.back-link {
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    color: #1d4ed8;
    text-decoration: none;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .sidebar-list li {
        flex-direction: column;
    }

    .sidebar-list li span {
        text-align: left;
    }
}

.publication-card,
.publication-featured-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
}

.publication-card:hover,
.publication-featured-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.10);
}

.publication-thumb {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #334155 100%);
}

.featured-thumb {
    min-height: 280px;
}

.small-thumb {
    min-height: 230px;
}

.publication-grid-line {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 36px 36px;
    opacity: .35;
    z-index: 1;
}

.publication-circle-a,
.publication-circle-b {
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
    opacity: .18;
    z-index: 1;
}

.publication-circle-a {
    width: 260px;
    height: 260px;
    background: #3b82f6;
    top: -70px;
    right: -55px;
}

.publication-circle-b {
    width: 180px;
    height: 180px;
    background: #d4a373;
    bottom: -55px;
    left: -35px;
}

.publication-thumb-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.featured-thumb-content {
    min-height: 280px;
    padding: 28px;
}

.small-thumb-content {
    min-height: 230px;
    padding: 22px;
}

.publication-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2px;
    margin-bottom: 16px;
}

.featured-thumb-content h3,
.small-thumb-content h3 {
    color: #ffffff;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 10px;
}

.featured-thumb-content h3 {
    font-size: 2.1rem;
    max-width: 90%;
}

.small-thumb-content h3 {
    font-size: 1.35rem;
    max-width: 95%;
}

.featured-thumb-content p,
.small-thumb-content p {
    color: #dbeafe;
    margin: 0;
    line-height: 1.55;
}

.featured-thumb-content p {
    font-size: 1rem;
    max-width: 85%;
}

.small-thumb-content p {
    font-size: .93rem;
    max-width: 95%;
}

.publication-body {
    padding: 24px;
}

.publication-meta,
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

.publication-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.45;
    margin: 10px 0 10px;
}

.publication-title a {
    color: #0f172a;
    text-decoration: none;
}

.publication-title a:hover {
    color: #1d4ed8;
    text-decoration: none;
}

.publication-summary {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 14px;
}

.publication-link,
.thumb-preview-link {
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
}

.publication-link:hover,
.thumb-preview-link:hover {
    color: #1d4ed8;
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .featured-thumb-content h3 {
        font-size: 1.75rem;
        max-width: 100%;
    }

    .featured-thumb-content p {
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .featured-thumb {
        min-height: 240px;
    }

    .featured-thumb-content {
        min-height: 240px;
        padding: 22px;
    }

    .featured-thumb-content h3 {
        font-size: 1.5rem;
    }

    .small-thumb {
        min-height: 210px;
    }

    .small-thumb-content {
        min-height: 210px;
        padding: 20px;
    }

    .small-thumb-content h3 {
        font-size: 1.2rem;
    }
}