:root {
    --primary: #1F4E79;
    --secondary: #4B5E6B;
    --light: #f8f9fa;
    --dark: #1a1a1a;
    --primary-color: #1F4E79;
    --secondary-color: #4B5E6B;
    --light-color: #f8f9fa;
    --dark-color: #1a1a1a;
}

/* `clip` on html too: iOS Safari ignores body overflow, so off-screen AOS fade-left/right would allow sideways scrolling. */
html {
    overflow-x: clip;
}

body {
    font-family: 'Poppins', 'Noto Sans TC', sans-serif;
    overflow-x: hidden;
    overflow-x: clip;
}

body.auth-layout {
    background: var(--primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Navbar */
body {
    padding-top: 72px !important; /* Prevent content hidden behind fixed navbar */
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary) !important;
}

/* The source image is slightly taller than wide; widen it so the ring renders as a circle. */
.navbar-brand .brand-logo {
    width: 57px;
    height: 44px;
    object-fit: fill;
}

.navbar-brand .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.navbar-brand .brand-name-en {
    font-size: 0.7em;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.custom-navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050 !important;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(31, 78, 121, 0.15);
}

.custom-navbar .nav-link {
    color: var(--primary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    white-space: nowrap;
    transition: all 0.3s ease;
}

@media (min-width: 1200px) {
    .custom-navbar .navbar-brand {
        font-size: 1.2rem;
    }
    .custom-navbar .nav-link {
        padding: 0.5rem 0.5rem !important;
        font-size: 0.9rem;
    }
}

@media (min-width: 1400px) {
    .custom-navbar .navbar-brand {
        font-size: 1.35rem;
    }
    .custom-navbar .nav-link {
        padding: 0.5rem 0.7rem !important;
        font-size: 0.95rem;
    }
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active {
    color: var(--secondary) !important;
}

.custom-navbar .dropdown-menu {
    background: var(--primary);
    border: none;
    border-radius: 8px;
    margin-top: 0.5rem;
}

.custom-navbar .dropdown-item {
    color: #fff !important;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.custom-navbar .dropdown-item:hover {
    background: var(--secondary);
    color: #fff !important;
}

/* Offcanvas & Mobile Navbar - moved from inline styles in navbar.blade.php */
.custom-offcanvas {
    width: 280px;
    max-width: 85vw;
}

.offcanvas-body .nav-link {
    padding: 12px 0;
    font-size: 1.05rem;
    color: var(--primary) !important;
    text-decoration: none;
}

.offcanvas-body .nav-link:hover,
.offcanvas-body .nav-link.active {
    color: var(--secondary) !important;
    background: rgba(31, 78, 121, 0.08);
    border-radius: 6px;
}

.offcanvas-body .dropdown-menu {
    position: static;
    border: none;
    box-shadow: none;
    padding-left: 1rem;
    background: transparent;
}

.offcanvas-body .dropdown-toggle::after {
    float: right;
    margin-top: 6px;
}

/* Mobile dropdown items - fix blue link color */
.offcanvas-body .nav-link.small,
.offcanvas-body .dropdown-item {
    color: var(--primary) !important;
    text-decoration: none;
}

.offcanvas-body .nav-link.small:hover,
.offcanvas-body .dropdown-item:hover {
    color: var(--secondary) !important;
    background: rgba(31, 78, 121, 0.1);
    border-radius: 4px;
}

@media (min-width: 992px) {
    body {
        padding-top: 72px !important;
    }
}

/* Hero Slider */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 600px;
}

.carousel-item {
    height: 80vh;
    min-height: 600px;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    top: 40%;
    bottom: auto;
    text-align: left;
    left: 10%;
    right: 10%;
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.carousel-caption p {
    font-size: 1.25rem;
    color: var(--secondary);
    font-weight: 400;
}

@media (max-width: 991.98px) {
    .hero-section,
    .carousel-item {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }
    .carousel-caption {
        top: 50%;
        left: 15%;
        right: 15%;
        transform: translateY(-50%);
        padding: 0;
    }
    .carousel-caption h1 {
        font-size: clamp(1.25rem, 5.5vw, 2.5rem);
    }
    .carousel-caption p {
        font-size: clamp(0.8rem, 2.6vw, 1.1rem);
        margin-bottom: 0;
    }
}

.btn-primary-custom {
    background: var(--primary);
    border: none;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background: var(--secondary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(31, 78, 121, 0.3);
}

/* Section Title */
.section-title {
    position: relative;
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    color: var(--primary);
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

/* About Section */
.about-section {
    background: #fff;
}

.about-content {
    color: #333;
    line-height: 1.8;
}

.about-content h3 {
    color: var(--primary);
    font-weight: 600;
    margin-top: 2rem;
}

.about-content h3:first-child {
    margin-top: 0;
}

.about-content ul {
    list-style: none;
    padding-left: 0;
}

.about-content ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.about-content ul li::before {
    content: '•';
    color: var(--secondary);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -0.2rem;
}

/* Sector Services */
.sector-services {
    background: var(--light);
}

.service-btn {
    background: #fff;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-align: left;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 1rem;
    cursor: pointer;
}

.service-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(31, 78, 121, 0.2);
}

.service-btn i {
    margin-right: 0.75rem;
    color: var(--secondary);
}

.service-btn:hover i {
    color: #fff;
}

/* ========================================
   Talent Search Page (konsisten dengan Latest News)
   ======================================== */

/* Hero Header - mirip news-header tapi tidak identik */
.talent-hero {
    background: linear-gradient(135deg, #1F4E79 0%, #2E75B6 100%);
    color: #fff;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}

.talent-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.06) 0%, transparent 40%),
                      radial-gradient(circle at 80% 70%, rgba(255,255,255,0.04) 0%, transparent 40%);
    z-index: 0;
}

.talent-hero .container {
    position: relative;
    z-index: 1;
}

.talent-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    letter-spacing: -0.5px;
}

.talent-hero p.lead {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0;
    font-weight: 400;
}

/* Search Form */
.talent-search-section .form-control,
.talent-search-section .form-select {
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
    border: 1px solid rgba(31, 78, 121, 0.15);
    transition: all 0.3s ease;
}

.talent-search-section .form-control:focus,
.talent-search-section .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(31, 78, 121, 0.15);
}

.btn-talent-search {
    background: var(--primary);
    border: none;
    color: #fff;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-talent-search:hover {
    background: #164062;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(31, 78, 121, 0.2);
}

/* Talent Card - konsisten dengan news-card */
.talent-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(31, 78, 121, 0.12);
    height: 100%;
    background: #ffffff;
    border: 1px solid rgba(31, 78, 121, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.talent-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(31, 78, 121, 0.18);
    border-color: rgba(31, 78, 121, 0.16);
}

.talent-card img {
    border-radius: 16px 16px 0 0;
    height: 260px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.talent-card:hover img {
    transform: scale(1.03);
}

.talent-card .card-body {
    padding: 1.75rem;
    background: #ffffff;
}

.talent-card .card-title {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.talent-card .card-text {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.talent-availability-badge {
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

@media (max-width: 768px) {
    .talent-hero {
        padding: 80px 0 60px;
    }
    .talent-hero h1 {
        font-size: 2.25rem;
    }
    .talent-hero p.lead {
        font-size: 1.1rem;
    }
    .talent-search-section .form-control,
    .talent-search-section .form-select {
        margin-bottom: 1rem;
    }
    .talent-search-section .col-md-1.d-flex {
        align-items: flex-end !important;
    }
}

/* Latest News */
.news-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(31, 78, 121, 0.12);
    height: 100%;
    background: #ffffff;
    border: 1px solid rgba(31, 78, 121, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 16px 0 0 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(31, 78, 121, 0.18);
    border-color: rgba(31, 78, 121, 0.16);
}

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

.news-card img {
    border-radius: 16px 16px 0 0;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover img {
    transform: scale(1.03);
}

.news-card .card-body {
    padding: 1.75rem;
    background: #ffffff;
}

.news-card h5 {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.news-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    border-radius: 50px;
}

.news-read-more:hover {
    color: var(--secondary);
    background: rgba(31, 78, 121, 0.08);
    border-color: rgba(31, 78, 121, 0.16);
    transform: translateX(4px);
}

.news-read-more i {
    transition: transform 0.3s ease;
    margin-left: 4px;
}

.news-read-more:hover i {
    transform: translateX(8px);
}

/* Khusus timeline interaktif (jika ada) */
.news-content {
    background: #ffffff;
    border: 1px solid rgba(31, 78, 121, 0.08);
    box-shadow: 0 6px 18px rgba(31, 78, 121, 0.1);
    transition: all 0.3s ease;
}

.news-item:hover .news-content {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(31, 78, 121, 0.16);
    border-color: rgba(31, 78, 121, 0.14);
}

/* News Header */
.news-header {
    background: linear-gradient(135deg, #1F4E79 0%, #2E75B6 100%);
    color: #fff;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}

.news-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.06) 0%, transparent 40%),
                      radial-gradient(circle at 80% 70%, rgba(255,255,255,0.04) 0%, transparent 40%);
    z-index: 0;
}

.news-header .container {
    position: relative;
    z-index: 1;
}

.news-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    letter-spacing: -0.5px;
}

.news-header p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0;
    font-weight: 400;
}

@media (max-width: 768px) {
    .news-header {
        padding: 80px 0 60px;
    }
    .news-header h1 {
        font-size: 2.25rem;
    }
    .news-header p {
        font-size: 1.1rem;
    }
}

/* Footer */
.footer {
    background: var(--primary);
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer p,
.footer a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--secondary);
}

.footer .contact-info {
    line-height: 1.8;
    container-type: inline-size;
}

.footer .contact-info p {
    white-space: nowrap;
    font-size: clamp(0.7rem, 4.3cqi, 1rem);
}

html[lang="en"] .footer .contact-info .contact-address {
    white-space: normal;
}

.footer .contact-info i {
    color: #9fc3e3;
    margin-right: 0.75rem;
    width: 20px;
}

.footer-links a {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.footer-line-qr img {
    display: inline-block;
    width: 140px;
    max-width: 100%;
    height: auto;
    background: #fff;
    padding: 4px;
    border-radius: 8px;
}

.footer-partnership h6 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-partnership p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.footer-partnership-links a {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-partnership-links i {
    color: #9fc3e3;
}

@media (max-width: 767.98px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }
    .footer h5 {
        margin-bottom: 1rem;
    }
    .footer-links a {
        margin-bottom: 0.6rem;
        font-size: 0.9rem;
    }
    .footer-bottom {
        padding-top: 1.5rem;
        margin-top: 1rem;
    }
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #b0b0b0;
}

/* Auth Pages (Login & Register) */
.login-wrapper,
.register-wrapper {
    width: 100%;
    max-width: 450px;
    margin: auto;
}

.login-card,
.register-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(31, 78, 121, 0.3);
    overflow: hidden;
}

.login-header,
.register-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    padding: 2rem 2rem 1.5rem;
    text-align: center;
}

.login-header .brand-icon,
.register-header .brand-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.login-header h2,
.register-header h2 {
    margin: 0;
    font-weight: 700;
    font-size: 1.75rem;
}

.login-header p,
.register-header p {
    margin: 0.25rem 0 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.login-body,
.register-body {
    padding: 2.5rem 2rem;
}

.login-body .form-label,
.register-body .form-label {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.login-body .form-control,
.register-body .form-control {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.login-body .form-control:focus,
.register-body .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(31, 78, 121, 0.15);
}

.input-group-text {
    background: #fff;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: var(--secondary);
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 8px 8px 0;
}

.btn-login,
.btn-register {
    background: var(--primary);
    border: none;
    color: #fff;
    padding: 0.85rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.btn-login:hover,
.btn-register:hover {
    background: var(--secondary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(31, 78, 121, 0.3);
}

.btn-login:active,
.btn-register:active {
    transform: translateY(0);
}

.divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #ddd;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    position: relative;
    display: inline-block;
    padding: 0 0.75rem;
    background: #fff;
    color: #888;
    font-size: 0.85rem;
    font-weight: 500;
}

.social-login .btn-social {
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-login .btn-social:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.social-login .btn-social i {
    margin-right: 0.5rem;
}

.footer-login,
.footer-register {
    text-align: center;
    margin-top: 1.5rem;
    color: #fff;
    font-size: 0.9rem;
}

.footer-login a,
.footer-register a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
}

.footer-login a:hover,
.footer-register a:hover {
    text-decoration: underline;
}

/* Alerts */
.alert-custom {
    border: none;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
}

.alert-danger {
    background: #f8d7da;
    color: #842029;
}

.alert-success {
    background: #d1e7dd;
    color: #0f5132;
}

/* News Detail */
.news-detail-header {
    background: linear-gradient(135deg, #1F4E79 0%, #2E75B6 100%);
    color: #fff;
    padding: 100px 0 80px;
    position: relative;
}

.news-detail-header .badge {
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: inline-block;
}

.news-detail-header h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.news-meta {
    display: flex;
    gap: 20px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.news-meta i {
    margin-right: 8px;
    color: #fff;
}

.news-detail-body {
    padding: 80px 0;
    background: #f8f9fa;
}

.news-detail-content {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 50px 60px;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(31, 78, 121, 0.08);
    border: 1px solid rgba(31, 78, 121, 0.05);
}

.news-detail-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(31, 78, 121, 0.15);
}

.news-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-detail-body-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #444;
}

.news-detail-body-content p {
    margin-bottom: 20px;
}

.news-detail-body-content h2,
.news-detail-body-content h3 {
    color: #1F4E79;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
}

.back-to-news {
    display: inline-flex;
    align-items: center;
    color: #1F4E79;
    font-weight: 600;
    text-decoration: none;
    margin-top: 40px;
    padding: 12px 24px;
    border: 2px solid #1F4E79;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.back-to-news:hover {
    background: #1F4E79;
    color: #fff;
    transform: translateX(-5px);
}

.back-to-news i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.back-to-news:hover i {
    transform: translateX(-5px);
}

@media (max-width: 768px) {
    .news-detail-header {
        padding: 80px 0 60px;
    }
    .news-detail-header h1 {
        font-size: 2rem;
    }
    .news-meta {
        flex-direction: column;
        gap: 8px;
    }
    .news-detail-content {
        padding: 30px 20px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .login-wrapper,
    .register-wrapper {
        padding: 1rem;
    }
    .login-body,
    .register-body {
        padding: 1.5rem 1rem;
    }
}

/* ========================================
   News Page Interactive Enhancements
   ======================================== */

/* Timeline container */
.news-timeline {
    position: relative;
    padding-left: 80px;
}

.news-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 40px;
    width: 4px;
    background: linear-gradient(to bottom, #1F4E79, #4B5E6B);
    border-radius: 2px;
    z-index: 0;
}

/* Individual news item */
.news-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding-left: 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    animation: newsItemReveal 0.6s ease forwards;
}

.news-item:nth-child(odd) {
    animation-delay: 0.1s;
}
.news-item:nth-child(even) {
    animation-delay: 0.2s;
}

.news-item:hover {
    border-radius: 12px;
}

.news-item:hover .news-date-badge {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(31, 78, 121, 0.25);
}

.news-item:hover .news-title {
    color: #164062;
}

/* Date badge */
.news-date-badge {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    background: #fff;
    padding: 12px 8px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(31, 78, 121, 0.15);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.news-date-badge .day {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1F4E79;
    line-height: 1;
}

.news-date-badge .month {
    font-size: 0.75rem;
    font-weight: 600;
    color: #4B5E6B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* News content wrapper */
.news-content {
    flex: 1;
    background: #fff;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(31, 78, 121, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.news-content > * {
    position: relative;
    z-index: 1;
}

/* Item date */
.news-item-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.news-item-date i {
    color: #1F4E79;
}

/* Title */
.news-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1F4E79;
    margin: 0 0 1rem 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

/* Content body */
.content-body {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: -webkit-line-clamp 0.3s ease;
}

.news-item:hover .content-body {
    -webkit-line-clamp: 5;
}

/* Read more link */
.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #1F4E79;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    border-radius: 50px;
}

.news-read-more:hover {
    color: #164062;
    background: rgba(31, 78, 121, 0.08);
    border-color: rgba(31, 78, 121, 0.2);
    transform: translateX(5px);
}

.news-read-more i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.news-read-more:hover i {
    transform: translateX(4px);
}

/* Empty state */
.news-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 20px;
    border: 2px dashed rgba(31, 78, 121, 0.2);
    animation: fadeInUp 0.8s ease;
}

.news-empty i {
    font-size: 3.5rem;
    color: #4B5E6B;
    margin-bottom: 1rem;
    display: block;
    animation: bounce 2s infinite;
}

.news-empty h3 {
    color: #1F4E79;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.news-empty p {
    color: #666;
    margin: 0;
}

/* Animations */
@keyframes newsItemReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments for news */
@media (max-width: 768px) {
    .news-timeline {
        padding-left: 60px;
    }
    .news-timeline::before {
        left: 25px;
    }
    .news-item {
        flex-direction: column;
        padding-left: 25px;
        gap: 1rem;
    }
    .news-date-badge {
        flex-direction: row;
        gap: 10px;
        min-width: auto;
        width: 100%;
        justify-content: flex-start;
        padding: 10px 15px;
    }
    .news-date-badge .day {
        font-size: 1.25rem;
    }
    .news-content {
        padding: 1.25rem;
    }
}

@media (max-width: 576px) {
    .news-timeline {
        padding-left: 20px;
    }
    .news-timeline::before {
        left: 4px;
    }
    .news-item {
        padding-left: 0;
        margin-bottom: 2rem;
    }
    .news-title {
        font-size: 1.25rem;
    }
}

/* ========================================
   Sector cards, service detail, inquiry form
   ======================================== */
.about-tagline {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
}

.section-intro {
    max-width: 820px;
    margin: 0 auto 3rem;
    color: #444;
    line-height: 1.8;
}

.section-intro h2,
.section-intro h3 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-detail {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(31, 78, 121, 0.08);
    padding: 2.5rem;
    color: #333;
    line-height: 1.9;
}

.service-detail h3 {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.35rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.service-detail h3:first-child {
    margin-top: 0;
}

.service-detail h4 {
    color: var(--secondary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

.service-detail li {
    margin-bottom: 0.5rem;
}

.service-source {
    font-size: 0.85rem;
    color: #777;
}

.service-source a {
    color: var(--primary);
}

.service-table th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}

.service-detail-cta {
    margin-top: 2rem;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.15rem;
}

.btn-service-talent {
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.inquiry-section {
    background: var(--light);
}

.inquiry-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(31, 78, 121, 0.08);
    padding: 2rem;
    height: 100%;
}

.inquiry-title {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.4rem;
}

.inquiry-subtitle {
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.inquiry-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.btn-inquiry-submit {
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    padding: 0.75rem 3rem;
    font-weight: 600;
}

.btn-inquiry-submit:hover {
    background: #2E75B6;
    color: #fff;
}

.employment-guide-section {
    background: var(--light);
}

.guide-accordion .accordion-button {
    font-weight: 600;
    color: var(--primary);
}

.guide-accordion .accordion-button:not(.collapsed) {
    background: rgba(31, 78, 121, 0.06);
}

.guide-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    counter-reset: flow;
}

.guide-flow li {
    counter-increment: flow;
    background: var(--primary);
    color: #fff;
    border-radius: 20px;
    padding: 0.35rem 1rem;
    font-size: 0.9rem;
}

.guide-flow li::before {
    content: counter(flow) ". ";
}

@media (max-width: 768px) {
    .service-detail,
    .inquiry-card {
        padding: 1.5rem;
    }
}

/* Keep anchor targets clear of the fixed navbar */
#inquiry,
#contact {
    scroll-margin-top: 90px;
}

.talent-card-placeholder {
    height: 260px;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1F4E79 0%, #4B5E6B 100%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 4rem;
}

.carousel-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1F4E79 0%, #2E75B6 100%);
}

/* ========================================
   Talent card link & CV detail page
   ======================================== */
.talent-card-no {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(31, 78, 121, 0.08);
    border-radius: 6px;
    padding: 0.15rem 0.5rem;
    margin-bottom: 0.5rem;
}

.talent-card-more {
    float: right;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 0.25rem;
}

.talent-cv-section {
    background: var(--light);
}

.cv-sheet {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(31, 78, 121, 0.08);
    padding: 2.5rem;
    color: #333;
}

.cv-photo {
    width: 100%;
    height: 100%;
    max-height: 460px;
    min-height: 320px;
    object-fit: cover;
    object-position: top;
    border-radius: 12px;
    background: #eef2f6;
}

.cv-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1F4E79 0%, #4B5E6B 100%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 6rem;
}

.cv-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.cv-badge {
    border: 1px solid rgba(31, 78, 121, 0.25);
    color: var(--primary);
    border-radius: 20px;
    padding: 0.25rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.cv-badge-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.cv-name {
    color: var(--primary);
    font-weight: 800;
    font-size: 2.25rem;
    margin-bottom: 0.25rem;
}

.cv-chinese-name {
    font-size: 1.35rem;
    color: var(--secondary);
}

.cv-chinese-name span {
    font-size: 1rem;
    margin-left: 0.5rem;
    color: #888;
}

.cv-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.cv-highlights > div {
    flex: 1 1 180px;
    background: rgba(31, 78, 121, 0.05);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
}

.cv-highlights span,
.cv-field span {
    font-size: 0.8rem;
    color: #777;
}

.cv-highlights strong {
    color: var(--primary);
    font-size: 1.15rem;
}

.cv-highlights small {
    color: var(--secondary);
}

.cv-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: #aaa;
}

.cv-checks .is-yes {
    color: #198754;
    font-weight: 600;
}

.cv-description {
    margin-top: 1rem;
    color: #555;
}

.cv-section-title {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
    border-bottom: 2px solid rgba(31, 78, 121, 0.15);
    padding-bottom: 0.5rem;
    margin: 2.5rem 0 1.25rem;
}

.cv-section-title small {
    font-size: 0.9rem;
    color: var(--secondary);
    margin-left: 0.5rem;
}

.cv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem 1.5rem;
}

.cv-field {
    display: flex;
    flex-direction: column;
    border-bottom: 1px dashed #e3e7eb;
    padding-bottom: 0.5rem;
}

.cv-field strong {
    font-weight: 600;
    color: #222;
}

.cv-chips,
.cv-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cv-chip,
.cv-skill {
    border: 1px solid #e3e7eb;
    color: #9aa3ab;
    border-radius: 8px;
    padding: 0.35rem 0.75rem;
    font-size: 0.9rem;
}

.cv-skill small {
    font-size: 0.75rem;
}

.cv-chip.is-yes,
.cv-skill.is-yes {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
}

.cv-table th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.cv-video {
    max-width: 360px;
    aspect-ratio: 9 / 16;
}

.cv-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 12px;
}

.cv-disclaimer {
    margin-top: 2.5rem;
    font-size: 0.8rem;
    color: #999;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

@media (max-width: 768px) {
    .cv-sheet {
        padding: 1.5rem;
    }

    .cv-name {
        font-size: 1.75rem;
    }
}
