/* 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 */
.hero-gradient-overlay {
    background: linear-gradient(135deg, rgba(0,21,47,0.85) 0%, rgba(15,42,74,0.4) 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;
}

#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;
}

#primary-menu-container .menu-item > a {
    color: #1d3557;
    opacity: 0.8;
    transition: all 0.2s;
    padding-bottom: 4px;
}

#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;
}

#primary-menu-container .sub-menu li a:hover {
    background: #f8fbfe;
    color: #4a90e2;
    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: #f1f2f6;
    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: 200px;
    height: auto;
    margin-bottom: 40px;
    animation: preloaderPulse 2.5s infinite ease-in-out;
    object-fit: contain;
}

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

.preloader-progress {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #1d3557;
    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;
}
