/**
 * Travel Advisories Page Styles
 * Modern, attractive UI following Caribbean BlueBook design
 * Enhanced with smooth animations and improved UX
 */

/* Prevent horizontal overflow */
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Prevent layout shift during animations */
.advisories-grid {
    /* min-height removed to allow cards to size naturally */
}

/* ============================================
   Container
   ============================================ */
.container {
    max-width: 1400px;
    margin: 0;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
}

/* ============================================
   Global Animations
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px);
    transition: transform 0.6s ease-out;
}

.hero-section:hover .hero-background img {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
    transition: background 0.3s ease;
}

.hero-section:hover .hero-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 40px;
    max-width: 1400px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    animation: fadeIn 1s ease-out 0.2s both;
}

@media (max-width: 768px) {
    .hero-content {
        padding: 40px 24px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 40px 20px;
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
}

/* ============================================
   CMS Content Blocks Styling
   ============================================ */

/* CMS Block Content Container */


.cms-block-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}


/* Features Section (CMS Content) */
.cms-block-content .features-section,
.features-section {
    padding: 40px 0 0;
    background: #fff;
    width: 100%;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
}

.cms-block-content .features-container,
.features-container {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
    width: 100%;
    box-sizing: border-box;
}

/* Ensure exact alignment with intro section */
.cms-block-content .features-container {
    padding-left: 40px;
    padding-right: 40px;
}

