/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* Custom Utility Classes */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

.heritage-watermark {
    mask-image: linear-gradient(to bottom, black, transparent);
    -webkit-mask-image: linear-gradient(to bottom, black, transparent);
}

/* Utility Classes */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #002031;
}

.hero-gradient-overlay {
    background: linear-gradient(135deg, rgba(0, 21, 47, 0.95) 0%, rgba(15, 42, 74, 0.6) 100%);
}

.text-white\! {
    color: white !important;
}

.full-width {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}


/* Swiper Custom Theme */
:root {
    --swiper-theme-color: #83bae5;
    --swiper-pagination-bullet-inactive-color: #636e72;
    --swiper-pagination-bullet-inactive-opacity: 0.3;
}

/* Navigation & Menus */
#primary-menu-container ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* General Header Style (Solid by default) */
.site-header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header img {
    filter: none;
    transition: all 0.4s ease;
}

.site-header #primary-menu-container .menu-item>a {
    color: #1d3557 !important;
    opacity: 0.9;
}

/* Homepage Specific: Transparent when at top */
body.home .site-header:not(.scrolled) {
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border-bottom: 1px solid transparent;
}

body.home .site-header:not(.scrolled) img {
    filter: none;
}

body.home .site-header:not(.scrolled) #primary-menu-container>ul>li>a {
    color: white !important;
    opacity: 0.9;
}

/* Scrolled State (for all pages) */
.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    padding-top: 0;
    padding-bottom: 0;
}

.site-header.scrolled .flex.justify-between.items-center {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.site-header.scrolled img {
    filter: none;
}

.site-header.scrolled #primary-menu-container>ul>li>a {
    color: #1d3557 !important;
    opacity: 1;
}

/* Header CTA Button Dynamic Style */
.header-cta-btn {
    background-color: #002031;
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Homepage at top: Transparent */
body.home .site-header:not(.scrolled) .header-cta-btn {
    background-color: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Scrolled or Non-home pages: Brand Background */
.site-header.scrolled .header-cta-btn,
body:not(.home) .header-cta-btn {
    background-color: #002031;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.2);
}

#primary-menu-container .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-in-out;
    z-index: 50;
    padding: 10px 0;
    border-top: 2px solid #83bae5;
}

#primary-menu-container li {
    position: relative;
}

#primary-menu-container li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 10px;
}

/* Base Top-level Menu Item Style */
#primary-menu-container .menu-item>a {
    color: #1d3557;
    opacity: 0.8;
    transition: all 0.2s;
    padding-bottom: 4px;
}

/* Sub-menu Item Style (Explicitly Dark) */
#primary-menu-container .sub-menu .menu-item>a {
    color: #1d3557 !important;
    opacity: 0.8;
    display: block;
    padding: 10px 20px !important;
    border-bottom: none !important;
}

#primary-menu-container .sub-menu .menu-item>a:hover {
    background: #f8fbfe;
    color: #4a90e2 !important;
    opacity: 1;
}

#primary-menu-container .menu-item>a:hover,
#primary-menu-container .current-menu-item>a,
#primary-menu-container .current-menu-ancestor>a {
    color: #4a90e2;
    opacity: 1;
    border-bottom: 2px solid #4a90e2;
}

#primary-menu-container .sub-menu li a {
    border-bottom: none !important;
}

/* Mobile Sub-menu styling */
#mobile-menu ul ul {
    padding-left: 20px;
    margin-top: 10px;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

#mobile-menu .current-menu-item>a {
    color: #4a90e2;
    font-weight: 700;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
}

/* Article Prose Styles */
.prose h2 {
    font-family: 'Noto Serif', serif;
    color: #1d3557;
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.prose h3 {
    font-family: 'Noto Serif', serif;
    color: #1d3557;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.prose p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #1d3557;
    opacity: 0.85;
}

.prose ul {
    margin-bottom: 1.5rem;
    list-style-type: disc;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
    color: #1d3557;
    opacity: 0.85;
}

.prose blockquote {
    border-left: 4px solid #4a90e2;
    padding-left: 1.5rem;
    font-style: italic;
    margin: 2rem 0;
    color: #1d3557;
    font-size: 1.125rem;
}

/* Single Post & Custom Post Type Templates */
.project-main-grid,
.visa-main-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    margin-top: 40px;
}

