/* =========================================
   PORTFOLIO COLLECTION: DESIGN SYSTEM
   ========================================= */

:root {
    /* BRAND PALETTE */
    --brand-primary: #004a87;          /* Portfolio Blue */
    --brand-accent: rgba(166,124,0, 0.8); /* Bright Red/Orange Accent */
    --brand-secondary: #003366;        /* Darker Blue for interactions */
    
    --brand-text: #333333;             /* Dark Grey Text */
    --brand-light: #f9f9f9;            /* Light Backgrounds */
    --brand-white: #ffffff;

    /* TYPOGRAPHY */
    --font-heading: "Montserrat", sans-serif;
    --font-body: "Montserrat", sans-serif;
}

/* GLOBAL RESET & TYPOGRAPHY */
body {
    font-family: var(--font-body);
    color: var(--brand-text);
    background-color: var(--brand-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--brand-primary);
    font-weight: 500;
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    -webkit-transition: color 0.3s ease;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--brand-accent);
}

/* =========================================
   UTILITY CLASSES
   ========================================= */
.text-gold {
    /* Mapped to Accent for consistency */
    color: var(--brand-accent) !important;
}

.bg-gold {
    background-color: var(--brand-accent) !important;
}

.bg-brand {
    background-color: var(--brand-primary) !important;
}

/* FIXED: Added missing footer background class */
.bg-brand-footer {
    background-color: var(--brand-primary) !important;
}

.text-brand {
    color: var(--brand-primary) !important;
}

.bg-light-brand {
    background-color: var(--brand-light) !important;
}

.letter-spacing-1 { letter-spacing: 1px; }
.letter-spacing-2 { letter-spacing: 2px; }

.object-fit-cover {
    -o-object-fit: cover;
       object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Hover Utilities */
.hover-white:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

.hover-gold:hover {
    color: var(--brand-accent) !important;
    text-decoration: none;
}

/* Hover Lift Effect */
.hover-lift {
    -webkit-transition: -webkit-transform 0.2s;
    transition: -webkit-transform 0.2s;
    transition: transform 0.2s;
    transition: transform 0.2s, -webkit-transform 0.2s;
}
.hover-lift:hover {
    -webkit-transform: translateY(-5px);
            transform: translateY(-5px);
}

/* =========================================
   COMPONENT: BUTTONS
   ========================================= */
.btn-brand {
    background-color: var(--brand-primary);
    color: #fff;
    border: 1px solid var(--brand-primary);
    padding: 12px 28px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 500;
    border-radius: 0;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.btn-gold {
    background-color: var(--brand-accent);
    color: #fff;
    border: 1px solid var(--brand-accent);
    padding: 12px 28px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 500;
    border-radius: 0;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.btn-brand:hover, .btn-gold:hover {
    background-color: var(--brand-secondary);
    border-color: var(--brand-secondary);
    color: #fff;
}

/* Disabled state handling for forms */
.btn-brand:disabled {
    background-color: var(--brand-primary);
    opacity: 0.7;
}

.btn-outline-dark {
    border-radius: 0;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 500;
    padding: 12px 28px;
}

/* =========================================
   COMPONENT: HERO SECTION
   ========================================= */
.hero-overlay {
    background: -webkit-gradient(linear, left bottom, left top, from(rgba(0,0,0,0.8)), color-stop(50%, rgba(0,0,0,0.4)), to(transparent));
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
}

.bg-gradient-fade {
    background: -webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.8)), to(transparent));
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

/* =========================================
   COMPONENT: BREADCRUMBS
   ========================================= */
.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #ccc;
}

nav[aria-label="breadcrumb"] .hover-gold:hover {
    text-decoration: underline !important;
}

/* =========================================
   COMPONENT: NAV TABS & VIDEO
   ========================================= */
.nav-tabs .nav-link {
    color: var(--brand-text);
    font-weight: 500;
    border: none;
    border-bottom: 3px solid transparent;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
}

.nav-tabs .nav-link.active {
    color: var(--brand-primary);
    border-bottom: 3px solid var(--brand-accent);
    background: transparent;
}

.nav-tabs .nav-link:hover {
    color: var(--brand-accent);
}

/* YouTube Video Wrapper in Tabs */
.video-wrapper {
    width: 100%;
    padding: 1rem;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
}

/* =========================================
   CMS CONTENT STYLES
   ========================================= */