@media (max-width: 768px) {
    .cms-block-content .features-container,
    .features-container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 480px) {
    .cms-block-content .features-container,
    .features-container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Features Header */
.cms-block-content .features-header,
.features-header {
    margin-bottom: 40px;
    text-align: left;
}

/* Section Title in CMS Content */
.cms-block-content .section-title,
.cms-block-content .features-section .section-title,
.cms-block-content h2.section-title,
.cms-block-content .features-grid .section-title,
.cms-block-content .features-container .section-title {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: var(--text-gray-color) !important;
    margin-bottom: 24px !important;
    line-height: 1.3 !important;
}

.cms-block-content .section-title strong,
.cms-block-content h2 strong {
    font-size: inherit !important;
    font-weight: 700 !important;
}

/* Override Quill inline font sizes for titles */
.cms-block-content .section-title .ql-size-3\.2rem,
.cms-block-content .section-title .ql-size-3-2rem,
.cms-block-content h2 .ql-size-3\.2rem,
.cms-block-content h2 .ql-size-3-2rem,
.cms-block-content .section-title strong.ql-size-3\.2rem,
.cms-block-content .section-title strong.ql-size-3-2rem {
    font-size: 3.2rem !important;
}

/* Section Subtitle in CMS Content */
.cms-block-content .section-subtitle,
.cms-block-content .features-section .section-subtitle,
.cms-block-content p.section-subtitle {
    font-size: 1.8rem !important;
    color: var(--text-gray-color) !important;
    margin-top: 12px !important;
    line-height: 1.7 !important;
    font-weight: 400 !important;
}

/* Responsive font sizes for subtitles */
@media (max-width: 1024px) {
    .cms-block-content .section-subtitle,
    .cms-block-content .features-section .section-subtitle,
    .cms-block-content p.section-subtitle {
        font-size: 1.7rem !important;
    }
}

@media (max-width: 768px) {
    .cms-block-content .section-subtitle,
    .cms-block-content .features-section .section-subtitle,
    .cms-block-content p.section-subtitle {
        font-size: 1.6rem !important;
    }
}

@media (max-width: 480px) {
    .cms-block-content .section-subtitle,
    .cms-block-content .features-section .section-subtitle,
    .cms-block-content p.section-subtitle {
        font-size: 1.5rem !important;
    }
}

/* Features Grid */
.cms-block-content .features-grid,
.features-grid {
    display: block;
    width: 100%;
}

/* Content Text in CMS Blocks */
.cms-block-content p,
.cms-block-content .features-section p,
.cms-block-content .features-container p,
.cms-block-content .features-grid p {
    font-size: 1.8rem !important;
    line-height: 1.4 !important;
    color: var(--text-gray-color) !important;
    margin-bottom: 20px !important;
}

/* Responsive font sizes for CMS content */
@media (max-width: 1024px) {
    .cms-block-content p,
    .cms-block-content .features-section p,
    .cms-block-content .features-container p,
    .cms-block-content .features-grid p {
        font-size: 1.7rem !important;
    }
}

@media (max-width: 768px) {
    .cms-block-content p,
    .cms-block-content .features-section p,
    .cms-block-content .features-container p,
    .cms-block-content .features-grid p {
        font-size: 1.6rem !important;
        line-height: 1.7 !important;
    }
}

@media (max-width: 480px) {
    .cms-block-content p,
    .cms-block-content .features-section p,
    .cms-block-content .features-container p,
    .cms-block-content .features-grid p {
        font-size: 1.5rem !important;
        line-height: 1.7 !important;
    }
}

.cms-block-content p:last-child,
.cms-block-content .features-section p:last-child {
    margin-bottom: 0 !important;
}

/* Headings in CMS Content */
.cms-block-content h1,
.cms-block-content h2,
.cms-block-content h3,
.cms-block-content h4,
.cms-block-content h5,
.cms-block-content h6 {
    /* color: var(--text-gray-color) !important; */
    font-weight: 700 !important;
    margin-bottom: 16px !important;
    line-height: 1.3 !important;
}

.cms-block-content h1 {
    font-size: 3rem !important;
}

.cms-block-content h2 {
    font-size: 2.5rem !important;
}

.cms-block-content h3 {
    font-size: 2rem !important;
}

.cms-block-content h4 {
    font-size: 1.75rem !important;
}

.cms-block-content h5 {
    font-size: 1.5rem !important;
}

.cms-block-content h6 {
    font-size: 1.25rem !important;
}

/* Quill Editor Sizes - Override inline styles for consistency */
.cms-block-content .ql-size-small,
.cms-block-content .ql-size-1\.2rem,
.cms-block-content .ql-size-1-2rem {
    font-size: 1.4rem !important;
}

.cms-block-content .ql-size-normal,
.cms-block-content .ql-size-1\.6rem,
.cms-block-content .ql-size-1-6rem {
    font-size: 1.6rem !important;
}

.cms-block-content .ql-size-large,
.cms-block-content .ql-size-2rem {
    font-size: 2rem !important;
}

.cms-block-content .ql-size-huge,
.cms-block-content .ql-size-2\.5rem,
.cms-block-content .ql-size-2-5rem,
.cms-block-content .ql-size-3\.2rem,
.cms-block-content .ql-size-3-2rem {
    font-size: 2.5rem !important;
}

/* Responsive Typography for CMS Content */
@media (max-width: 768px) {
    .cms-block-content .section-title,
    .cms-block-content h2,
    .cms-block-content .section-title strong,
    .cms-block-content h2 strong,
    .cms-block-content .section-title .ql-size-3\.2rem,
    .cms-block-content .section-title .ql-size-3-2rem {
        font-size: 2rem !important;
    }
    
    .cms-block-content .section-subtitle,
    .cms-block-content p {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .cms-block-content .section-title,
    .cms-block-content h2,
    .cms-block-content .section-title strong,
    .cms-block-content h2 strong,
    .cms-block-content .section-title .ql-size-3\.2rem,
    .cms-block-content .section-title .ql-size-3-2rem {
        font-size: 1.75rem !important;
    }
    
    .cms-block-content .section-subtitle,
    .cms-block-content p {
        font-size: 1.4rem !important;
    }
}


.content-intro-section {
    background: #fff;
    width: 100%;
    overflow-x: hidden;
}

.content-intro-section .container {
    max-width: 1400px;
    margin: 0;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
}

/* Ensure CMS content sections align with intro section */
.cms-block-content .features-section,
.cms-block-content .features-container {
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .content-intro-section .container {
        padding: 0 24px;
    }
    
}

@media (max-width: 480px) {
    .content-intro-section .container {
        padding: 0 20px;
    }
    
   
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-gray-color) !important;
    margin-bottom: 24px;
    line-height: 1.3;
}

/* Center Travel Advisories heading in intro section */
.content-intro-section .section-title {
    text-align: center;
}

.intro-content {
    font-size: 1.8rem;
    line-height: 1.7;
    color: var(--text-gray-color) !important;
}

.intro-content p {
    margin-bottom: 20px;
    font-size: 1.8rem;
    line-height: 1.7;
    color: var(--text-gray-color) !important;
}

/* Responsive font sizes for intro content */
@media (max-width: 1024px) {
    .intro-content,
    .intro-content p {
        font-size: 1.7rem;
    }
}

@media (max-width: 768px) {
    .intro-content,
    .intro-content p {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .intro-content,
    .intro-content p {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

/* ============================================
   Advisories Section
   ============================================ */
.advisories-section {
    padding: 60px 0;
    background: linear-gradient(to bottom, #ffffff 0%, #f7fafc 100%);
    animation: fadeIn 0.8s ease-out;
    width: 100%;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
}

.advisories-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
}

/* Ensure alignment matches intro section */
.advisories-section .container {
    padding-left: 40px;
    padding-right: 40px;
}

@media (max-width: 768px) {
    .advisories-section .container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 480px) {
    .advisories-section .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}


.advisories-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.btn-filter,
.btn-feature {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-filter::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-filter:hover::before {
    width: 300px;
    height: 300px;
}

.btn-filter {
    background: linear-gradient(135deg, #3182ce 0%, #2c5aa0 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.25);
    position: relative;
}

.btn-filter::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #fbbf24;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.btn-filter.has-active-filters::after {
    opacity: 1;
    transform: scale(1);
    animation: pulse 2s ease-in-out infinite;
}

.btn-filter:hover {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a5f 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(49, 130, 206, 0.4);
}

.btn-filter:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

.btn-filter i {
    transition: transform 0.3s ease;
}

.btn-filter:hover i {
    transform: rotate(180deg);
}

.btn-clear-filters {
    padding: 14px 28px;
    border: 2px solid #e53e3e;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    color: #e53e3e;
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.15);
}

.btn-clear-filters:hover {
    background: #e53e3e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.btn-clear-filters:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(229, 62, 62, 0.2);
}

.btn-clear-filters i {
    transition: transform 0.3s ease;
}

.btn-clear-filters:hover i {
    transform: rotate(90deg);
}

.btn-feature {
    background: #e2e8f0;
    color: #2d3748;
}

.btn-feature:hover {
    background: #cbd5e0;
    transform: translateY(-2px);
}

.btn-feature.active {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.advisories-section-header {
    margin-bottom: 40px;
    animation: fadeIn 0.8s ease-out 0.3s both;
    text-align: left;
    width: 100%;
}

.advisories-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

.advisories-header-top .section-title,
#featuredAdvisoriesHeading,
.advisories-section-header .section-title,
.advisories-section-header h2.section-title {
    margin-bottom: 0;
    text-align: left;
    order: 1;
    flex: 1;
    width: auto;
    display: block;
}

.advisories-controls {
    order: 2;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0;
}

/* Responsive adjustments for extra large screens */
@media (min-width: 1400px) {
    .advisories-header-top {
        flex-direction: row;
        align-items: center;
        gap: 20px;
        justify-content: space-between;
    }
    
    .advisories-header-top .section-title,
    #featuredAdvisoriesHeading {
        text-align: left;
        width: auto;
        flex: 1;
    }
    
    .advisories-controls {
        justify-content: flex-end;
    }
}

/* For screens between 768px and 1399px */
@media (min-width: 769px) and (max-width: 1399px) {
    .advisories-header-top {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .advisories-header-top .section-title,
    #featuredAdvisoriesHeading {
        text-align: left;
        width: auto;
        flex: 1;
    }
    
    .advisories-controls {
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .advisories-header-top {
        flex-direction: column;
        gap: 15px;
    }
    
    .advisories-header-top .section-title {
        order: 1;
        width: 100%;
        text-align: left;
    }
    
    .advisories-controls {
        order: 2;
        width: 100%;
        justify-content: flex-start;
    }
}

.section-subtitle {
    font-size: 1.8rem;
    color: #6b7280;
    margin-top: 12px;
    line-height: 1.7;
    font-weight: 400;
}

/* Responsive font sizes for section subtitle */
@media (max-width: 1024px) {
    .section-subtitle {
        font-size: 1.7rem;
    }
}

@media (max-width: 768px) {
    .section-subtitle {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .section-subtitle {
        font-size: 1.5rem;
    }
}

/* ============================================
   Featured Advisories Section
   ============================================ */
.featured-advisories-section {
    margin-bottom: 50px;
}

.featured-advisories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 50px;
    position: relative;
}

@media (max-width: 1400px) {
    .featured-advisories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .featured-advisories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .featured-advisories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Featured Advisory Card - Larger */
.featured-advisory-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    animation: scaleIn 0.5s ease-out both;
    position: relative;
}

.featured-advisory-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(49, 130, 206, 0.05) 0%, rgba(26, 54, 93, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.featured-advisory-card:hover::before {
    opacity: 1;
}

.featured-advisory-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #3182ce;
}

.featured-advisory-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    z-index: 2;
}

.featured-advisory-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.advisory-country-name-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a365d;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.featured-advisory-card:hover .advisory-country-name-badge {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.featured-advisory-card:hover .featured-advisory-card-image {
    transform: scale(1.1);
}

.featured-advisory-card-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 2;
    background: white;
}

.featured-advisory-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a365d;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.featured-advisory-card:hover .featured-advisory-card-title {
    color: #3182ce;
}

.featured-advisory-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 6px 0;
    justify-content: space-between;
}

.featured-advisory-summary {
    font-size: 1.4rem;
    color: #4b5563;
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    transition: color 0.3s ease;
    max-height: calc(1.5em * 2); /* Exactly 2 lines based on line-height */
    min-height: calc(1.5em * 2); /* Ensure consistent height */
    word-wrap: break-word;
    word-break: break-word;
}

.featured-advisory-card:hover .featured-advisory-summary {
    color: #374151;
}

.featured-advisory-date {
    font-size: 1.3rem;
    color: #9ca3af;
    margin: 0;
    padding-top: 10px;
    margin-top: auto;
    border-top: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 4px;
}

.featured-advisory-issuer-name {
    font-size: 1.3rem;
    color: #6b7280;
    margin: 6px 0 0 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================
   Regular Advisories Section
   ============================================ */
.regular-advisories-section {
    margin-bottom: 40px;
}

.regular-advisories-header {
    margin-bottom: 32px;
    text-align: left;
    width: 100%;
}

.regular-advisories-header .section-title {
    font-size: 2.4rem;
    color: #1a365d;
    margin-bottom: 10px;
    font-weight: 700;
    text-align: left;
}

.regular-advisories-header .section-subtitle {
    font-size: 1.5rem;
    color: #6b7280;
    margin-bottom: 0;
    font-weight: 400;
    line-height: 1.6;
}

/* ============================================
   Advisory Cards Grid (Regular - Smaller Cards)
   ============================================ */
.advisories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    margin-bottom: 40px;
    position: relative;
}

@media (max-width: 1600px) {
    .advisories-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1400px) {
    .advisories-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1200px) {
    .advisories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .advisories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .advisories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .advisories-grid {
        grid-template-columns: 1fr;
    }
}

.advisory-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    animation: scaleIn 0.5s ease-out both;
    position: relative;
    background: linear-gradient(to bottom, #ffffff 0%, #fafbfc 100%);
}

.advisory-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(49, 130, 206, 0.05) 0%, rgba(26, 54, 93, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

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

.advisory-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #3182ce;
    background: linear-gradient(to bottom, #ffffff 0%, #f7fafc 100%);
}

.advisory-card:nth-child(1) {
    animation-delay: 0.1s;
}

.advisory-card:nth-child(2) {
    animation-delay: 0.2s;
}

.advisory-card:nth-child(3) {
    animation-delay: 0.3s;
}

.advisory-card:nth-child(4) {
    animation-delay: 0.4s;
}

.advisory-card:nth-child(5) {
    animation-delay: 0.5s;
}

.advisory-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Flag wrapper at top of card (centered) */
.advisory-flag-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 4px;
    width: 100%;
}

.advisory-flag-top {
    width: 80px;
    /* height: 40px; */
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #e5e7eb;
    display: block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advisory-card:hover .advisory-flag-top {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.advisory-country-flag-emoji-top {
    font-size: 2.2rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.advisory-country-flag-top {
    width: 52px;
    height: 40px;
    border-radius: 6px;
    border: 2px solid #e5e7eb;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advisory-card:hover .advisory-country-flag-top {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Country name (centered, below flag) */
.advisory-country-name-simple {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a365d;
    text-align: center;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.advisory-card:hover .advisory-country-name-simple {
    color: #3182ce;
}

/* Level badge wrapper (centered) */
.advisory-level-badge-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0;
}

/* Issuer and date wrapper (center-aligned at bottom) */
.advisory-issuer-date-wrapper {
    width: 100%;
    margin-top: auto;
    padding: 16px 0 8px 0;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.advisory-issuer-name-simple {
    font-size: 1.2rem;
    color: #4b5563;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.advisory-card:hover .advisory-issuer-name-simple {
    color: #374151;
}

.advisory-date-simple {
    font-size: 1.2rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
    font-weight: 500;
}

.advisory-featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 8px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
    z-index: 3;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
}

.advisory-featured-badge i {
    font-size: 1.1rem;
}

.advisory-issuer-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex !important;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 3;
    max-width: calc(100% - 24px);
    transition: all 0.3s ease;
    visibility: visible !important;
    opacity: 1 !important;
}

.advisory-card:hover .advisory-issuer-badge {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.advisory-issuer-flag {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.advisory-issuer-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a365d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.advisory-card-body {
    padding: 16px 12px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 2;
    background: transparent;
    align-items: center;
    text-align: center;
}

/* Removed .advisory-card-title and .advisory-card-header for simplified layout */

.advisory-flag {
    width: 32px;
    height: 24px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}

/* Advisory flag image (custom uploaded) */
.advisory-flag-image {
    width: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
    display: block;
}

/* Country flag display */
.advisory-country-flag-emoji {
    font-size: 2rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.advisory-country-flag {
    width: 48px;
    height: 24px;
    border-radius: 3px;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.advisory-country-name {
    font-size: 1.4rem;
    font-weight: 500;
    color: #374151;
    flex: 1;
    line-height: 1.4;
    min-width: 0;
}

.advisory-level-badge {
    padding: 6px 20px;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    margin: 0;
    flex-shrink: 0;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    text-align: center;
}

.advisory-card:hover .advisory-level-badge {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Conditional color display - only show background color when it adds value */
.advisory-level-badge.has-color {
    /* Background color will be applied inline via style attribute */
}

.advisory-level-badge.no-color {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%) !important;
    color: #374151 !important;
    border: 2px solid #d1d5db;
}

/* .advisory-level-badge.has-color:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
} */

/* Ensure level badge is always visible on all cards including featured */
.advisory-card .advisory-level-badge {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}


/* Removed .advisory-summary, .advisory-date, and .advisory-issuer-name for simplified layout */

.advisory-issuer-flag-small {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}

/* ============================================
   Load More Button
   ============================================ */
.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.btn-load-more {
    padding: 16px 40px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    color: #1a365d;
    border: none;
    border-radius: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.btn-load-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.btn-load-more:hover::before {
    left: 100%;
}

.btn-load-more:hover {
    background: linear-gradient(135deg, #cbd5e0 0%, #a0aec0 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    color: #1a365d;
}

.btn-load-more:active {
    transform: translateY(-1px);
}

.btn-load-more:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   Filter Modal (Airbnb-style with animations)
   ============================================ */
.filter-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-modal.active {
    display: flex;
    opacity: 1;
}

.filter-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.filter-modal-content {
    position: relative;
    background: white;
    width: 90%;
    max-width: 520px;
    height: 100%;
    margin-left: auto;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 1001;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-modal.active .filter-modal-content {
    transform: translateX(0);
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.filter-modal-header h3 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1a365d;
    margin: 0;
}

.filter-close-btn {
    background: none;
    border: none;
    font-size: 1.875rem;
    color: #718096;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.filter-close-btn:hover {
    background: #f7fafc;
    color: #2d3748;
}

.filter-modal-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.filter-section {
    margin-bottom: 32px;
    animation: fadeIn 0.5s ease-out both;
}

.filter-section:nth-child(1) {
    animation-delay: 0.1s;
}

.filter-section:nth-child(2) {
    animation-delay: 0.15s;
}

.filter-section:nth-child(3) {
    animation-delay: 0.2s;
}

.filter-section:nth-child(4) {
    animation-delay: 0.25s;
}

.filter-section:nth-child(5) {
    animation-delay: 0.3s;
}

.filter-label {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 14px;
    letter-spacing: 0.3px;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.4rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.15);
    transform: translateY(-1px);
}

.filter-input:hover,
.filter-select:hover {
    border-color: #cbd5e0;
}

.filter-checkboxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.filter-checkbox-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.filter-checkbox-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #3182ce;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.filter-checkbox-item:hover {
    background: linear-gradient(to right, #f7fafc 0%, #ffffff 100%);
    border-color: #3182ce;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.filter-checkbox-item:hover::before {
    transform: scaleY(1);
}

.filter-checkbox-item input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #3182ce;
    transition: transform 0.2s ease;
}

.filter-checkbox-item:hover input[type="checkbox"] {
    transform: scale(1.1);
}

.filter-checkbox-item input[type="checkbox"]:checked {
    transform: scale(1.15);
}

.filter-checkbox-item label {
    flex: 1;
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a365d;
    margin: 0;
    transition: color 0.3s ease;
}

.filter-checkbox-item:hover label {
    color: #3182ce;
}

/* Removed color preview - clean UI with just checkbox and label */
/* Color preview removed - clean UI with just checkbox and label */
.filter-checkbox-item .level-color-preview {
    display: none !important;
}

.date-range-picker {
    display: flex;
    gap: 12px;
}

.filter-date-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1.4rem;
}

.filter-date-input:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.filter-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-top: 1px solid #e2e8f0;
    position: sticky;
    bottom: 0;
    background: white;
    z-index: 10;
}

.btn-clear-all {
    background: none;
    border: none;
    color: #718096;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-clear-all:hover {
    background: #f7fafc;
    color: #2d3748;
}

.btn-show-results {
    padding: 14px 36px;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-show-results::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-show-results:hover::before {
    width: 400px;
    height: 400px;
}

.btn-show-results:hover {
    background: linear-gradient(135deg, #2c5282 0%, #1a365d 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(26, 54, 93, 0.4);
}

.btn-show-results:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.3);
}

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

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .advisories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .filter-modal-content {
        width: 100%;
        max-width: 100%;
    }

    .date-range-picker {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2.3rem;
    }
    
    .btn-filter {
        width: auto;
        padding: 13px 26px;
        font-size: 1rem;
        justify-content: center;
        max-width: 240px;
    }
    
    .advisory-card {
        border-radius: 16px;
    }
    
    .filter-checkbox-item {
        padding: 14px;
    }
    
    .filter-checkboxes {
        grid-template-columns: 1fr;
    }
    
    .btn-show-results {
        width: 100%;
        margin-top: 12px;
    }
    
    .btn-clear-all {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
        letter-spacing: 1px;
    }
    
    .section-title {
        font-size: 2.2rem !important;  
    }
    
    .btn-filter {
        padding: 12px 24px;
        font-size: 0.95rem;
        max-width: 220px;
    }
    
    .advisory-card-image-wrapper {
        height: 180px;
    }
    
    .advisory-card-body {
        padding: 16px;
    }
}

/* ============================================
   Loading States
   ============================================ */
.advisories-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    color: #718096;
    font-size: 1.6rem;
    min-height: 400px;
    text-align: center;
}

.advisories-loading::before {
    content: '';
    display: block;
    width: 50px;
    height: 50px;
    border: 5px solid #e2e8f0;
    border-top-color: #3182ce;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

.advisories-loading::after {
    content: 'Loading advisories...';
    display: block;
    margin-top: 0;
    font-weight: 500;
    color: #4a5568;
    font-size: 1.4rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.advisories-empty {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
    animation: fadeIn 0.6s ease-out;
}

.advisories-empty .empty-icon {
    font-size: 4rem;
    color: #cbd5e0;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.advisories-empty .empty-icon i {
    opacity: 0.6;
}

.advisories-empty .empty-message {
    font-size: 1.6rem;
    color: #718096;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

.advisories-empty h3 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: #1a365d;
    font-weight: 700;
}

.advisories-empty p {
    font-size: 1.4rem;
    color: #6b7280;
}

@media (max-width: 768px) {
    .advisories-empty {
        padding: 40px 20px;
    }
    
    .advisories-empty .empty-icon {
        font-size: 3rem;
        margin-bottom: 20px;
    }
    
    .advisories-empty .empty-message {
        font-size: 1.4rem;
    }
}

/* ============================================
   Select2 Customization
   ============================================ */
.select2-container {
    width: 100% !important;
}

.select2-selection {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    min-height: 48px !important;
}

.select2-selection:focus {
    border-color: #3182ce !important;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1) !important;
}



.select2-container--default .select2-search--inline .select2-search__field{
    margin: 12px 0px 0px 12px !important;
}