@import url("https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700;800&display=swap");

        :root {
            --primary-blue: #0b3168;
            --darker-blue: #061c3f;
            --accent-yellow: #ffc107;
            --light-bg: #f8f9fa;
        }

        body {
            font-family: "Prompt", sans-serif;
            color: #333;
            background-color: var(--light-bg);
        }

        /* Navbar */
        

        

        

        

        

        

        

        

        /* Page Header */
        .page-header {
            background-color: var(--light-bg);
            background-size: cover;
            background-position: center 50%;
            background-repeat: no-repeat;
            padding: 5.5rem 0;
            border-top: 1px solid rgba(0, 0, 0, 0.05);
            position: relative;
            border-bottom: 5px solid var(--accent-yellow);
        }

        .page-header h1 {
            font-size: 2.5rem !important;
            color: var(--primary-blue);
        }

        .page-header .breadcrumb {
            font-size: 1.0rem !important;
        }

        .page-header-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(to right, rgba(248, 249, 250, 1) 0%, rgba(248, 249, 250, 0.9) 30%, rgba(0, 0, 0, 0) 100%);
            z-index: 1;
        }
        /* --- ปรับแต่งส่วน Project Cards ให้ดูมีรายละเอียดขึ้น --- */
        #project-section {
            background:
                radial-gradient(circle at top left, rgba(255, 193, 7, 0.12), transparent 28%),
                linear-gradient(180deg, #f8f9fa 0%, #eef3f8 100%);
        }

        .projects-intro {
            max-width: 760px;
            margin-left: auto;
            margin-right: auto;
        }

        .section-eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            background: rgba(255, 193, 7, 0.18);
            color: var(--primary-blue);
            border: 1px solid rgba(255, 193, 7, 0.45);
            padding: 0.45rem 1rem;
            border-radius: 999px;
            font-weight: 700;
            font-size: 0.92rem;
            margin-bottom: 1rem;
        }

        .projects-intro h2 {
            color: var(--darker-blue);
            font-weight: 800;
            font-size: clamp(1.65rem, 3vw, 2.45rem);
            margin-bottom: 0.75rem;
        }

        .projects-intro p {
            color: #5b6675;
            margin-bottom: 0;
            font-size: 1.05rem;
        }

        .project-card {
            border: 1px solid rgba(11, 49, 104, 0.08);
            border-radius: 24px;
            overflow: hidden;
            transition: all 0.35s ease;
            position: relative;
            background-color: #fff;
            box-shadow: 0 10px 28px rgba(6, 28, 63, 0.08);
        }

        .project-card::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: linear-gradient(90deg, var(--accent-yellow), var(--primary-blue));
            opacity: 0;
            transition: 0.35s ease;
            z-index: 3;
        }

        .project-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 18px 42px rgba(11, 49, 104, 0.18) !important;
            border-color: rgba(255, 193, 7, 0.55);
        }

        .project-card:hover::before {
            opacity: 1;
        }

        .img-wrapper {
            overflow: hidden;
            position: relative;
            background: var(--darker-blue);
        }

        .img-wrapper::after {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(6, 28, 63, 0.05) 0%, rgba(6, 28, 63, 0.52) 100%);
            opacity: 0.8;
            transition: opacity 0.35s ease;
        }

        .project-img {
            width: 100%;
            height: 230px;
            object-fit: cover;
            transition: transform 0.6s ease, filter 0.35s ease;
        }

        .project-card:hover .project-img {
            transform: scale(1.08);
            filter: saturate(1.08) contrast(1.03);
        }

        .project-card:hover .img-wrapper::after {
            opacity: 0.58;
        }

        .project-badge {
            position: absolute;
            left: 1rem;
            bottom: 1rem;
            z-index: 2;
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            background: rgba(255, 193, 7, 0.95);
            color: var(--darker-blue);
            padding: 0.42rem 0.85rem;
            border-radius: 999px;
            font-weight: 800;
            font-size: 0.82rem;
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
        }

        .project-no {
            position: absolute;
            top: 1rem;
            right: 1rem;
            z-index: 2;
            background: rgba(6, 28, 63, 0.86);
            color: #fff;
            border: 1px solid rgba(255, 255, 255, 0.25);
            border-radius: 14px;
            padding: 0.35rem 0.7rem;
            font-weight: 800;
            letter-spacing: 0.04em;
        }

        .project-mini {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            color: #16803c;
            background: rgba(22, 128, 60, 0.08);
            padding: 0.25rem 0.65rem;
            border-radius: 999px;
            font-size: 0.82rem;
            font-weight: 700;
            width: fit-content;
        }

        .project-title {
            color: #0565ff;
            line-height: 1.45;
            min-height: 3rem;
        }

        .project-desc {
            color: #5d6878;
            font-size: 0.95rem;
            line-height: 1.65;
            margin-bottom: 1rem;
        }

        .project-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1.15rem;
        }

        .project-meta span {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            background: #f3f6fa;
            color: var(--primary-blue);
            border: 1px solid #e3eaf2;
            border-radius: 999px;
            padding: 0.35rem 0.7rem;
            font-size: 0.82rem;
            font-weight: 600;
        }

        .btn-card-detail {
            background: linear-gradient(90deg, var(--primary-blue), #0f4a97);
            color: white;
            border: none;
            transform: none;
            transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
            box-shadow: 0 8px 18px rgba(11, 49, 104, 0.18);
        }

        .btn-card-detail:hover,
        .btn-card-detail:focus,
        .btn-card-detail:active {
            background: linear-gradient(90deg, var(--accent-yellow), #ffd65a);
            color: var(--darker-blue);
            transform: none;
            box-shadow: 0 10px 22px rgba(255, 193, 7, 0.32);
        }

        .btn-card-detail i {
            pointer-events: none;
        }

        /* Pagination รูปแบบเดียวกับหน้าบทความ */
        .pagination {
            gap: 8px;
            margin-bottom: 0;
        }

        .pagination .page-link {
            min-width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0.5rem;
            color: var(--primary-blue);
            background: #fff;
            border: 1px solid #dfe5ec;
            border-radius: 10px !important;
            font-weight: 600;
            cursor: pointer;
            box-shadow: 0 5px 14px rgba(6, 28, 63, 0.06);
            transition: transform 0.2s ease, box-shadow 0.2s ease,
                        background-color 0.2s ease, border-color 0.2s ease;
        }

        .pagination .page-link:hover {
            color: var(--primary-blue);
            background-color: #fff7d6;
            border-color: var(--accent-yellow);
            transform: translateY(-2px);
            box-shadow: 0 8px 18px rgba(6, 28, 63, 0.11);
        }

        .pagination .page-item.active .page-link {
            color: #fff;
            background-color: var(--primary-blue);
            border-color: var(--primary-blue);
            box-shadow: 0 7px 16px rgba(11, 49, 104, 0.23);
        }

        .pagination .page-item.disabled .page-link {
            color: #9aa5b3;
            background-color: #f3f5f7;
            border-color: #e2e6eb;
            box-shadow: none;
            transform: none;
            cursor: default;
        }
        
        /* ซ่อนหน้าอื่นๆ ไว้ก่อน */
        .page-content {
            display: none;
        }