@media (max-width: 991px) {

    .project-main-grid,
    .visa-main-grid {
        grid-template-columns: 1fr;
    }
}

.project-sidebar,
.visa-sidebar {
    position: sticky;
    top: 30px;
    height: fit-content;
}

.project-info-card,
.visa-process-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.project-info-card h3,
.visa-process-card h3 {
    margin-top: 0;
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: #1d3557;
    font-family: 'Noto Serif', serif;
    font-weight: 700;
}

.project-info-card ul {
    list-style: none !important;
    padding: 0 !important;
}

.project-info-card li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #1d3557;
}

.project-info-card li .dashicons {
    color: #0067FF;
}

.button-primary {
    display: inline-block;
    background: #0067FF;
    color: #fff !important;
    text-decoration: none !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
    width: 100%;
    transition: background 0.2s;
}

.button-primary:hover {
    background: #0056D6;
}

.button-visa-hotline {
    background: #10B981;
    color: #fff !important;
    font-weight: 800;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    text-decoration: none !important;
}

.visa-features {
    list-style: none !important;
    padding: 0 !important;
    margin-top: 20px !important;
}

.visa-features li {
    font-size: 14px;
    color: #1d3557;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.visa-features li .dashicons {
    color: #10B981;
}

/* Author Box */
.author-box {
    display: flex;
    background: #fff;
    padding: 30px;
    margin-top: 60px;
    border: 1px solid #e2e8f0;
}

.author-avatar img {
    border-radius: 50%;
}

.author-info h3 {
    margin-top: 0;
    font-size: 1.25rem;
    color: #1d3557;
}

.view-all-author {
    color: #0067FF;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #002031;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    width: 320px;
    height: auto;
    margin-bottom: 40px;
    animation: preloaderPulse 2.5s infinite ease-in-out;
    object-fit: contain;
    filter: brightness(0) invert(1);
    /* Ensure logo is white on dark background if it's the standard logo */
}

.preloader-line {
    width: 160px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.preloader-progress {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #83bae5;
    animation: preloaderLoading 1.8s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

@keyframes preloaderPulse {

    0%,
    100% {
        opacity: 0.7;
        transform: scale(0.96);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes preloaderLoading {
    0% {
        left: -100%;
        width: 20%;
    }

    50% {
        width: 50%;
    }

    100% {
        left: 100%;
        width: 20%;
    }
}

/* Pagination Styling */
.news-pagination {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

.news-pagination .nav-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.news-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 12px;
    background: transparent;
    border: 1px solid rgba(29, 53, 87, 0.1);
    color: #1d3557;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border-radius: 4px;
}

.news-pagination .page-numbers:hover:not(.dots) {
    border-color: #1d3557;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 53, 87, 0.1);
}

.news-pagination .page-numbers.current {
    background: #1d3557;
    border-color: #1d3557;
    color: #fff;
}

.news-pagination .page-numbers.dots {
    border: none;
    padding: 0;
    min-width: 24px;
}

.news-pagination .material-symbols-outlined {
    font-size: 20px;
}

/* Interior Pages Spacing (Fixed Header Adjustment) */
body:not(.home) .site-content {
    padding-top: 76px;
    /* Optimized for mobile header height */
}

@media (min-width: 1024px) {
    body:not(.home) .site-content {
        padding-top: 100px;
        /* Optimized for desktop header height */
    }
}

/* ===================================
   CTA Interactive Animated Button
   =================================== */
.cta-animate-btn {
    position: relative;
    background-color: #002031;
    color: #ffffff !important;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 32, 49, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Background overlay transition */
.cta-animate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #002031 0%, #4a90e2 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
}

/* Shiny reflection light sweep effect */
.cta-animate-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg);
    z-index: 2;
    animation: ctaShineSweep 4.5s infinite ease-in-out;
}

/* Pulsing outer ring/shadow wave */
@keyframes ctaPulseRing {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.4), 0 4px 15px rgba(0, 32, 49, 0.2);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(74, 144, 226, 0), 0 4px 15px rgba(0, 32, 49, 0.2);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(74, 144, 226, 0), 0 4px 15px rgba(0, 32, 49, 0.2);
    }
}