.cms-content {
    font-size: 1.1rem;
}
.cms-content p {
    line-height: 1.8;
    color: var(--brand-text);
    margin-bottom: 1.5rem;
}
.cms-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    font-weight: 500;
    color: var(--brand-primary);
}
.cms-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--brand-text);
}
.cms-content ul, .cms-content ol {
    color: var(--brand-text);
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.cms-content li {
    margin-bottom: 0.5rem;
}
.cms-content a {
    color: var(--brand-accent);
    text-decoration: underline;
}
.cms-content a:hover {
    color: var(--brand-primary);
}
.cms-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1.5rem 0;
}

/* =========================================
   ANIMATIONS
   ========================================= */
.transition-scale {
    -webkit-transition: -webkit-transform 0.6s ease;
    transition: -webkit-transform 0.6s ease;
    transition: transform 0.6s ease;
    transition: transform 0.6s ease, -webkit-transform 0.6s ease;
}
.group-hover:hover .transition-scale {
    -webkit-transform: scale(1.05);
            transform: scale(1.05);
}
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.transition-up {
    -webkit-transform: translateY(10px);
            transform: translateY(10px);
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}
.group-hover:hover .transition-up {
    opacity: 1 !important;
    -webkit-transform: translateY(0);
            transform: translateY(0);
}
.animate-bounce {
    -webkit-animation: bounce 2s infinite;
            animation: bounce 2s infinite;
}
@-webkit-keyframes bounce {
    0%, 20%, 50%, 80%, 100% { -webkit-transform: translateX(-50%) translateY(0); transform: translateX(-50%) translateY(0); }
    40% { -webkit-transform: translateX(-50%) translateY(-10px); transform: translateX(-50%) translateY(-10px); }
    60% { -webkit-transform: translateX(-50%) translateY(-5px); transform: translateX(-50%) translateY(-5px); }
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { -webkit-transform: translateX(-50%) translateY(0); transform: translateX(-50%) translateY(0); }
    40% { -webkit-transform: translateX(-50%) translateY(-10px); transform: translateX(-50%) translateY(-10px); }
    60% { -webkit-transform: translateX(-50%) translateY(-5px); transform: translateX(-50%) translateY(-5px); }
}

/* =========================================
   ITINERARY PRICING
   ========================================= */
.price-reset p {
    margin-bottom: 0 !important;
}

/* =========================================
   BLOG DETAIL STYLES
   ========================================= */

/* Reset Legacy Content */
.blog-content-body {
    font-family: var(--font-body);
    font-size: 1.125rem; /* 18px for better readability */
    line-height: 1.8;
    color: #4a4a4a;
}

/* Force images to be responsive */
.blog-content-body img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    margin: 2rem 0;
    -webkit-box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Headings inside content */
.blog-content-body h1, 
.blog-content-body h2, 
.blog-content-body h3, 
.blog-content-body h4 {
    color: var(--brand-primary);
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

/* Links inside content */
.blog-content-body a {
    color: var(--brand-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-content-body a:hover {
    color: var(--brand-primary);
}

/* Tables (Legacy layouts often used tables) */
.blog-content-body table {
    width: 100% !important;
    display: block;
    overflow-x: auto;
    margin: 2rem 0;
}

/* Blockquotes */
.blog-content-body blockquote {
    border-left: 4px solid var(--brand-accent);
    padding-left: 1.5rem;
    font-style: italic;
    color: #6c757d;
    margin: 2rem 0;
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.avatar {
    -ms-flex-negative: 0;
        flex-shrink: 0;
}

/* Styling for the pagination to look like your brand */
.pagination .page-link {
    color: var(--brand-primary);
    width: 40px;
    height: 40px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    border: 2px solid #dee2e6;
    
    /* ANTIALIASING FIXES */
    border-radius: 50%; /* Ensure perfect circle */
    -webkit-font-smoothing: antialiased; /* Smooths text */
    -moz-osx-font-smoothing: grayscale;
    -webkit-transform: translateZ(0);
            transform: translateZ(0); /* Forces GPU rendering to smooth border edges */
    -webkit-box-shadow: 0 0 1px rgba(0,0,0,0);
            box-shadow: 0 0 1px rgba(0,0,0,0); /* Hack to force sub-pixel rendering */
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
}

.pagination .page-item.active .page-link {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
    -webkit-box-shadow: 0 4px 6px rgba(0,74,135, 0.3);
            box-shadow: 0 4px 6px rgba(0,74,135, 0.3); /* Soft shadow for active state */
}

.pagination .page-link:hover {
    background-color: #e9ecef;
    color: var(--brand-accent);
    border-color: #dee2e6;
}

.hover-shadow:hover {
    -webkit-transform: translateY(-5px) translateZ(0);
            transform: translateY(-5px) translateZ(0); /* Added translateZ here too */
    -webkit-box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
            box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
}

.transition-all {
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}