.cta-animate-btn {
    animation: ctaPulseRing 2.5s infinite;
}

@keyframes ctaShineSweep {
    0% {
        left: -60%;
    }

    15% {
        left: 120%;
    }

    100% {
        left: 120%;
    }
}

/* Hover States */
.cta-animate-btn:hover {
    animation: none;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.cta-animate-btn:hover::before {
    opacity: 1;
}

/* Icon hover transition */
.cta-animate-btn .cta-btn-icon {
    font-size: 1.15rem;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cta-animate-btn:hover .cta-btn-icon {
    transform: translateX(4px) scale(1.1);
}

.cta-animate-btn:active {
    transform: translateY(-1px) scale(1.01);
}

/* ===================================
   Editorial Leadership Section Styling
   =================================== */

/* Asymmetric Gold Offset Frame effect */
.leadership-img-wrapper {
    position: relative;
    padding-bottom: 12px;
    padding-right: 12px;
}

.leadership-gold-frame {
    position: absolute;
    bottom: 0;
    right: 0;
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    border: 1px solid #c5a059;
    border-radius: 8px;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 0;
    pointer-events: none;
}

.leadership-img-container {
    position: relative;
    z-index: 10;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 32, 49, 0.15);
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.5s ease;
}

/* Hover effects for leadership card components */
.leadership-card:hover .leadership-gold-frame {
    transform: translate(-6px, -6px);
    border-color: #c5a059;
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.2);
}

.leadership-card:hover .leadership-img-container {
    transform: translate(4px, 4px);
    box-shadow: 0 20px 40px -15px rgba(0, 32, 49, 0.25);
}

/* Slide Underline Link styling */
.slide-underline-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #002031;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.slide-underline-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #c5a059;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.leadership-card:hover .slide-underline-link::after {
    transform: scaleX(1);
    transform-origin: left;
}

.leadership-card:hover .slide-underline-link {
    color: #c5a059;
}

.slide-underline-link .material-symbols-outlined {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.leadership-card:hover .slide-underline-link .material-symbols-outlined {
    transform: translateX(4px);
}

/* Custom separator line */
.deco-line {
    position: relative;
    height: 1px;
    background: linear-gradient(to right, rgba(197, 160, 89, 0.4) 0%, rgba(197, 160, 89, 0.05) 100%);
    width: 100%;
}

.deco-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: -2px;
    width: 5px;
    height: 5px;
    background-color: #c5a059;
    transform: rotate(45deg);
}

/* Modal Enhancements */
#team-modal .modal-overlay {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 0.4s ease;
}

#team-modal .modal-close {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 32, 49, 0.1);
}

#team-modal .modal-close:hover {
    background-color: #c5a059;
    border-color: #c5a059;
    color: white;
    transform: rotate(90deg);
}

/* Styled Blockquote for Modal & Cards */
.editorial-quote {
    position: relative;
    font-family: 'Noto Serif', serif;
    font-style: italic;
    color: #1d3557;
    line-height: 1.6;
}

.editorial-quote::before {
    content: '“';
    position: absolute;
    left: -12px;
    top: -10px;
    font-size: 48px;
    font-family: 'Noto Serif', serif;
    color: rgba(197, 160, 89, 0.25);
    line-height: 1;
}

.credential-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #1d3557;
    opacity: 0.9;
}

.credential-item .material-symbols-outlined {
    color: #c5a059;
    font-size: 18px;
    margin-top: 2px;
}